1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0023022: This is desirable to access OpenGl extensions and core API (1.2+) in one place

Extend OpenGl_Context to provide GL2.0 core functionality

Added 'glext.h' header provided by Khronos group with definitions
and GL functions' types.
Added OpenGl_GlCoreXX structures with function list
to appropriate GL core functionality.
Fixed memory leak in OpenGl_Context destructor.
Eliminate inclusions of gl.h header
Use OpenGl_GlCore11.hxx instead.
Removed obsolote M_PI redefinitions.
Slightly cleaned up included headers.
Reuse definitions from glext.h
OpenGl_ArbVBO and OpenGl_ExtFBO originally provide own definitions
for OpenGL extensions.
This commit is contained in:
kgv
2012-03-15 13:58:13 +04:00
parent 13b4230bdb
commit 5f8b738ea5
58 changed files with 12809 additions and 812 deletions

View File

@@ -3,20 +3,14 @@
// Author: Sergey ZERCHANINOV
// Copyright: OPEN CASCADE 2011
#include <OpenGl_GlCore11.hxx>
#include <OpenGl_Text.hxx>
#if (!defined(_WIN32) && !defined(__WIN32__))
#include <X11/Xlib.h>
#endif
#include <OpenGl_tgl_all.hxx>
#include <GL/gl.h>
#include <OpenGl_Memory.hxx>
#include <OpenGl_AspectText.hxx>
#include <OpenGl_Structure.hxx>
#include <GL/glu.h> // gluUnProject()
/*----------------------------------------------------------------------*/
OpenGl_Text::OpenGl_Text (const TCollection_ExtendedString& AText,