21 #define OSG_GL1_AVAILABLE
22 #define OSG_GL2_AVAILABLE
28 #define OSG_GL_DISPLAYLISTS_AVAILABLE
29 #define OSG_GL_MATRICES_AVAILABLE
30 #define OSG_GL_VERTEX_FUNCS_AVAILABLE
31 #define OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE
32 #define OSG_GL_FIXED_FUNCTION_AVAILABLE
33 #define GL_HEADER_HAS_GLINT64
34 #define GL_HEADER_HAS_GLUINT64
36 #define OSG_GL1_FEATURES true
37 #define OSG_GL2_FEATURES true
38 #define OSG_GL3_FEATURES false
39 #define OSG_GLES1_FEATURES false
40 #define OSG_GLES2_FEATURES false
41 #define OSG_GLES3_FEATURES false
54 #if defined(__CYGWIN__) || defined(__MINGW32__)
57 #define GLUT_APIENTRY_DEFINED
58 #define APIENTRY __stdcall
62 #define CALLBACK __stdcall
72 #define GLUT_APIENTRY_DEFINED
73 #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
74 #define WINAPI __stdcall
75 #define APIENTRY WINAPI
83 #if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
84 #define CALLBACK __stdcall
94 #define GLUT_WINGDIAPI_DEFINED
95 #define DECLSPEC_IMPORT __declspec(dllimport)
96 #define WINGDIAPI DECLSPEC_IMPORT
100 #if !defined(_WCHAR_T_DEFINED) && !(defined(__GNUC__)&&(__GNUC__ > 2))
101 typedef unsigned short wchar_t;
102 #define _WCHAR_T_DEFINED
107 #if defined(OSG_GL3_AVAILABLE)
108 #define GL3_PROTOTYPES 1
109 #define GL_GLEXT_PROTOTYPES 1
118 #define GL_APIENTRY APIENTRY
119 #endif // GL_APIENTRY
122 #ifndef GL_HEADER_HAS_GLINT64
123 typedef int64_t GLint64;
126 #ifndef GL_HEADER_HAS_GLUINT64
127 typedef uint64_t GLuint64;
130 #ifdef OSG_GL_MATRICES_AVAILABLE
132 inline void glLoadMatrix(
const float* mat) { glLoadMatrixf(static_cast<const GLfloat*>(mat)); }
133 inline void glMultMatrix(
const float* mat) { glMultMatrixf(static_cast<const GLfloat*>(mat)); }
135 #ifdef OSG_GLES1_AVAILABLE
139 for(
unsigned int i=0;i<16;++i) flt_mat[i] = mat[i];
140 glLoadMatrixf(flt_mat);
146 for(
unsigned int i=0;i<16;++i) flt_mat[i] = mat[i];
147 glMultMatrixf(flt_mat);
151 inline void glLoadMatrix(
const double* mat) { glLoadMatrixd(static_cast<const GLdouble*>(mat)); }
152 inline void glMultMatrix(
const double* mat) { glMultMatrixd(static_cast<const GLdouble*>(mat)); }
158 #define GL_DOUBLE 0x140A
163 #define GL_INT 0x1404
166 #ifndef GL_UNSIGNED_INT
167 #define GL_UNSIGNED_INT 0x1405
175 #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE)
177 #define GL_RGB8_OES 0x8051
178 #define GL_RGBA8_OES 0x8058
181 #if defined(OSG_GLES1_AVAILABLE) || defined(OSG_GLES2_AVAILABLE) || defined(OSG_GL3_AVAILABLE)
182 #define GL_POLYGON 0x0009
183 #define GL_QUADS 0x0007
184 #define GL_QUAD_STRIP 0x0008
187 #if defined(OSG_GL3_AVAILABLE)
188 #define GL_LUMINANCE 0x1909
189 #define GL_LUMINANCE_ALPHA 0x190A
void glLoadMatrix(const float *mat)
void glMultMatrix(const float *mat)