gl_core_40.inc 421 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 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
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;
int ogl_ext_ARB_compressed_texture_pixel_storage = 0;
int ogl_ext_ARB_conservative_depth = 0;
int ogl_ext_ARB_ES2_compatibility = 0;
int ogl_ext_ARB_get_program_binary = 0;
int ogl_ext_ARB_explicit_uniform_location = 0;
int ogl_ext_ARB_internalformat_query = 0;
int ogl_ext_ARB_internalformat_query2 = 0;
int ogl_ext_ARB_map_buffer_alignment = 0;
int ogl_ext_ARB_program_interface_query = 0;
int ogl_ext_ARB_separate_shader_objects = 0;
int ogl_ext_ARB_shading_language_420pack = 0;
int ogl_ext_ARB_shading_language_packing = 0;
int ogl_ext_ARB_texture_buffer_range = 0;
int ogl_ext_ARB_texture_storage = 0;
int ogl_ext_ARB_texture_view = 0;
int ogl_ext_ARB_vertex_attrib_binding = 0;
int ogl_ext_ARB_viewport_array = 0;
int ogl_ext_ARB_arrays_of_arrays = 0;
int ogl_ext_ARB_clear_buffer_object = 0;
int ogl_ext_ARB_copy_image = 0;
int ogl_ext_ARB_ES3_compatibility = 0;
int ogl_ext_ARB_fragment_layer_viewport = 0;
int ogl_ext_ARB_framebuffer_no_attachments = 0;
int ogl_ext_ARB_invalidate_subdata = 0;
int ogl_ext_ARB_robust_buffer_access_behavior = 0;
int ogl_ext_ARB_stencil_texturing = 0;
int ogl_ext_ARB_texture_query_levels = 0;
int ogl_ext_ARB_texture_storage_multisample = 0;
int ogl_ext_NV_texture_barrier = 0;
int ogl_ext_NV_copy_image = 0;
129

130 131
// OpenGL Core functions
void (CODEGEN_FUNCPTR *_original_glBlendFunc)(GLenum, GLenum) = NULL;
132
void (CODEGEN_FUNCPTR *_ptrc_glBlendFunc)(GLenum, GLenum) = NULL;
133
void (CODEGEN_FUNCPTR *_original_glClear)(GLbitfield) = NULL;
134
void (CODEGEN_FUNCPTR *_ptrc_glClear)(GLbitfield) = NULL;
135
void (CODEGEN_FUNCPTR *_original_glClearColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
136
void (CODEGEN_FUNCPTR *_ptrc_glClearColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
137
void (CODEGEN_FUNCPTR *_original_glClearDepth)(GLdouble) = NULL;
138
void (CODEGEN_FUNCPTR *_ptrc_glClearDepth)(GLdouble) = NULL;
139
void (CODEGEN_FUNCPTR *_original_glClearStencil)(GLint) = NULL;
140
void (CODEGEN_FUNCPTR *_ptrc_glClearStencil)(GLint) = NULL;
141
void (CODEGEN_FUNCPTR *_original_glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
142
void (CODEGEN_FUNCPTR *_ptrc_glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean) = NULL;
143
void (CODEGEN_FUNCPTR *_original_glCullFace)(GLenum) = NULL;
144
void (CODEGEN_FUNCPTR *_ptrc_glCullFace)(GLenum) = NULL;
145
void (CODEGEN_FUNCPTR *_original_glDepthFunc)(GLenum) = NULL;
146
void (CODEGEN_FUNCPTR *_ptrc_glDepthFunc)(GLenum) = NULL;
147
void (CODEGEN_FUNCPTR *_original_glDepthMask)(GLboolean) = NULL;
148
void (CODEGEN_FUNCPTR *_ptrc_glDepthMask)(GLboolean) = NULL;
149
void (CODEGEN_FUNCPTR *_original_glDepthRange)(GLdouble, GLdouble) = NULL;
150
void (CODEGEN_FUNCPTR *_ptrc_glDepthRange)(GLdouble, GLdouble) = NULL;
151
void (CODEGEN_FUNCPTR *_original_glDisable)(GLenum) = NULL;
152
void (CODEGEN_FUNCPTR *_ptrc_glDisable)(GLenum) = NULL;
153
void (CODEGEN_FUNCPTR *_original_glDrawBuffer)(GLenum) = NULL;
154
void (CODEGEN_FUNCPTR *_ptrc_glDrawBuffer)(GLenum) = NULL;
155
void (CODEGEN_FUNCPTR *_original_glEnable)(GLenum) = NULL;
156
void (CODEGEN_FUNCPTR *_ptrc_glEnable)(GLenum) = NULL;
157
void (CODEGEN_FUNCPTR *_original_glFinish)() = NULL;
158
void (CODEGEN_FUNCPTR *_ptrc_glFinish)() = NULL;
159
void (CODEGEN_FUNCPTR *_original_glFlush)() = NULL;
160
void (CODEGEN_FUNCPTR *_ptrc_glFlush)() = NULL;
161
void (CODEGEN_FUNCPTR *_original_glFrontFace)(GLenum) = NULL;
162
void (CODEGEN_FUNCPTR *_ptrc_glFrontFace)(GLenum) = NULL;
163
void (CODEGEN_FUNCPTR *_original_glGetBooleanv)(GLenum, GLboolean *) = NULL;
164
void (CODEGEN_FUNCPTR *_ptrc_glGetBooleanv)(GLenum, GLboolean *) = NULL;
165
void (CODEGEN_FUNCPTR *_original_glGetDoublev)(GLenum, GLdouble *) = NULL;
166
void (CODEGEN_FUNCPTR *_ptrc_glGetDoublev)(GLenum, GLdouble *) = NULL;
167
GLenum (CODEGEN_FUNCPTR *_original_glGetError)() = NULL;
168
GLenum (CODEGEN_FUNCPTR *_ptrc_glGetError)() = NULL;
169
void (CODEGEN_FUNCPTR *_original_glGetFloatv)(GLenum, GLfloat *) = NULL;
170
void (CODEGEN_FUNCPTR *_ptrc_glGetFloatv)(GLenum, GLfloat *) = NULL;
171
void (CODEGEN_FUNCPTR *_original_glGetIntegerv)(GLenum, GLint *) = NULL;
172
void (CODEGEN_FUNCPTR *_ptrc_glGetIntegerv)(GLenum, GLint *) = NULL;
173
const GLubyte * (CODEGEN_FUNCPTR *_original_glGetString)(GLenum) = NULL;
174
const GLubyte * (CODEGEN_FUNCPTR *_ptrc_glGetString)(GLenum) = NULL;
175
void (CODEGEN_FUNCPTR *_original_glGetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
176
void (CODEGEN_FUNCPTR *_ptrc_glGetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *) = NULL;
177
void (CODEGEN_FUNCPTR *_original_glGetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *) = NULL;
178
void (CODEGEN_FUNCPTR *_ptrc_glGetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *) = NULL;
179
void (CODEGEN_FUNCPTR *_original_glGetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *) = NULL;
180
void (CODEGEN_FUNCPTR *_ptrc_glGetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *) = NULL;
181
void (CODEGEN_FUNCPTR *_original_glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = NULL;
182
void (CODEGEN_FUNCPTR *_ptrc_glGetTexParameterfv)(GLenum, GLenum, GLfloat *) = NULL;
183
void (CODEGEN_FUNCPTR *_original_glGetTexParameteriv)(GLenum, GLenum, GLint *) = NULL;
184
void (CODEGEN_FUNCPTR *_ptrc_glGetTexParameteriv)(GLenum, GLenum, GLint *) = NULL;
185
void (CODEGEN_FUNCPTR *_original_glHint)(GLenum, GLenum) = NULL;
186
void (CODEGEN_FUNCPTR *_ptrc_glHint)(GLenum, GLenum) = NULL;
187
GLboolean (CODEGEN_FUNCPTR *_original_glIsEnabled)(GLenum) = NULL;
188
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsEnabled)(GLenum) = NULL;
189
void (CODEGEN_FUNCPTR *_original_glLineWidth)(GLfloat) = NULL;
190
void (CODEGEN_FUNCPTR *_ptrc_glLineWidth)(GLfloat) = NULL;
191
void (CODEGEN_FUNCPTR *_original_glLogicOp)(GLenum) = NULL;
192
void (CODEGEN_FUNCPTR *_ptrc_glLogicOp)(GLenum) = NULL;
193
void (CODEGEN_FUNCPTR *_original_glPixelStoref)(GLenum, GLfloat) = NULL;
194
void (CODEGEN_FUNCPTR *_ptrc_glPixelStoref)(GLenum, GLfloat) = NULL;
195
void (CODEGEN_FUNCPTR *_original_glPixelStorei)(GLenum, GLint) = NULL;
196
void (CODEGEN_FUNCPTR *_ptrc_glPixelStorei)(GLenum, GLint) = NULL;
197
void (CODEGEN_FUNCPTR *_original_glPointSize)(GLfloat) = NULL;
198
void (CODEGEN_FUNCPTR *_ptrc_glPointSize)(GLfloat) = NULL;
199
void (CODEGEN_FUNCPTR *_original_glPolygonMode)(GLenum, GLenum) = NULL;
200
void (CODEGEN_FUNCPTR *_ptrc_glPolygonMode)(GLenum, GLenum) = NULL;
201
void (CODEGEN_FUNCPTR *_original_glReadBuffer)(GLenum) = NULL;
202
void (CODEGEN_FUNCPTR *_ptrc_glReadBuffer)(GLenum) = NULL;
203
void (CODEGEN_FUNCPTR *_original_glReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
204
void (CODEGEN_FUNCPTR *_ptrc_glReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *) = NULL;
205
void (CODEGEN_FUNCPTR *_original_glScissor)(GLint, GLint, GLsizei, GLsizei) = NULL;
206
void (CODEGEN_FUNCPTR *_ptrc_glScissor)(GLint, GLint, GLsizei, GLsizei) = NULL;
207
void (CODEGEN_FUNCPTR *_original_glStencilFunc)(GLenum, GLint, GLuint) = NULL;
208
void (CODEGEN_FUNCPTR *_ptrc_glStencilFunc)(GLenum, GLint, GLuint) = NULL;
209
void (CODEGEN_FUNCPTR *_original_glStencilMask)(GLuint) = NULL;
210
void (CODEGEN_FUNCPTR *_ptrc_glStencilMask)(GLuint) = NULL;
211
void (CODEGEN_FUNCPTR *_original_glStencilOp)(GLenum, GLenum, GLenum) = NULL;
212
void (CODEGEN_FUNCPTR *_ptrc_glStencilOp)(GLenum, GLenum, GLenum) = NULL;
213
void (CODEGEN_FUNCPTR *_original_glTexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
214
void (CODEGEN_FUNCPTR *_ptrc_glTexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
215
void (CODEGEN_FUNCPTR *_original_glTexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
216
void (CODEGEN_FUNCPTR *_ptrc_glTexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
217
void (CODEGEN_FUNCPTR *_original_glTexParameterf)(GLenum, GLenum, GLfloat) = NULL;
218
void (CODEGEN_FUNCPTR *_ptrc_glTexParameterf)(GLenum, GLenum, GLfloat) = NULL;
219
void (CODEGEN_FUNCPTR *_original_glTexParameterfv)(GLenum, GLenum, const GLfloat *) = NULL;
220
void (CODEGEN_FUNCPTR *_ptrc_glTexParameterfv)(GLenum, GLenum, const GLfloat *) = NULL;
221
void (CODEGEN_FUNCPTR *_original_glTexParameteri)(GLenum, GLenum, GLint) = NULL;
222
void (CODEGEN_FUNCPTR *_ptrc_glTexParameteri)(GLenum, GLenum, GLint) = NULL;
223
void (CODEGEN_FUNCPTR *_original_glTexParameteriv)(GLenum, GLenum, const GLint *) = NULL;
224
void (CODEGEN_FUNCPTR *_ptrc_glTexParameteriv)(GLenum, GLenum, const GLint *) = NULL;
225
void (CODEGEN_FUNCPTR *_original_glViewport)(GLint, GLint, GLsizei, GLsizei) = NULL;
226
void (CODEGEN_FUNCPTR *_ptrc_glViewport)(GLint, GLint, GLsizei, GLsizei) = NULL;
227
void (CODEGEN_FUNCPTR *_original_glBindTexture)(GLenum, GLuint) = NULL;
228
void (CODEGEN_FUNCPTR *_ptrc_glBindTexture)(GLenum, GLuint) = NULL;
229
void (CODEGEN_FUNCPTR *_original_glCopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
230
void (CODEGEN_FUNCPTR *_ptrc_glCopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint) = NULL;
231
void (CODEGEN_FUNCPTR *_original_glCopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
232
void (CODEGEN_FUNCPTR *_ptrc_glCopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint) = NULL;
233
void (CODEGEN_FUNCPTR *_original_glCopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
234
void (CODEGEN_FUNCPTR *_ptrc_glCopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei) = NULL;
235
void (CODEGEN_FUNCPTR *_original_glCopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
236
void (CODEGEN_FUNCPTR *_ptrc_glCopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
237
void (CODEGEN_FUNCPTR *_original_glDeleteTextures)(GLsizei, const GLuint *) = NULL;
238
void (CODEGEN_FUNCPTR *_ptrc_glDeleteTextures)(GLsizei, const GLuint *) = NULL;
239
void (CODEGEN_FUNCPTR *_original_glDrawArrays)(GLenum, GLint, GLsizei) = NULL;
240
void (CODEGEN_FUNCPTR *_ptrc_glDrawArrays)(GLenum, GLint, GLsizei) = NULL;
241
void (CODEGEN_FUNCPTR *_original_glDrawElements)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
242
void (CODEGEN_FUNCPTR *_ptrc_glDrawElements)(GLenum, GLsizei, GLenum, const GLvoid *) = NULL;
243
void (CODEGEN_FUNCPTR *_original_glGenTextures)(GLsizei, GLuint *) = NULL;
244
void (CODEGEN_FUNCPTR *_ptrc_glGenTextures)(GLsizei, GLuint *) = NULL;
245
GLboolean (CODEGEN_FUNCPTR *_original_glIsTexture)(GLuint) = NULL;
246
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsTexture)(GLuint) = NULL;
247
void (CODEGEN_FUNCPTR *_original_glPolygonOffset)(GLfloat, GLfloat) = NULL;
248
void (CODEGEN_FUNCPTR *_ptrc_glPolygonOffset)(GLfloat, GLfloat) = NULL;
249
void (CODEGEN_FUNCPTR *_original_glTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
250
void (CODEGEN_FUNCPTR *_ptrc_glTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
251
void (CODEGEN_FUNCPTR *_original_glTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
252
void (CODEGEN_FUNCPTR *_ptrc_glTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
253
void (CODEGEN_FUNCPTR *_original_glBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
254
void (CODEGEN_FUNCPTR *_ptrc_glBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
255
void (CODEGEN_FUNCPTR *_original_glBlendEquation)(GLenum) = NULL;
256
void (CODEGEN_FUNCPTR *_ptrc_glBlendEquation)(GLenum) = NULL;
257
void (CODEGEN_FUNCPTR *_original_glCopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
258
void (CODEGEN_FUNCPTR *_ptrc_glCopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei) = NULL;
259
void (CODEGEN_FUNCPTR *_original_glDrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
260
void (CODEGEN_FUNCPTR *_ptrc_glDrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *) = NULL;
261
void (CODEGEN_FUNCPTR *_original_glTexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
262
void (CODEGEN_FUNCPTR *_ptrc_glTexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *) = NULL;
263
void (CODEGEN_FUNCPTR *_original_glTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
264
void (CODEGEN_FUNCPTR *_ptrc_glTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) = NULL;
265
void (CODEGEN_FUNCPTR *_original_glActiveTexture)(GLenum) = NULL;
266
void (CODEGEN_FUNCPTR *_ptrc_glActiveTexture)(GLenum) = NULL;
267
void (CODEGEN_FUNCPTR *_original_glCompressedTexImage1D)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
268
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexImage1D)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
269
void (CODEGEN_FUNCPTR *_original_glCompressedTexImage2D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
270
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexImage2D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
271
void (CODEGEN_FUNCPTR *_original_glCompressedTexImage3D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
272
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexImage3D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *) = NULL;
273
void (CODEGEN_FUNCPTR *_original_glCompressedTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
274
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
275
void (CODEGEN_FUNCPTR *_original_glCompressedTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
276
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
277
void (CODEGEN_FUNCPTR *_original_glCompressedTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
278
void (CODEGEN_FUNCPTR *_ptrc_glCompressedTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *) = NULL;
279
void (CODEGEN_FUNCPTR *_original_glGetCompressedTexImage)(GLenum, GLint, GLvoid *) = NULL;
280
void (CODEGEN_FUNCPTR *_ptrc_glGetCompressedTexImage)(GLenum, GLint, GLvoid *) = NULL;
281
void (CODEGEN_FUNCPTR *_original_glSampleCoverage)(GLfloat, GLboolean) = NULL;
282
void (CODEGEN_FUNCPTR *_ptrc_glSampleCoverage)(GLfloat, GLboolean) = NULL;
283
void (CODEGEN_FUNCPTR *_original_glBlendFuncSeparate)(GLenum, GLenum, GLenum, GLenum) = NULL;
284
void (CODEGEN_FUNCPTR *_ptrc_glBlendFuncSeparate)(GLenum, GLenum, GLenum, GLenum) = NULL;
285
void (CODEGEN_FUNCPTR *_original_glMultiDrawArrays)(GLenum, const GLint *, const GLsizei *, GLsizei) = NULL;
286
void (CODEGEN_FUNCPTR *_ptrc_glMultiDrawArrays)(GLenum, const GLint *, const GLsizei *, GLsizei) = NULL;
287
void (CODEGEN_FUNCPTR *_original_glMultiDrawElements)(GLenum, const GLsizei *, GLenum, const GLvoid *const*, GLsizei) = NULL;
288
void (CODEGEN_FUNCPTR *_ptrc_glMultiDrawElements)(GLenum, const GLsizei *, GLenum, const GLvoid *const*, GLsizei) = NULL;
289
void (CODEGEN_FUNCPTR *_original_glPointParameterf)(GLenum, GLfloat) = NULL;
290
void (CODEGEN_FUNCPTR *_ptrc_glPointParameterf)(GLenum, GLfloat) = NULL;
291
void (CODEGEN_FUNCPTR *_original_glPointParameterfv)(GLenum, const GLfloat *) = NULL;
292
void (CODEGEN_FUNCPTR *_ptrc_glPointParameterfv)(GLenum, const GLfloat *) = NULL;
293
void (CODEGEN_FUNCPTR *_original_glPointParameteri)(GLenum, GLint) = NULL;
294
void (CODEGEN_FUNCPTR *_ptrc_glPointParameteri)(GLenum, GLint) = NULL;
295
void (CODEGEN_FUNCPTR *_original_glPointParameteriv)(GLenum, const GLint *) = NULL;
296
void (CODEGEN_FUNCPTR *_ptrc_glPointParameteriv)(GLenum, const GLint *) = NULL;
297
void (CODEGEN_FUNCPTR *_original_glBeginQuery)(GLenum, GLuint) = NULL;
298
void (CODEGEN_FUNCPTR *_ptrc_glBeginQuery)(GLenum, GLuint) = NULL;
299
void (CODEGEN_FUNCPTR *_original_glBindBuffer)(GLenum, GLuint) = NULL;
300
void (CODEGEN_FUNCPTR *_ptrc_glBindBuffer)(GLenum, GLuint) = NULL;
301
void (CODEGEN_FUNCPTR *_original_glBufferData)(GLenum, GLsizeiptr, const GLvoid *, GLenum) = NULL;
302
void (CODEGEN_FUNCPTR *_ptrc_glBufferData)(GLenum, GLsizeiptr, const GLvoid *, GLenum) = NULL;
303
void (CODEGEN_FUNCPTR *_original_glBufferSubData)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) = NULL;
304
void (CODEGEN_FUNCPTR *_ptrc_glBufferSubData)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) = NULL;
305
void (CODEGEN_FUNCPTR *_original_glDeleteBuffers)(GLsizei, const GLuint *) = NULL;
306
void (CODEGEN_FUNCPTR *_ptrc_glDeleteBuffers)(GLsizei, const GLuint *) = NULL;
307
void (CODEGEN_FUNCPTR *_original_glDeleteQueries)(GLsizei, const GLuint *) = NULL;
308
void (CODEGEN_FUNCPTR *_ptrc_glDeleteQueries)(GLsizei, const GLuint *) = NULL;
309
void (CODEGEN_FUNCPTR *_original_glEndQuery)(GLenum) = NULL;
310
void (CODEGEN_FUNCPTR *_ptrc_glEndQuery)(GLenum) = NULL;
311
void (CODEGEN_FUNCPTR *_original_glGenBuffers)(GLsizei, GLuint *) = NULL;
312
void (CODEGEN_FUNCPTR *_ptrc_glGenBuffers)(GLsizei, GLuint *) = NULL;
313
void (CODEGEN_FUNCPTR *_original_glGenQueries)(GLsizei, GLuint *) = NULL;
314
void (CODEGEN_FUNCPTR *_ptrc_glGenQueries)(GLsizei, GLuint *) = NULL;
315
void (CODEGEN_FUNCPTR *_original_glGetBufferParameteriv)(GLenum, GLenum, GLint *) = NULL;
316
void (CODEGEN_FUNCPTR *_ptrc_glGetBufferParameteriv)(GLenum, GLenum, GLint *) = NULL;
317
void (CODEGEN_FUNCPTR *_original_glGetBufferPointerv)(GLenum, GLenum, GLvoid **) = NULL;
318
void (CODEGEN_FUNCPTR *_ptrc_glGetBufferPointerv)(GLenum, GLenum, GLvoid **) = NULL;
319
void (CODEGEN_FUNCPTR *_original_glGetBufferSubData)(GLenum, GLintptr, GLsizeiptr, GLvoid *) = NULL;
320
void (CODEGEN_FUNCPTR *_ptrc_glGetBufferSubData)(GLenum, GLintptr, GLsizeiptr, GLvoid *) = NULL;
321
void (CODEGEN_FUNCPTR *_original_glGetQueryObjectiv)(GLuint, GLenum, GLint *) = NULL;
322
void (CODEGEN_FUNCPTR *_ptrc_glGetQueryObjectiv)(GLuint, GLenum, GLint *) = NULL;
323
void (CODEGEN_FUNCPTR *_original_glGetQueryObjectuiv)(GLuint, GLenum, GLuint *) = NULL;
324
void (CODEGEN_FUNCPTR *_ptrc_glGetQueryObjectuiv)(GLuint, GLenum, GLuint *) = NULL;
325
void (CODEGEN_FUNCPTR *_original_glGetQueryiv)(GLenum, GLenum, GLint *) = NULL;
326
void (CODEGEN_FUNCPTR *_ptrc_glGetQueryiv)(GLenum, GLenum, GLint *) = NULL;
327
GLboolean (CODEGEN_FUNCPTR *_original_glIsBuffer)(GLuint) = NULL;
328
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsBuffer)(GLuint) = NULL;
329
GLboolean (CODEGEN_FUNCPTR *_original_glIsQuery)(GLuint) = NULL;
330
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsQuery)(GLuint) = NULL;
331
void * (CODEGEN_FUNCPTR *_original_glMapBuffer)(GLenum, GLenum) = NULL;
332
void * (CODEGEN_FUNCPTR *_ptrc_glMapBuffer)(GLenum, GLenum) = NULL;
333
GLboolean (CODEGEN_FUNCPTR *_original_glUnmapBuffer)(GLenum) = NULL;
334
GLboolean (CODEGEN_FUNCPTR *_ptrc_glUnmapBuffer)(GLenum) = NULL;
335
void (CODEGEN_FUNCPTR *_original_glAttachShader)(GLuint, GLuint) = NULL;
336
void (CODEGEN_FUNCPTR *_ptrc_glAttachShader)(GLuint, GLuint) = NULL;
337
void (CODEGEN_FUNCPTR *_original_glBindAttribLocation)(GLuint, GLuint, const GLchar *) = NULL;
338
void (CODEGEN_FUNCPTR *_ptrc_glBindAttribLocation)(GLuint, GLuint, const GLchar *) = NULL;
339
void (CODEGEN_FUNCPTR *_original_glBlendEquationSeparate)(GLenum, GLenum) = NULL;
340
void (CODEGEN_FUNCPTR *_ptrc_glBlendEquationSeparate)(GLenum, GLenum) = NULL;
341
void (CODEGEN_FUNCPTR *_original_glCompileShader)(GLuint) = NULL;
342
void (CODEGEN_FUNCPTR *_ptrc_glCompileShader)(GLuint) = NULL;
343
GLuint (CODEGEN_FUNCPTR *_original_glCreateProgram)() = NULL;
344
GLuint (CODEGEN_FUNCPTR *_ptrc_glCreateProgram)() = NULL;
345
GLuint (CODEGEN_FUNCPTR *_original_glCreateShader)(GLenum) = NULL;
346
GLuint (CODEGEN_FUNCPTR *_ptrc_glCreateShader)(GLenum) = NULL;
347
void (CODEGEN_FUNCPTR *_original_glDeleteProgram)(GLuint) = NULL;
348
void (CODEGEN_FUNCPTR *_ptrc_glDeleteProgram)(GLuint) = NULL;
349
void (CODEGEN_FUNCPTR *_original_glDeleteShader)(GLuint) = NULL;
350
void (CODEGEN_FUNCPTR *_ptrc_glDeleteShader)(GLuint) = NULL;
351
void (CODEGEN_FUNCPTR *_original_glDetachShader)(GLuint, GLuint) = NULL;
352
void (CODEGEN_FUNCPTR *_ptrc_glDetachShader)(GLuint, GLuint) = NULL;
353
void (CODEGEN_FUNCPTR *_original_glDisableVertexAttribArray)(GLuint) = NULL;
354
void (CODEGEN_FUNCPTR *_ptrc_glDisableVertexAttribArray)(GLuint) = NULL;
355
void (CODEGEN_FUNCPTR *_original_glDrawBuffers)(GLsizei, const GLenum *) = NULL;
356
void (CODEGEN_FUNCPTR *_ptrc_glDrawBuffers)(GLsizei, const GLenum *) = NULL;
357
void (CODEGEN_FUNCPTR *_original_glEnableVertexAttribArray)(GLuint) = NULL;
358
void (CODEGEN_FUNCPTR *_ptrc_glEnableVertexAttribArray)(GLuint) = NULL;
359
void (CODEGEN_FUNCPTR *_original_glGetActiveAttrib)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *) = NULL;
360
void (CODEGEN_FUNCPTR *_ptrc_glGetActiveAttrib)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *) = NULL;
361
void (CODEGEN_FUNCPTR *_original_glGetActiveUniform)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *) = NULL;
362
void (CODEGEN_FUNCPTR *_ptrc_glGetActiveUniform)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *) = NULL;
363
void (CODEGEN_FUNCPTR *_original_glGetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *) = NULL;
364
void (CODEGEN_FUNCPTR *_ptrc_glGetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *) = NULL;
365
GLint (CODEGEN_FUNCPTR *_original_glGetAttribLocation)(GLuint, const GLchar *) = NULL;
366
GLint (CODEGEN_FUNCPTR *_ptrc_glGetAttribLocation)(GLuint, const GLchar *) = NULL;
367
void (CODEGEN_FUNCPTR *_original_glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
368
void (CODEGEN_FUNCPTR *_ptrc_glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
369
void (CODEGEN_FUNCPTR *_original_glGetProgramiv)(GLuint, GLenum, GLint *) = NULL;
370
void (CODEGEN_FUNCPTR *_ptrc_glGetProgramiv)(GLuint, GLenum, GLint *) = NULL;
371
void (CODEGEN_FUNCPTR *_original_glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
372
void (CODEGEN_FUNCPTR *_ptrc_glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
373
void (CODEGEN_FUNCPTR *_original_glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
374
void (CODEGEN_FUNCPTR *_ptrc_glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *) = NULL;
375
void (CODEGEN_FUNCPTR *_original_glGetShaderiv)(GLuint, GLenum, GLint *) = NULL;
376
void (CODEGEN_FUNCPTR *_ptrc_glGetShaderiv)(GLuint, GLenum, GLint *) = NULL;
377
GLint (CODEGEN_FUNCPTR *_original_glGetUniformLocation)(GLuint, const GLchar *) = NULL;
378
GLint (CODEGEN_FUNCPTR *_ptrc_glGetUniformLocation)(GLuint, const GLchar *) = NULL;
379
void (CODEGEN_FUNCPTR *_original_glGetUniformfv)(GLuint, GLint, GLfloat *) = NULL;
380
void (CODEGEN_FUNCPTR *_ptrc_glGetUniformfv)(GLuint, GLint, GLfloat *) = NULL;
381
void (CODEGEN_FUNCPTR *_original_glGetUniformiv)(GLuint, GLint, GLint *) = NULL;
382
void (CODEGEN_FUNCPTR *_ptrc_glGetUniformiv)(GLuint, GLint, GLint *) = NULL;
383
void (CODEGEN_FUNCPTR *_original_glGetVertexAttribPointerv)(GLuint, GLenum, GLvoid **) = NULL;
384
void (CODEGEN_FUNCPTR *_ptrc_glGetVertexAttribPointerv)(GLuint, GLenum, GLvoid **) = NULL;
385
void (CODEGEN_FUNCPTR *_original_glGetVertexAttribdv)(GLuint, GLenum, GLdouble *) = NULL;
386
void (CODEGEN_FUNCPTR *_ptrc_glGetVertexAttribdv)(GLuint, GLenum, GLdouble *) = NULL;
387
void (CODEGEN_FUNCPTR *_original_glGetVertexAttribfv)(GLuint, GLenum, GLfloat *) = NULL;
388
void (CODEGEN_FUNCPTR *_ptrc_glGetVertexAttribfv)(GLuint, GLenum, GLfloat *) = NULL;
389
void (CODEGEN_FUNCPTR *_original_glGetVertexAttribiv)(GLuint, GLenum, GLint *) = NULL;
390
void (CODEGEN_FUNCPTR *_ptrc_glGetVertexAttribiv)(GLuint, GLenum, GLint *) = NULL;
391
GLboolean (CODEGEN_FUNCPTR *_original_glIsProgram)(GLuint) = NULL;
392
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsProgram)(GLuint) = NULL;
393
GLboolean (CODEGEN_FUNCPTR *_original_glIsShader)(GLuint) = NULL;
394
GLboolean (CODEGEN_FUNCPTR *_ptrc_glIsShader)(GLuint) = NULL;
395
void (CODEGEN_FUNCPTR *_original_glLinkProgram)(GLuint) = NULL;
396
void (CODEGEN_FUNCPTR *_ptrc_glLinkProgram)(GLuint) = NULL;
397
void (CODEGEN_FUNCPTR *_original_glShaderSource)(GLuint, GLsizei, const GLchar *const*, const GLint *) = NULL;
398
void (CODEGEN_FUNCPTR *_ptrc_glShaderSource)(GLuint, GLsizei, const GLchar *const*, const GLint *) = NULL;
399
void (CODEGEN_FUNCPTR *_original_glStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint) = NULL;
400
void (CODEGEN_FUNCPTR *_ptrc_glStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint) = NULL;
401
void (CODEGEN_FUNCPTR *_original_glStencilMaskSeparate)(GLenum, GLuint) = NULL;
402
void (CODEGEN_FUNCPTR *_ptrc_glStencilMaskSeparate)(GLenum, GLuint) = NULL;
403
void (CODEGEN_FUNCPTR *_original_glStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum) = NULL;
404
void (CODEGEN_FUNCPTR *_ptrc_glStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum) = NULL;
405
void (CODEGEN_FUNCPTR *_original_glUniform1f)(GLint, GLfloat) = NULL;
406
void (CODEGEN_FUNCPTR *_ptrc_glUniform1f)(GLint, GLfloat) = NULL;
407
void (CODEGEN_FUNCPTR *_original_glUniform1fv)(GLint, GLsizei, const GLfloat *) = NULL;
408
void (CODEGEN_FUNCPTR *_ptrc_glUniform1fv)(GLint, GLsizei, const GLfloat *) = NULL;
409
void (CODEGEN_FUNCPTR *_original_glUniform1i)(GLint, GLint) = NULL;
410
void (CODEGEN_FUNCPTR *_ptrc_glUniform1i)(GLint, GLint) = NULL;
411
void (CODEGEN_FUNCPTR *_original_glUniform1iv)(GLint, GLsizei, const GLint *) = NULL;
412
void (CODEGEN_FUNCPTR *_ptrc_glUniform1iv)(GLint, GLsizei, const GLint *) = NULL;
413
void (CODEGEN_FUNCPTR *_original_glUniform2f)(GLint, GLfloat, GLfloat) = NULL;
414
void (CODEGEN_FUNCPTR *_ptrc_glUniform2f)(GLint, GLfloat, GLfloat) = NULL;
415
void (CODEGEN_FUNCPTR *_original_glUniform2fv)(GLint, GLsizei, const GLfloat *) = NULL;
416
void (CODEGEN_FUNCPTR *_ptrc_glUniform2fv)(GLint, GLsizei, const GLfloat *) = NULL;
417
void (CODEGEN_FUNCPTR *_original_glUniform2i)(GLint, GLint, GLint) = NULL;
418
void (CODEGEN_FUNCPTR *_ptrc_glUniform2i)(GLint, GLint, GLint) = NULL;
419
void (CODEGEN_FUNCPTR *_original_glUniform2iv)(GLint, GLsizei, const GLint *) = NULL;
420
void (CODEGEN_FUNCPTR *_ptrc_glUniform2iv)(GLint, GLsizei, const GLint *) = NULL;
421
void (CODEGEN_FUNCPTR *_original_glUniform3f)(GLint, GLfloat, GLfloat, GLfloat) = NULL;
422
void (CODEGEN_FUNCPTR *_ptrc_glUniform3f)(GLint, GLfloat, GLfloat, GLfloat) = NULL;
423
void (CODEGEN_FUNCPTR *_original_glUniform3fv)(GLint, GLsizei, const GLfloat *) = NULL;
424
void (CODEGEN_FUNCPTR *_ptrc_glUniform3fv)(GLint, GLsizei, const GLfloat *) = NULL;
425
void (CODEGEN_FUNCPTR *_original_glUniform3i)(GLint, GLint, GLint, GLint) = NULL;
426
void (CODEGEN_FUNCPTR *_ptrc_glUniform3i)(GLint, GLint, GLint, GLint) = NULL;
427
void (CODEGEN_FUNCPTR *_original_glUniform3iv)(GLint, GLsizei, const GLint *) = NULL;
428
void (CODEGEN_FUNCPTR *_ptrc_glUniform3iv)(GLint, GLsizei, const GLint *) = NULL;
429
void (CODEGEN_FUNCPTR *_original_glUniform4f)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
430
void (CODEGEN_FUNCPTR *_ptrc_glUniform4f)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
431
void (CODEGEN_FUNCPTR *_original_glUniform4fv)(GLint, GLsizei, const GLfloat *) = NULL;
432
void (CODEGEN_FUNCPTR *_ptrc_glUniform4fv)(GLint, GLsizei, const GLfloat *) = NULL;
433
void (CODEGEN_FUNCPTR *_original_glUniform4i)(GLint, GLint, GLint, GLint, GLint) = NULL;
434
void (CODEGEN_FUNCPTR *_ptrc_glUniform4i)(GLint, GLint, GLint, GLint, GLint) = NULL;
435
void (CODEGEN_FUNCPTR *_original_glUniform4iv)(GLint, GLsizei, const GLint *) = NULL;
436
void (CODEGEN_FUNCPTR *_ptrc_glUniform4iv)(GLint, GLsizei, const GLint *) = NULL;
437
void (CODEGEN_FUNCPTR *_original_glUniformMatrix2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
438
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
439
void (CODEGEN_FUNCPTR *_original_glUniformMatrix3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
440
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
441
void (CODEGEN_FUNCPTR *_original_glUniformMatrix4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
442
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
443
void (CODEGEN_FUNCPTR *_original_glUseProgram)(GLuint) = NULL;
444
void (CODEGEN_FUNCPTR *_ptrc_glUseProgram)(GLuint) = NULL;
445
void (CODEGEN_FUNCPTR *_original_glValidateProgram)(GLuint) = NULL;
446
void (CODEGEN_FUNCPTR *_ptrc_glValidateProgram)(GLuint) = NULL;
447
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1d)(GLuint, GLdouble) = NULL;
448
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1d)(GLuint, GLdouble) = NULL;
449
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1dv)(GLuint, const GLdouble *) = NULL;
450
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1dv)(GLuint, const GLdouble *) = NULL;
451
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1f)(GLuint, GLfloat) = NULL;
452
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1f)(GLuint, GLfloat) = NULL;
453
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1fv)(GLuint, const GLfloat *) = NULL;
454
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1fv)(GLuint, const GLfloat *) = NULL;
455
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1s)(GLuint, GLshort) = NULL;
456
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1s)(GLuint, GLshort) = NULL;
457
void (CODEGEN_FUNCPTR *_original_glVertexAttrib1sv)(GLuint, const GLshort *) = NULL;
458
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib1sv)(GLuint, const GLshort *) = NULL;
459
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2d)(GLuint, GLdouble, GLdouble) = NULL;
460
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2d)(GLuint, GLdouble, GLdouble) = NULL;
461
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2dv)(GLuint, const GLdouble *) = NULL;
462
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2dv)(GLuint, const GLdouble *) = NULL;
463
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2f)(GLuint, GLfloat, GLfloat) = NULL;
464
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2f)(GLuint, GLfloat, GLfloat) = NULL;
465
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2fv)(GLuint, const GLfloat *) = NULL;
466
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2fv)(GLuint, const GLfloat *) = NULL;
467
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2s)(GLuint, GLshort, GLshort) = NULL;
468
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2s)(GLuint, GLshort, GLshort) = NULL;
469
void (CODEGEN_FUNCPTR *_original_glVertexAttrib2sv)(GLuint, const GLshort *) = NULL;
470
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib2sv)(GLuint, const GLshort *) = NULL;
471
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3d)(GLuint, GLdouble, GLdouble, GLdouble) = NULL;
472
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3d)(GLuint, GLdouble, GLdouble, GLdouble) = NULL;
473
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3dv)(GLuint, const GLdouble *) = NULL;
474
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3dv)(GLuint, const GLdouble *) = NULL;
475
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3f)(GLuint, GLfloat, GLfloat, GLfloat) = NULL;
476
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3f)(GLuint, GLfloat, GLfloat, GLfloat) = NULL;
477
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3fv)(GLuint, const GLfloat *) = NULL;
478
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3fv)(GLuint, const GLfloat *) = NULL;
479
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3s)(GLuint, GLshort, GLshort, GLshort) = NULL;
480
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3s)(GLuint, GLshort, GLshort, GLshort) = NULL;
481
void (CODEGEN_FUNCPTR *_original_glVertexAttrib3sv)(GLuint, const GLshort *) = NULL;
482
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib3sv)(GLuint, const GLshort *) = NULL;
483
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nbv)(GLuint, const GLbyte *) = NULL;
484
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nbv)(GLuint, const GLbyte *) = NULL;
485
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Niv)(GLuint, const GLint *) = NULL;
486
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Niv)(GLuint, const GLint *) = NULL;
487
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nsv)(GLuint, const GLshort *) = NULL;
488
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nsv)(GLuint, const GLshort *) = NULL;
489
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nub)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
490
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nub)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte) = NULL;
491
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nubv)(GLuint, const GLubyte *) = NULL;
492
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nubv)(GLuint, const GLubyte *) = NULL;
493
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nuiv)(GLuint, const GLuint *) = NULL;
494
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nuiv)(GLuint, const GLuint *) = NULL;
495
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4Nusv)(GLuint, const GLushort *) = NULL;
496
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4Nusv)(GLuint, const GLushort *) = NULL;
497
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4bv)(GLuint, const GLbyte *) = NULL;
498
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4bv)(GLuint, const GLbyte *) = NULL;
499
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4d)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
500
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4d)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble) = NULL;
501
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4dv)(GLuint, const GLdouble *) = NULL;
502
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4dv)(GLuint, const GLdouble *) = NULL;
503
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4f)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
504
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4f)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat) = NULL;
505
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4fv)(GLuint, const GLfloat *) = NULL;
506
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4fv)(GLuint, const GLfloat *) = NULL;
507
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4iv)(GLuint, const GLint *) = NULL;
508
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4iv)(GLuint, const GLint *) = NULL;
509
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4s)(GLuint, GLshort, GLshort, GLshort, GLshort) = NULL;
510
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4s)(GLuint, GLshort, GLshort, GLshort, GLshort) = NULL;
511
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4sv)(GLuint, const GLshort *) = NULL;
512
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4sv)(GLuint, const GLshort *) = NULL;
513
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4ubv)(GLuint, const GLubyte *) = NULL;
514
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4ubv)(GLuint, const GLubyte *) = NULL;
515
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4uiv)(GLuint, const GLuint *) = NULL;
516
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4uiv)(GLuint, const GLuint *) = NULL;
517
void (CODEGEN_FUNCPTR *_original_glVertexAttrib4usv)(GLuint, const GLushort *) = NULL;
518
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttrib4usv)(GLuint, const GLushort *) = NULL;
519
void (CODEGEN_FUNCPTR *_original_glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *) = NULL;
520
void (CODEGEN_FUNCPTR *_ptrc_glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *) = NULL;
521
void (CODEGEN_FUNCPTR *_original_glUniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
522
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
523
void (CODEGEN_FUNCPTR *_original_glUniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
524
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
525
void (CODEGEN_FUNCPTR *_original_glUniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
526
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
527
void (CODEGEN_FUNCPTR *_original_glUniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
528
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
529
void (CODEGEN_FUNCPTR *_original_glUniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
530
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
531
void (CODEGEN_FUNCPTR *_original_glUniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
532
void (CODEGEN_FUNCPTR *_ptrc_glUniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *) = NULL;
533
void (CODEGEN_FUNCPTR *_original_glBeginConditionalRender)(GLuint, GLenum) = NULL;
534
void (CODEGEN_FUNCPTR *_ptrc_glBeginConditionalRend