Do not build VBOs on a dedicated server.
[xonotic/darkplaces.git] / glquake.h
1 #ifndef GLQUAKE_H
2 #define GLQUAKE_H
3
4 #include <stddef.h>
5
6 #ifdef USE_GLES2
7 #include <SDL_opengles2.h>
8 #else
9 //#include <SDL_opengl.h>
10 //#include <SDL_opengl_glext.h>
11 #endif
12
13 // disable data conversion warnings
14
15 #ifdef _MSC_VER
16 #pragma warning(disable : 4310) // LadyHavoc: MSVC++ 2008 x86: cast truncates constant value
17 #pragma warning(disable : 4245) // LadyHavoc: MSVC++ 2008 x86: 'initializing' : conversion from 'int' to 'unsigned char', signed/unsigned mismatch
18 #pragma warning(disable : 4204) // LadyHavoc: MSVC++ 2008 x86: nonstandard extension used : non-constant aggregate initializer
19 //#pragma warning(disable : 4267) // LadyHavoc: MSVC++ 2008 x64, conversion from 'size_t' to 'int', possible loss of data
20 //#pragma warning(disable : 4244) // LadyHavoc: MSVC++ 4 x86, double/float
21 //#pragma warning(disable : 4305) // LadyHavoc: MSVC++ 6 x86, double/float
22 //#pragma warning(disable : 4706) // LadyHavoc: MSVC++ 2008 x86, assignment within conditional expression
23 //#pragma warning(disable : 4127) // LadyHavoc: MSVC++ 2008 x86, conditional expression is constant
24 //#pragma warning(disable : 4100) // LadyHavoc: MSVC++ 2008 x86, unreferenced formal parameter
25 //#pragma warning(disable : 4055) // LadyHavoc: MSVC++ 2008 x86, 'type cast' from data pointer   to function pointer
26 //#pragma warning(disable : 4054) // LadyHavoc: MSVC++ 2008 x86, 'type cast' from function pointer   to data pointer
27 #endif
28
29
30 //====================================================
31
32 #define DEBUGGL
33
34 #ifdef DEBUGGL
35 #ifdef USE_GLES2
36 #define CHECKGLERROR {if (gl_paranoid.integer){if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);gl_errornumber = glGetError();if (gl_errornumber) GL_PrintError(gl_errornumber, __FILE__, __LINE__);}}
37 #else
38 #define CHECKGLERROR {if (gl_paranoid.integer){if (gl_printcheckerror.integer) Con_Printf("CHECKGLERROR at %s:%d\n", __FILE__, __LINE__);gl_errornumber = qglGetError ? qglGetError() : 0;if (gl_errornumber) GL_PrintError(gl_errornumber, __FILE__, __LINE__);}}
39 #endif
40 extern int gl_errornumber;
41 void GL_PrintError(int errornumber, const char *filename, int linenumber);
42 #else
43 #define CHECKGLERROR
44 #endif
45
46 #ifndef USE_GLES2
47 // this is defined if the SDL_opengl.h is included
48 #ifndef GL_ZERO
49 // on Windows this is WINAPI
50 #ifndef APIENTRY
51 #define APIENTRY
52 #endif
53
54 // for platforms (wgl) that do not use GLAPIENTRY
55 #ifndef GLAPIENTRY
56 #define GLAPIENTRY APIENTRY
57 #endif
58
59 typedef unsigned int GLenum;
60 typedef unsigned char GLboolean;
61 typedef unsigned int GLbitfield;
62 typedef void GLvoid;
63 typedef signed char GLbyte;
64 typedef short GLshort;
65 typedef int GLint;
66 typedef unsigned char GLubyte;
67 typedef unsigned short GLushort;
68 typedef unsigned int GLuint;
69 typedef int GLsizei;
70 typedef float GLfloat;
71 typedef float GLclampf;
72 typedef double GLdouble;
73 typedef double GLclampd;
74 typedef char GLchar;
75 typedef ptrdiff_t GLintptr;
76 typedef ptrdiff_t GLsizeiptr;
77 typedef void (GLAPIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const GLvoid* userParam);
78
79 #define GL_STEREO                                       0x0C33
80 #define GL_DONT_CARE                            0x1100
81 #define GL_FASTEST                                      0x1101
82 #define GL_NICEST                                       0x1102
83 #define GL_DEPTH_TEST                           0x0B71
84 #define GL_CULL_FACE                            0x0B44
85 #define GL_BLEND                                0x0BE2
86
87 #define GL_ZERO                                 0x0
88 #define GL_ONE                                  0x1
89 #define GL_SRC_COLOR                            0x0300
90 #define GL_ONE_MINUS_SRC_COLOR                  0x0301
91 #define GL_DST_COLOR                            0x0306
92 #define GL_ONE_MINUS_DST_COLOR                  0x0307
93 #define GL_SRC_ALPHA                            0x0302
94 #define GL_ONE_MINUS_SRC_ALPHA                  0x0303
95 #define GL_DST_ALPHA                            0x0304
96 #define GL_ONE_MINUS_DST_ALPHA                  0x0305
97 #define GL_SRC_ALPHA_SATURATE                   0x0308
98 #define GL_CONSTANT_COLOR                       0x8001
99 #define GL_ONE_MINUS_CONSTANT_COLOR             0x8002
100 #define GL_CONSTANT_ALPHA                       0x8003
101 #define GL_ONE_MINUS_CONSTANT_ALPHA             0x8004
102
103 #define GL_TEXTURE_2D                           0x0DE1
104 #define GL_TEXTURE_WRAP_S                       0x2802
105 #define GL_TEXTURE_WRAP_T                       0x2803
106 #define GL_TEXTURE_WRAP_R                       0x8072
107 #define GL_TEXTURE_MAG_FILTER                   0x2800
108 #define GL_TEXTURE_MIN_FILTER                   0x2801
109 #define GL_PACK_ALIGNMENT                       0x0D05
110 #define GL_UNPACK_ALIGNMENT                     0x0CF5
111 #define GL_TEXTURE_INTERNAL_FORMAT              0x1003
112 #define GL_TEXTURE_MAX_LEVEL                    0x813D
113
114 #define GL_NEAREST                              0x2600
115 #define GL_LINEAR                               0x2601
116 #define GL_NEAREST_MIPMAP_NEAREST               0x2700
117 #define GL_NEAREST_MIPMAP_LINEAR                0x2702
118 #define GL_LINEAR_MIPMAP_NEAREST                0x2701
119 #define GL_LINEAR_MIPMAP_LINEAR                 0x2703
120
121 #define GL_LINE                                 0x1B01
122 #define GL_FILL                                 0x1B02
123
124 #define GL_REPEAT                               0x2901
125 #define GL_CLAMP                                0x2900
126
127 #define GL_TRIANGLES                    0x0004
128
129 #define GL_FALSE                                0x0
130 #define GL_TRUE                                 0x1
131
132 #define GL_BYTE                                 0x1400
133 #define GL_UNSIGNED_BYTE                        0x1401
134 #define GL_SHORT                                0x1402
135 #define GL_UNSIGNED_SHORT                       0x1403
136 #define GL_INT                                  0x1404
137 #define GL_UNSIGNED_INT                         0x1405
138 #define GL_FLOAT                                0x1406
139 #define GL_DOUBLE                               0x140A
140
141 #define GL_NONE                                 0
142 #define GL_FRONT_LEFT                   0x0400
143 #define GL_FRONT_RIGHT                  0x0401
144 #define GL_BACK_LEFT                    0x0402
145 #define GL_BACK_RIGHT                   0x0403
146 #define GL_FRONT                                0x0404
147 #define GL_BACK                                 0x0405
148 #define GL_LEFT                                 0x0406
149 #define GL_RIGHT                                0x0407
150 #define GL_FRONT_AND_BACK               0x0408
151
152 #define GL_VENDOR                               0x1F00
153 #define GL_RENDERER                             0x1F01
154 #define GL_VERSION                              0x1F02
155 #define GL_EXTENSIONS                           0x1F03
156
157 #define GL_NO_ERROR                             0x0
158 #define GL_INVALID_VALUE                        0x0501
159 #define GL_INVALID_ENUM                         0x0500
160 #define GL_INVALID_OPERATION                    0x0502
161 #define GL_STACK_OVERFLOW                       0x0503
162 #define GL_STACK_UNDERFLOW                      0x0504
163 #define GL_OUT_OF_MEMORY                        0x0505
164
165 #define GL_DITHER                               0x0BD0
166 #define GL_ALPHA                                0x1906
167 #define GL_RGB                                  0x1907
168 #define GL_RGBA                                 0x1908
169
170 #define GL_MAX_TEXTURE_SIZE                     0x0D33
171
172 #define GL_NEVER                                0x0200
173 #define GL_LESS                                 0x0201
174 #define GL_EQUAL                                0x0202
175 #define GL_LEQUAL                               0x0203
176 #define GL_GREATER                              0x0204
177 #define GL_NOTEQUAL                             0x0205
178 #define GL_GEQUAL                               0x0206
179 #define GL_ALWAYS                               0x0207
180 #define GL_DEPTH_TEST                           0x0B71
181
182 #define GL_DEPTH_BUFFER_BIT                     0x00000100
183 #define GL_STENCIL_BUFFER_BIT                   0x00000400
184 #define GL_COLOR_BUFFER_BIT                     0x00004000
185
186 #define GL_STENCIL_TEST                         0x0B90
187 #define GL_KEEP                                 0x1E00
188 #define GL_REPLACE                              0x1E01
189 #define GL_INCR                                 0x1E02
190 #define GL_DECR                                 0x1E03
191
192 #define GL_POLYGON_OFFSET_FACTOR          0x8038
193 #define GL_POLYGON_OFFSET_UNITS           0x2A00
194 #define GL_POLYGON_OFFSET_POINT           0x2A01
195 #define GL_POLYGON_OFFSET_LINE            0x2A02
196 #define GL_POLYGON_OFFSET_FILL            0x8037
197
198 #define GL_CLIP_PLANE0                    0x3000
199 #define GL_CLIP_PLANE1                    0x3001
200 #define GL_CLIP_PLANE2                    0x3002
201 #define GL_CLIP_PLANE3                    0x3003
202 #define GL_CLIP_PLANE4                    0x3004
203 #define GL_CLIP_PLANE5                    0x3005
204
205 #define GL_DEPTH_COMPONENT                0x1902
206 #define GL_VIEWPORT                       0x0BA2
207 #define GL_DRAW_BUFFER                    0x0C01
208 #define GL_READ_BUFFER                    0x0C02
209 #define GL_LUMINANCE                      0x1909
210 #define GL_INTENSITY                      0x8049
211
212 #define GL_TEXTURE_MAX_ANISOTROPY_EXT       0x84FE
213 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT   0x84FF
214
215 #define GL_DEPTH_COMPONENT16          0x81A5
216 #define GL_DEPTH_COMPONENT24          0x81A6
217 #define GL_DEPTH_COMPONENT32          0x81A7
218 #define GL_TEXTURE_DEPTH_SIZE         0x884A
219 //#define GL_DEPTH_TEXTURE_MODE         0x884B
220
221 #define GL_TEXTURE_COMPARE_MODE       0x884C
222 #define GL_TEXTURE_COMPARE_FUNC       0x884D
223 #define GL_COMPARE_R_TO_TEXTURE       0x884E
224
225 #define GL_ACTIVE_TEXTURE                       0x84E0
226 #define GL_MAX_TEXTURE_UNITS            0x84E2
227 #define GL_TEXTURE0                                     0x84C0
228 #define GL_TEXTURE1                                     0x84C1
229 #define GL_TEXTURE2                                     0x84C2
230 #define GL_TEXTURE3                                     0x84C3
231 #define GL_TEXTURE4                                     0x84C4
232 #define GL_TEXTURE5                                     0x84C5
233 #define GL_TEXTURE6                                     0x84C6
234 #define GL_TEXTURE7                                     0x84C7
235 #define GL_TEXTURE8                                     0x84C8
236 #define GL_TEXTURE9                                     0x84C9
237 #define GL_TEXTURE10                            0x84CA
238 #define GL_TEXTURE11                            0x84CB
239 #define GL_TEXTURE12                            0x84CC
240 #define GL_TEXTURE13                            0x84CD
241 #define GL_TEXTURE14                            0x84CE
242 #define GL_TEXTURE15                            0x84CF
243 #define GL_TEXTURE16                            0x84D0
244 #define GL_TEXTURE17                            0x84D1
245 #define GL_TEXTURE18                            0x84D2
246 #define GL_TEXTURE19                            0x84D3
247 #define GL_TEXTURE20                            0x84D4
248 #define GL_TEXTURE21                            0x84D5
249 #define GL_TEXTURE22                            0x84D6
250 #define GL_TEXTURE23                            0x84D7
251 #define GL_TEXTURE24                            0x84D8
252 #define GL_TEXTURE25                            0x84D9
253 #define GL_TEXTURE26                            0x84DA
254 #define GL_TEXTURE27                            0x84DB
255 #define GL_TEXTURE28                            0x84DC
256 #define GL_TEXTURE29                            0x84DD
257 #define GL_TEXTURE30                            0x84DE
258 #define GL_TEXTURE31                            0x84DF
259
260 #define GL_MAX_ELEMENTS_VERTICES                0x80E8
261 #define GL_MAX_ELEMENTS_INDICES                 0x80E9
262
263 #define GL_PACK_SKIP_IMAGES                     0x806B
264 #define GL_PACK_IMAGE_HEIGHT                    0x806C
265 #define GL_UNPACK_SKIP_IMAGES                   0x806D
266 #define GL_UNPACK_IMAGE_HEIGHT                  0x806E
267 #define GL_TEXTURE_3D                           0x806F
268 #define GL_PROXY_TEXTURE_3D                     0x8070
269 #define GL_TEXTURE_DEPTH                        0x8071
270 #define GL_TEXTURE_WRAP_R                       0x8072
271 #define GL_MAX_3D_TEXTURE_SIZE                  0x8073
272 #define GL_TEXTURE_BINDING_3D                   0x806A
273
274 #define GL_NORMAL_MAP                       0x8511
275 #define GL_REFLECTION_MAP                   0x8512
276 #define GL_TEXTURE_CUBE_MAP                 0x8513
277 #define GL_TEXTURE_BINDING_CUBE_MAP         0x8514
278 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X     0x8515
279 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X     0x8516
280 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y     0x8517
281 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y     0x8518
282 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z     0x8519
283 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z     0x851A
284 #define GL_PROXY_TEXTURE_CUBE_MAP           0x851B
285 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE            0x851C
286
287 #define GL_SCISSOR_TEST                         0x0C11
288 #define GL_SCISSOR_BOX                          0x0C10
289
290 #define GL_CLAMP_TO_EDGE 0x812F
291
292 #define GL_FUNC_ADD                   0x8006 // also supplied by GL_blend_subtract
293 #define GL_MIN                        0x8007
294 #define GL_MAX                        0x8008
295 #define GL_BLEND_EQUATION             0x8009 // also supplied by GL_blend_subtract
296
297 #define GL_FUNC_SUBTRACT              0x800A
298 #define GL_FUNC_REVERSE_SUBTRACT      0x800B
299
300 #define GL_ARRAY_BUFFER               0x8892
301 #define GL_ELEMENT_ARRAY_BUFFER       0x8893
302 #define GL_ARRAY_BUFFER_BINDING       0x8894
303 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
304 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
305 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
306 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
307 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
308 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
309 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
310 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
311 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
312 #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
313 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
314 #define GL_STREAM_DRAW                0x88E0
315 #define GL_STREAM_READ                0x88E1
316 #define GL_STREAM_COPY                0x88E2
317 #define GL_STATIC_DRAW                0x88E4
318 #define GL_STATIC_READ                0x88E5
319 #define GL_STATIC_COPY                0x88E6
320 #define GL_DYNAMIC_DRAW               0x88E8
321 #define GL_DYNAMIC_READ               0x88E9
322 #define GL_DYNAMIC_COPY               0x88EA
323 #define GL_READ_ONLY                  0x88B8
324 #define GL_WRITE_ONLY                 0x88B9
325 #define GL_READ_WRITE                 0x88BA
326 #define GL_BUFFER_SIZE                0x8764
327 #define GL_BUFFER_USAGE               0x8765
328 #define GL_BUFFER_ACCESS              0x88BB
329 #define GL_BUFFER_MAPPED              0x88BC
330 #define GL_BUFFER_MAP_POINTER         0x88BD
331
332 #define GL_FRAMEBUFFER                     0x8D40
333 #define GL_READ_FRAMEBUFFER                0x8CA8
334 #define GL_DRAW_FRAMEBUFFER                0x8CA9
335 #define GL_RENDERBUFFER                    0x8D41
336 #define GL_STENCIL_INDEX1                  0x8D46
337 #define GL_STENCIL_INDEX4                  0x8D47
338 #define GL_STENCIL_INDEX8                  0x8D48
339 #define GL_STENCIL_INDEX16                 0x8D49
340 #define GL_RENDERBUFFER_WIDTH              0x8D42
341 #define GL_RENDERBUFFER_HEIGHT             0x8D43
342 #define GL_RENDERBUFFER_INTERNAL_FORMAT    0x8D44
343 #define GL_RENDERBUFFER_RED_SIZE           0x8D50
344 #define GL_RENDERBUFFER_GREEN_SIZE         0x8D51
345 #define GL_RENDERBUFFER_BLUE_SIZE          0x8D52
346 #define GL_RENDERBUFFER_ALPHA_SIZE         0x8D53
347 #define GL_RENDERBUFFER_DEPTH_SIZE         0x8D54
348 #define GL_RENDERBUFFER_STENCIL_SIZE       0x8D55
349 #define GL_RENDERBUFFER_SAMPLES            0x8CAB
350 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE            0x8CD0
351 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME            0x8CD1
352 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL          0x8CD2
353 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE  0x8CD3
354 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER          0x8CD4
355 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING         0x8210
356 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE         0x8211
357 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE               0x8212
358 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE             0x8213
359 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE              0x8214
360 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE             0x8215
361 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE             0x8216
362 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE           0x8217
363 #define GL_SRGB                                          0x8C40
364 #define GL_UNSIGNED_NORMALIZED                           0x8C17
365 #define GL_FRAMEBUFFER_DEFAULT                           0x8218
366 #define GL_INDEX                                         0x8222
367 #define GL_COLOR_ATTACHMENT0                0x8CE0
368 #define GL_COLOR_ATTACHMENT1                0x8CE1
369 #define GL_COLOR_ATTACHMENT2                0x8CE2
370 #define GL_COLOR_ATTACHMENT3                0x8CE3
371 #define GL_COLOR_ATTACHMENT4                0x8CE4
372 #define GL_COLOR_ATTACHMENT5                0x8CE5
373 #define GL_COLOR_ATTACHMENT6                0x8CE6
374 #define GL_COLOR_ATTACHMENT7                0x8CE7
375 #define GL_COLOR_ATTACHMENT8                0x8CE8
376 #define GL_COLOR_ATTACHMENT9                0x8CE9
377 #define GL_COLOR_ATTACHMENT10               0x8CEA
378 #define GL_COLOR_ATTACHMENT11               0x8CEB
379 #define GL_COLOR_ATTACHMENT12               0x8CEC
380 #define GL_COLOR_ATTACHMENT13               0x8CED
381 #define GL_COLOR_ATTACHMENT14               0x8CEE
382 #define GL_COLOR_ATTACHMENT15               0x8CEF
383 #define GL_DEPTH_ATTACHMENT                 0x8D00
384 #define GL_STENCIL_ATTACHMENT               0x8D20
385 #define GL_DEPTH_STENCIL_ATTACHMENT         0x821A
386 #define GL_MAX_SAMPLES                     0x8D57
387 #define GL_FRAMEBUFFER_COMPLETE                          0x8CD5
388 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT             0x8CD6
389 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT     0x8CD7
390 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER            0x8CDB
391 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER            0x8CDC
392 #define GL_FRAMEBUFFER_UNSUPPORTED                       0x8CDD
393 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE            0x8D56
394 #define GL_FRAMEBUFFER_UNDEFINED                         0x8219
395 #define GL_FRAMEBUFFER_BINDING             0x8CA6 // alias DRAW_FRAMEBUFFER_BINDING
396 #define GL_DRAW_FRAMEBUFFER_BINDING        0x8CA6
397 #define GL_READ_FRAMEBUFFER_BINDING        0x8CAA
398 #define GL_RENDERBUFFER_BINDING            0x8CA7
399 #define GL_MAX_COLOR_ATTACHMENTS           0x8CDF
400 #define GL_MAX_RENDERBUFFER_SIZE           0x84E8
401 #define GL_INVALID_FRAMEBUFFER_OPERATION   0x0506
402 #define GL_DEPTH_STENCIL                              0x84F9
403 #define GL_UNSIGNED_INT_24_8                          0x84FA
404 #define GL_DEPTH24_STENCIL8                           0x88F0
405 #define GL_TEXTURE_STENCIL_SIZE                       0x88F1
406
407 #define GL_MAX_DRAW_BUFFERS                              0x8824
408 #define GL_DRAW_BUFFER0                                  0x8825
409 #define GL_DRAW_BUFFER1                                  0x8826
410 #define GL_DRAW_BUFFER2                                  0x8827
411 #define GL_DRAW_BUFFER3                                  0x8828
412 #define GL_DRAW_BUFFER4                                  0x8829
413 #define GL_DRAW_BUFFER5                                  0x882A
414 #define GL_DRAW_BUFFER6                                  0x882B
415 #define GL_DRAW_BUFFER7                                  0x882C
416 #define GL_DRAW_BUFFER8                                  0x882D
417 #define GL_DRAW_BUFFER9                                  0x882E
418 #define GL_DRAW_BUFFER10                                 0x882F
419 #define GL_DRAW_BUFFER11                                 0x8830
420 #define GL_DRAW_BUFFER12                                 0x8831
421 #define GL_DRAW_BUFFER13                                 0x8832
422 #define GL_DRAW_BUFFER14                                 0x8833
423 #define GL_DRAW_BUFFER15                                 0x8834
424
425 #define GL_RGBA32F                                       0x8814
426 #define GL_RGB32F                                        0x8815
427 #define GL_ALPHA32F                                      0x8816
428 #define GL_INTENSITY32F                                  0x8817
429 #define GL_LUMINANCE32F                                  0x8818
430 #define GL_LUMINANCE_ALPHA32F                            0x8819
431 #define GL_RGBA16F                                       0x881A
432 #define GL_RGB16F                                        0x881B
433 #define GL_ALPHA16F                                      0x881C
434 #define GL_INTENSITY16F                                  0x881D
435 #define GL_LUMINANCE16F                                  0x881E
436 #define GL_LUMINANCE_ALPHA16F                            0x881F
437
438 #define GL_HALF_FLOAT                                    0x140B
439
440 #define GL_SRGB                                          0x8C40
441 #define GL_SRGB8                                         0x8C41
442 #define GL_SRGB_ALPHA                                    0x8C42
443 #define GL_SRGB8_ALPHA8                                  0x8C43
444 #define GL_SLUMINANCE_ALPHA                              0x8C44
445 #define GL_SLUMINANCE8_ALPHA8                            0x8C45
446 #define GL_SLUMINANCE                                    0x8C46
447 #define GL_SLUMINANCE8                                   0x8C47
448 #define GL_COMPRESSED_SRGB                               0x8C48
449 #define GL_COMPRESSED_SRGB_ALPHA                         0x8C49
450 #define GL_COMPRESSED_SLUMINANCE                         0x8C4A
451 #define GL_COMPRESSED_SLUMINANCE_ALPHA                   0x8C4B
452 #define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT                     0x8C4C
453 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT               0x8C4D
454 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT               0x8C4E
455 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT               0x8C4F
456
457 #define GL_UNIFORM_BUFFER                                    0x8A11
458 #define GL_UNIFORM_BUFFER_BINDING                            0x8A28
459 #define GL_UNIFORM_BUFFER_START                              0x8A29
460 #define GL_UNIFORM_BUFFER_SIZE                               0x8A2A
461 #define GL_MAX_VERTEX_UNIFORM_BLOCKS                         0x8A2B
462 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS                       0x8A2C
463 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS                       0x8A2D
464 #define GL_MAX_COMBINED_UNIFORM_BLOCKS                       0x8A2E
465 #define GL_MAX_UNIFORM_BUFFER_BINDINGS                       0x8A2F
466 #define GL_MAX_UNIFORM_BLOCK_SIZE                            0x8A30
467 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS            0x8A31
468 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS          0x8A32
469 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS          0x8A33
470 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT                   0x8A34
471 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH              0x8A35
472 #define GL_ACTIVE_UNIFORM_BLOCKS                             0x8A36
473 #define GL_UNIFORM_TYPE                                      0x8A37
474 #define GL_UNIFORM_SIZE                                      0x8A38
475 #define GL_UNIFORM_NAME_LENGTH                               0x8A39
476 #define GL_UNIFORM_BLOCK_INDEX                               0x8A3A
477 #define GL_UNIFORM_OFFSET                                    0x8A3B
478 #define GL_UNIFORM_ARRAY_STRIDE                              0x8A3C
479 #define GL_UNIFORM_MATRIX_STRIDE                             0x8A3D
480 #define GL_UNIFORM_IS_ROW_MAJOR                              0x8A3E
481 #define GL_UNIFORM_BLOCK_BINDING                             0x8A3F
482 #define GL_UNIFORM_BLOCK_DATA_SIZE                           0x8A40
483 #define GL_UNIFORM_BLOCK_NAME_LENGTH                         0x8A41
484 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS                     0x8A42
485 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES              0x8A43
486 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER         0x8A44
487 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER       0x8A45
488 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER       0x8A46
489 #define GL_INVALID_INDEX                                     0xFFFFFFFFu
490
491 #define GL_PROGRAM_OBJECT                                       0x8B40
492 #define GL_DELETE_STATUS                                        0x8B80
493 #define GL_COMPILE_STATUS                                       0x8B81
494 #define GL_LINK_STATUS                                          0x8B82
495 #define GL_VALIDATE_STATUS                                      0x8B83
496 #define GL_INFO_LOG_LENGTH                                      0x8B84
497 #define GL_ATTACHED_SHADERS                                     0x8B85
498 #define GL_ACTIVE_UNIFORMS                                      0x8B86
499 #define GL_ACTIVE_UNIFORM_MAX_LENGTH            0x8B87
500 #define GL_SHADER_SOURCE_LENGTH                         0x8B88
501 #define GL_SHADER_OBJECT                                        0x8B48
502 #define GL_SHADER_TYPE                                          0x8B4F
503 #define GL_FLOAT                                                        0x1406
504 #define GL_FLOAT_VEC2                                           0x8B50
505 #define GL_FLOAT_VEC3                                           0x8B51
506 #define GL_FLOAT_VEC4                                           0x8B52
507 #define GL_INT                                                          0x1404
508 #define GL_INT_VEC2                                                     0x8B53
509 #define GL_INT_VEC3                                                     0x8B54
510 #define GL_INT_VEC4                                                     0x8B55
511 #define GL_BOOL                                                         0x8B56
512 #define GL_BOOL_VEC2                                            0x8B57
513 #define GL_BOOL_VEC3                                            0x8B58
514 #define GL_BOOL_VEC4                                            0x8B59
515 #define GL_FLOAT_MAT2                                           0x8B5A
516 #define GL_FLOAT_MAT3                                           0x8B5B
517 #define GL_FLOAT_MAT4                                           0x8B5C
518 #define GL_SAMPLER_1D                                           0x8B5D
519 #define GL_SAMPLER_2D                                           0x8B5E
520 #define GL_SAMPLER_3D                                           0x8B5F
521 #define GL_SAMPLER_CUBE                                         0x8B60
522 #define GL_SAMPLER_1D_SHADOW                            0x8B61
523 #define GL_SAMPLER_2D_SHADOW                            0x8B62
524 #define GL_SAMPLER_2D_RECT                                      0x8B63
525 #define GL_SAMPLER_2D_RECT_SHADOW                       0x8B64
526
527 #define GL_VERTEX_SHADER                                                0x8B31
528 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS                0x8B4A
529 #define GL_MAX_VARYING_FLOATS                                   0x8B4B
530 #define GL_MAX_VERTEX_ATTRIBS                                   0x8869
531 #define GL_MAX_TEXTURE_IMAGE_UNITS                              0x8872
532 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS               0x8B4C
533 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS             0x8B4D
534 #define GL_MAX_TEXTURE_COORDS                                   0x8871
535 #define GL_VERTEX_PROGRAM_POINT_SIZE                    0x8642
536 #define GL_VERTEX_PROGRAM_TWO_SIDE                              0x8643
537 #define GL_ACTIVE_ATTRIBUTES                                    0x8B89
538 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH                  0x8B8A
539 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED                  0x8622
540 #define GL_VERTEX_ATTRIB_ARRAY_SIZE                             0x8623
541 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE                   0x8624
542 #define GL_VERTEX_ATTRIB_ARRAY_TYPE                             0x8625
543 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED               0x886A
544 #define GL_CURRENT_VERTEX_ATTRIB                                0x8626
545 #define GL_VERTEX_ATTRIB_ARRAY_POINTER                  0x8645
546 #define GL_FLOAT                                                                0x1406
547 #define GL_FLOAT_VEC2                                                   0x8B50
548 #define GL_FLOAT_VEC3                                                   0x8B51
549 #define GL_FLOAT_VEC4                                                   0x8B52
550 #define GL_FLOAT_MAT2                                                   0x8B5A
551 #define GL_FLOAT_MAT3                                                   0x8B5B
552 #define GL_FLOAT_MAT4                                                   0x8B5C
553
554 #define GL_FRAGMENT_SHADER                                              0x8B30
555 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS              0x8B49
556 #define GL_MAX_TEXTURE_COORDS                                   0x8871
557 #define GL_MAX_TEXTURE_IMAGE_UNITS                              0x8872
558 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT              0x8B8B
559
560 #define GL_SHADING_LANGUAGE_VERSION                             0x8B8C
561
562 #define GL_COMPRESSED_ALPHA                                             0x84E9
563 #define GL_COMPRESSED_LUMINANCE                                 0x84EA
564 #define GL_COMPRESSED_LUMINANCE_ALPHA                   0x84EB
565 #define GL_COMPRESSED_INTENSITY                                 0x84EC
566 #define GL_COMPRESSED_RGB                                               0x84ED
567 #define GL_COMPRESSED_RGBA                                              0x84EE
568 #define GL_TEXTURE_COMPRESSION_HINT                             0x84EF
569 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE                0x86A0
570 #define GL_TEXTURE_COMPRESSED                                   0x86A1
571 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS               0x86A2
572 #define GL_COMPRESSED_TEXTURE_FORMATS                   0x86A3
573
574 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                   0x83F0
575 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                  0x83F1
576 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT                  0x83F2
577 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT                  0x83F3
578
579 #define GL_SAMPLES_PASSED                             0x8914
580 #define GL_QUERY_COUNTER_BITS                         0x8864
581 #define GL_CURRENT_QUERY                              0x8865
582 #define GL_QUERY_RESULT                               0x8866
583 #define GL_QUERY_RESULT_AVAILABLE                     0x8867
584
585 #define GL_QUERY_BUFFER                               0x9192
586 #define GL_QUERY_BUFFER_BINDING                       0x9193
587 #define GL_QUERY_RESULT_NO_WAIT                       0x9194
588 #define GL_QUERY_BUFFER_BARRIER_BIT                   0x00008000
589
590 #define GL_BGR                                  0x80E0
591 #define GL_BGRA                                 0x80E1
592
593 #define GL_MULTISAMPLE              0x809D
594 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
595 #define GL_SAMPLE_ALPHA_TO_ONE      0x809F
596 #define GL_SAMPLE_COVERAGE          0x80A0
597 #define GL_SAMPLE_BUFFERS           0x80A8
598 #define GL_SAMPLES                  0x80A9
599 #define GL_SAMPLE_COVERAGE_VALUE    0x80AA
600 #define GL_SAMPLE_COVERAGE_INVERT   0x80AB
601 #define GL_MULTISAMPLE_BIT          0x20000000
602
603 #define GL_DEPTH_STENCIL            0x84F9
604 #define GL_UNSIGNED_INT_24_8        0x84FA
605 #define GL_DEPTH24_STENCIL8         0x88F0
606
607 #define GL_BLEND_DST_RGB                  0x80C8
608 #define GL_BLEND_SRC_RGB                  0x80C9
609 #define GL_BLEND_DST_ALPHA                0x80CA
610 #define GL_BLEND_SRC_ALPHA                0x80CB
611
612 #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
613 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
614 #define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
615 #define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
616 #define GL_DEBUG_SOURCE_API_ARB           0x8246
617 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
618 #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
619 #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
620 #define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
621 #define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
622 #define GL_DEBUG_TYPE_ERROR_ARB           0x824C
623 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
624 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
625 #define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
626 #define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
627 #define GL_DEBUG_TYPE_OTHER_ARB           0x8251
628 #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
629 #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
630 #define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
631 #define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
632 #define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
633 #define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
634
635 #define GL_NUM_EXTENSIONS                 0x821D
636 #endif
637
638 extern GLboolean(GLAPIENTRY *qglIsBuffer) (GLuint buffer);
639 extern GLboolean(GLAPIENTRY *qglIsEnabled)(GLenum cap);
640 extern GLboolean(GLAPIENTRY *qglIsFramebuffer)(GLuint framebuffer);
641 extern GLboolean(GLAPIENTRY *qglIsQuery)(GLuint qid);
642 extern GLboolean(GLAPIENTRY *qglIsRenderbuffer)(GLuint renderbuffer);
643 extern GLboolean(GLAPIENTRY *qglUnmapBuffer) (GLenum target);
644 extern GLenum(GLAPIENTRY *qglCheckFramebufferStatus)(GLenum target);
645 extern GLenum(GLAPIENTRY *qglGetError)(void);
646 extern GLint(GLAPIENTRY *qglGetAttribLocation)(GLuint programObj, const GLchar *name);
647 extern GLint(GLAPIENTRY *qglGetUniformLocation)(GLuint programObj, const GLchar *name);
648 extern GLuint(GLAPIENTRY *qglCreateProgram)(void);
649 extern GLuint(GLAPIENTRY *qglCreateShader)(GLenum shaderType);
650 extern GLuint(GLAPIENTRY *qglGetDebugMessageLogARB)(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, GLchar* messageLog);
651 extern GLuint(GLAPIENTRY *qglGetUniformBlockIndex)(GLuint program, const char* uniformBlockName);
652 extern GLvoid(GLAPIENTRY *qglBindFramebuffer)(GLenum target, GLuint framebuffer);
653 extern GLvoid(GLAPIENTRY *qglBindRenderbuffer)(GLenum target, GLuint renderbuffer);
654 extern GLvoid(GLAPIENTRY *qglBlitFramebuffer)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
655 extern GLvoid(GLAPIENTRY *qglDeleteFramebuffers)(GLsizei n, const GLuint *framebuffers);
656 extern GLvoid(GLAPIENTRY *qglDeleteRenderbuffers)(GLsizei n, const GLuint *renderbuffers);
657 extern GLvoid(GLAPIENTRY *qglFramebufferRenderbuffer)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
658 extern GLvoid(GLAPIENTRY *qglFramebufferTexture1D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
659 extern GLvoid(GLAPIENTRY *qglFramebufferTexture2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
660 extern GLvoid(GLAPIENTRY *qglFramebufferTexture3D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer);
661 extern GLvoid(GLAPIENTRY *qglFramebufferTextureLayer)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
662 extern GLvoid(GLAPIENTRY *qglGenFramebuffers)(GLsizei n, GLuint *framebuffers);
663 extern GLvoid(GLAPIENTRY *qglGenRenderbuffers)(GLsizei n, GLuint *renderbuffers);
664 extern GLvoid(GLAPIENTRY *qglGenerateMipmap)(GLenum target);
665 extern GLvoid(GLAPIENTRY *qglGetFramebufferAttachmentParameteriv)(GLenum target, GLenum attachment, GLenum pname, GLint *params);
666 extern GLvoid(GLAPIENTRY *qglGetRenderbufferParameteriv)(GLenum target, GLenum pname, GLint *params);
667 extern GLvoid(GLAPIENTRY *qglRenderbufferStorage)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
668 extern GLvoid(GLAPIENTRY *qglRenderbufferStorageMultisample)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
669 extern GLvoid* (GLAPIENTRY *qglMapBuffer) (GLenum target, GLenum access);
670 extern const GLubyte* (GLAPIENTRY *qglGetString)(GLenum name);
671 extern void (GLAPIENTRY *qglActiveTexture)(GLenum texture);
672 extern void (GLAPIENTRY *qglAttachShader)(GLuint containerObj, GLuint obj);
673 extern void (GLAPIENTRY *qglBeginQuery)(GLenum target, GLuint qid);
674 extern void (GLAPIENTRY *qglBindAttribLocation)(GLuint programObj, GLuint index, const GLchar *name);
675 extern void (GLAPIENTRY *qglBindBuffer) (GLenum target, GLuint buffer);
676 extern void (GLAPIENTRY *qglBindBufferBase)(GLenum target, GLuint index, GLuint buffer);
677 extern void (GLAPIENTRY *qglBindBufferRange)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
678 extern void (GLAPIENTRY *qglBindFragDataLocation)(GLuint programObj, GLuint index, const GLchar *name);
679 extern void (GLAPIENTRY *qglBindTexture)(GLenum target, GLuint texture);
680 extern void (GLAPIENTRY *qglBindVertexArray)(GLuint array);
681 extern void (GLAPIENTRY *qglBlendEquation)(GLenum); // also supplied by GL_blend_subtract
682 extern void (GLAPIENTRY *qglBlendFunc)(GLenum sfactor, GLenum dfactor);
683 extern void (GLAPIENTRY *qglBlendFuncSeparate)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
684 extern void (GLAPIENTRY *qglBufferData) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
685 extern void (GLAPIENTRY *qglBufferSubData) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
686 extern void (GLAPIENTRY *qglClear)(GLbitfield mask);
687 extern void (GLAPIENTRY *qglClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
688 extern void (GLAPIENTRY *qglClearDepth)(GLclampd depth);
689 extern void (GLAPIENTRY *qglClearStencil)(GLint s);
690 extern void (GLAPIENTRY *qglColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
691 extern void (GLAPIENTRY *qglCompileShader)(GLuint shaderObj);
692 extern void (GLAPIENTRY *qglCompressedTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
693 extern void (GLAPIENTRY *qglCompressedTexImage3D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
694 extern void (GLAPIENTRY *qglCompressedTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
695 extern void (GLAPIENTRY *qglCompressedTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
696 extern void (GLAPIENTRY *qglCopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
697 extern void (GLAPIENTRY *qglCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
698 extern void (GLAPIENTRY *qglCopyTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
699 extern void (GLAPIENTRY *qglCullFace)(GLenum mode);
700 extern void (GLAPIENTRY *qglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid* userParam);
701 extern void (GLAPIENTRY *qglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
702 extern void (GLAPIENTRY *qglDebugMessageInsertARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* buf);
703 extern void (GLAPIENTRY *qglDeleteBuffers) (GLsizei n, const GLuint *buffers);
704 extern void (GLAPIENTRY *qglDeleteProgram)(GLuint obj);
705 extern void (GLAPIENTRY *qglDeleteQueries)(GLsizei n, const GLuint *ids);
706 extern void (GLAPIENTRY *qglDeleteShader)(GLuint obj);
707 extern void (GLAPIENTRY *qglDeleteTextures)(GLsizei n, const GLuint *textures);
708 extern void (GLAPIENTRY *qglDeleteVertexArrays)(GLsizei n, const GLuint *arrays);
709 extern void (GLAPIENTRY *qglDepthFunc)(GLenum func);
710 extern void (GLAPIENTRY *qglDepthMask)(GLboolean flag);
711 extern void (GLAPIENTRY *qglDepthRange)(GLclampd near_val, GLclampd far_val);
712 extern void (GLAPIENTRY *qglDepthRangef)(GLclampf near_val, GLclampf far_val);
713 extern void (GLAPIENTRY *qglDetachShader)(GLuint containerObj, GLuint attachedObj);
714 extern void (GLAPIENTRY *qglDisable)(GLenum cap);
715 extern void (GLAPIENTRY *qglDisableVertexAttribArray)(GLuint index);
716 extern void (GLAPIENTRY *qglDrawArrays)(GLenum mode, GLint first, GLsizei count);
717 extern void (GLAPIENTRY *qglDrawBuffer)(GLenum mode);
718 extern void (GLAPIENTRY *qglDrawBuffers)(GLsizei n, const GLenum *bufs);
719 extern void (GLAPIENTRY *qglDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
720 extern void (GLAPIENTRY *qglEnable)(GLenum cap);
721 extern void (GLAPIENTRY *qglEnableVertexAttribArray)(GLuint index);
722 extern void (GLAPIENTRY *qglEndQuery)(GLenum target);
723 extern void (GLAPIENTRY *qglFinish)(void);
724 extern void (GLAPIENTRY *qglFlush)(void);
725 extern void (GLAPIENTRY *qglGenBuffers) (GLsizei n, GLuint *buffers);
726 extern void (GLAPIENTRY *qglGenQueries)(GLsizei n, GLuint *ids);
727 extern void (GLAPIENTRY *qglGenTextures)(GLsizei n, GLuint *textures);
728 extern void (GLAPIENTRY *qglGenVertexArrays)(GLsizei n, GLuint *arrays);
729 extern void (GLAPIENTRY *qglGetActiveAttrib)(GLuint programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
730 extern void (GLAPIENTRY *qglGetActiveUniform)(GLuint programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
731 extern void (GLAPIENTRY *qglGetActiveUniformBlockName)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, char* uniformBlockName);
732 extern void (GLAPIENTRY *qglGetActiveUniformBlockiv)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
733 extern void (GLAPIENTRY *qglGetActiveUniformName)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, char* uniformName);
734 extern void (GLAPIENTRY *qglGetActiveUniformsiv)(GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params);
735 extern void (GLAPIENTRY *qglGetAttachedShaders)(GLuint containerObj, GLsizei maxCount, GLsizei *count, GLuint *obj);
736 extern void (GLAPIENTRY *qglGetBooleanv)(GLenum pname, GLboolean *params);
737 extern void (GLAPIENTRY *qglGetCompressedTexImage)(GLenum target, GLint lod, void *img);
738 extern void (GLAPIENTRY *qglGetDoublev)(GLenum pname, GLdouble *params);
739 extern void (GLAPIENTRY *qglGetFloatv)(GLenum pname, GLfloat *params);
740 extern void (GLAPIENTRY *qglGetIntegeri_v)(GLenum target, GLuint index, GLint* data);
741 extern void (GLAPIENTRY *qglGetIntegerv)(GLenum pname, GLint *params);
742 extern void (GLAPIENTRY *qglGetPointerv)(GLenum pname, GLvoid** params);
743 extern void (GLAPIENTRY *qglGetProgramInfoLog)(GLuint obj, GLsizei maxLength, GLsizei *length, GLchar *infoLog);
744 extern void (GLAPIENTRY *qglGetProgramiv)(GLuint obj, GLenum pname, GLint *params);
745 extern void (GLAPIENTRY *qglGetQueryObjectiv)(GLuint qid, GLenum pname, GLint *params);
746 extern void (GLAPIENTRY *qglGetQueryObjectuiv)(GLuint qid, GLenum pname, GLuint *params);
747 extern void (GLAPIENTRY *qglGetQueryiv)(GLenum target, GLenum pname, GLint *params);
748 extern void (GLAPIENTRY *qglGetShaderInfoLog)(GLuint obj, GLsizei maxLength, GLsizei *length, GLchar *infoLog);
749 extern void (GLAPIENTRY *qglGetShaderSource)(GLuint obj, GLsizei maxLength, GLsizei *length, GLchar *source);
750 extern void (GLAPIENTRY *qglGetShaderiv)(GLuint obj, GLenum pname, GLint *params);
751 extern void (GLAPIENTRY *qglGetTexImage)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
752 extern void (GLAPIENTRY *qglGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat *params);
753 extern void (GLAPIENTRY *qglGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint *params);
754 extern void (GLAPIENTRY *qglGetTexParameterfv)(GLenum target, GLenum pname, GLfloat *params);
755 extern void (GLAPIENTRY *qglGetTexParameteriv)(GLenum target, GLenum pname, GLint *params);
756 extern void (GLAPIENTRY *qglGetUniformIndices)(GLuint program, GLsizei uniformCount, const char** uniformNames, GLuint* uniformIndices);
757 extern void (GLAPIENTRY *qglGetUniformfv)(GLuint programObj, GLint location, GLfloat *params);
758 extern void (GLAPIENTRY *qglGetUniformiv)(GLuint programObj, GLint location, GLint *params);
759 extern void (GLAPIENTRY *qglGetVertexAttribPointerv)(GLuint index, GLenum pname, GLvoid **pointer);
760 extern void (GLAPIENTRY *qglGetVertexAttribdv)(GLuint index, GLenum pname, GLdouble *params);
761 extern void (GLAPIENTRY *qglGetVertexAttribfv)(GLuint index, GLenum pname, GLfloat *params);
762 extern void (GLAPIENTRY *qglGetVertexAttribiv)(GLuint index, GLenum pname, GLint *params);
763 extern void (GLAPIENTRY *qglHint)(GLenum target, GLenum mode);
764 extern void (GLAPIENTRY *qglLinkProgram)(GLuint programObj);
765 extern void (GLAPIENTRY *qglPixelStorei)(GLenum pname, GLint param);
766 extern void (GLAPIENTRY *qglPointSize)(GLfloat size);
767 extern void (GLAPIENTRY *qglPolygonMode)(GLenum face, GLenum mode);
768 extern void (GLAPIENTRY *qglPolygonOffset)(GLfloat factor, GLfloat units);
769 extern void (GLAPIENTRY *qglReadBuffer)(GLenum mode);
770 extern void (GLAPIENTRY *qglReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
771 extern void (GLAPIENTRY *qglSampleCoverage)(GLclampf value, GLboolean invert);
772 extern void (GLAPIENTRY *qglScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
773 extern void (GLAPIENTRY *qglShaderSource)(GLuint shaderObj, GLsizei count, const GLchar **string, const GLint *length);
774 extern void (GLAPIENTRY *qglStencilFunc)(GLenum func, GLint ref, GLuint mask);
775 extern void (GLAPIENTRY *qglStencilMask)(GLuint mask);
776 extern void (GLAPIENTRY *qglStencilOp)(GLenum fail, GLenum zfail, GLenum zpass);
777 extern void (GLAPIENTRY *qglTexImage2D)(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
778 extern void (GLAPIENTRY *qglTexImage3D)(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
779 extern void (GLAPIENTRY *qglTexParameterf)(GLenum target, GLenum pname, GLfloat param);
780 extern void (GLAPIENTRY *qglTexParameterfv)(GLenum target, GLenum pname, GLfloat *params);
781 extern void (GLAPIENTRY *qglTexParameteri)(GLenum target, GLenum pname, GLint param);
782 extern void (GLAPIENTRY *qglTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
783 extern void (GLAPIENTRY *qglTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
784 extern void (GLAPIENTRY *qglUniform1f)(GLint location, GLfloat v0);
785 extern void (GLAPIENTRY *qglUniform1fv)(GLint location, GLsizei count, const GLfloat *value);
786 extern void (GLAPIENTRY *qglUniform1i)(GLint location, GLint v0);
787 extern void (GLAPIENTRY *qglUniform1iv)(GLint location, GLsizei count, const GLint *value);
788 extern void (GLAPIENTRY *qglUniform2f)(GLint location, GLfloat v0, GLfloat v1);
789 extern void (GLAPIENTRY *qglUniform2fv)(GLint location, GLsizei count, const GLfloat *value);
790 extern void (GLAPIENTRY *qglUniform2i)(GLint location, GLint v0, GLint v1);
791 extern void (GLAPIENTRY *qglUniform2iv)(GLint location, GLsizei count, const GLint *value);
792 extern void (GLAPIENTRY *qglUniform3f)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
793 extern void (GLAPIENTRY *qglUniform3fv)(GLint location, GLsizei count, const GLfloat *value);
794 extern void (GLAPIENTRY *qglUniform3i)(GLint location, GLint v0, GLint v1, GLint v2);
795 extern void (GLAPIENTRY *qglUniform3iv)(GLint location, GLsizei count, const GLint *value);
796 extern void (GLAPIENTRY *qglUniform4f)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
797 extern void (GLAPIENTRY *qglUniform4fv)(GLint location, GLsizei count, const GLfloat *value);
798 extern void (GLAPIENTRY *qglUniform4i)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
799 extern void (GLAPIENTRY *qglUniform4iv)(GLint location, GLsizei count, const GLint *value);
800 extern void (GLAPIENTRY *qglUniformBlockBinding)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
801 extern void (GLAPIENTRY *qglUniformMatrix2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
802 extern void (GLAPIENTRY *qglUniformMatrix3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
803 extern void (GLAPIENTRY *qglUniformMatrix4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
804 extern void (GLAPIENTRY *qglUseProgram)(GLuint programObj);
805 extern void (GLAPIENTRY *qglValidateProgram)(GLuint programObj);
806 extern void (GLAPIENTRY *qglVertexAttrib1d)(GLuint index, GLdouble v0);
807 extern void (GLAPIENTRY *qglVertexAttrib1dv)(GLuint index, const GLdouble *v);
808 extern void (GLAPIENTRY *qglVertexAttrib1f)(GLuint index, GLfloat v0);
809 extern void (GLAPIENTRY *qglVertexAttrib1fv)(GLuint index, const GLfloat *v);
810 extern void (GLAPIENTRY *qglVertexAttrib1s)(GLuint index, GLshort v0);
811 extern void (GLAPIENTRY *qglVertexAttrib1sv)(GLuint index, const GLshort *v);
812 extern void (GLAPIENTRY *qglVertexAttrib2d)(GLuint index, GLdouble v0, GLdouble v1);
813 extern void (GLAPIENTRY *qglVertexAttrib2dv)(GLuint index, const GLdouble *v);
814 extern void (GLAPIENTRY *qglVertexAttrib2f)(GLuint index, GLfloat v0, GLfloat v1);
815 extern void (GLAPIENTRY *qglVertexAttrib2fv)(GLuint index, const GLfloat *v);
816 extern void (GLAPIENTRY *qglVertexAttrib2s)(GLuint index, GLshort v0, GLshort v1);
817 extern void (GLAPIENTRY *qglVertexAttrib2sv)(GLuint index, const GLshort *v);
818 extern void (GLAPIENTRY *qglVertexAttrib3d)(GLuint index, GLdouble v0, GLdouble v1, GLdouble v2);
819 extern void (GLAPIENTRY *qglVertexAttrib3dv)(GLuint index, const GLdouble *v);
820 extern void (GLAPIENTRY *qglVertexAttrib3f)(GLuint index, GLfloat v0, GLfloat v1, GLfloat v2);
821 extern void (GLAPIENTRY *qglVertexAttrib3fv)(GLuint index, const GLfloat *v);
822 extern void (GLAPIENTRY *qglVertexAttrib3s)(GLuint index, GLshort v0, GLshort v1, GLshort v2);
823 extern void (GLAPIENTRY *qglVertexAttrib3sv)(GLuint index, const GLshort *v);
824 extern void (GLAPIENTRY *qglVertexAttrib4Nbv)(GLuint index, const GLbyte *v);
825 extern void (GLAPIENTRY *qglVertexAttrib4Niv)(GLuint index, const GLint *v);
826 extern void (GLAPIENTRY *qglVertexAttrib4Nsv)(GLuint index, const GLshort *v);
827 extern void (GLAPIENTRY *qglVertexAttrib4Nub)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
828 extern void (GLAPIENTRY *qglVertexAttrib4Nubv)(GLuint index, const GLubyte *v);
829 extern void (GLAPIENTRY *qglVertexAttrib4Nuiv)(GLuint index, const GLuint *v);
830 extern void (GLAPIENTRY *qglVertexAttrib4Nusv)(GLuint index, const GLushort *v);
831 extern void (GLAPIENTRY *qglVertexAttrib4bv)(GLuint index, const GLbyte *v);
832 extern void (GLAPIENTRY *qglVertexAttrib4d)(GLuint index, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
833 extern void (GLAPIENTRY *qglVertexAttrib4dv)(GLuint index, const GLdouble *v);
834 extern void (GLAPIENTRY *qglVertexAttrib4f)(GLuint index, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
835 extern void (GLAPIENTRY *qglVertexAttrib4fv)(GLuint index, const GLfloat *v);
836 extern void (GLAPIENTRY *qglVertexAttrib4iv)(GLuint index, const GLint *v);
837 extern void (GLAPIENTRY *qglVertexAttrib4s)(GLuint index, GLshort v0, GLshort v1, GLshort v2, GLshort v3);
838 extern void (GLAPIENTRY *qglVertexAttrib4sv)(GLuint index, const GLshort *v);
839 extern void (GLAPIENTRY *qglVertexAttrib4ubv)(GLuint index, const GLubyte *v);
840 extern void (GLAPIENTRY *qglVertexAttrib4uiv)(GLuint index, const GLuint *v);
841 extern void (GLAPIENTRY *qglVertexAttrib4usv)(GLuint index, const GLushort *v);
842 extern void (GLAPIENTRY *qglVertexAttribPointer)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
843 extern void (GLAPIENTRY *qglViewport)(GLint x, GLint y, GLsizei width, GLsizei height);
844 #else
845 #define qglActiveTexture glActiveTexture
846 #define qglAttachShader glAttachShader
847 #define qglBeginQuery glBeginQuery
848 #define qglBindAttribLocation glBindAttribLocation
849 #define qglBindBuffer glBindBuffer
850 #define qglBindBufferBase glBindBufferBase
851 #define qglBindBufferRange glBindBufferRange
852 #define qglBindFragDataLocation glBindFragDataLocation
853 #define qglBindFramebuffer glBindFramebuffer
854 #define qglBindRenderbuffer glBindRenderbuffer
855 #define qglBindTexture glBindTexture
856 #define qglBlendEquation glBlendEquation
857 #define qglBlendFunc glBlendFunc
858 #define qglBlendFuncSeparate glBlendFuncSeparate
859 #define qglBlitFramebuffer glBlitFramebuffer
860 #define qglBufferData glBufferData
861 #define qglBufferSubData glBufferSubData
862 #define qglCheckFramebufferStatus glCheckFramebufferStatus
863 #define qglClear glClear
864 #define qglClearColor glClearColor
865 #define qglClearDepth glClearDepth
866 #define qglClearStencil glClearStencil
867 #define qglColorMask glColorMask
868 #define qglCompileShader glCompileShader
869 #define qglCompressedTexImage2D glCompressedTexImage2D
870 #define qglCompressedTexImage3D glCompressedTexImage3D
871 #define qglCompressedTexSubImage2D glCompressedTexSubImage2D
872 #define qglCompressedTexSubImage3D glCompressedTexSubImage3D
873 #define qglCopyTexImage2D glCopyTexImage2D
874 #define qglCopyTexSubImage2D glCopyTexSubImage2D
875 #define qglCopyTexSubImage3D glCopyTexSubImage3D
876 #define qglCreateProgram glCreateProgram
877 #define qglCreateShader glCreateShader
878 #define qglCullFace glCullFace
879 #define qglDebugMessageCallbackARB glDebugMessageCallbackARB
880 #define qglDebugMessageControlARB glDebugMessageControlARB
881 #define qglDebugMessageInsertARB glDebugMessageInsertARB
882 #define qglDeleteBuffers glDeleteBuffers
883 #define qglDeleteFramebuffers glDeleteFramebuffers
884 #define qglDeleteProgram glDeleteProgram
885 #define qglDeleteQueries glDeleteQueries
886 #define qglDeleteRenderbuffers glDeleteRenderbuffers
887 #define qglDeleteShader glDeleteShader
888 #define qglDeleteTextures glDeleteTextures
889 #define qglDepthFunc glDepthFunc
890 #define qglDepthMask glDepthMask
891 #define qglDepthRange glDepthRange
892 #define qglDepthRangef glDepthRangef
893 #define qglDetachShader glDetachShader
894 #define qglDisable glDisable
895 #define qglDisableVertexAttribArray glDisableVertexAttribArray
896 #define qglDrawArrays glDrawArrays
897 #define qglDrawBuffer glDrawBuffer
898 #define qglDrawBuffers glDrawBuffers
899 #define qglDrawElements glDrawElements
900 #define qglEnable glEnable
901 #define qglEnableVertexAttribArray glEnableVertexAttribArray
902 #define qglEndQuery glEndQuery
903 #define qglFinish glFinish
904 #define qglFlush glFlush
905 #define qglFramebufferRenderbuffer glFramebufferRenderbuffer
906 #define qglFramebufferTexture1D glFramebufferTexture1D
907 #define qglFramebufferTexture2D glFramebufferTexture2D
908 #define qglFramebufferTexture3D glFramebufferTexture3D
909 #define qglFramebufferTextureLayer glFramebufferTextureLayer
910 #define qglGenBuffers glGenBuffers
911 #define qglGenFramebuffers glGenFramebuffers
912 #define qglGenQueries glGenQueries
913 #define qglGenRenderbuffers glGenRenderbuffers
914 #define qglGenTextures glGenTextures
915 #define qglGenerateMipmap glGenerateMipmap
916 #define qglGetActiveAttrib glGetActiveAttrib
917 #define qglGetActiveUniform glGetActiveUniform
918 #define qglGetActiveUniformBlockName glGetActiveUniformBlockName
919 #define qglGetActiveUniformBlockiv glGetActiveUniformBlockiv
920 #define qglGetActiveUniformName glGetActiveUniformName
921 #define qglGetActiveUniformsiv glGetActiveUniformsiv
922 #define qglGetAttachedShaders glGetAttachedShaders
923 #define qglGetAttribLocation glGetAttribLocation
924 #define qglGetBooleanv glGetBooleanv
925 #define qglGetCompressedTexImage glGetCompressedTexImage
926 #define qglGetDebugMessageLogARB glGetDebugMessageLogARB
927 #define qglGetDoublev glGetDoublev
928 #define qglGetError glGetError
929 #define qglGetFloatv glGetFloatv
930 #define qglGetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv
931 #define qglGetIntegeri_v glGetIntegeri_v
932 #define qglGetIntegerv glGetIntegerv
933 #define qglGetPointerv glGetPointerv
934 #define qglGetProgramInfoLog glGetProgramInfoLog
935 #define qglGetProgramiv glGetProgramiv
936 #define qglGetQueryObjectiv glGetQueryObjectiv
937 #define qglGetQueryObjectuiv glGetQueryObjectuiv
938 #define qglGetQueryiv glGetQueryiv
939 #define qglGetRenderbufferParameteriv glGetRenderbufferParameteriv
940 #define qglGetShaderInfoLog glGetShaderInfoLog
941 #define qglGetShaderSource glGetShaderSource
942 #define qglGetShaderiv glGetShaderiv
943 #define qglGetString glGetString
944 #define qglGetTexImage glGetTexImage
945 #define qglGetTexLevelParameterfv glGetTexLevelParameterfv
946 #define qglGetTexLevelParameteriv glGetTexLevelParameteriv
947 #define qglGetTexParameterfv glGetTexParameterfv
948 #define qglGetTexParameteriv glGetTexParameteriv
949 #define qglGetUniformBlockIndex glGetUniformBlockIndex
950 #define qglGetUniformIndices glGetUniformIndices
951 #define qglGetUniformLocation glGetUniformLocation
952 #define qglGetUniformfv glGetUniformfv
953 #define qglGetUniformiv glGetUniformiv
954 #define qglGetVertexAttribPointerv glGetVertexAttribPointerv
955 #define qglGetVertexAttribdv glGetVertexAttribdv
956 #define qglGetVertexAttribfv glGetVertexAttribfv
957 #define qglGetVertexAttribiv glGetVertexAttribiv
958 #define qglHint glHint
959 #define qglIsBuffer glIsBuffer
960 #define qglIsEnabled glIsEnabled
961 #define qglIsFramebuffer glIsFramebuffer
962 #define qglIsQuery glIsQuery
963 #define qglIsRenderbuffer glIsRenderbuffer
964 #define qglLinkProgram glLinkProgram
965 #define qglMapBuffer glMapBuffer
966 #define qglPixelStorei glPixelStorei
967 #define qglPointSize glPointSize
968 #define qglPolygonMode glPolygonMode
969 #define qglPolygonOffset glPolygonOffset
970 #define qglReadBuffer glReadBuffer
971 #define qglReadPixels glReadPixels
972 #define qglRenderbufferStorage glRenderbufferStorage
973 #define qglRenderbufferStorageMultisample glRenderbufferStorageMultisample
974 #define qglSampleCoverage glSampleCoverage
975 #define qglScissor glScissor
976 #define qglShaderSource glShaderSource
977 #define qglStencilFunc glStencilFunc
978 #define qglStencilMask glStencilMask
979 #define qglStencilOp glStencilOp
980 #define qglTexImage2D glTexImage2D
981 #define qglTexImage3D glTexImage3D
982 #define qglTexParameterf glTexParameterf
983 #define qglTexParameterfv glTexParameterfv
984 #define qglTexParameteri glTexParameteri
985 #define qglTexSubImage2D glTexSubImage2D
986 #define qglTexSubImage3D glTexSubImage3D
987 #define qglUniform1f glUniform1f
988 #define qglUniform1fv glUniform1fv
989 #define qglUniform1i glUniform1i
990 #define qglUniform1iv glUniform1iv
991 #define qglUniform2f glUniform2f
992 #define qglUniform2fv glUniform2fv
993 #define qglUniform2i glUniform2i
994 #define qglUniform2iv glUniform2iv
995 #define qglUniform3f glUniform3f
996 #define qglUniform3fv glUniform3fv
997 #define qglUniform3i glUniform3i
998 #define qglUniform3iv glUniform3iv
999 #define qglUniform4f glUniform4f
1000 #define qglUniform4fv glUniform4fv
1001 #define qglUniform4i glUniform4i
1002 #define qglUniform4iv glUniform4iv
1003 #define qglUniformBlockBinding glUniformBlockBinding
1004 #define qglUniformMatrix2fv glUniformMatrix2fv
1005 #define qglUniformMatrix3fv glUniformMatrix3fv
1006 #define qglUniformMatrix4fv glUniformMatrix4fv
1007 #define qglUnmapBuffer glUnmapBuffer
1008 #define qglUseProgram glUseProgram
1009 #define qglValidateProgram glValidateProgram
1010 #define qglVertexAttrib1d glVertexAttrib1d
1011 #define qglVertexAttrib1dv glVertexAttrib1dv
1012 #define qglVertexAttrib1f glVertexAttrib1f
1013 #define qglVertexAttrib1fv glVertexAttrib1fv
1014 #define qglVertexAttrib1s glVertexAttrib1s
1015 #define qglVertexAttrib1sv glVertexAttrib1sv
1016 #define qglVertexAttrib2d glVertexAttrib2d
1017 #define qglVertexAttrib2dv glVertexAttrib2dv
1018 #define qglVertexAttrib2f glVertexAttrib2f
1019 #define qglVertexAttrib2fv glVertexAttrib2fv
1020 #define qglVertexAttrib2s glVertexAttrib2s
1021 #define qglVertexAttrib2sv glVertexAttrib2sv
1022 #define qglVertexAttrib3d glVertexAttrib3d
1023 #define qglVertexAttrib3dv glVertexAttrib3dv
1024 #define qglVertexAttrib3f glVertexAttrib3f
1025 #define qglVertexAttrib3fv glVertexAttrib3fv
1026 #define qglVertexAttrib3s glVertexAttrib3s
1027 #define qglVertexAttrib3sv glVertexAttrib3sv
1028 #define qglVertexAttrib4Nbv glVertexAttrib4Nbv
1029 #define qglVertexAttrib4Niv glVertexAttrib4Niv
1030 #define qglVertexAttrib4Nsv glVertexAttrib4Nsv
1031 #define qglVertexAttrib4Nub glVertexAttrib4Nub
1032 #define qglVertexAttrib4Nubv glVertexAttrib4Nubv
1033 #define qglVertexAttrib4Nuiv glVertexAttrib4Nuiv
1034 #define qglVertexAttrib4Nusv glVertexAttrib4Nusv
1035 #define qglVertexAttrib4bv glVertexAttrib4bv
1036 #define qglVertexAttrib4d glVertexAttrib4d
1037 #define qglVertexAttrib4dv glVertexAttrib4dv
1038 #define qglVertexAttrib4f glVertexAttrib4f
1039 #define qglVertexAttrib4fv glVertexAttrib4fv
1040 #define qglVertexAttrib4iv glVertexAttrib4iv
1041 #define qglVertexAttrib4s glVertexAttrib4s
1042 #define qglVertexAttrib4sv glVertexAttrib4sv
1043 #define qglVertexAttrib4ubv glVertexAttrib4ubv
1044 #define qglVertexAttrib4uiv glVertexAttrib4uiv
1045 #define qglVertexAttrib4usv glVertexAttrib4usv
1046 #define qglVertexAttribPointer glVertexAttribPointer
1047 #define qglViewport glViewport
1048 #endif
1049
1050 #endif