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