gl_compatibility_21.inc 396 KB
Newer Older
1 2 3 4
#include <cstdlib>
#include <cstring>
#include <cstddef>

5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86

#if defined(__APPLE__)
#include <dlfcn.h>

static void* AppleGLGetProcAddress (const char *name)
{
  static void* image = NULL;
  if (NULL == image)
  {
    image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
  }
  return (image ? dlsym(image, name) : NULL);
}
#endif /* __APPLE__ */

#if defined(__sgi) || defined (__sun)
#include <dlfcn.h>
#include <stdio.h>

static void* SunGetProcAddress (const GLubyte* name)
{
  static void* h = NULL;
  static void* gpa;

  if (h == NULL)
  {
    if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL;
    gpa = dlsym(h, "glXGetProcAddress");
  }

  if (gpa != NULL)
    return ((void*(*)(const GLubyte*))gpa)(name);
  else
    return dlsym(h, (const char*)name);
}
#endif /* __sgi || __sun */

#if defined(_WIN32)

#ifdef _MSC_VER
#pragma warning(disable: 4055)
#pragma warning(disable: 4054)
#endif

static int TestPointer(const PROC pTest)
{
	ptrdiff_t iTest;
	if(!pTest) return 0;
	iTest = (ptrdiff_t)pTest;
	
	if(iTest == 1 || iTest == 2 || iTest == 3 || iTest == -1) return 0;
	
	return 1;
}

static PROC WinGetProcAddress(const char *name)
{
	HMODULE glMod = NULL;
	PROC pFunc = wglGetProcAddress((LPCSTR)name);
	if(TestPointer(pFunc))
	{
		return pFunc;
	}
	glMod = GetModuleHandleA("OpenGL32.dll");
	return (PROC)GetProcAddress(glMod, (LPCSTR)name);
}
	
#define IntGetProcAddress(name) WinGetProcAddress(name)
#else
	#if defined(__APPLE__)
		#define IntGetProcAddress(name) AppleGLGetProcAddress(name)
	#else
		#if defined(__sgi) || defined(__sun)
			#define IntGetProcAddress(name) SunGetProcAddress(name)
		#else /* GLX */
		    #include <GL/glx.h>

			#define IntGetProcAddress(name) (*glXGetProcAddressARB)((const GLubyte*)name)
		#endif
	#endif
#endif

87 88
// forward declaration:
static void LoadExtByName(const char *extensionName);
89

90 91 92 93 94 95 96 97 98
int ogl_ext_EXT_geometry_shader4 = 0;
int ogl_ext_ARB_geometry_shader4 = 0;
int ogl_ext_ARB_tessellation_shader = 0;
int ogl_ext_ARB_compute_shader = 0;
int ogl_ext_ARB_debug_output = 0;
int ogl_ext_KHR_debug = 0;
int ogl_ext_EXT_texture_compression_s3tc = 0;
int ogl_ext_EXT_texture_sRGB = 0;
int ogl_ext_EXT_texture_filter_anisotropic = 0;
99

100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
// Extension: EXT_geometry_shader4
void (CODEGEN_FUNCPTR *_original_glProgramParameteriEXT)(GLuint, GLenum, GLint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glProgramParameteriEXT)(GLuint, GLenum, GLint) = NULL;

// Extension: ARB_geometry_shader4
void (CODEGEN_FUNCPTR *_original_glFramebufferTextureARB)(GLenum, GLenum, GLuint, GLint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glFramebufferTextureARB)(GLenum, GLenum, GLuint, GLint) = NULL;
void (CODEGEN_FUNCPTR *_original_glFramebufferTextureFaceARB)(GLenum, GLenum, GLuint, GLint, GLenum) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glFramebufferTextureFaceARB)(GLenum, GLenum, GLuint, GLint, GLenum) = NULL;
void (CODEGEN_FUNCPTR *_original_glFramebufferTextureLayerARB)(GLenum, GLenum, GLuint, GLint, GLint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glFramebufferTextureLayerARB)(GLenum, GLenum, GLuint, GLint, GLint) = NULL;
void (CODEGEN_FUNCPTR *_original_glProgramParameteriARB)(GLuint, GLenum, GLint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glProgramParameteriARB)(GLuint, GLenum, GLint) = NULL;

// Extension: ARB_tessellation_shader
void (CODEGEN_FUNCPTR *_original_glPatchParameterfv)(GLenum, const GLfloat *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glPatchParameterfv)(GLenum, const GLfloat *) = NULL;
void (CODEGEN_FUNCPTR *_original_glPatchParameteri)(GLenum, GLint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glPatchParameteri)(GLenum, GLint) = NULL;

// Extension: ARB_compute_shader
void (CODEGEN_FUNCPTR *_original_glDispatchCompute)(GLuint, GLuint, GLuint) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDispatchCompute)(GLuint, GLuint, GLuint) = NULL;
void (CODEGEN_FUNCPTR *_original_glDispatchComputeIndirect)(GLintptr) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDispatchComputeIndirect)(GLintptr) = NULL;

// Extension: ARB_debug_output
void (CODEGEN_FUNCPTR *_original_glDebugMessageCallbackARB)(GLDEBUGPROCARB, const void *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageCallbackARB)(GLDEBUGPROCARB, const void *) = NULL;
void (CODEGEN_FUNCPTR *_original_glDebugMessageControlARB)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageControlARB)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean) = NULL;
void (CODEGEN_FUNCPTR *_original_glDebugMessageInsertARB)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageInsertARB)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *) = NULL;
GLuint (CODEGEN_FUNCPTR *_original_glGetDebugMessageLogARB)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *) = NULL;
GLuint (CODEGEN_FUNCPTR *_ptrc_glGetDebugMessageLogARB)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *) = NULL;

// Extension: KHR_debug
void (CODEGEN_FUNCPTR *_original_glDebugMessageCallback)(GLDEBUGPROC, const void *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageCallback)(GLDEBUGPROC, const void *) = NULL;
void (CODEGEN_FUNCPTR *_original_glDebugMessageControl)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageControl)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean) = NULL;
void (CODEGEN_FUNCPTR *_original_glDebugMessageInsert)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glDebugMessageInsert)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *) = NULL;
GLuint (CODEGEN_FUNCPTR *_original_glGetDebugMessageLog)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *) = NULL;
GLuint (CODEGEN_FUNCPTR *_ptrc_glGetDebugMessageLog)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_original_glGetObjectLabel)(GLenum, GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glGetObjectLabel)(GLenum, GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_original_glGetObjectPtrLabel)(const void *, GLsizei, GLsizei *, GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glGetObjectPtrLabel)(const void *, GLsizei, GLsizei *, GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_original_glGetPointerv)(GLenum, GLvoid **) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glGetPointerv)(GLenum, GLvoid **) = NULL;
void (CODEGEN_FUNCPTR *_original_glObjectLabel)(GLenum, GLuint, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glObjectLabel)(GLenum, GLuint, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_original_glObjectPtrLabel)(const void *, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glObjectPtrLabel)(const void *, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_original_glPopDebugGroup)() = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glPopDebugGroup)() = NULL;
void (CODEGEN_FUNCPTR *_original_glPushDebugGroup)(GLenum, GLuint, GLsizei, const GLchar *) = NULL;
void (CODEGEN_FUNCPTR *_ptrc_glPushDebugGroup)(GLenum, GLuint, GLsizei, const GLchar *) = NULL;

// Extension: 1.0
161
void (CODEGEN_FUNCPTR *_original_glAccum)(GLenum, GLfloat) = NULL;
162
void (CODEGEN_FUNCPTR *_ptrc_glAccum)(GLenum, GLfloat) = NULL;
163
void (CODEGEN_FUNCPTR *_original_glAlphaFunc)(GLenum, GLfloat) = NULL;
164
void (CODEGEN_FUNCPTR *_ptrc_glAlphaFunc)(GLenum, GLfloat) = NULL;
165
void (CODEGEN_FUNCPTR *_original_glBegin)(GLenum) = NULL;
166
void (CODEGEN_FUNCPTR *_ptrc_glBegin)(GLenum) = NULL;
167
void (CODEGEN_FUNCPTR *_original_glBitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
168
void (CODEGEN_FUNCPTR *_ptrc_glBitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *) = NULL;
169
void (CODEGEN_FUNCPTR *_original_glBlendFunc)(GLenum, GLenum) = NULL;
170
void (CODEGEN_FUNCPTR *_ptrc_glBlendFunc)(GLenum, GLenum) = NULL;
171
void (CODEGEN_FUNCPTR *_original_glCallList)(GLuint) = NULL;
172
void (CODEGEN_FUNCPTR *_ptrc_glCallList)(GLuint) = NULL;
173
void (CODEGEN_FUNCPTR *_original_glCallLists)(GLsizei, GLenum, const GLvoid *) = NULL;
174
void (CODEGEN_FUNCPTR *_ptrc_glCallLists)(GLsizei, GLenum, const GLvoid *) = NULL;
175
void (CODEGEN_FUNCPTR *_original_glClear)(GLbitfield) = NULL;
176
void (CODEGEN_FUNCPTR *_ptrc_glClear)(GLbitfield) = NULL;
177
void (CODEGEN_FUNCPTR *_original_glClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
178
void (CODEGEN_FUNCPTR *_ptrc_glClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
179
void (CODEGEN_FUNCPTR *_original_glClearColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
180
void (CODEGEN_FUNCPTR *_ptrc_glClearColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
181
void (CODEGEN_FUNCPTR *_original_glClearDepth)(GLdouble) = NULL;
182
void (CODEGEN_FUNCPTR *_ptrc_glClearDepth)(GLdouble) = NULL;
183
void (CODEGEN_FUNCPTR *_original_glClearIndex)(GLfloat) = NULL;
184
void (CODEGEN_FUNCPTR *_ptrc_glClearIndex)(GLfloat) = NULL;
185
void (CODEGEN_FUNCPTR *_original_glClearStencil)(GLint) = NULL;
186
void (CODEGEN_FUNCPTR *_ptrc_glClearStencil)(GLint) = NULL;
187
void (CODEGEN_FUNCPTR *_original_glClipPlane)(GLenum, const GLdouble *) = NULL;
188
void (CODEGEN_FUNCPTR *_ptrc_glClipPlane)(GLenum, const GLdouble *) = NULL;
189
void (CODEGEN_FUNCPTR *_original_glColor3b)(GLbyte, GLbyte, GLbyte) = NULL;
190
void (CODEGEN_FUNCPTR *_ptrc_glColor3b)(GLbyte, GLbyte, GLbyte) = NULL;
191
void (CODEGEN_FUNCPTR *_original_glColor3bv)(const GLbyte *) = NULL;
192
void (CODEGEN_FUNCPTR *_ptrc_glColor3bv)(const GLbyte *) = NULL;
193
void (CODEGEN_FUNCPTR *_original_glColor3d)(GLdouble, GLdouble, GLdouble) = NULL;
194
void (CODEGEN_FUNCPTR *_ptrc_glColor3d)(GLdouble, GLdouble, GLdouble) = NULL;
195
void (CODEGEN_FUNCPTR *_original_glColor3dv)(const GLdouble *) = NULL;
196
void (CODEGEN_FUNCPTR *_ptrc_glColor3dv)(const GLdouble *) = NULL;
197
void (CODEGEN_FUNCPTR *_original_glColor3f)(GLfloat, GLfloat, GLfloat) = NULL;
198
void (CODEGEN_FUNCPTR *_ptrc_glColor3f)(GLfloat, GLfloat, GLfloat) = NULL;
199
void (CODEGEN_FUNCPTR *_original_glColor3fv)(const GLfloat *) = NULL;
200
void (CODEGEN_FUNCPTR *_ptrc_glColor3fv)(const GLfloat *) = NULL;
201
void (CODEGEN_FUNCPTR *_original_glColor3i)(GLint, GLint, GLint) = NULL;
202
void (CODEGEN_FUNCPTR *_ptrc_glColor3i)(GLint, GLint, GLint) = NULL;
203
void (CODEGEN_FUNCPTR *_original_glColor3iv)(const GLint *) = NULL;
204
void (CODEGEN_FUNCPTR *_ptrc_glColor3iv)(const GLint *) = NULL;
205
void (CODEGEN_FUNCPTR *_original_glColor3s)(GLshort, GLshort, GLshort) = NULL;
206
void (CODEGEN_FUNCPTR *_ptrc_glColor3s)(GLshort, GLshort, GLshort) = NULL;
207
void (CODEGEN_FUNCPTR *_original_glColor3sv)(const GLshort *) = NULL;
208
void (CODEGEN_FUNCPTR *_ptrc_glColor3sv)(const GLshort *) = NULL;
209
void (CODEGEN_FUNCPTR *_original_glColor3ub)(GLubyte, GLubyte, GLubyte) = NULL;
210
void (CODEGEN_FUNCPTR *_ptrc_glColor3ub)(GLubyte, GLubyte, GLubyte) = NULL;
211
void (CODEGEN_FUNCPTR *_original_glColor3ubv)(const GLubyte *) = NULL;
212
void (CODEGEN_FUNCPTR *_ptrc_glColor3ubv)(const GLubyte *) = NULL;
213
void (CODEGEN_FUNCPTR *_original_glColor3ui)(GLuint, GLuint, GLuint) = NULL;
214
void (CODEGEN_FUNCPTR *_ptrc_glColor3ui)(GLuint, GLuint, GLuint) = NULL;
215
void (CODEGEN_FUNCPTR *_original_glColor3uiv)(const GLuint *) = NULL;
216
void (CODEGEN_FUNCPTR *_ptrc_glColor3uiv)(const GLuint *) = NULL;
217
void (CODEGEN_FUNCPTR *_original_glColor3us)(GLushort, GLushort, GLushort) = NULL;
218
void (CODEGEN_FUNCPTR *_ptrc_glColor3us)(GLushort, GLushort, GLushort) = NULL;
219
void (CODEGEN_FUNCPTR *_original_glColor3usv)(const GLushort *) = NULL;
220
void (CODEGEN_FUNCPTR *_ptrc_glColor3usv)(const GLushort *) = NULL;
221
void (CODEGEN_FUNCPTR *_original_glColor4b)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
222
void (CODEGEN_FUNCPTR *_ptrc_glColor4b)(GLbyte, GLbyte, GLbyte, GLbyte) = NULL;
223
void (CODEGEN_FUNCPTR *_original_glColor4bv)(const GLbyte *) = NULL;
224
void (CODEGEN_FUNCPTR *_ptrc_glColor4bv)(const GLbyte *) = NULL;
225
void (CODEGEN_FUNCPTR *_original_glColor4d)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
226
void (CODEGEN_FUNCPTR *_ptrc_glColor4d)(GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
227
void (CODEGEN_FUNCPTR *_original_glColor4dv)(const GLdouble *) = NULL;
228
void (CODEGEN_FUNCPTR *_ptrc_glColor4dv)(const GLdouble *) = NULL;
229
void (CODEGEN_FUNCPTR *_original_glColor4f)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
230
void (CODEGEN_FUNCPTR *_ptrc_glColor4f)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
231
void (CODEGEN_FUNCPTR *_original_glColor4fv)(const GLfloat *) = NULL;
232
void (CODEGEN_FUNCPTR *_ptrc_glColor4fv)(const GLfloat *) = NULL;
233
void (CODEGEN_FUNCPTR *_original_glColor4i)(GLint, GLint, GLint, GLint) = NULL;
234
void (CODEGEN_FUNCPTR *_ptrc_glColor4i)(GLint, GLint, GLint, GLint) = NULL;
235
void (CODEGEN_FUNCPTR *_original_glColor4iv)(const GLint *) = NULL;
236
void (CODEGEN_FUNCPTR *_ptrc_glColor4iv)(const GLint *) = NULL;
237
void (CODEGEN_FUNCPTR *_original_glColor4s)(GLshort, GLshort, GLshort, GLshort) = NULL;
238
void (CODEGEN_FUNCPTR *_ptrc_glColor4s)(GLshort, GLshort, GLshort, GLshort) = NULL;
239
void (CODEGEN_FUNCPTR *_original_glColor4sv)(const GLshort *) = NULL;
240
void (CODEGEN_FUNCPTR *_ptrc_glColor4sv)(const GLshort *) = NULL;
241
void (CODEGEN_FUNCPTR *_original_glColor4ub)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
242
void (CODEGEN_FUNCPTR *_ptrc_glColor4ub)(GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
243
void (CODEGEN_FUNCPTR *_original_glColor4ubv)(const GLubyte *) = NULL;
244
void (CODEGEN_FUNCPTR *_ptrc_glColor4ubv)(const GLubyte *) = NULL;
245
void (CODEGEN_FUNCPTR *_original_glColor4ui)(GLuint, GLuint, GLuint, GLuint) = NULL;
246
void (CODEGEN_FUNCPTR *_ptrc_glColor4ui)(GLuint, GLuint, GLuint, GLuint) = NULL;
247
void (CODEGEN_FUNCPTR *_original_glColor4uiv)(const GLuint *) = NULL;
248
void (CODEGEN_FUNCPTR *_ptrc_glColor4uiv)(const GLuint *) = NULL;
249
void (CODEGEN_FUNCPTR *_original_glColor4us)(GLushort, GLushort, GLushort, GLushort) = NULL;
250
void (CODEGEN_FUNCPTR *_ptrc_glColor4us)(GLushort, GLushort, GLushort, GLushort) = NULL;
251
void (CODEGEN_FUNCPTR *_original_glColor4usv)(const GLushort *) = NULL;
252
void (CODEGEN_FUNCPTR *_ptrc_glColor4usv)(const GLushort *) = NULL;
253
void (CODEGEN_FUNCPTR *_original_glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
254
void (CODEGEN_FUNCPTR *_ptrc_glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
255
void (CODEGEN_FUNCPTR *_original_glColorMaterial)(GLenum, GLenum) = NULL;
256
void (CODEGEN_FUNCPTR *_ptrc_glColorMaterial)(GLenum, GLenum) = NULL;
257
void (CODEGEN_FUNCPTR *_original_glCopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
258
void (CODEGEN_FUNCPTR *_ptrc_glCopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum) = NULL;
259
void (CODEGEN_FUNCPTR *_original_glCullFace)(GLenum) = NULL;
260
void (CODEGEN_FUNCPTR *_ptrc_glCullFace)(GLenum) = NULL;
261
void (CODEGEN_FUNCPTR *_original_glDeleteLists)(GLuint, GLsizei) = NULL;
262
void (CODEGEN_FUNCPTR *_ptrc_glDeleteLists)(GLuint, GLsizei) = NULL;
263
void (CODEGEN_FUNCPTR *_original_glDepthFunc)(GLenum) = NULL;
264
void (CODEGEN_FUNCPTR *_ptrc_glDepthFunc)(GLenum) = NULL;
265
void (CODEGEN_FUNCPTR *_original_glDepthMask)(GLboolean) = NULL;
266
void (CODEGEN_FUNCPTR *_ptrc_glDepthMask)(GLboolean) = NULL;
267
void (CODEGEN_FUNCPTR *_original_glDepthRange)(GLdouble, GLdouble) = NULL;
268
void (CODEGEN_FUNCPTR *_ptrc_glDepthRange)(GLdouble, GLdouble) = NULL;
269
void (CODEGEN_FUNCPTR *_original_glDisable)(GLenum) = NULL;
270
void (CODEGEN_FUNCPTR *_ptrc_glDisable)(GLenum) = NULL;
271
void (CODEGEN_FUNCPTR *_original_glDrawBuffer)(GLenum) = NULL;
272
void (CODEGEN_FUNCPTR *_ptrc_glDrawBuffer)(GLenum) = NULL;
273
void (CODEGEN_FUNCPTR *_original_glDrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
274
void (CODEGEN_FUNCPTR *_ptrc_glDrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
275
void (CODEGEN_FUNCPTR *_original_glEdgeFlag)(GLboolean) = NULL;
276
void (CODEGEN_FUNCPTR *_ptrc_glEdgeFlag)(GLboolean) = NULL;
277
void (CODEGEN_FUNCPTR *_original_glEdgeFlagv)(const GLboolean *) = NULL;
278
void (CODEGEN_FUNCPTR *_ptrc_glEdgeFlagv)(const GLboolean *) = NULL;
279
void (CODEGEN_FUNCPTR *_original_glEnable)(GLenum) = NULL;
280
void (CODEGEN_FUNCPTR *_ptrc_glEnable)(GLenum) = NULL;
281
void (CODEGEN_FUNCPTR *_original_glEnd)() = NULL;
282
void (CODEGEN_FUNCPTR *_ptrc_glEnd)() = NULL;
283
void (CODEGEN_FUNCPTR *_original_glEndList)() = NULL;
284
void (CODEGEN_FUNCPTR *_ptrc_glEndList)() = NULL;
285
void (CODEGEN_FUNCPTR *_original_glEvalCoord1d)(GLdouble) = NULL;
286
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord1d)(GLdouble) = NULL;
287
void (CODEGEN_FUNCPTR *_original_glEvalCoord1dv)(const GLdouble *) = NULL;
288
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord1dv)(const GLdouble *) = NULL;
289
void (CODEGEN_FUNCPTR *_original_glEvalCoord1f)(GLfloat) = NULL;
290
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord1f)(GLfloat) = NULL;
291
void (CODEGEN_FUNCPTR *_original_glEvalCoord1fv)(const GLfloat *) = NULL;
292
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord1fv)(const GLfloat *) = NULL;
293
void (CODEGEN_FUNCPTR *_original_glEvalCoord2d)(GLdouble, GLdouble) = NULL;
294
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord2d)(GLdouble, GLdouble) = NULL;
295
void (CODEGEN_FUNCPTR *_original_glEvalCoord2dv)(const GLdouble *) = NULL;
296
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord2dv)(const GLdouble *) = NULL;
297
void (CODEGEN_FUNCPTR *_original_glEvalCoord2f)(GLfloat, GLfloat) = NULL;
298
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord2f)(GLfloat, GLfloat) = NULL;
299
void (CODEGEN_FUNCPTR *_original_glEvalCoord2fv)(const GLfloat *) = NULL;
300
void (CODEGEN_FUNCPTR *_ptrc_glEvalCoord2fv)(const GLfloat *) = NULL;
301
void (CODEGEN_FUNCPTR *_original_glEvalMesh1)(GLenum, GLint, GLint) = NULL;
302
void (CODEGEN_FUNCPTR *_ptrc_glEvalMesh1)(GLenum, GLint, GLint) = NULL;
303
void (CODEGEN_FUNCPTR *_original_glEvalMesh2)(GLenum, GLint, GLint, GLint, GLint) = NULL;
304
void (CODEGEN_FUNCPTR *_ptrc_glEvalMesh2)(GLenum, GLint, GLint, GLint, GLint) = NULL;
305
void (CODEGEN_FUNCPTR *_original_glEvalPoint1)(GLint) = NULL;
306
void (CODEGEN_FUNCPTR *_ptrc_glEvalPoint1)(GLint) = NULL;
307
void (CODEGEN_FUNCPTR *_original_glEvalPoint2)(GLint, GLint) = NULL;
308
void (CODEGEN_FUNCPTR *_ptrc_glEvalPoint2)(GLint, GLint) = NULL;
309
void (CODEGEN_FUNCPTR *_original_glFeedbackBuffer)(GLsizei, GLenum, GLfloat *) = NULL;
310
void (CODEGEN_FUNCPTR *_ptrc_glFeedbackBuffer)(GLsizei, GLenum, GLfloat *) = NULL;
311
void (CODEGEN_FUNCPTR *_original_glFinish)() = NULL;
312
void (CODEGEN_FUNCPTR *_ptrc_glFinish)() = NULL;
313
void (CODEGEN_FUNCPTR *_original_glFlush)() = NULL;
314
void (CODEGEN_FUNCPTR *_ptrc_glFlush)() = NULL;
315
void (CODEGEN_FUNCPTR *_original_glFogf)(GLenum, GLfloat) = NULL;
316
void (CODEGEN_FUNCPTR *_ptrc_glFogf)(GLenum, GLfloat) = NULL;
317
void (CODEGEN_FUNCPTR *_original_glFogfv)(GLenum, const GLfloat *) = NULL;
318
void (CODEGEN_FUNCPTR *_ptrc_glFogfv)(GLenum, const GLfloat *) = NULL;
319
void (CODEGEN_FUNCPTR *_original_glFogi)(GLenum, GLint) = NULL;
320
void (CODEGEN_FUNCPTR *_ptrc_glFogi)(GLenum, GLint) = NULL;
321
void (CODEGEN_FUNCPTR *_original_glFogiv)(GLenum, const GLint *) = NULL;
322
void (CODEGEN_FUNCPTR *_ptrc_glFogiv)(GLenum, const GLint *) = NULL;
323
void (CODEGEN_FUNCPTR *_original_glFrontFace)(GLenum) = NULL;
324
void (CODEGEN_FUNCPTR *_ptrc_glFrontFace)(GLenum) = NULL;
325
void (CODEGEN_FUNCPTR *_original_glFrustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
326
void (CODEGEN_FUNCPTR *_ptrc_glFrustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
327
GLuint (CODEGEN_FUNCPTR *_original_glGenLists)(GLsizei) = NULL;
328
GLuint (CODEGEN_FUNCPTR *_ptrc_glGenLists)(GLsizei) = NULL;
329
void (CODEGEN_FUNCPTR *_original_glGetBooleanv)(GLenum, GLboolean *) = NULL;
330
void (CODEGEN_FUNCPTR *_ptrc_glGetBooleanv)(GLenum, GLboolean *) = NULL;
331
void (CODEGEN_FUNCPTR *_original_glGetClipPlane)(GLenum, GLdouble *) = NULL;
332
void (CODEGEN_FUNCPTR *_ptrc_glGetClipPlane)(GLenum, GLdouble *) = NULL;
333
void (CODEGEN_FUNCPTR *_original_glGetDoublev)(GLenum, GLdouble *) = NULL;
334
void (CODEGEN_FUNCPTR *_ptrc_glGetDoublev)(GLenum, GLdouble *) = NULL;
335
GLenum (CODEGEN_FUNCPTR *_original_glGetError)() = NULL;
336
GLenum (CODEGEN_FUNCPTR *_ptrc_glGetError)() = NULL;
337
void (CODEGEN_FUNCPTR *_original_glGetFloatv)(GLenum, GLfloat *) = NULL;
338
void (CODEGEN_FUNCPTR *_ptrc_glGetFloatv)(GLenum, GLfloat *) = NULL;
339
void (CODEGEN_FUNCPTR *_original_glGetIntegerv)(GLenum, GLint *) = NULL;
340
void (CODEGEN_FUNCPTR *_ptrc_glGetIntegerv)(GLenum, GLint *) = NULL;
341
void (CODEGEN_FUNCPTR *_original_glGetLightfv)(GLenum, GLenum, GLfloat *) = NULL;
342
void (CODEGEN_FUNCPTR *_ptrc_glGetLightfv)(GLenum, GLenum, GLfloat *) = NULL;
343
void (CODEGEN_FUNCPTR *_original_glGetLightiv)(GLenum, GLenum, GLint *) = NULL;
344
void (CODEGEN_FUNCPTR *_ptrc_glGetLightiv)(GLenum, GLenum, GLint *) = NULL;
345
void (CODEGEN_FUNCPTR *_original_glGetMapdv)(GLenum, GLenum, GLdouble *) = NULL;
346
void (CODEGEN_FUNCPTR *_ptrc_glGetMapdv)(GLenum, GLenum, GLdouble *) = NULL;
347
void (CODEGEN_FUNCPTR *_original_glGetMapfv)(GLenum, GLenum, GLfloat *) = NULL;
348
void (CODEGEN_FUNCPTR *_ptrc_glGetMapfv)(GLenum, GLenum, GLfloat *) = NULL;
349
void (CODEGEN_FUNCPTR *_original_glGetMapiv)(GLenum, GLenum, GLint *) = NULL;
350
void (CODEGEN_FUNCPTR *_ptrc_glGetMapiv)(GLenum, GLenum, GLint *) = NULL;
351
void (CODEGEN_FUNCPTR *_original_glGetMaterialfv)(GLenum, GLenum, GLfloat *) = NULL;
352
void (CODEGEN_FUNCPTR *_ptrc_glGetMaterialfv)(GLenum, GLenum, GLfloat *) = NULL;
353
void (CODEGEN_FUNCPTR *_original_glGetMaterialiv)(GLenum, GLenum, GLint *) = NULL;
354
void (CODEGEN_FUNCPTR *_ptrc_glGetMaterialiv)(GLenum, GLenum, GLint *) = NULL;
355
void (CODEGEN_FUNCPTR *_original_glGetPixelMapfv)(GLenum, GLfloat *) = NULL;
356
void (CODEGEN_FUNCPTR *_ptrc_glGetPixelMapfv)(GLenum, GLfloat *) = NULL;
357
void (CODEGEN_FUNCPTR *_original_glGetPixelMapuiv)(GLenum, GLuint *) = NULL;
358
void (CODEGEN_FUNCPTR *_ptrc_glGetPixelMapuiv)(GLenum, GLuint *) = NULL;
359
void (CODEGEN_FUNCPTR *_original_glGetPixelMapusv)(GLenum, GLushort *) = NULL;
360
void (CODEGEN_FUNCPTR *_ptrc_glGetPixelMapusv)(GLenum, GLushort *) = NULL;
361
void (CODEGEN_FUNCPTR *_original_glGetPolygonStipple)(GLubyte *) = NULL;
362
void (CODEGEN_FUNCPTR *_ptrc_glGetPolygonStipple)(GLubyte *) = NULL;
363
const GLubyte * (CODEGEN_FUNCPTR *_original_glGetString)(GLenum) = NULL;
364
const GLubyte * (CODEGEN_FUNCPTR *_ptrc_glGetString)(GLenum) = NULL;
365
void (CODEGEN_FUNCPTR *_original_glGetTexEnvfv)(GLenum, GLenum, GLfloat *) = NULL;
366
void (CODEGEN_FUNCPTR *_ptrc_glGetTexEnvfv)(GLenum, GLenum, GLfloat *) = NULL;
367
void (CODEGEN_FUNCPTR *_original_glGetTexEnviv)(GLenum, GLenum, GLint *) = NULL;
368
void (CODEGEN_FUNCPTR *_ptrc_glGetTexEnviv)(GLenum, GLenum, GLint *) = NULL;
369
void (CODEGEN_FUNCPTR *_original_glGetTexGendv)(GLenum, GLenum, GLdouble *) = NULL;
370
void (CODEGEN_FUNCPTR *_ptrc_glGetTexGendv)(GLenum, GLenum, GLdouble *) = NULL;
371
void (CODEGEN_FUNCPTR *_original_glGetTexGenfv)(GLenum, GLenum, GLfloat *) = NULL;
372
void (CODEGEN_FUNCPTR *_ptrc_glGetTexGenfv)(GLenum, GLenum, GLfloat *) = NULL;
373
void (CODEGEN_FUNCPTR *_original_glGetTexGeniv)(GLenum, GLenum, GLint *) = NULL;
374
void (CODEGEN_FUNCPTR *_ptrc_glGetTexGeniv)(GLenum, GLenum, GLint *) = NULL;
375
void (CODEGEN_FUNCPTR *_original_glGetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
376
void (CODEGEN_FUNCPTR *_ptrc_glGetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
377
void (CODEGEN_FUNCPTR *_original_glGetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *) = NULL;
378
void (CODEGEN_FUNCPTR *_ptrc_glGetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *) = NULL;
379
void (CODEGEN_FUNCPTR *_original_glGetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *) = NULL;
380
void (CODEGEN_FUNCPTR *_ptrc_glGetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *) = NULL;
381
void (CODEGEN_FUNCPTR *_original_glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = NULL;
382
void (CODEGEN_FUNCPTR *_ptrc_glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = NULL;
383
void (CODEGEN_FUNCPTR *_original_glGetTexParameteriv)(GLenum, GLenum, GLint *) = NULL;
384
void (CODEGEN_FUNCPTR *_ptrc_glGetTexParameteriv)(GLenum, GLenum, GLint *) = NULL;
385
void (CODEGEN_FUNCPTR *_original_glHint)(GLenum, GLenum) = NULL;
386
void (CODEGEN_FUNCPTR *_ptrc_glHint)(GLenum, GLenum) = NULL;
387
void (CODEGEN_FUNCPTR *_original_glIndexMask)(GLuint) = NULL;
388
void (CODEGEN_FUNCPTR *_ptrc_glIndexMask)(GLuint) = NULL;
389
void (CODEGEN_FUNCPTR *_original_glIndexd)(GLdouble) = NULL;
390
void (CODEGEN_FUNCPTR *_ptrc_glIndexd)(GLdouble) = NULL;
391
void (CODEGEN_FUNCPTR *_original_glIndexdv)(const GLdouble *) = NULL;
392
void (CODEGEN_FUNCPTR *_ptrc_glIndexdv)(const GLdouble *) = NULL;
393
void (CODEGEN_FUNCPTR *_original_glIndexf)(GLfloat) = NULL;
394
void (CODEGEN_FUNCPTR *_ptrc_glIndexf)(GLfloat) = NULL;
395
void (CODEGEN_FUNCPTR *_original_glIndexfv)(const GLfloat *) = NULL;
396
void (CODEGEN_FUNCPTR *_ptrc_glIndexfv)(const GLfloat *) = NULL;
397
void (CODEGEN_FUNCPTR *_original_glIndexi)(GLint) = NULL;
398
void (CODEGEN_FUNCPTR *_ptrc_glIndexi)(GLint) = NULL;
399
void (CODEGEN_FUNCPTR *_original_glIndexiv)(const GLint *) = NULL;
400
void (CODEGEN_FUNCPTR *_ptrc_glIndexiv)(const GLint *) = NULL;
401
void (CODEGEN_FUNCPTR *_original_glIndexs)(GLshort) = NULL;
402
void (CODEGEN_FUNCPTR *_ptrc_glIndexs)(GLshort) = NULL;
403
void (CODEGEN_FUNCPTR *_original_glIndexsv)(const GLshort *) = NULL;
404
void (CODEGEN_FUNCPTR *_ptrc_glIndexsv)(const GLshort *) = NULL;
405
void (CODEGEN_FUNCPTR *_original_glInitNames)() = NULL;
406
void (CODEGEN_FUNCPTR *_ptrc_glInitNames)() = NULL;
407
GLboolean (CODEGEN_FUNCPTR *_original_glIsEnabled)(GLenum) = NULL;
408
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsEnabled)(GLenum) = NULL;
409
GLboolean (CODEGEN_FUNCPTR *_original_glIsList)(GLuint) = NULL;
410
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsList)(GLuint) = NULL;
411
void (CODEGEN_FUNCPTR *_original_glLightModelf)(GLenum, GLfloat) = NULL;
412
void (CODEGEN_FUNCPTR *_ptrc_glLightModelf)(GLenum, GLfloat) = NULL;
413
void (CODEGEN_FUNCPTR *_original_glLightModelfv)(GLenum, const GLfloat *) = NULL;
414
void (CODEGEN_FUNCPTR *_ptrc_glLightModelfv)(GLenum, const GLfloat *) = NULL;
415
void (CODEGEN_FUNCPTR *_original_glLightModeli)(GLenum, GLint) = NULL;
416
void (CODEGEN_FUNCPTR *_ptrc_glLightModeli)(GLenum, GLint) = NULL;
417
void (CODEGEN_FUNCPTR *_original_glLightModeliv)(GLenum, const GLint *) = NULL;
418
void (CODEGEN_FUNCPTR *_ptrc_glLightModeliv)(GLenum, const GLint *) = NULL;
419
void (CODEGEN_FUNCPTR *_original_glLightf)(GLenum, GLenum, GLfloat) = NULL;
420
void (CODEGEN_FUNCPTR *_ptrc_glLightf)(GLenum, GLenum, GLfloat) = NULL;
421
void (CODEGEN_FUNCPTR *_original_glLightfv)(GLenum, GLenum, const GLfloat *) = NULL;
422
void (CODEGEN_FUNCPTR *_ptrc_glLightfv)(GLenum, GLenum, const GLfloat *) = NULL;
423
void (CODEGEN_FUNCPTR *_original_glLighti)(GLenum, GLenum, GLint) = NULL;
424
void (CODEGEN_FUNCPTR *_ptrc_glLighti)(GLenum, GLenum, GLint) = NULL;
425
void (CODEGEN_FUNCPTR *_original_glLightiv)(GLenum, GLenum, const GLint *) = NULL;
426
void (CODEGEN_FUNCPTR *_ptrc_glLightiv)(GLenum, GLenum, const GLint *) = NULL;
427
void (CODEGEN_FUNCPTR *_original_glLineStipple)(GLint, GLushort) = NULL;
428
void (CODEGEN_FUNCPTR *_ptrc_glLineStipple)(GLint, GLushort) = NULL;
429
void (CODEGEN_FUNCPTR *_original_glLineWidth)(GLfloat) = NULL;
430
void (CODEGEN_FUNCPTR *_ptrc_glLineWidth)(GLfloat) = NULL;
431
void (CODEGEN_FUNCPTR *_original_glListBase)(GLuint) = NULL;
432
void (CODEGEN_FUNCPTR *_ptrc_glListBase)(GLuint) = NULL;
433
void (CODEGEN_FUNCPTR *_original_glLoadIdentity)() = NULL;
434
void (CODEGEN_FUNCPTR *_ptrc_glLoadIdentity)() = NULL;
435
void (CODEGEN_FUNCPTR *_original_glLoadMatrixd)(const GLdouble *) = NULL;
436
void (CODEGEN_FUNCPTR *_ptrc_glLoadMatrixd)(const GLdouble *) = NULL;
437
void (CODEGEN_FUNCPTR *_original_glLoadMatrixf)(const GLfloat *) = NULL;
438
void (CODEGEN_FUNCPTR *_ptrc_glLoadMatrixf)(const GLfloat *) = NULL;
439
void (CODEGEN_FUNCPTR *_original_glLoadName)(GLuint) = NULL;
440
void (CODEGEN_FUNCPTR *_ptrc_glLoadName)(GLuint) = NULL;
441
void (CODEGEN_FUNCPTR *_original_glLogicOp)(GLenum) = NULL;
442
void (CODEGEN_FUNCPTR *_ptrc_glLogicOp)(GLenum) = NULL;
443
void (CODEGEN_FUNCPTR *_original_glMap1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
444
void (CODEGEN_FUNCPTR *_ptrc_glMap1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
445
void (CODEGEN_FUNCPTR *_original_glMap1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
446
void (CODEGEN_FUNCPTR *_ptrc_glMap1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
447
void (CODEGEN_FUNCPTR *_original_glMap2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
448
void (CODEGEN_FUNCPTR *_ptrc_glMap2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *) = NULL;
449
void (CODEGEN_FUNCPTR *_original_glMap2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
450
void (CODEGEN_FUNCPTR *_ptrc_glMap2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *) = NULL;
451
void (CODEGEN_FUNCPTR *_original_glMapGrid1d)(GLint, GLdouble, GLdouble) = NULL;
452
void (CODEGEN_FUNCPTR *_ptrc_glMapGrid1d)(GLint, GLdouble, GLdouble) = NULL;
453
void (CODEGEN_FUNCPTR *_original_glMapGrid1f)(GLint, GLfloat, GLfloat) = NULL;
454
void (CODEGEN_FUNCPTR *_ptrc_glMapGrid1f)(GLint, GLfloat, GLfloat) = NULL;
455
void (CODEGEN_FUNCPTR *_original_glMapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
456
void (CODEGEN_FUNCPTR *_ptrc_glMapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble) = NULL;
457
void (CODEGEN_FUNCPTR *_original_glMapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
458
void (CODEGEN_FUNCPTR *_ptrc_glMapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat) = NULL;
459
void (CODEGEN_FUNCPTR *_original_glMaterialf)(GLenum, GLenum, GLfloat) = NULL;
460
void (CODEGEN_FUNCPTR *_ptrc_glMaterialf)(GLenum, GLenum, GLfloat) = NULL;
461
void (CODEGEN_FUNCPTR *_original_glMaterialfv)(GLenum, GLenum, const GLfloat *) = NULL;
462
void (CODEGEN_FUNCPTR *_ptrc_glMaterialfv)(GLenum, GLenum, const GLfloat *) = NULL;
463
void (CODEGEN_FUNCPTR *_original_glMateriali)(GLenum, GLenum, GLint) = NULL;
464
void (CODEGEN_FUNCPTR *_ptrc_glMateriali)(GLenum, GLenum, GLint) = NULL;
465
void (CODEGEN_FUNCPTR *_original_glMaterialiv)(GLenum, GLenum, const GLint *) = NULL;
466
void (CODEGEN_FUNCPTR *_ptrc_glMaterialiv)(GLenum, GLenum, const GLint *) = NULL;
467
void (CODEGEN_FUNCPTR *_original_glMatrixMode)(GLenum) = NULL;
468
void (CODEGEN_FUNCPTR *_ptrc_glMatrixMode)(GLenum) = NULL;
469
void (CODEGEN_FUNCPTR *_original_glMultMatrixd)(const GLdouble *) = NULL;
470
void (CODEGEN_FUNCPTR *_ptrc_glMultMatrixd)(const GLdouble *) = NULL;
471
void (CODEGEN_FUNCPTR *_original_glMultMatrixf)(const GLfloat *) = NULL;
472
void (CODEGEN_FUNCPTR *_ptrc_glMultMatrixf)(const GLfloat *) = NULL;
473
void (CODEGEN_FUNCPTR *_original_glNewList)(GLuint, GLenum) = NULL;
474
void (CODEGEN_FUNCPTR *_ptrc_glNewList)(GLuint, GLenum) = NULL;
475
void (CODEGEN_FUNCPTR *_original_glNormal3b)(GLbyte, GLbyte, GLbyte) = NULL;
476
void (CODEGEN_FUNCPTR *_ptrc_glNormal3b)(GLbyte, GLbyte, GLbyte) = NULL;
477
void (CODEGEN_FUNCPTR *_original_glNormal3bv)(const GLbyte *) = NULL;
478
void (CODEGEN_FUNCPTR *_ptrc_glNormal3bv)(const GLbyte *) = NULL;
479
void (CODEGEN_FUNCPTR *_original_glNormal3d)(GLdouble, GLdouble, GLdouble) = NULL;
480
void (CODEGEN_FUNCPTR *_ptrc_glNormal3d)(GLdouble, GLdouble, GLdouble) = NULL;
481
void (CODEGEN_FUNCPTR *_original_glNormal3dv)(const GLdouble *) = NULL;
482
void (CODEGEN_FUNCPTR *_ptrc_glNormal3dv)(const GLdouble *) = NULL;
483
void (CODEGEN_FUNCPTR *_original_glNormal3f)(GLfloat, GLfloat, GLfloat) = NULL;
484
void (CODEGEN_FUNCPTR *_ptrc_glNormal3f)(GLfloat, GLfloat, GLfloat) = NULL;
485
void (CODEGEN_FUNCPTR *_original_glNormal3fv)(const GLfloat *) = NULL;
486
void (CODEGEN_FUNCPTR *_ptrc_glNormal3fv)(const GLfloat *) = NULL;
487
void (CODEGEN_FUNCPTR *_original_glNormal3i)(GLint, GLint, GLint) = NULL;
488
void (CODEGEN_FUNCPTR *_ptrc_glNormal3i)(GLint, GLint, GLint) = NULL;
489
void (CODEGEN_FUNCPTR *_original_glNormal3iv)(const GLint *) = NULL;
490
void (CODEGEN_FUNCPTR *_ptrc_glNormal3iv)(const GLint *) = NULL;
491
void (CODEGEN_FUNCPTR *_original_glNormal3s)(GLshort, GLshort, GLshort) = NULL;
492
void (CODEGEN_FUNCPTR *_ptrc_glNormal3s)(GLshort, GLshort, GLshort) = NULL;
493
void (CODEGEN_FUNCPTR *_original_glNormal3sv)(const GLshort *) = NULL;
494
void (CODEGEN_FUNCPTR *_ptrc_glNormal3sv)(const GLshort *) = NULL;
495
void (CODEGEN_FUNCPTR *_original_glOrtho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
496
void (CODEGEN_FUNCPTR *_ptrc_glOrtho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
497
void (CODEGEN_FUNCPTR *_original_glPassThrough)(GLfloat) = NULL;
498
void (CODEGEN_FUNCPTR *_ptrc_glPassThrough)(GLfloat) = NULL;
499
void (CODEGEN_FUNCPTR *_original_glPixelMapfv)(GLenum, GLsizei, const GLfloat *) = NULL;
500
void (CODEGEN_FUNCPTR *_ptrc_glPixelMapfv)(GLenum, GLsizei, const GLfloat *) = NULL;
501
void (CODEGEN_FUNCPTR *_original_glPixelMapuiv)(GLenum, GLsizei, const GLuint *) = NULL;
502
void (CODEGEN_FUNCPTR *_ptrc_glPixelMapuiv)(GLenum, GLsizei, const GLuint *) = NULL;
503
void (CODEGEN_FUNCPTR *_original_glPixelMapusv)(GLenum, GLsizei, const GLushort *) = NULL;
504
void (CODEGEN_FUNCPTR *_ptrc_glPixelMapusv)(GLenum, GLsizei, const GLushort *) = NULL;
505
void (CODEGEN_FUNCPTR *_original_glPixelStoref)(GLenum, GLfloat) = NULL;
506
void (CODEGEN_FUNCPTR *_ptrc_glPixelStoref)(GLenum, GLfloat) = NULL;
507
void (CODEGEN_FUNCPTR *_original_glPixelStorei)(GLenum, GLint) = NULL;
508
void (CODEGEN_FUNCPTR *_ptrc_glPixelStorei)(GLenum, GLint) = NULL;
509
void (CODEGEN_FUNCPTR *_original_glPixelTransferf)(GLenum, GLfloat) = NULL;
510
void (CODEGEN_FUNCPTR *_ptrc_glPixelTransferf)(GLenum, GLfloat) = NULL;
511
void (CODEGEN_FUNCPTR *_original_glPixelTransferi)(GLenum, GLint) = NULL;
512
void (CODEGEN_FUNCPTR *_ptrc_glPixelTransferi)(GLenum, GLint) = NULL;
513
void (CODEGEN_FUNCPTR *_original_glPixelZoom)(GLfloat, GLfloat) = NULL;
514
void (CODEGEN_FUNCPTR *_ptrc_glPixelZoom)(GLfloat, GLfloat) = NULL;
515
void (CODEGEN_FUNCPTR *_original_glPointSize)(GLfloat) = NULL;
516
void (CODEGEN_FUNCPTR *_ptrc_glPointSize)(GLfloat) = NULL;
517
void (CODEGEN_FUNCPTR *_original_glPolygonMode)(GLenum, GLenum) = NULL;
518
void (CODEGEN_FUNCPTR *_ptrc_glPolygonMode)(GLenum, GLenum) = NULL;
519
void (CODEGEN_FUNCPTR *_original_glPolygonStipple)(const GLubyte *) = NULL;
520
void (CODEGEN_FUNCPTR *_ptrc_glPolygonStipple)(const GLubyte *) = NULL;
521
void (CODEGEN_FUNCPTR *_original_glPopAttrib)() = NULL;
522
void (CODEGEN_FUNCPTR *_ptrc_glPopAttrib)() = NULL;
523
void (CODEGEN_FUNCPTR *_original_glPopMatrix)() = NULL;
524
void (CODEGEN_FUNCPTR *_ptrc_glPopMatrix)() = NULL;
525
void (CODEGEN_FUNCPTR *_original_glPopName)() = NULL;
526
void (CODEGEN_FUNCPTR *_ptrc_glPopName)() = NULL;
527
void (CODEGEN_FUNCPTR *_original_glPushAttrib)(GLbitfield) = NULL;
528
void (CODEGEN_FUNCPTR *_ptrc_glPushAttrib)(GLbitfield) = NULL;
529
void (CODEGEN_FUNCPTR *_original_glPushMatrix)() = NULL;
530
void (CODEGEN_FUNCPTR *_ptrc_glPushMatrix)() = NULL;
531
void (CODEGEN_FUNCPTR *_original_glPushName)(GLuint) = NULL;
532
void (CODEGEN_FUNCPTR *_ptrc_glPushName)(GLuint) = NULL;
533
void (CODEGEN_FUNCPTR *_original_glRasterPos2d)(GLdouble, GLdouble) = NULL;
534
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2d)(GLdouble, GLdouble) = NULL;
535
void (CODEGEN_FUNCPTR *_original_glRasterPos2dv)(const GLdouble *) = NULL;
536
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2dv)(const GLdouble *) = NULL;
537
void (CODEGEN_FUNCPTR *_original_glRasterPos2f)(GLfloat, GLfloat) = NULL;
538
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2f)(GLfloat, GLfloat) = NULL;
539
void (CODEGEN_FUNCPTR *_original_glRasterPos2fv)(const GLfloat *) = NULL;
540
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2fv)(const GLfloat *) = NULL;
541
void (CODEGEN_FUNCPTR *_original_glRasterPos2i)(GLint, GLint) = NULL;
542
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2i)(GLint, GLint) = NULL;
543
void (CODEGEN_FUNCPTR *_original_glRasterPos2iv)(const GLint *) = NULL;
544
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2iv)(const GLint *) = NULL;
545
void (CODEGEN_FUNCPTR *_original_glRasterPos2s)(GLshort, GLshort) = NULL;
546
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2s)(GLshort, GLshort) = NULL;
547
void (CODEGEN_FUNCPTR *_original_glRasterPos2sv)(const GLshort *) = NULL;
548
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos2sv)(const GLshort *) = NULL;
549
void (CODEGEN_FUNCPTR *_original_glRasterPos3d)(GLdouble, GLdouble, GLdouble) = NULL;
550
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3d)(GLdouble, GLdouble, GLdouble) = NULL;
551
void (CODEGEN_FUNCPTR *_original_glRasterPos3dv)(const GLdouble *) = NULL;
552
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3dv)(const GLdouble *) = NULL;
553
void (CODEGEN_FUNCPTR *_original_glRasterPos3f)(GLfloat, GLfloat, GLfloat) = NULL;
554
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3f)(GLfloat, GLfloat, GLfloat) = NULL;
555
void (CODEGEN_FUNCPTR *_original_glRasterPos3fv)(const GLfloat *) = NULL;
556
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3fv)(const GLfloat *) = NULL;
557
void (CODEGEN_FUNCPTR *_original_glRasterPos3i)(GLint, GLint, GLint) = NULL;
558
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3i)(GLint, GLint, GLint) = NULL;
559
void (CODEGEN_FUNCPTR *_original_glRasterPos3iv)(const GLint *) = NULL;
560
void (CODEGEN_FUNCPTR *_ptrc_glRasterPos3iv