1 #ifndef __FTGLgl__ 2 #define __FTGLgl__ 3 4 #include "FTGL.h" 5 6 #ifdef WIN32 7 8 #ifndef __gl_h_ 9 #include <GL/gl.h> 10 #ifndef FTGL_DO_NOT_USE_VECTORISER 11 #include <GL/glu.h> 12 #endif 13 #endif 14 15 #else 16 17 // Non windows platforms - don't require nonsense as seen above :-) 18 #ifndef __gl_h_ 19 #ifdef __APPLE__ 20 #include <OpenGL/gl.h> 21 #ifndef FTGL_DO_NOT_USE_VECTORISER 22 #include <OpenGL/glu.h> 23 #endif 24 #else 25 #include <GL/gl.h> 26 #ifndef FTGL_DO_NOT_USE_VECTORISER 27 #include <GL/glu.h> 28 #endif 29 #endif 30 31 #endif 32 33 // Required for compatibility with glext.h style function definitions of 34 // OpenGL extensions, such as in src/osg/Point.cpp. 35 #ifndef APIENTRY 36 #define APIENTRY 37 #endif 38 #endif 39 40 // lifted from glext.h, to remove dependancy on glext.h 41 #ifndef GL_EXT_texture_object 42 #define GL_TEXTURE_PRIORITY_EXT 0x8066 43 #define GL_TEXTURE_RESIDENT_EXT 0x8067 44 #define GL_TEXTURE_1D_BINDING_EXT 0x8068 45 #define GL_TEXTURE_2D_BINDING_EXT 0x8069 46 #define GL_TEXTURE_3D_BINDING_EXT 0x806A 47 #endif 48 49 #endif // __FTGLgl__ 50