0023022: This is desirable to access OpenGl extensions and core API (1.2+) in one...
[occt.git] / src / OpenGl / OpenGl_GlCore11.hxx
CommitLineData
5f8b738e 1// File: OpenGl_GlCore11.hxx
2// Created: 06 March 2012
3// Author: Kirill GAVRILOV
4// Copyright: OPEN CASCADE 2012
5
6#ifndef _OpenGl_GlCore11_H__
7#define _OpenGl_GlCore11_H__
8
9// required for correct APIENTRY definition
10#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
11 #define WIN32_LEAN_AND_MEAN
12 #include <windows.h>
13#endif
14
15#ifndef APIENTRY
16 #define APIENTRY
17#endif
18#ifndef APIENTRYP
19 #define APIENTRYP APIENTRY *
20#endif
21#ifndef GLAPI
22 #define GLAPI extern
23#endif
24
25// current TKOpenGl implementation is incompatible with native OpenGL on MacOS X
26#define MACOSX_USE_GLX
27
28// include main OpenGL header provided with system
29#if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
30 #define GL_GLEXT_LEGACY // exclude modern definitions
31 #include <OpenGL/OpenGL.h>
32#else
33 #include <GL/gl.h>
34#endif
35
36#include <InterfaceGraphic.hxx>
37#include <InterfaceGraphic_tgl_all.hxx>
38#include <InterfaceGraphic_telem.hxx>
39
40#endif // _OpenGl_GlCore11_H__