0023022: This is desirable to access OpenGl extensions and core API (1.2+) in one...
[occt.git] / src / OpenGl / glext.h
1 #ifndef __glext_h_
2 #define __glext_h_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9 ** Copyright (c) 2007-2012 The Khronos Group Inc.
10 ** 
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
18 ** 
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 ** 
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29 */
30
31 /* Header file version number, required by OpenGL ABI for Linux */
32 /* glext.h last updated $Date: 2012-03-05 02:52:51 -0800 (Mon, 05 Mar 2012) $ */
33 /* Current version at http://www.opengl.org/registry/ */
34 #define GL_GLEXT_VERSION 76
35 /* Function declaration macros - to move into glplatform.h */
36
37 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
38 #define WIN32_LEAN_AND_MEAN 1
39 #include <windows.h>
40 #endif
41
42 #ifndef APIENTRY
43 #define APIENTRY
44 #endif
45 #ifndef APIENTRYP
46 #define APIENTRYP APIENTRY *
47 #endif
48 #ifndef GLAPI
49 #define GLAPI extern
50 #endif
51
52 /*************************************************************/
53
54 #ifndef GL_VERSION_1_2
55 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
56 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
57 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
58 #define GL_UNSIGNED_INT_8_8_8_8           0x8035
59 #define GL_UNSIGNED_INT_10_10_10_2        0x8036
60 #define GL_TEXTURE_BINDING_3D             0x806A
61 #define GL_PACK_SKIP_IMAGES               0x806B
62 #define GL_PACK_IMAGE_HEIGHT              0x806C
63 #define GL_UNPACK_SKIP_IMAGES             0x806D
64 #define GL_UNPACK_IMAGE_HEIGHT            0x806E
65 #define GL_TEXTURE_3D                     0x806F
66 #define GL_PROXY_TEXTURE_3D               0x8070
67 #define GL_TEXTURE_DEPTH                  0x8071
68 #define GL_TEXTURE_WRAP_R                 0x8072
69 #define GL_MAX_3D_TEXTURE_SIZE            0x8073
70 #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
71 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
72 #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
73 #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
74 #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
75 #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
76 #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
77 #define GL_BGR                            0x80E0
78 #define GL_BGRA                           0x80E1
79 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
80 #define GL_MAX_ELEMENTS_INDICES           0x80E9
81 #define GL_CLAMP_TO_EDGE                  0x812F
82 #define GL_TEXTURE_MIN_LOD                0x813A
83 #define GL_TEXTURE_MAX_LOD                0x813B
84 #define GL_TEXTURE_BASE_LEVEL             0x813C
85 #define GL_TEXTURE_MAX_LEVEL              0x813D
86 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
87 #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
88 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
89 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
90 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
91 #endif
92
93 #ifndef GL_VERSION_1_2_DEPRECATED
94 #define GL_RESCALE_NORMAL                 0x803A
95 #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
96 #define GL_SINGLE_COLOR                   0x81F9
97 #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
98 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
99 #endif
100
101 #ifndef GL_ARB_imaging
102 #define GL_CONSTANT_COLOR                 0x8001
103 #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
104 #define GL_CONSTANT_ALPHA                 0x8003
105 #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
106 #define GL_BLEND_COLOR                    0x8005
107 #define GL_FUNC_ADD                       0x8006
108 #define GL_MIN                            0x8007
109 #define GL_MAX                            0x8008
110 #define GL_BLEND_EQUATION                 0x8009
111 #define GL_FUNC_SUBTRACT                  0x800A
112 #define GL_FUNC_REVERSE_SUBTRACT          0x800B
113 #endif
114
115 #ifndef GL_ARB_imaging_DEPRECATED
116 #define GL_CONVOLUTION_1D                 0x8010
117 #define GL_CONVOLUTION_2D                 0x8011
118 #define GL_SEPARABLE_2D                   0x8012
119 #define GL_CONVOLUTION_BORDER_MODE        0x8013
120 #define GL_CONVOLUTION_FILTER_SCALE       0x8014
121 #define GL_CONVOLUTION_FILTER_BIAS        0x8015
122 #define GL_REDUCE                         0x8016
123 #define GL_CONVOLUTION_FORMAT             0x8017
124 #define GL_CONVOLUTION_WIDTH              0x8018
125 #define GL_CONVOLUTION_HEIGHT             0x8019
126 #define GL_MAX_CONVOLUTION_WIDTH          0x801A
127 #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
128 #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
129 #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
130 #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
131 #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
132 #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
133 #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
134 #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
135 #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
136 #define GL_HISTOGRAM                      0x8024
137 #define GL_PROXY_HISTOGRAM                0x8025
138 #define GL_HISTOGRAM_WIDTH                0x8026
139 #define GL_HISTOGRAM_FORMAT               0x8027
140 #define GL_HISTOGRAM_RED_SIZE             0x8028
141 #define GL_HISTOGRAM_GREEN_SIZE           0x8029
142 #define GL_HISTOGRAM_BLUE_SIZE            0x802A
143 #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
144 #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
145 #define GL_HISTOGRAM_SINK                 0x802D
146 #define GL_MINMAX                         0x802E
147 #define GL_MINMAX_FORMAT                  0x802F
148 #define GL_MINMAX_SINK                    0x8030
149 #define GL_TABLE_TOO_LARGE                0x8031
150 #define GL_COLOR_MATRIX                   0x80B1
151 #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
152 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
153 #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
154 #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
155 #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
156 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
157 #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
158 #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
159 #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
160 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
161 #define GL_COLOR_TABLE                    0x80D0
162 #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
163 #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
164 #define GL_PROXY_COLOR_TABLE              0x80D3
165 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
166 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
167 #define GL_COLOR_TABLE_SCALE              0x80D6
168 #define GL_COLOR_TABLE_BIAS               0x80D7
169 #define GL_COLOR_TABLE_FORMAT             0x80D8
170 #define GL_COLOR_TABLE_WIDTH              0x80D9
171 #define GL_COLOR_TABLE_RED_SIZE           0x80DA
172 #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
173 #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
174 #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
175 #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
176 #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
177 #define GL_CONSTANT_BORDER                0x8151
178 #define GL_REPLICATE_BORDER               0x8153
179 #define GL_CONVOLUTION_BORDER_COLOR       0x8154
180 #endif
181
182 #ifndef GL_VERSION_1_3
183 #define GL_TEXTURE0                       0x84C0
184 #define GL_TEXTURE1                       0x84C1
185 #define GL_TEXTURE2                       0x84C2
186 #define GL_TEXTURE3                       0x84C3
187 #define GL_TEXTURE4                       0x84C4
188 #define GL_TEXTURE5                       0x84C5
189 #define GL_TEXTURE6                       0x84C6
190 #define GL_TEXTURE7                       0x84C7
191 #define GL_TEXTURE8                       0x84C8
192 #define GL_TEXTURE9                       0x84C9
193 #define GL_TEXTURE10                      0x84CA
194 #define GL_TEXTURE11                      0x84CB
195 #define GL_TEXTURE12                      0x84CC
196 #define GL_TEXTURE13                      0x84CD
197 #define GL_TEXTURE14                      0x84CE
198 #define GL_TEXTURE15                      0x84CF
199 #define GL_TEXTURE16                      0x84D0
200 #define GL_TEXTURE17                      0x84D1
201 #define GL_TEXTURE18                      0x84D2
202 #define GL_TEXTURE19                      0x84D3
203 #define GL_TEXTURE20                      0x84D4
204 #define GL_TEXTURE21                      0x84D5
205 #define GL_TEXTURE22                      0x84D6
206 #define GL_TEXTURE23                      0x84D7
207 #define GL_TEXTURE24                      0x84D8
208 #define GL_TEXTURE25                      0x84D9
209 #define GL_TEXTURE26                      0x84DA
210 #define GL_TEXTURE27                      0x84DB
211 #define GL_TEXTURE28                      0x84DC
212 #define GL_TEXTURE29                      0x84DD
213 #define GL_TEXTURE30                      0x84DE
214 #define GL_TEXTURE31                      0x84DF
215 #define GL_ACTIVE_TEXTURE                 0x84E0
216 #define GL_MULTISAMPLE                    0x809D
217 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
218 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
219 #define GL_SAMPLE_COVERAGE                0x80A0
220 #define GL_SAMPLE_BUFFERS                 0x80A8
221 #define GL_SAMPLES                        0x80A9
222 #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
223 #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
224 #define GL_TEXTURE_CUBE_MAP               0x8513
225 #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
226 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
227 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
228 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
229 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
230 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
231 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
232 #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
233 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
234 #define GL_COMPRESSED_RGB                 0x84ED
235 #define GL_COMPRESSED_RGBA                0x84EE
236 #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
237 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
238 #define GL_TEXTURE_COMPRESSED             0x86A1
239 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
240 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
241 #define GL_CLAMP_TO_BORDER                0x812D
242 #endif
243
244 #ifndef GL_VERSION_1_3_DEPRECATED
245 #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
246 #define GL_MAX_TEXTURE_UNITS              0x84E2
247 #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
248 #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
249 #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
250 #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
251 #define GL_MULTISAMPLE_BIT                0x20000000
252 #define GL_NORMAL_MAP                     0x8511
253 #define GL_REFLECTION_MAP                 0x8512
254 #define GL_COMPRESSED_ALPHA               0x84E9
255 #define GL_COMPRESSED_LUMINANCE           0x84EA
256 #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
257 #define GL_COMPRESSED_INTENSITY           0x84EC
258 #define GL_COMBINE                        0x8570
259 #define GL_COMBINE_RGB                    0x8571
260 #define GL_COMBINE_ALPHA                  0x8572
261 #define GL_SOURCE0_RGB                    0x8580
262 #define GL_SOURCE1_RGB                    0x8581
263 #define GL_SOURCE2_RGB                    0x8582
264 #define GL_SOURCE0_ALPHA                  0x8588
265 #define GL_SOURCE1_ALPHA                  0x8589
266 #define GL_SOURCE2_ALPHA                  0x858A
267 #define GL_OPERAND0_RGB                   0x8590
268 #define GL_OPERAND1_RGB                   0x8591
269 #define GL_OPERAND2_RGB                   0x8592
270 #define GL_OPERAND0_ALPHA                 0x8598
271 #define GL_OPERAND1_ALPHA                 0x8599
272 #define GL_OPERAND2_ALPHA                 0x859A
273 #define GL_RGB_SCALE                      0x8573
274 #define GL_ADD_SIGNED                     0x8574
275 #define GL_INTERPOLATE                    0x8575
276 #define GL_SUBTRACT                       0x84E7
277 #define GL_CONSTANT                       0x8576
278 #define GL_PRIMARY_COLOR                  0x8577
279 #define GL_PREVIOUS                       0x8578
280 #define GL_DOT3_RGB                       0x86AE
281 #define GL_DOT3_RGBA                      0x86AF
282 #endif
283
284 #ifndef GL_VERSION_1_4
285 #define GL_BLEND_DST_RGB                  0x80C8
286 #define GL_BLEND_SRC_RGB                  0x80C9
287 #define GL_BLEND_DST_ALPHA                0x80CA
288 #define GL_BLEND_SRC_ALPHA                0x80CB
289 #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
290 #define GL_DEPTH_COMPONENT16              0x81A5
291 #define GL_DEPTH_COMPONENT24              0x81A6
292 #define GL_DEPTH_COMPONENT32              0x81A7
293 #define GL_MIRRORED_REPEAT                0x8370
294 #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
295 #define GL_TEXTURE_LOD_BIAS               0x8501
296 #define GL_INCR_WRAP                      0x8507
297 #define GL_DECR_WRAP                      0x8508
298 #define GL_TEXTURE_DEPTH_SIZE             0x884A
299 #define GL_TEXTURE_COMPARE_MODE           0x884C
300 #define GL_TEXTURE_COMPARE_FUNC           0x884D
301 #endif
302
303 #ifndef GL_VERSION_1_4_DEPRECATED
304 #define GL_POINT_SIZE_MIN                 0x8126
305 #define GL_POINT_SIZE_MAX                 0x8127
306 #define GL_POINT_DISTANCE_ATTENUATION     0x8129
307 #define GL_GENERATE_MIPMAP                0x8191
308 #define GL_GENERATE_MIPMAP_HINT           0x8192
309 #define GL_FOG_COORDINATE_SOURCE          0x8450
310 #define GL_FOG_COORDINATE                 0x8451
311 #define GL_FRAGMENT_DEPTH                 0x8452
312 #define GL_CURRENT_FOG_COORDINATE         0x8453
313 #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
314 #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
315 #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
316 #define GL_FOG_COORDINATE_ARRAY           0x8457
317 #define GL_COLOR_SUM                      0x8458
318 #define GL_CURRENT_SECONDARY_COLOR        0x8459
319 #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
320 #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
321 #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
322 #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
323 #define GL_SECONDARY_COLOR_ARRAY          0x845E
324 #define GL_TEXTURE_FILTER_CONTROL         0x8500
325 #define GL_DEPTH_TEXTURE_MODE             0x884B
326 #define GL_COMPARE_R_TO_TEXTURE           0x884E
327 #endif
328
329 #ifndef GL_VERSION_1_5
330 #define GL_BUFFER_SIZE                    0x8764
331 #define GL_BUFFER_USAGE                   0x8765
332 #define GL_QUERY_COUNTER_BITS             0x8864
333 #define GL_CURRENT_QUERY                  0x8865
334 #define GL_QUERY_RESULT                   0x8866
335 #define GL_QUERY_RESULT_AVAILABLE         0x8867
336 #define GL_ARRAY_BUFFER                   0x8892
337 #define GL_ELEMENT_ARRAY_BUFFER           0x8893
338 #define GL_ARRAY_BUFFER_BINDING           0x8894
339 #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
340 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
341 #define GL_READ_ONLY                      0x88B8
342 #define GL_WRITE_ONLY                     0x88B9
343 #define GL_READ_WRITE                     0x88BA
344 #define GL_BUFFER_ACCESS                  0x88BB
345 #define GL_BUFFER_MAPPED                  0x88BC
346 #define GL_BUFFER_MAP_POINTER             0x88BD
347 #define GL_STREAM_DRAW                    0x88E0
348 #define GL_STREAM_READ                    0x88E1
349 #define GL_STREAM_COPY                    0x88E2
350 #define GL_STATIC_DRAW                    0x88E4
351 #define GL_STATIC_READ                    0x88E5
352 #define GL_STATIC_COPY                    0x88E6
353 #define GL_DYNAMIC_DRAW                   0x88E8
354 #define GL_DYNAMIC_READ                   0x88E9
355 #define GL_DYNAMIC_COPY                   0x88EA
356 #define GL_SAMPLES_PASSED                 0x8914
357 #endif
358
359 #ifndef GL_VERSION_1_5_DEPRECATED
360 #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
361 #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
362 #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
363 #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
364 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
365 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
366 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
367 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
368 #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
369 #define GL_FOG_COORD_SRC                  0x8450
370 #define GL_FOG_COORD                      0x8451
371 #define GL_CURRENT_FOG_COORD              0x8453
372 #define GL_FOG_COORD_ARRAY_TYPE           0x8454
373 #define GL_FOG_COORD_ARRAY_STRIDE         0x8455
374 #define GL_FOG_COORD_ARRAY_POINTER        0x8456
375 #define GL_FOG_COORD_ARRAY                0x8457
376 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
377 #define GL_SRC0_RGB                       0x8580
378 #define GL_SRC1_RGB                       0x8581
379 #define GL_SRC2_RGB                       0x8582
380 #define GL_SRC0_ALPHA                     0x8588
381 #define GL_SRC1_ALPHA                     0x8589
382 #define GL_SRC2_ALPHA                     0x858A
383 #endif
384
385 #ifndef GL_VERSION_2_0
386 #define GL_BLEND_EQUATION_RGB             0x8009
387 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
388 #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
389 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
390 #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
391 #define GL_CURRENT_VERTEX_ATTRIB          0x8626
392 #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
393 #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
394 #define GL_STENCIL_BACK_FUNC              0x8800
395 #define GL_STENCIL_BACK_FAIL              0x8801
396 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
397 #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
398 #define GL_MAX_DRAW_BUFFERS               0x8824
399 #define GL_DRAW_BUFFER0                   0x8825
400 #define GL_DRAW_BUFFER1                   0x8826
401 #define GL_DRAW_BUFFER2                   0x8827
402 #define GL_DRAW_BUFFER3                   0x8828
403 #define GL_DRAW_BUFFER4                   0x8829
404 #define GL_DRAW_BUFFER5                   0x882A
405 #define GL_DRAW_BUFFER6                   0x882B
406 #define GL_DRAW_BUFFER7                   0x882C
407 #define GL_DRAW_BUFFER8                   0x882D
408 #define GL_DRAW_BUFFER9                   0x882E
409 #define GL_DRAW_BUFFER10                  0x882F
410 #define GL_DRAW_BUFFER11                  0x8830
411 #define GL_DRAW_BUFFER12                  0x8831
412 #define GL_DRAW_BUFFER13                  0x8832
413 #define GL_DRAW_BUFFER14                  0x8833
414 #define GL_DRAW_BUFFER15                  0x8834
415 #define GL_BLEND_EQUATION_ALPHA           0x883D
416 #define GL_MAX_VERTEX_ATTRIBS             0x8869
417 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
418 #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
419 #define GL_FRAGMENT_SHADER                0x8B30
420 #define GL_VERTEX_SHADER                  0x8B31
421 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
422 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
423 #define GL_MAX_VARYING_FLOATS             0x8B4B
424 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
425 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
426 #define GL_SHADER_TYPE                    0x8B4F
427 #define GL_FLOAT_VEC2                     0x8B50
428 #define GL_FLOAT_VEC3                     0x8B51
429 #define GL_FLOAT_VEC4                     0x8B52
430 #define GL_INT_VEC2                       0x8B53
431 #define GL_INT_VEC3                       0x8B54
432 #define GL_INT_VEC4                       0x8B55
433 #define GL_BOOL                           0x8B56
434 #define GL_BOOL_VEC2                      0x8B57
435 #define GL_BOOL_VEC3                      0x8B58
436 #define GL_BOOL_VEC4                      0x8B59
437 #define GL_FLOAT_MAT2                     0x8B5A
438 #define GL_FLOAT_MAT3                     0x8B5B
439 #define GL_FLOAT_MAT4                     0x8B5C
440 #define GL_SAMPLER_1D                     0x8B5D
441 #define GL_SAMPLER_2D                     0x8B5E
442 #define GL_SAMPLER_3D                     0x8B5F
443 #define GL_SAMPLER_CUBE                   0x8B60
444 #define GL_SAMPLER_1D_SHADOW              0x8B61
445 #define GL_SAMPLER_2D_SHADOW              0x8B62
446 #define GL_DELETE_STATUS                  0x8B80
447 #define GL_COMPILE_STATUS                 0x8B81
448 #define GL_LINK_STATUS                    0x8B82
449 #define GL_VALIDATE_STATUS                0x8B83
450 #define GL_INFO_LOG_LENGTH                0x8B84
451 #define GL_ATTACHED_SHADERS               0x8B85
452 #define GL_ACTIVE_UNIFORMS                0x8B86
453 #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
454 #define GL_SHADER_SOURCE_LENGTH           0x8B88
455 #define GL_ACTIVE_ATTRIBUTES              0x8B89
456 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
457 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
458 #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
459 #define GL_CURRENT_PROGRAM                0x8B8D
460 #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
461 #define GL_LOWER_LEFT                     0x8CA1
462 #define GL_UPPER_LEFT                     0x8CA2
463 #define GL_STENCIL_BACK_REF               0x8CA3
464 #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
465 #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
466 #endif
467
468 #ifndef GL_VERSION_2_0_DEPRECATED
469 #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
470 #define GL_POINT_SPRITE                   0x8861
471 #define GL_COORD_REPLACE                  0x8862
472 #define GL_MAX_TEXTURE_COORDS             0x8871
473 #endif
474
475 #ifndef GL_VERSION_2_1
476 #define GL_PIXEL_PACK_BUFFER              0x88EB
477 #define GL_PIXEL_UNPACK_BUFFER            0x88EC
478 #define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
479 #define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
480 #define GL_FLOAT_MAT2x3                   0x8B65
481 #define GL_FLOAT_MAT2x4                   0x8B66
482 #define GL_FLOAT_MAT3x2                   0x8B67
483 #define GL_FLOAT_MAT3x4                   0x8B68
484 #define GL_FLOAT_MAT4x2                   0x8B69
485 #define GL_FLOAT_MAT4x3                   0x8B6A
486 #define GL_SRGB                           0x8C40
487 #define GL_SRGB8                          0x8C41
488 #define GL_SRGB_ALPHA                     0x8C42
489 #define GL_SRGB8_ALPHA8                   0x8C43
490 #define GL_COMPRESSED_SRGB                0x8C48
491 #define GL_COMPRESSED_SRGB_ALPHA          0x8C49
492 #endif
493
494 #ifndef GL_VERSION_2_1_DEPRECATED
495 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
496 #define GL_SLUMINANCE_ALPHA               0x8C44
497 #define GL_SLUMINANCE8_ALPHA8             0x8C45
498 #define GL_SLUMINANCE                     0x8C46
499 #define GL_SLUMINANCE8                    0x8C47
500 #define GL_COMPRESSED_SLUMINANCE          0x8C4A
501 #define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
502 #endif
503
504 #ifndef GL_VERSION_3_0
505 #define GL_COMPARE_REF_TO_TEXTURE         0x884E
506 #define GL_CLIP_DISTANCE0                 0x3000
507 #define GL_CLIP_DISTANCE1                 0x3001
508 #define GL_CLIP_DISTANCE2                 0x3002
509 #define GL_CLIP_DISTANCE3                 0x3003
510 #define GL_CLIP_DISTANCE4                 0x3004
511 #define GL_CLIP_DISTANCE5                 0x3005
512 #define GL_CLIP_DISTANCE6                 0x3006
513 #define GL_CLIP_DISTANCE7                 0x3007
514 #define GL_MAX_CLIP_DISTANCES             0x0D32
515 #define GL_MAJOR_VERSION                  0x821B
516 #define GL_MINOR_VERSION                  0x821C
517 #define GL_NUM_EXTENSIONS                 0x821D
518 #define GL_CONTEXT_FLAGS                  0x821E
519 #define GL_COMPRESSED_RED                 0x8225
520 #define GL_COMPRESSED_RG                  0x8226
521 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
522 #define GL_RGBA32F                        0x8814
523 #define GL_RGB32F                         0x8815
524 #define GL_RGBA16F                        0x881A
525 #define GL_RGB16F                         0x881B
526 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
527 #define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
528 #define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
529 #define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
530 #define GL_CLAMP_READ_COLOR               0x891C
531 #define GL_FIXED_ONLY                     0x891D
532 #define GL_MAX_VARYING_COMPONENTS         0x8B4B
533 #define GL_TEXTURE_1D_ARRAY               0x8C18
534 #define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
535 #define GL_TEXTURE_2D_ARRAY               0x8C1A
536 #define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
537 #define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
538 #define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
539 #define GL_R11F_G11F_B10F                 0x8C3A
540 #define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
541 #define GL_RGB9_E5                        0x8C3D
542 #define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
543 #define GL_TEXTURE_SHARED_SIZE            0x8C3F
544 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
545 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
546 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
547 #define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
548 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
549 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
550 #define GL_PRIMITIVES_GENERATED           0x8C87
551 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
552 #define GL_RASTERIZER_DISCARD             0x8C89
553 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
554 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
555 #define GL_INTERLEAVED_ATTRIBS            0x8C8C
556 #define GL_SEPARATE_ATTRIBS               0x8C8D
557 #define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
558 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
559 #define GL_RGBA32UI                       0x8D70
560 #define GL_RGB32UI                        0x8D71
561 #define GL_RGBA16UI                       0x8D76
562 #define GL_RGB16UI                        0x8D77
563 #define GL_RGBA8UI                        0x8D7C
564 #define GL_RGB8UI                         0x8D7D
565 #define GL_RGBA32I                        0x8D82
566 #define GL_RGB32I                         0x8D83
567 #define GL_RGBA16I                        0x8D88
568 #define GL_RGB16I                         0x8D89
569 #define GL_RGBA8I                         0x8D8E
570 #define GL_RGB8I                          0x8D8F
571 #define GL_RED_INTEGER                    0x8D94
572 #define GL_GREEN_INTEGER                  0x8D95
573 #define GL_BLUE_INTEGER                   0x8D96
574 #define GL_RGB_INTEGER                    0x8D98
575 #define GL_RGBA_INTEGER                   0x8D99
576 #define GL_BGR_INTEGER                    0x8D9A
577 #define GL_BGRA_INTEGER                   0x8D9B
578 #define GL_SAMPLER_1D_ARRAY               0x8DC0
579 #define GL_SAMPLER_2D_ARRAY               0x8DC1
580 #define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
581 #define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
582 #define GL_SAMPLER_CUBE_SHADOW            0x8DC5
583 #define GL_UNSIGNED_INT_VEC2              0x8DC6
584 #define GL_UNSIGNED_INT_VEC3              0x8DC7
585 #define GL_UNSIGNED_INT_VEC4              0x8DC8
586 #define GL_INT_SAMPLER_1D                 0x8DC9
587 #define GL_INT_SAMPLER_2D                 0x8DCA
588 #define GL_INT_SAMPLER_3D                 0x8DCB
589 #define GL_INT_SAMPLER_CUBE               0x8DCC
590 #define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
591 #define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
592 #define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
593 #define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
594 #define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
595 #define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
596 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
597 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
598 #define GL_QUERY_WAIT                     0x8E13
599 #define GL_QUERY_NO_WAIT                  0x8E14
600 #define GL_QUERY_BY_REGION_WAIT           0x8E15
601 #define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
602 #define GL_BUFFER_ACCESS_FLAGS            0x911F
603 #define GL_BUFFER_MAP_LENGTH              0x9120
604 #define GL_BUFFER_MAP_OFFSET              0x9121
605 /* Reuse tokens from ARB_depth_buffer_float */
606 /* reuse GL_DEPTH_COMPONENT32F */
607 /* reuse GL_DEPTH32F_STENCIL8 */
608 /* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
609 /* Reuse tokens from ARB_framebuffer_object */
610 /* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
611 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
612 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
613 /* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
614 /* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
615 /* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
616 /* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
617 /* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
618 /* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
619 /* reuse GL_FRAMEBUFFER_DEFAULT */
620 /* reuse GL_FRAMEBUFFER_UNDEFINED */
621 /* reuse GL_DEPTH_STENCIL_ATTACHMENT */
622 /* reuse GL_INDEX */
623 /* reuse GL_MAX_RENDERBUFFER_SIZE */
624 /* reuse GL_DEPTH_STENCIL */
625 /* reuse GL_UNSIGNED_INT_24_8 */
626 /* reuse GL_DEPTH24_STENCIL8 */
627 /* reuse GL_TEXTURE_STENCIL_SIZE */
628 /* reuse GL_TEXTURE_RED_TYPE */
629 /* reuse GL_TEXTURE_GREEN_TYPE */
630 /* reuse GL_TEXTURE_BLUE_TYPE */
631 /* reuse GL_TEXTURE_ALPHA_TYPE */
632 /* reuse GL_TEXTURE_DEPTH_TYPE */
633 /* reuse GL_UNSIGNED_NORMALIZED */
634 /* reuse GL_FRAMEBUFFER_BINDING */
635 /* reuse GL_DRAW_FRAMEBUFFER_BINDING */
636 /* reuse GL_RENDERBUFFER_BINDING */
637 /* reuse GL_READ_FRAMEBUFFER */
638 /* reuse GL_DRAW_FRAMEBUFFER */
639 /* reuse GL_READ_FRAMEBUFFER_BINDING */
640 /* reuse GL_RENDERBUFFER_SAMPLES */
641 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
642 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
643 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
644 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
645 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
646 /* reuse GL_FRAMEBUFFER_COMPLETE */
647 /* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
648 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
649 /* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
650 /* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
651 /* reuse GL_FRAMEBUFFER_UNSUPPORTED */
652 /* reuse GL_MAX_COLOR_ATTACHMENTS */
653 /* reuse GL_COLOR_ATTACHMENT0 */
654 /* reuse GL_COLOR_ATTACHMENT1 */
655 /* reuse GL_COLOR_ATTACHMENT2 */
656 /* reuse GL_COLOR_ATTACHMENT3 */
657 /* reuse GL_COLOR_ATTACHMENT4 */
658 /* reuse GL_COLOR_ATTACHMENT5 */
659 /* reuse GL_COLOR_ATTACHMENT6 */
660 /* reuse GL_COLOR_ATTACHMENT7 */
661 /* reuse GL_COLOR_ATTACHMENT8 */
662 /* reuse GL_COLOR_ATTACHMENT9 */
663 /* reuse GL_COLOR_ATTACHMENT10 */
664 /* reuse GL_COLOR_ATTACHMENT11 */
665 /* reuse GL_COLOR_ATTACHMENT12 */
666 /* reuse GL_COLOR_ATTACHMENT13 */
667 /* reuse GL_COLOR_ATTACHMENT14 */
668 /* reuse GL_COLOR_ATTACHMENT15 */
669 /* reuse GL_DEPTH_ATTACHMENT */
670 /* reuse GL_STENCIL_ATTACHMENT */
671 /* reuse GL_FRAMEBUFFER */
672 /* reuse GL_RENDERBUFFER */
673 /* reuse GL_RENDERBUFFER_WIDTH */
674 /* reuse GL_RENDERBUFFER_HEIGHT */
675 /* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
676 /* reuse GL_STENCIL_INDEX1 */
677 /* reuse GL_STENCIL_INDEX4 */
678 /* reuse GL_STENCIL_INDEX8 */
679 /* reuse GL_STENCIL_INDEX16 */
680 /* reuse GL_RENDERBUFFER_RED_SIZE */
681 /* reuse GL_RENDERBUFFER_GREEN_SIZE */
682 /* reuse GL_RENDERBUFFER_BLUE_SIZE */
683 /* reuse GL_RENDERBUFFER_ALPHA_SIZE */
684 /* reuse GL_RENDERBUFFER_DEPTH_SIZE */
685 /* reuse GL_RENDERBUFFER_STENCIL_SIZE */
686 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
687 /* reuse GL_MAX_SAMPLES */
688 /* Reuse tokens from ARB_framebuffer_sRGB */
689 /* reuse GL_FRAMEBUFFER_SRGB */
690 /* Reuse tokens from ARB_half_float_vertex */
691 /* reuse GL_HALF_FLOAT */
692 /* Reuse tokens from ARB_map_buffer_range */
693 /* reuse GL_MAP_READ_BIT */
694 /* reuse GL_MAP_WRITE_BIT */
695 /* reuse GL_MAP_INVALIDATE_RANGE_BIT */
696 /* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
697 /* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
698 /* reuse GL_MAP_UNSYNCHRONIZED_BIT */
699 /* Reuse tokens from ARB_texture_compression_rgtc */
700 /* reuse GL_COMPRESSED_RED_RGTC1 */
701 /* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
702 /* reuse GL_COMPRESSED_RG_RGTC2 */
703 /* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
704 /* Reuse tokens from ARB_texture_rg */
705 /* reuse GL_RG */
706 /* reuse GL_RG_INTEGER */
707 /* reuse GL_R8 */
708 /* reuse GL_R16 */
709 /* reuse GL_RG8 */
710 /* reuse GL_RG16 */
711 /* reuse GL_R16F */
712 /* reuse GL_R32F */
713 /* reuse GL_RG16F */
714 /* reuse GL_RG32F */
715 /* reuse GL_R8I */
716 /* reuse GL_R8UI */
717 /* reuse GL_R16I */
718 /* reuse GL_R16UI */
719 /* reuse GL_R32I */
720 /* reuse GL_R32UI */
721 /* reuse GL_RG8I */
722 /* reuse GL_RG8UI */
723 /* reuse GL_RG16I */
724 /* reuse GL_RG16UI */
725 /* reuse GL_RG32I */
726 /* reuse GL_RG32UI */
727 /* Reuse tokens from ARB_vertex_array_object */
728 /* reuse GL_VERTEX_ARRAY_BINDING */
729 #endif
730
731 #ifndef GL_VERSION_3_0_DEPRECATED
732 #define GL_CLAMP_VERTEX_COLOR             0x891A
733 #define GL_CLAMP_FRAGMENT_COLOR           0x891B
734 #define GL_ALPHA_INTEGER                  0x8D97
735 /* Reuse tokens from ARB_framebuffer_object */
736 /* reuse GL_TEXTURE_LUMINANCE_TYPE */
737 /* reuse GL_TEXTURE_INTENSITY_TYPE */
738 #endif
739
740 #ifndef GL_VERSION_3_1
741 #define GL_SAMPLER_2D_RECT                0x8B63
742 #define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
743 #define GL_SAMPLER_BUFFER                 0x8DC2
744 #define GL_INT_SAMPLER_2D_RECT            0x8DCD
745 #define GL_INT_SAMPLER_BUFFER             0x8DD0
746 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
747 #define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
748 #define GL_TEXTURE_BUFFER                 0x8C2A
749 #define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
750 #define GL_TEXTURE_BINDING_BUFFER         0x8C2C
751 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
752 #define GL_TEXTURE_BUFFER_FORMAT          0x8C2E
753 #define GL_TEXTURE_RECTANGLE              0x84F5
754 #define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
755 #define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
756 #define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
757 #define GL_RED_SNORM                      0x8F90
758 #define GL_RG_SNORM                       0x8F91
759 #define GL_RGB_SNORM                      0x8F92
760 #define GL_RGBA_SNORM                     0x8F93
761 #define GL_R8_SNORM                       0x8F94
762 #define GL_RG8_SNORM                      0x8F95
763 #define GL_RGB8_SNORM                     0x8F96
764 #define GL_RGBA8_SNORM                    0x8F97
765 #define GL_R16_SNORM                      0x8F98
766 #define GL_RG16_SNORM                     0x8F99
767 #define GL_RGB16_SNORM                    0x8F9A
768 #define GL_RGBA16_SNORM                   0x8F9B
769 #define GL_SIGNED_NORMALIZED              0x8F9C
770 #define GL_PRIMITIVE_RESTART              0x8F9D
771 #define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
772 /* Reuse tokens from ARB_copy_buffer */
773 /* reuse GL_COPY_READ_BUFFER */
774 /* reuse GL_COPY_WRITE_BUFFER */
775 /* Reuse tokens from ARB_draw_instanced (none) */
776 /* Reuse tokens from ARB_uniform_buffer_object */
777 /* reuse GL_UNIFORM_BUFFER */
778 /* reuse GL_UNIFORM_BUFFER_BINDING */
779 /* reuse GL_UNIFORM_BUFFER_START */
780 /* reuse GL_UNIFORM_BUFFER_SIZE */
781 /* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
782 /* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
783 /* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
784 /* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
785 /* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
786 /* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
787 /* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
788 /* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
789 /* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
790 /* reuse GL_ACTIVE_UNIFORM_BLOCKS */
791 /* reuse GL_UNIFORM_TYPE */
792 /* reuse GL_UNIFORM_SIZE */
793 /* reuse GL_UNIFORM_NAME_LENGTH */
794 /* reuse GL_UNIFORM_BLOCK_INDEX */
795 /* reuse GL_UNIFORM_OFFSET */
796 /* reuse GL_UNIFORM_ARRAY_STRIDE */
797 /* reuse GL_UNIFORM_MATRIX_STRIDE */
798 /* reuse GL_UNIFORM_IS_ROW_MAJOR */
799 /* reuse GL_UNIFORM_BLOCK_BINDING */
800 /* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
801 /* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
802 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
803 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
804 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
805 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
806 /* reuse GL_INVALID_INDEX */
807 #endif
808
809 #ifndef GL_VERSION_3_2
810 #define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
811 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
812 #define GL_LINES_ADJACENCY                0x000A
813 #define GL_LINE_STRIP_ADJACENCY           0x000B
814 #define GL_TRIANGLES_ADJACENCY            0x000C
815 #define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
816 #define GL_PROGRAM_POINT_SIZE             0x8642
817 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
818 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
819 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
820 #define GL_GEOMETRY_SHADER                0x8DD9
821 #define GL_GEOMETRY_VERTICES_OUT          0x8916
822 #define GL_GEOMETRY_INPUT_TYPE            0x8917
823 #define GL_GEOMETRY_OUTPUT_TYPE           0x8918
824 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
825 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
826 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
827 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
828 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
829 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
830 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
831 #define GL_CONTEXT_PROFILE_MASK           0x9126
832 /* reuse GL_MAX_VARYING_COMPONENTS */
833 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
834 /* Reuse tokens from ARB_depth_clamp */
835 /* reuse GL_DEPTH_CLAMP */
836 /* Reuse tokens from ARB_draw_elements_base_vertex (none) */
837 /* Reuse tokens from ARB_fragment_coord_conventions (none) */
838 /* Reuse tokens from ARB_provoking_vertex */
839 /* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
840 /* reuse GL_FIRST_VERTEX_CONVENTION */
841 /* reuse GL_LAST_VERTEX_CONVENTION */
842 /* reuse GL_PROVOKING_VERTEX */
843 /* Reuse tokens from ARB_seamless_cube_map */
844 /* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
845 /* Reuse tokens from ARB_sync */
846 /* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
847 /* reuse GL_OBJECT_TYPE */
848 /* reuse GL_SYNC_CONDITION */
849 /* reuse GL_SYNC_STATUS */
850 /* reuse GL_SYNC_FLAGS */
851 /* reuse GL_SYNC_FENCE */
852 /* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
853 /* reuse GL_UNSIGNALED */
854 /* reuse GL_SIGNALED */
855 /* reuse GL_ALREADY_SIGNALED */
856 /* reuse GL_TIMEOUT_EXPIRED */
857 /* reuse GL_CONDITION_SATISFIED */
858 /* reuse GL_WAIT_FAILED */
859 /* reuse GL_TIMEOUT_IGNORED */
860 /* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
861 /* reuse GL_TIMEOUT_IGNORED */
862 /* Reuse tokens from ARB_texture_multisample */
863 /* reuse GL_SAMPLE_POSITION */
864 /* reuse GL_SAMPLE_MASK */
865 /* reuse GL_SAMPLE_MASK_VALUE */
866 /* reuse GL_MAX_SAMPLE_MASK_WORDS */
867 /* reuse GL_TEXTURE_2D_MULTISAMPLE */
868 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
869 /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
870 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
871 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
872 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
873 /* reuse GL_TEXTURE_SAMPLES */
874 /* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
875 /* reuse GL_SAMPLER_2D_MULTISAMPLE */
876 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
877 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
878 /* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
879 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
880 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
881 /* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
882 /* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
883 /* reuse GL_MAX_INTEGER_SAMPLES */
884 /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
885 #endif
886
887 #ifndef GL_VERSION_3_3
888 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR    0x88FE
889 /* Reuse tokens from ARB_blend_func_extended */
890 /* reuse GL_SRC1_COLOR */
891 /* reuse GL_ONE_MINUS_SRC1_COLOR */
892 /* reuse GL_ONE_MINUS_SRC1_ALPHA */
893 /* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */
894 /* Reuse tokens from ARB_explicit_attrib_location (none) */
895 /* Reuse tokens from ARB_occlusion_query2 */
896 /* reuse GL_ANY_SAMPLES_PASSED */
897 /* Reuse tokens from ARB_sampler_objects */
898 /* reuse GL_SAMPLER_BINDING */
899 /* Reuse tokens from ARB_shader_bit_encoding (none) */
900 /* Reuse tokens from ARB_texture_rgb10_a2ui */
901 /* reuse GL_RGB10_A2UI */
902 /* Reuse tokens from ARB_texture_swizzle */
903 /* reuse GL_TEXTURE_SWIZZLE_R */
904 /* reuse GL_TEXTURE_SWIZZLE_G */
905 /* reuse GL_TEXTURE_SWIZZLE_B */
906 /* reuse GL_TEXTURE_SWIZZLE_A */
907 /* reuse GL_TEXTURE_SWIZZLE_RGBA */
908 /* Reuse tokens from ARB_timer_query */
909 /* reuse GL_TIME_ELAPSED */
910 /* reuse GL_TIMESTAMP */
911 /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */
912 /* reuse GL_INT_2_10_10_10_REV */
913 #endif
914
915 #ifndef GL_VERSION_4_0
916 #define GL_SAMPLE_SHADING                 0x8C36
917 #define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
918 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
919 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
920 #define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
921 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
922 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
923 #define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
924 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
925 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
926 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
927 /* Reuse tokens from ARB_texture_query_lod (none) */
928 /* Reuse tokens from ARB_draw_buffers_blend (none) */
929 /* Reuse tokens from ARB_draw_indirect */
930 /* reuse GL_DRAW_INDIRECT_BUFFER */
931 /* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */
932 /* Reuse tokens from ARB_gpu_shader5 */
933 /* reuse GL_GEOMETRY_SHADER_INVOCATIONS */
934 /* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */
935 /* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */
936 /* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */
937 /* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */
938 /* reuse GL_MAX_VERTEX_STREAMS */
939 /* Reuse tokens from ARB_gpu_shader_fp64 */
940 /* reuse GL_DOUBLE_VEC2 */
941 /* reuse GL_DOUBLE_VEC3 */
942 /* reuse GL_DOUBLE_VEC4 */
943 /* reuse GL_DOUBLE_MAT2 */
944 /* reuse GL_DOUBLE_MAT3 */
945 /* reuse GL_DOUBLE_MAT4 */
946 /* reuse GL_DOUBLE_MAT2x3 */
947 /* reuse GL_DOUBLE_MAT2x4 */
948 /* reuse GL_DOUBLE_MAT3x2 */
949 /* reuse GL_DOUBLE_MAT3x4 */
950 /* reuse GL_DOUBLE_MAT4x2 */
951 /* reuse GL_DOUBLE_MAT4x3 */
952 /* Reuse tokens from ARB_shader_subroutine */
953 /* reuse GL_ACTIVE_SUBROUTINES */
954 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */
955 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */
956 /* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */
957 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */
958 /* reuse GL_MAX_SUBROUTINES */
959 /* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */
960 /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
961 /* reuse GL_COMPATIBLE_SUBROUTINES */
962 /* Reuse tokens from ARB_tessellation_shader */
963 /* reuse GL_PATCHES */
964 /* reuse GL_PATCH_VERTICES */
965 /* reuse GL_PATCH_DEFAULT_INNER_LEVEL */
966 /* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */
967 /* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */
968 /* reuse GL_TESS_GEN_MODE */
969 /* reuse GL_TESS_GEN_SPACING */
970 /* reuse GL_TESS_GEN_VERTEX_ORDER */
971 /* reuse GL_TESS_GEN_POINT_MODE */
972 /* reuse GL_ISOLINES */
973 /* reuse GL_FRACTIONAL_ODD */
974 /* reuse GL_FRACTIONAL_EVEN */
975 /* reuse GL_MAX_PATCH_VERTICES */
976 /* reuse GL_MAX_TESS_GEN_LEVEL */
977 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */
978 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */
979 /* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */
980 /* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */
981 /* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */
982 /* reuse GL_MAX_TESS_PATCH_COMPONENTS */
983 /* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */
984 /* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */
985 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */
986 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */
987 /* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */
988 /* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */
989 /* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */
990 /* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */
991 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */
992 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */
993 /* reuse GL_TESS_EVALUATION_SHADER */
994 /* reuse GL_TESS_CONTROL_SHADER */
995 /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */
996 /* Reuse tokens from ARB_transform_feedback2 */
997 /* reuse GL_TRANSFORM_FEEDBACK */
998 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */
999 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */
1000 /* reuse GL_TRANSFORM_FEEDBACK_BINDING */
1001 /* Reuse tokens from ARB_transform_feedback3 */
1002 /* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */
1003 /* reuse GL_MAX_VERTEX_STREAMS */
1004 #endif
1005
1006 #ifndef GL_VERSION_4_1
1007 /* Reuse tokens from ARB_ES2_compatibility */
1008 /* reuse GL_FIXED */
1009 /* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */
1010 /* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */
1011 /* reuse GL_LOW_FLOAT */
1012 /* reuse GL_MEDIUM_FLOAT */
1013 /* reuse GL_HIGH_FLOAT */
1014 /* reuse GL_LOW_INT */
1015 /* reuse GL_MEDIUM_INT */
1016 /* reuse GL_HIGH_INT */
1017 /* reuse GL_SHADER_COMPILER */
1018 /* reuse GL_NUM_SHADER_BINARY_FORMATS */
1019 /* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */
1020 /* reuse GL_MAX_VARYING_VECTORS */
1021 /* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */
1022 /* Reuse tokens from ARB_get_program_binary */
1023 /* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */
1024 /* reuse GL_PROGRAM_BINARY_LENGTH */
1025 /* reuse GL_NUM_PROGRAM_BINARY_FORMATS */
1026 /* reuse GL_PROGRAM_BINARY_FORMATS */
1027 /* Reuse tokens from ARB_separate_shader_objects */
1028 /* reuse GL_VERTEX_SHADER_BIT */
1029 /* reuse GL_FRAGMENT_SHADER_BIT */
1030 /* reuse GL_GEOMETRY_SHADER_BIT */
1031 /* reuse GL_TESS_CONTROL_SHADER_BIT */
1032 /* reuse GL_TESS_EVALUATION_SHADER_BIT */
1033 /* reuse GL_ALL_SHADER_BITS */
1034 /* reuse GL_PROGRAM_SEPARABLE */
1035 /* reuse GL_ACTIVE_PROGRAM */
1036 /* reuse GL_PROGRAM_PIPELINE_BINDING */
1037 /* Reuse tokens from ARB_shader_precision (none) */
1038 /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */
1039 /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */
1040 /* reuse GL_MAX_VIEWPORTS */
1041 /* reuse GL_VIEWPORT_SUBPIXEL_BITS */
1042 /* reuse GL_VIEWPORT_BOUNDS_RANGE */
1043 /* reuse GL_LAYER_PROVOKING_VERTEX */
1044 /* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */
1045 /* reuse GL_UNDEFINED_VERTEX */
1046 #endif
1047
1048 #ifndef GL_VERSION_4_2
1049 /* Reuse tokens from ARB_base_instance (none) */
1050 /* Reuse tokens from ARB_shading_language_420pack (none) */
1051 /* Reuse tokens from ARB_transform_feedback_instanced (none) */
1052 /* Reuse tokens from ARB_compressed_texture_pixel_storage */
1053 /* reuse GL_UNPACK_COMPRESSED_BLOCK_WIDTH */
1054 /* reuse GL_UNPACK_COMPRESSED_BLOCK_HEIGHT */
1055 /* reuse GL_UNPACK_COMPRESSED_BLOCK_DEPTH */
1056 /* reuse GL_UNPACK_COMPRESSED_BLOCK_SIZE */
1057 /* reuse GL_PACK_COMPRESSED_BLOCK_WIDTH */
1058 /* reuse GL_PACK_COMPRESSED_BLOCK_HEIGHT */
1059 /* reuse GL_PACK_COMPRESSED_BLOCK_DEPTH */
1060 /* reuse GL_PACK_COMPRESSED_BLOCK_SIZE */
1061 /* Reuse tokens from ARB_conservative_depth (none) */
1062 /* Reuse tokens from ARB_internalformat_query */
1063 /* reuse GL_NUM_SAMPLE_COUNTS */
1064 /* Reuse tokens from ARB_map_buffer_alignment */
1065 /* reuse GL_MIN_MAP_BUFFER_ALIGNMENT */
1066 /* Reuse tokens from ARB_shader_atomic_counters */
1067 /* reuse GL_ATOMIC_COUNTER_BUFFER */
1068 /* reuse GL_ATOMIC_COUNTER_BUFFER_BINDING */
1069 /* reuse GL_ATOMIC_COUNTER_BUFFER_START */
1070 /* reuse GL_ATOMIC_COUNTER_BUFFER_SIZE */
1071 /* reuse GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE */
1072 /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS */
1073 /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES */
1074 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER */
1075 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER */
1076 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER */
1077 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER */
1078 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER */
1079 /* reuse GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS */
1080 /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS */
1081 /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS */
1082 /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS */
1083 /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS */
1084 /* reuse GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS */
1085 /* reuse GL_MAX_VERTEX_ATOMIC_COUNTERS */
1086 /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS */
1087 /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS */
1088 /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTERS */
1089 /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTERS */
1090 /* reuse GL_MAX_COMBINED_ATOMIC_COUNTERS */
1091 /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE */
1092 /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS */
1093 /* reuse GL_ACTIVE_ATOMIC_COUNTER_BUFFERS */
1094 /* reuse GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX */
1095 /* reuse GL_UNSIGNED_INT_ATOMIC_COUNTER */
1096 /* Reuse tokens from ARB_shader_image_load_store */
1097 /* reuse GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT */
1098 /* reuse GL_ELEMENT_ARRAY_BARRIER_BIT */
1099 /* reuse GL_UNIFORM_BARRIER_BIT */
1100 /* reuse GL_TEXTURE_FETCH_BARRIER_BIT */
1101 /* reuse GL_SHADER_IMAGE_ACCESS_BARRIER_BIT */
1102 /* reuse GL_COMMAND_BARRIER_BIT */
1103 /* reuse GL_PIXEL_BUFFER_BARRIER_BIT */
1104 /* reuse GL_TEXTURE_UPDATE_BARRIER_BIT */
1105 /* reuse GL_BUFFER_UPDATE_BARRIER_BIT */
1106 /* reuse GL_FRAMEBUFFER_BARRIER_BIT */
1107 /* reuse GL_TRANSFORM_FEEDBACK_BARRIER_BIT */
1108 /* reuse GL_ATOMIC_COUNTER_BARRIER_BIT */
1109 /* reuse GL_ALL_BARRIER_BITS */
1110 /* reuse GL_MAX_IMAGE_UNITS */
1111 /* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
1112 /* reuse GL_IMAGE_BINDING_NAME */
1113 /* reuse GL_IMAGE_BINDING_LEVEL */
1114 /* reuse GL_IMAGE_BINDING_LAYERED */
1115 /* reuse GL_IMAGE_BINDING_LAYER */
1116 /* reuse GL_IMAGE_BINDING_ACCESS */
1117 /* reuse GL_IMAGE_1D */
1118 /* reuse GL_IMAGE_2D */
1119 /* reuse GL_IMAGE_3D */
1120 /* reuse GL_IMAGE_2D_RECT */
1121 /* reuse GL_IMAGE_CUBE */
1122 /* reuse GL_IMAGE_BUFFER */
1123 /* reuse GL_IMAGE_1D_ARRAY */
1124 /* reuse GL_IMAGE_2D_ARRAY */
1125 /* reuse GL_IMAGE_CUBE_MAP_ARRAY */
1126 /* reuse GL_IMAGE_2D_MULTISAMPLE */
1127 /* reuse GL_IMAGE_2D_MULTISAMPLE_ARRAY */
1128 /* reuse GL_INT_IMAGE_1D */
1129 /* reuse GL_INT_IMAGE_2D */
1130 /* reuse GL_INT_IMAGE_3D */
1131 /* reuse GL_INT_IMAGE_2D_RECT */
1132 /* reuse GL_INT_IMAGE_CUBE */
1133 /* reuse GL_INT_IMAGE_BUFFER */
1134 /* reuse GL_INT_IMAGE_1D_ARRAY */
1135 /* reuse GL_INT_IMAGE_2D_ARRAY */
1136 /* reuse GL_INT_IMAGE_CUBE_MAP_ARRAY */
1137 /* reuse GL_INT_IMAGE_2D_MULTISAMPLE */
1138 /* reuse GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
1139 /* reuse GL_UNSIGNED_INT_IMAGE_1D */
1140 /* reuse GL_UNSIGNED_INT_IMAGE_2D */
1141 /* reuse GL_UNSIGNED_INT_IMAGE_3D */
1142 /* reuse GL_UNSIGNED_INT_IMAGE_2D_RECT */
1143 /* reuse GL_UNSIGNED_INT_IMAGE_CUBE */
1144 /* reuse GL_UNSIGNED_INT_IMAGE_BUFFER */
1145 /* reuse GL_UNSIGNED_INT_IMAGE_1D_ARRAY */
1146 /* reuse GL_UNSIGNED_INT_IMAGE_2D_ARRAY */
1147 /* reuse GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY */
1148 /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE */
1149 /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
1150 /* reuse GL_MAX_IMAGE_SAMPLES */
1151 /* reuse GL_IMAGE_BINDING_FORMAT */
1152 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
1153 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE */
1154 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS */
1155 /* reuse GL_MAX_VERTEX_IMAGE_UNIFORMS */
1156 /* reuse GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS */
1157 /* reuse GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS */
1158 /* reuse GL_MAX_GEOMETRY_IMAGE_UNIFORMS */
1159 /* reuse GL_MAX_FRAGMENT_IMAGE_UNIFORMS */
1160 /* reuse GL_MAX_COMBINED_IMAGE_UNIFORMS */
1161 /* Reuse tokens from ARB_shading_language_packing (none) */
1162 /* Reuse tokens from ARB_texture_storage */
1163 /* reuse GL_TEXTURE_IMMUTABLE_FORMAT */
1164 #endif
1165
1166 #ifndef GL_ARB_multitexture
1167 #define GL_TEXTURE0_ARB                   0x84C0
1168 #define GL_TEXTURE1_ARB                   0x84C1
1169 #define GL_TEXTURE2_ARB                   0x84C2
1170 #define GL_TEXTURE3_ARB                   0x84C3
1171 #define GL_TEXTURE4_ARB                   0x84C4
1172 #define GL_TEXTURE5_ARB                   0x84C5
1173 #define GL_TEXTURE6_ARB                   0x84C6
1174 #define GL_TEXTURE7_ARB                   0x84C7
1175 #define GL_TEXTURE8_ARB                   0x84C8
1176 #define GL_TEXTURE9_ARB                   0x84C9
1177 #define GL_TEXTURE10_ARB                  0x84CA
1178 #define GL_TEXTURE11_ARB                  0x84CB
1179 #define GL_TEXTURE12_ARB                  0x84CC
1180 #define GL_TEXTURE13_ARB                  0x84CD
1181 #define GL_TEXTURE14_ARB                  0x84CE
1182 #define GL_TEXTURE15_ARB                  0x84CF
1183 #define GL_TEXTURE16_ARB                  0x84D0
1184 #define GL_TEXTURE17_ARB                  0x84D1
1185 #define GL_TEXTURE18_ARB                  0x84D2
1186 #define GL_TEXTURE19_ARB                  0x84D3
1187 #define GL_TEXTURE20_ARB                  0x84D4
1188 #define GL_TEXTURE21_ARB                  0x84D5
1189 #define GL_TEXTURE22_ARB                  0x84D6
1190 #define GL_TEXTURE23_ARB                  0x84D7
1191 #define GL_TEXTURE24_ARB                  0x84D8
1192 #define GL_TEXTURE25_ARB                  0x84D9
1193 #define GL_TEXTURE26_ARB                  0x84DA
1194 #define GL_TEXTURE27_ARB                  0x84DB
1195 #define GL_TEXTURE28_ARB                  0x84DC
1196 #define GL_TEXTURE29_ARB                  0x84DD
1197 #define GL_TEXTURE30_ARB                  0x84DE
1198 #define GL_TEXTURE31_ARB                  0x84DF
1199 #define GL_ACTIVE_TEXTURE_ARB             0x84E0
1200 #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
1201 #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
1202 #endif
1203
1204 #ifndef GL_ARB_transpose_matrix
1205 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
1206 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
1207 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
1208 #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
1209 #endif
1210
1211 #ifndef GL_ARB_multisample
1212 #define GL_MULTISAMPLE_ARB                0x809D
1213 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
1214 #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
1215 #define GL_SAMPLE_COVERAGE_ARB            0x80A0
1216 #define GL_SAMPLE_BUFFERS_ARB             0x80A8
1217 #define GL_SAMPLES_ARB                    0x80A9
1218 #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
1219 #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
1220 #define GL_MULTISAMPLE_BIT_ARB            0x20000000
1221 #endif
1222
1223 #ifndef GL_ARB_texture_env_add
1224 #endif
1225
1226 #ifndef GL_ARB_texture_cube_map
1227 #define GL_NORMAL_MAP_ARB                 0x8511
1228 #define GL_REFLECTION_MAP_ARB             0x8512
1229 #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
1230 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
1231 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
1232 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
1233 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
1234 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
1235 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
1236 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
1237 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
1238 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
1239 #endif
1240
1241 #ifndef GL_ARB_texture_compression
1242 #define GL_COMPRESSED_ALPHA_ARB           0x84E9
1243 #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
1244 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
1245 #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
1246 #define GL_COMPRESSED_RGB_ARB             0x84ED
1247 #define GL_COMPRESSED_RGBA_ARB            0x84EE
1248 #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
1249 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
1250 #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
1251 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
1252 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
1253 #endif
1254
1255 #ifndef GL_ARB_texture_border_clamp
1256 #define GL_CLAMP_TO_BORDER_ARB            0x812D
1257 #endif
1258
1259 #ifndef GL_ARB_point_parameters
1260 #define GL_POINT_SIZE_MIN_ARB             0x8126
1261 #define GL_POINT_SIZE_MAX_ARB             0x8127
1262 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
1263 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
1264 #endif
1265
1266 #ifndef GL_ARB_vertex_blend
1267 #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
1268 #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
1269 #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
1270 #define GL_VERTEX_BLEND_ARB               0x86A7
1271 #define GL_CURRENT_WEIGHT_ARB             0x86A8
1272 #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
1273 #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
1274 #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
1275 #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
1276 #define GL_WEIGHT_ARRAY_ARB               0x86AD
1277 #define GL_MODELVIEW0_ARB                 0x1700
1278 #define GL_MODELVIEW1_ARB                 0x850A
1279 #define GL_MODELVIEW2_ARB                 0x8722
1280 #define GL_MODELVIEW3_ARB                 0x8723
1281 #define GL_MODELVIEW4_ARB                 0x8724
1282 #define GL_MODELVIEW5_ARB                 0x8725
1283 #define GL_MODELVIEW6_ARB                 0x8726
1284 #define GL_MODELVIEW7_ARB                 0x8727
1285 #define GL_MODELVIEW8_ARB                 0x8728
1286 #define GL_MODELVIEW9_ARB                 0x8729
1287 #define GL_MODELVIEW10_ARB                0x872A
1288 #define GL_MODELVIEW11_ARB                0x872B
1289 #define GL_MODELVIEW12_ARB                0x872C
1290 #define GL_MODELVIEW13_ARB                0x872D
1291 #define GL_MODELVIEW14_ARB                0x872E
1292 #define GL_MODELVIEW15_ARB                0x872F
1293 #define GL_MODELVIEW16_ARB                0x8730
1294 #define GL_MODELVIEW17_ARB                0x8731
1295 #define GL_MODELVIEW18_ARB                0x8732
1296 #define GL_MODELVIEW19_ARB                0x8733
1297 #define GL_MODELVIEW20_ARB                0x8734
1298 #define GL_MODELVIEW21_ARB                0x8735
1299 #define GL_MODELVIEW22_ARB                0x8736
1300 #define GL_MODELVIEW23_ARB                0x8737
1301 #define GL_MODELVIEW24_ARB                0x8738
1302 #define GL_MODELVIEW25_ARB                0x8739
1303 #define GL_MODELVIEW26_ARB                0x873A
1304 #define GL_MODELVIEW27_ARB                0x873B
1305 #define GL_MODELVIEW28_ARB                0x873C
1306 #define GL_MODELVIEW29_ARB                0x873D
1307 #define GL_MODELVIEW30_ARB                0x873E
1308 #define GL_MODELVIEW31_ARB                0x873F
1309 #endif
1310
1311 #ifndef GL_ARB_matrix_palette
1312 #define GL_MATRIX_PALETTE_ARB             0x8840
1313 #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
1314 #define GL_MAX_PALETTE_MATRICES_ARB       0x8842
1315 #define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
1316 #define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
1317 #define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
1318 #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
1319 #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
1320 #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
1321 #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
1322 #endif
1323
1324 #ifndef GL_ARB_texture_env_combine
1325 #define GL_COMBINE_ARB                    0x8570
1326 #define GL_COMBINE_RGB_ARB                0x8571
1327 #define GL_COMBINE_ALPHA_ARB              0x8572
1328 #define GL_SOURCE0_RGB_ARB                0x8580
1329 #define GL_SOURCE1_RGB_ARB                0x8581
1330 #define GL_SOURCE2_RGB_ARB                0x8582
1331 #define GL_SOURCE0_ALPHA_ARB              0x8588
1332 #define GL_SOURCE1_ALPHA_ARB              0x8589
1333 #define GL_SOURCE2_ALPHA_ARB              0x858A
1334 #define GL_OPERAND0_RGB_ARB               0x8590
1335 #define GL_OPERAND1_RGB_ARB               0x8591
1336 #define GL_OPERAND2_RGB_ARB               0x8592
1337 #define GL_OPERAND0_ALPHA_ARB             0x8598
1338 #define GL_OPERAND1_ALPHA_ARB             0x8599
1339 #define GL_OPERAND2_ALPHA_ARB             0x859A
1340 #define GL_RGB_SCALE_ARB                  0x8573
1341 #define GL_ADD_SIGNED_ARB                 0x8574
1342 #define GL_INTERPOLATE_ARB                0x8575
1343 #define GL_SUBTRACT_ARB                   0x84E7
1344 #define GL_CONSTANT_ARB                   0x8576
1345 #define GL_PRIMARY_COLOR_ARB              0x8577
1346 #define GL_PREVIOUS_ARB                   0x8578
1347 #endif
1348
1349 #ifndef GL_ARB_texture_env_crossbar
1350 #endif
1351
1352 #ifndef GL_ARB_texture_env_dot3
1353 #define GL_DOT3_RGB_ARB                   0x86AE
1354 #define GL_DOT3_RGBA_ARB                  0x86AF
1355 #endif
1356
1357 #ifndef GL_ARB_texture_mirrored_repeat
1358 #define GL_MIRRORED_REPEAT_ARB            0x8370
1359 #endif
1360
1361 #ifndef GL_ARB_depth_texture
1362 #define GL_DEPTH_COMPONENT16_ARB          0x81A5
1363 #define GL_DEPTH_COMPONENT24_ARB          0x81A6
1364 #define GL_DEPTH_COMPONENT32_ARB          0x81A7
1365 #define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
1366 #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
1367 #endif
1368
1369 #ifndef GL_ARB_shadow
1370 #define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
1371 #define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
1372 #define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
1373 #endif
1374
1375 #ifndef GL_ARB_shadow_ambient
1376 #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
1377 #endif
1378
1379 #ifndef GL_ARB_window_pos
1380 #endif
1381
1382 #ifndef GL_ARB_vertex_program
1383 #define GL_COLOR_SUM_ARB                  0x8458
1384 #define GL_VERTEX_PROGRAM_ARB             0x8620
1385 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
1386 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
1387 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
1388 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
1389 #define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
1390 #define GL_PROGRAM_LENGTH_ARB             0x8627
1391 #define GL_PROGRAM_STRING_ARB             0x8628
1392 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
1393 #define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
1394 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
1395 #define GL_CURRENT_MATRIX_ARB             0x8641
1396 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
1397 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
1398 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
1399 #define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
1400 #define GL_PROGRAM_BINDING_ARB            0x8677
1401 #define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
1402 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
1403 #define GL_PROGRAM_ERROR_STRING_ARB       0x8874
1404 #define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
1405 #define GL_PROGRAM_FORMAT_ARB             0x8876
1406 #define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
1407 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
1408 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
1409 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
1410 #define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
1411 #define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
1412 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
1413 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
1414 #define GL_PROGRAM_PARAMETERS_ARB         0x88A8
1415 #define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
1416 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
1417 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
1418 #define GL_PROGRAM_ATTRIBS_ARB            0x88AC
1419 #define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
1420 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
1421 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
1422 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
1423 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
1424 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
1425 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
1426 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
1427 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
1428 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
1429 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
1430 #define GL_MATRIX0_ARB                    0x88C0
1431 #define GL_MATRIX1_ARB                    0x88C1
1432 #define GL_MATRIX2_ARB                    0x88C2
1433 #define GL_MATRIX3_ARB                    0x88C3
1434 #define GL_MATRIX4_ARB                    0x88C4
1435 #define GL_MATRIX5_ARB                    0x88C5
1436 #define GL_MATRIX6_ARB                    0x88C6
1437 #define GL_MATRIX7_ARB                    0x88C7
1438 #define GL_MATRIX8_ARB                    0x88C8
1439 #define GL_MATRIX9_ARB                    0x88C9
1440 #define GL_MATRIX10_ARB                   0x88CA
1441 #define GL_MATRIX11_ARB                   0x88CB
1442 #define GL_MATRIX12_ARB                   0x88CC
1443 #define GL_MATRIX13_ARB                   0x88CD
1444 #define GL_MATRIX14_ARB                   0x88CE
1445 #define GL_MATRIX15_ARB                   0x88CF
1446 #define GL_MATRIX16_ARB                   0x88D0
1447 #define GL_MATRIX17_ARB                   0x88D1
1448 #define GL_MATRIX18_ARB                   0x88D2
1449 #define GL_MATRIX19_ARB                   0x88D3
1450 #define GL_MATRIX20_ARB                   0x88D4
1451 #define GL_MATRIX21_ARB                   0x88D5
1452 #define GL_MATRIX22_ARB                   0x88D6
1453 #define GL_MATRIX23_ARB                   0x88D7
1454 #define GL_MATRIX24_ARB                   0x88D8
1455 #define GL_MATRIX25_ARB                   0x88D9
1456 #define GL_MATRIX26_ARB                   0x88DA
1457 #define GL_MATRIX27_ARB                   0x88DB
1458 #define GL_MATRIX28_ARB                   0x88DC
1459 #define GL_MATRIX29_ARB                   0x88DD
1460 #define GL_MATRIX30_ARB                   0x88DE
1461 #define GL_MATRIX31_ARB                   0x88DF
1462 #endif
1463
1464 #ifndef GL_ARB_fragment_program
1465 #define GL_FRAGMENT_PROGRAM_ARB           0x8804
1466 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
1467 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
1468 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
1469 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
1470 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
1471 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
1472 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
1473 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
1474 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
1475 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
1476 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
1477 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
1478 #define GL_MAX_TEXTURE_COORDS_ARB         0x8871
1479 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
1480 #endif
1481
1482 #ifndef GL_ARB_vertex_buffer_object
1483 #define GL_BUFFER_SIZE_ARB                0x8764
1484 #define GL_BUFFER_USAGE_ARB               0x8765
1485 #define GL_ARRAY_BUFFER_ARB               0x8892
1486 #define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
1487 #define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
1488 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
1489 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
1490 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
1491 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
1492 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
1493 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
1494 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
1495 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
1496 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
1497 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
1498 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
1499 #define GL_READ_ONLY_ARB                  0x88B8
1500 #define GL_WRITE_ONLY_ARB                 0x88B9
1501 #define GL_READ_WRITE_ARB                 0x88BA
1502 #define GL_BUFFER_ACCESS_ARB              0x88BB
1503 #define GL_BUFFER_MAPPED_ARB              0x88BC
1504 #define GL_BUFFER_MAP_POINTER_ARB         0x88BD
1505 #define GL_STREAM_DRAW_ARB                0x88E0
1506 #define GL_STREAM_READ_ARB                0x88E1
1507 #define GL_STREAM_COPY_ARB                0x88E2
1508 #define GL_STATIC_DRAW_ARB                0x88E4
1509 #define GL_STATIC_READ_ARB                0x88E5
1510 #define GL_STATIC_COPY_ARB                0x88E6
1511 #define GL_DYNAMIC_DRAW_ARB               0x88E8
1512 #define GL_DYNAMIC_READ_ARB               0x88E9
1513 #define GL_DYNAMIC_COPY_ARB               0x88EA
1514 #endif
1515
1516 #ifndef GL_ARB_occlusion_query
1517 #define GL_QUERY_COUNTER_BITS_ARB         0x8864
1518 #define GL_CURRENT_QUERY_ARB              0x8865
1519 #define GL_QUERY_RESULT_ARB               0x8866
1520 #define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
1521 #define GL_SAMPLES_PASSED_ARB             0x8914
1522 #endif
1523
1524 #ifndef GL_ARB_shader_objects
1525 #define GL_PROGRAM_OBJECT_ARB             0x8B40
1526 #define GL_SHADER_OBJECT_ARB              0x8B48
1527 #define GL_OBJECT_TYPE_ARB                0x8B4E
1528 #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
1529 #define GL_FLOAT_VEC2_ARB                 0x8B50
1530 #define GL_FLOAT_VEC3_ARB                 0x8B51
1531 #define GL_FLOAT_VEC4_ARB                 0x8B52
1532 #define GL_INT_VEC2_ARB                   0x8B53
1533 #define GL_INT_VEC3_ARB                   0x8B54
1534 #define GL_INT_VEC4_ARB                   0x8B55
1535 #define GL_BOOL_ARB                       0x8B56
1536 #define GL_BOOL_VEC2_ARB                  0x8B57
1537 #define GL_BOOL_VEC3_ARB                  0x8B58
1538 #define GL_BOOL_VEC4_ARB                  0x8B59
1539 #define GL_FLOAT_MAT2_ARB                 0x8B5A
1540 #define GL_FLOAT_MAT3_ARB                 0x8B5B
1541 #define GL_FLOAT_MAT4_ARB                 0x8B5C
1542 #define GL_SAMPLER_1D_ARB                 0x8B5D
1543 #define GL_SAMPLER_2D_ARB                 0x8B5E
1544 #define GL_SAMPLER_3D_ARB                 0x8B5F
1545 #define GL_SAMPLER_CUBE_ARB               0x8B60
1546 #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
1547 #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
1548 #define GL_SAMPLER_2D_RECT_ARB            0x8B63
1549 #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
1550 #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
1551 #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
1552 #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
1553 #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
1554 #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
1555 #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
1556 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
1557 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
1558 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
1559 #endif
1560
1561 #ifndef GL_ARB_vertex_shader
1562 #define GL_VERTEX_SHADER_ARB              0x8B31
1563 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
1564 #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
1565 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
1566 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
1567 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
1568 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
1569 #endif
1570
1571 #ifndef GL_ARB_fragment_shader
1572 #define GL_FRAGMENT_SHADER_ARB            0x8B30
1573 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
1574 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
1575 #endif
1576
1577 #ifndef GL_ARB_shading_language_100
1578 #define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
1579 #endif
1580
1581 #ifndef GL_ARB_texture_non_power_of_two
1582 #endif
1583
1584 #ifndef GL_ARB_point_sprite
1585 #define GL_POINT_SPRITE_ARB               0x8861
1586 #define GL_COORD_REPLACE_ARB              0x8862
1587 #endif
1588
1589 #ifndef GL_ARB_fragment_program_shadow
1590 #endif
1591
1592 #ifndef GL_ARB_draw_buffers
1593 #define GL_MAX_DRAW_BUFFERS_ARB           0x8824
1594 #define GL_DRAW_BUFFER0_ARB               0x8825
1595 #define GL_DRAW_BUFFER1_ARB               0x8826
1596 #define GL_DRAW_BUFFER2_ARB               0x8827
1597 #define GL_DRAW_BUFFER3_ARB               0x8828
1598 #define GL_DRAW_BUFFER4_ARB               0x8829
1599 #define GL_DRAW_BUFFER5_ARB               0x882A
1600 #define GL_DRAW_BUFFER6_ARB               0x882B
1601 #define GL_DRAW_BUFFER7_ARB               0x882C
1602 #define GL_DRAW_BUFFER8_ARB               0x882D
1603 #define GL_DRAW_BUFFER9_ARB               0x882E
1604 #define GL_DRAW_BUFFER10_ARB              0x882F
1605 #define GL_DRAW_BUFFER11_ARB              0x8830
1606 #define GL_DRAW_BUFFER12_ARB              0x8831
1607 #define GL_DRAW_BUFFER13_ARB              0x8832
1608 #define GL_DRAW_BUFFER14_ARB              0x8833
1609 #define GL_DRAW_BUFFER15_ARB              0x8834
1610 #endif
1611
1612 #ifndef GL_ARB_texture_rectangle
1613 #define GL_TEXTURE_RECTANGLE_ARB          0x84F5
1614 #define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
1615 #define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
1616 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
1617 #endif
1618
1619 #ifndef GL_ARB_color_buffer_float
1620 #define GL_RGBA_FLOAT_MODE_ARB            0x8820
1621 #define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
1622 #define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
1623 #define GL_CLAMP_READ_COLOR_ARB           0x891C
1624 #define GL_FIXED_ONLY_ARB                 0x891D
1625 #endif
1626
1627 #ifndef GL_ARB_half_float_pixel
1628 #define GL_HALF_FLOAT_ARB                 0x140B
1629 #endif
1630
1631 #ifndef GL_ARB_texture_float
1632 #define GL_TEXTURE_RED_TYPE_ARB           0x8C10
1633 #define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
1634 #define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
1635 #define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
1636 #define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
1637 #define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
1638 #define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
1639 #define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
1640 #define GL_RGBA32F_ARB                    0x8814
1641 #define GL_RGB32F_ARB                     0x8815
1642 #define GL_ALPHA32F_ARB                   0x8816
1643 #define GL_INTENSITY32F_ARB               0x8817
1644 #define GL_LUMINANCE32F_ARB               0x8818
1645 #define GL_LUMINANCE_ALPHA32F_ARB         0x8819
1646 #define GL_RGBA16F_ARB                    0x881A
1647 #define GL_RGB16F_ARB                     0x881B
1648 #define GL_ALPHA16F_ARB                   0x881C
1649 #define GL_INTENSITY16F_ARB               0x881D
1650 #define GL_LUMINANCE16F_ARB               0x881E
1651 #define GL_LUMINANCE_ALPHA16F_ARB         0x881F
1652 #endif
1653
1654 #ifndef GL_ARB_pixel_buffer_object
1655 #define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
1656 #define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
1657 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
1658 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
1659 #endif
1660
1661 #ifndef GL_ARB_depth_buffer_float
1662 #define GL_DEPTH_COMPONENT32F             0x8CAC
1663 #define GL_DEPTH32F_STENCIL8              0x8CAD
1664 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
1665 #endif
1666
1667 #ifndef GL_ARB_draw_instanced
1668 #endif
1669
1670 #ifndef GL_ARB_framebuffer_object
1671 #define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
1672 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
1673 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
1674 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
1675 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
1676 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
1677 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
1678 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
1679 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
1680 #define GL_FRAMEBUFFER_DEFAULT            0x8218
1681 #define GL_FRAMEBUFFER_UNDEFINED          0x8219
1682 #define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
1683 #define GL_MAX_RENDERBUFFER_SIZE          0x84E8
1684 #define GL_DEPTH_STENCIL                  0x84F9
1685 #define GL_UNSIGNED_INT_24_8              0x84FA
1686 #define GL_DEPTH24_STENCIL8               0x88F0
1687 #define GL_TEXTURE_STENCIL_SIZE           0x88F1
1688 #define GL_TEXTURE_RED_TYPE               0x8C10
1689 #define GL_TEXTURE_GREEN_TYPE             0x8C11
1690 #define GL_TEXTURE_BLUE_TYPE              0x8C12
1691 #define GL_TEXTURE_ALPHA_TYPE             0x8C13
1692 #define GL_TEXTURE_DEPTH_TYPE             0x8C16
1693 #define GL_UNSIGNED_NORMALIZED            0x8C17
1694 #define GL_FRAMEBUFFER_BINDING            0x8CA6
1695 #define GL_DRAW_FRAMEBUFFER_BINDING       GL_FRAMEBUFFER_BINDING
1696 #define GL_RENDERBUFFER_BINDING           0x8CA7
1697 #define GL_READ_FRAMEBUFFER               0x8CA8
1698 #define GL_DRAW_FRAMEBUFFER               0x8CA9
1699 #define GL_READ_FRAMEBUFFER_BINDING       0x8CAA
1700 #define GL_RENDERBUFFER_SAMPLES           0x8CAB
1701 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1702 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1703 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1704 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1705 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
1706 #define GL_FRAMEBUFFER_COMPLETE           0x8CD5
1707 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1708 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1709 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
1710 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
1711 #define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
1712 #define GL_MAX_COLOR_ATTACHMENTS          0x8CDF
1713 #define GL_COLOR_ATTACHMENT0              0x8CE0
1714 #define GL_COLOR_ATTACHMENT1              0x8CE1
1715 #define GL_COLOR_ATTACHMENT2              0x8CE2
1716 #define GL_COLOR_ATTACHMENT3              0x8CE3
1717 #define GL_COLOR_ATTACHMENT4              0x8CE4
1718 #define GL_COLOR_ATTACHMENT5              0x8CE5
1719 #define GL_COLOR_ATTACHMENT6              0x8CE6
1720 #define GL_COLOR_ATTACHMENT7              0x8CE7
1721 #define GL_COLOR_ATTACHMENT8              0x8CE8
1722 #define GL_COLOR_ATTACHMENT9              0x8CE9
1723 #define GL_COLOR_ATTACHMENT10             0x8CEA
1724 #define GL_COLOR_ATTACHMENT11             0x8CEB
1725 #define GL_COLOR_ATTACHMENT12             0x8CEC
1726 #define GL_COLOR_ATTACHMENT13             0x8CED
1727 #define GL_COLOR_ATTACHMENT14             0x8CEE
1728 #define GL_COLOR_ATTACHMENT15             0x8CEF
1729 #define GL_DEPTH_ATTACHMENT               0x8D00
1730 #define GL_STENCIL_ATTACHMENT             0x8D20
1731 #define GL_FRAMEBUFFER                    0x8D40
1732 #define GL_RENDERBUFFER                   0x8D41
1733 #define GL_RENDERBUFFER_WIDTH             0x8D42
1734 #define GL_RENDERBUFFER_HEIGHT            0x8D43
1735 #define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
1736 #define GL_STENCIL_INDEX1                 0x8D46
1737 #define GL_STENCIL_INDEX4                 0x8D47
1738 #define GL_STENCIL_INDEX8                 0x8D48
1739 #define GL_STENCIL_INDEX16                0x8D49
1740 #define GL_RENDERBUFFER_RED_SIZE          0x8D50
1741 #define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
1742 #define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
1743 #define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
1744 #define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
1745 #define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
1746 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1747 #define GL_MAX_SAMPLES                    0x8D57
1748 #endif
1749
1750 #ifndef GL_ARB_framebuffer_object_DEPRECATED
1751 #define GL_INDEX                          0x8222
1752 #define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
1753 #define GL_TEXTURE_INTENSITY_TYPE         0x8C15
1754 #endif
1755
1756 #ifndef GL_ARB_framebuffer_sRGB
1757 #define GL_FRAMEBUFFER_SRGB               0x8DB9
1758 #endif
1759
1760 #ifndef GL_ARB_geometry_shader4
1761 #define GL_LINES_ADJACENCY_ARB            0x000A
1762 #define GL_LINE_STRIP_ADJACENCY_ARB       0x000B
1763 #define GL_TRIANGLES_ADJACENCY_ARB        0x000C
1764 #define GL_TRIANGLE_STRIP_ADJACENCY_ARB   0x000D
1765 #define GL_PROGRAM_POINT_SIZE_ARB         0x8642
1766 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
1767 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
1768 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
1769 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
1770 #define GL_GEOMETRY_SHADER_ARB            0x8DD9
1771 #define GL_GEOMETRY_VERTICES_OUT_ARB      0x8DDA
1772 #define GL_GEOMETRY_INPUT_TYPE_ARB        0x8DDB
1773 #define GL_GEOMETRY_OUTPUT_TYPE_ARB       0x8DDC
1774 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
1775 #define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
1776 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
1777 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
1778 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
1779 /* reuse GL_MAX_VARYING_COMPONENTS */
1780 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
1781 #endif
1782
1783 #ifndef GL_ARB_half_float_vertex
1784 #define GL_HALF_FLOAT                     0x140B
1785 #endif
1786
1787 #ifndef GL_ARB_instanced_arrays
1788 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
1789 #endif
1790
1791 #ifndef GL_ARB_map_buffer_range
1792 #define GL_MAP_READ_BIT                   0x0001
1793 #define GL_MAP_WRITE_BIT                  0x0002
1794 #define GL_MAP_INVALIDATE_RANGE_BIT       0x0004
1795 #define GL_MAP_INVALIDATE_BUFFER_BIT      0x0008
1796 #define GL_MAP_FLUSH_EXPLICIT_BIT         0x0010
1797 #define GL_MAP_UNSYNCHRONIZED_BIT         0x0020
1798 #endif
1799
1800 #ifndef GL_ARB_texture_buffer_object
1801 #define GL_TEXTURE_BUFFER_ARB             0x8C2A
1802 #define GL_MAX_TEXTURE_BUFFER_SIZE_ARB    0x8C2B
1803 #define GL_TEXTURE_BINDING_BUFFER_ARB     0x8C2C
1804 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
1805 #define GL_TEXTURE_BUFFER_FORMAT_ARB      0x8C2E
1806 #endif
1807
1808 #ifndef GL_ARB_texture_compression_rgtc
1809 #define GL_COMPRESSED_RED_RGTC1           0x8DBB
1810 #define GL_COMPRESSED_SIGNED_RED_RGTC1    0x8DBC
1811 #define GL_COMPRESSED_RG_RGTC2            0x8DBD
1812 #define GL_COMPRESSED_SIGNED_RG_RGTC2     0x8DBE
1813 #endif
1814
1815 #ifndef GL_ARB_texture_rg
1816 #define GL_RG                             0x8227
1817 #define GL_RG_INTEGER                     0x8228
1818 #define GL_R8                             0x8229
1819 #define GL_R16                            0x822A
1820 #define GL_RG8                            0x822B
1821 #define GL_RG16                           0x822C
1822 #define GL_R16F                           0x822D
1823 #define GL_R32F                           0x822E
1824 #define GL_RG16F                          0x822F
1825 #define GL_RG32F                          0x8230
1826 #define GL_R8I                            0x8231
1827 #define GL_R8UI                           0x8232
1828 #define GL_R16I                           0x8233
1829 #define GL_R16UI                          0x8234
1830 #define GL_R32I                           0x8235
1831 #define GL_R32UI                          0x8236
1832 #define GL_RG8I                           0x8237
1833 #define GL_RG8UI                          0x8238
1834 #define GL_RG16I                          0x8239
1835 #define GL_RG16UI                         0x823A
1836 #define GL_RG32I                          0x823B
1837 #define GL_RG32UI                         0x823C
1838 #endif
1839
1840 #ifndef GL_ARB_vertex_array_object
1841 #define GL_VERTEX_ARRAY_BINDING           0x85B5
1842 #endif
1843
1844 #ifndef GL_ARB_uniform_buffer_object
1845 #define GL_UNIFORM_BUFFER                 0x8A11
1846 #define GL_UNIFORM_BUFFER_BINDING         0x8A28
1847 #define GL_UNIFORM_BUFFER_START           0x8A29
1848 #define GL_UNIFORM_BUFFER_SIZE            0x8A2A
1849 #define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
1850 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
1851 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
1852 #define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
1853 #define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
1854 #define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
1855 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
1856 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
1857 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1858 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1859 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1860 #define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
1861 #define GL_UNIFORM_TYPE                   0x8A37
1862 #define GL_UNIFORM_SIZE                   0x8A38
1863 #define GL_UNIFORM_NAME_LENGTH            0x8A39
1864 #define GL_UNIFORM_BLOCK_INDEX            0x8A3A
1865 #define GL_UNIFORM_OFFSET                 0x8A3B
1866 #define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
1867 #define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
1868 #define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
1869 #define GL_UNIFORM_BLOCK_BINDING          0x8A3F
1870 #define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
1871 #define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
1872 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
1873 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1874 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
1875 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
1876 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1877 #define GL_INVALID_INDEX                  0xFFFFFFFFu
1878 #endif
1879
1880 #ifndef GL_ARB_compatibility
1881 /* ARB_compatibility just defines tokens from core 3.0 */
1882 #endif
1883
1884 #ifndef GL_ARB_copy_buffer
1885 #define GL_COPY_READ_BUFFER               0x8F36
1886 #define GL_COPY_WRITE_BUFFER              0x8F37
1887 #endif
1888
1889 #ifndef GL_ARB_shader_texture_lod
1890 #endif
1891
1892 #ifndef GL_ARB_depth_clamp
1893 #define GL_DEPTH_CLAMP                    0x864F
1894 #endif
1895
1896 #ifndef GL_ARB_draw_elements_base_vertex
1897 #endif
1898
1899 #ifndef GL_ARB_fragment_coord_conventions
1900 #endif
1901
1902 #ifndef GL_ARB_provoking_vertex
1903 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1904 #define GL_FIRST_VERTEX_CONVENTION        0x8E4D
1905 #define GL_LAST_VERTEX_CONVENTION         0x8E4E
1906 #define GL_PROVOKING_VERTEX               0x8E4F
1907 #endif
1908
1909 #ifndef GL_ARB_seamless_cube_map
1910 #define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
1911 #endif
1912
1913 #ifndef GL_ARB_sync
1914 #define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
1915 #define GL_OBJECT_TYPE                    0x9112
1916 #define GL_SYNC_CONDITION                 0x9113
1917 #define GL_SYNC_STATUS                    0x9114
1918 #define GL_SYNC_FLAGS                     0x9115
1919 #define GL_SYNC_FENCE                     0x9116
1920 #define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
1921 #define GL_UNSIGNALED                     0x9118
1922 #define GL_SIGNALED                       0x9119
1923 #define GL_ALREADY_SIGNALED               0x911A
1924 #define GL_TIMEOUT_EXPIRED                0x911B
1925 #define GL_CONDITION_SATISFIED            0x911C
1926 #define GL_WAIT_FAILED                    0x911D
1927 #define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
1928 #define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
1929 #endif
1930
1931 #ifndef GL_ARB_texture_multisample
1932 #define GL_SAMPLE_POSITION                0x8E50
1933 #define GL_SAMPLE_MASK                    0x8E51
1934 #define GL_SAMPLE_MASK_VALUE              0x8E52
1935 #define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
1936 #define GL_TEXTURE_2D_MULTISAMPLE         0x9100
1937 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
1938 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
1939 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1940 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1941 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1942 #define GL_TEXTURE_SAMPLES                0x9106
1943 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1944 #define GL_SAMPLER_2D_MULTISAMPLE         0x9108
1945 #define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
1946 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1947 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
1948 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1949 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1950 #define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
1951 #define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
1952 #define GL_MAX_INTEGER_SAMPLES            0x9110
1953 #endif
1954
1955 #ifndef GL_ARB_vertex_array_bgra
1956 /* reuse GL_BGRA */
1957 #endif
1958
1959 #ifndef GL_ARB_draw_buffers_blend
1960 #endif
1961
1962 #ifndef GL_ARB_sample_shading
1963 #define GL_SAMPLE_SHADING_ARB             0x8C36
1964 #define GL_MIN_SAMPLE_SHADING_VALUE_ARB   0x8C37
1965 #endif
1966
1967 #ifndef GL_ARB_texture_cube_map_array
1968 #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB     0x9009
1969 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
1970 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
1971 #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB     0x900C
1972 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
1973 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
1974 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
1975 #endif
1976
1977 #ifndef GL_ARB_texture_gather
1978 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
1979 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
1980 #endif
1981
1982 #ifndef GL_ARB_texture_query_lod
1983 #endif
1984
1985 #ifndef GL_ARB_shading_language_include
1986 #define GL_SHADER_INCLUDE_ARB             0x8DAE
1987 #define GL_NAMED_STRING_LENGTH_ARB        0x8DE9
1988 #define GL_NAMED_STRING_TYPE_ARB          0x8DEA
1989 #endif
1990
1991 #ifndef GL_ARB_texture_compression_bptc
1992 #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
1993 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
1994 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
1995 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
1996 #endif
1997
1998 #ifndef GL_ARB_blend_func_extended
1999 #define GL_SRC1_COLOR                     0x88F9
2000 /* reuse GL_SRC1_ALPHA */
2001 #define GL_ONE_MINUS_SRC1_COLOR           0x88FA
2002 #define GL_ONE_MINUS_SRC1_ALPHA           0x88FB
2003 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   0x88FC
2004 #endif
2005
2006 #ifndef GL_ARB_explicit_attrib_location
2007 #endif
2008
2009 #ifndef GL_ARB_occlusion_query2
2010 #define GL_ANY_SAMPLES_PASSED             0x8C2F
2011 #endif
2012
2013 #ifndef GL_ARB_sampler_objects
2014 #define GL_SAMPLER_BINDING                0x8919
2015 #endif
2016
2017 #ifndef GL_ARB_shader_bit_encoding
2018 #endif
2019
2020 #ifndef GL_ARB_texture_rgb10_a2ui
2021 #define GL_RGB10_A2UI                     0x906F
2022 #endif
2023
2024 #ifndef GL_ARB_texture_swizzle
2025 #define GL_TEXTURE_SWIZZLE_R              0x8E42
2026 #define GL_TEXTURE_SWIZZLE_G              0x8E43
2027 #define GL_TEXTURE_SWIZZLE_B              0x8E44
2028 #define GL_TEXTURE_SWIZZLE_A              0x8E45
2029 #define GL_TEXTURE_SWIZZLE_RGBA           0x8E46
2030 #endif
2031
2032 #ifndef GL_ARB_timer_query
2033 #define GL_TIME_ELAPSED                   0x88BF
2034 #define GL_TIMESTAMP                      0x8E28
2035 #endif
2036
2037 #ifndef GL_ARB_vertex_type_2_10_10_10_rev
2038 /* reuse GL_UNSIGNED_INT_2_10_10_10_REV */
2039 #define GL_INT_2_10_10_10_REV             0x8D9F
2040 #endif
2041
2042 #ifndef GL_ARB_draw_indirect
2043 #define GL_DRAW_INDIRECT_BUFFER           0x8F3F
2044 #define GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
2045 #endif
2046
2047 #ifndef GL_ARB_gpu_shader5
2048 #define GL_GEOMETRY_SHADER_INVOCATIONS    0x887F
2049 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
2050 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
2051 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
2052 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
2053 /* reuse GL_MAX_VERTEX_STREAMS */
2054 #endif
2055
2056 #ifndef GL_ARB_gpu_shader_fp64
2057 /* reuse GL_DOUBLE */
2058 #define GL_DOUBLE_VEC2                    0x8FFC
2059 #define GL_DOUBLE_VEC3                    0x8FFD
2060 #define GL_DOUBLE_VEC4                    0x8FFE
2061 #define GL_DOUBLE_MAT2                    0x8F46
2062 #define GL_DOUBLE_MAT3                    0x8F47
2063 #define GL_DOUBLE_MAT4                    0x8F48
2064 #define GL_DOUBLE_MAT2x3                  0x8F49
2065 #define GL_DOUBLE_MAT2x4                  0x8F4A
2066 #define GL_DOUBLE_MAT3x2                  0x8F4B
2067 #define GL_DOUBLE_MAT3x4                  0x8F4C
2068 #define GL_DOUBLE_MAT4x2                  0x8F4D
2069 #define GL_DOUBLE_MAT4x3                  0x8F4E
2070 #endif
2071
2072 #ifndef GL_ARB_shader_subroutine
2073 #define GL_ACTIVE_SUBROUTINES             0x8DE5
2074 #define GL_ACTIVE_SUBROUTINE_UNIFORMS     0x8DE6
2075 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
2076 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH   0x8E48
2077 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
2078 #define GL_MAX_SUBROUTINES                0x8DE7
2079 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
2080 #define GL_NUM_COMPATIBLE_SUBROUTINES     0x8E4A
2081 #define GL_COMPATIBLE_SUBROUTINES         0x8E4B
2082 /* reuse GL_UNIFORM_SIZE */
2083 /* reuse GL_UNIFORM_NAME_LENGTH */
2084 #endif
2085
2086 #ifndef GL_ARB_tessellation_shader
2087 #define GL_PATCHES                        0x000E
2088 #define GL_PATCH_VERTICES                 0x8E72
2089 #define GL_PATCH_DEFAULT_INNER_LEVEL      0x8E73
2090 #define GL_PATCH_DEFAULT_OUTER_LEVEL      0x8E74
2091 #define GL_TESS_CONTROL_OUTPUT_VERTICES   0x8E75
2092 #define GL_TESS_GEN_MODE                  0x8E76
2093 #define GL_TESS_GEN_SPACING               0x8E77
2094 #define GL_TESS_GEN_VERTEX_ORDER          0x8E78
2095 #define GL_TESS_GEN_POINT_MODE            0x8E79
2096 /* reuse GL_TRIANGLES */
2097 /* reuse GL_QUADS */
2098 #define GL_ISOLINES                       0x8E7A
2099 /* reuse GL_EQUAL */
2100 #define GL_FRACTIONAL_ODD                 0x8E7B
2101 #define GL_FRACTIONAL_EVEN                0x8E7C
2102 /* reuse GL_CCW */
2103 /* reuse GL_CW */
2104 #define GL_MAX_PATCH_VERTICES             0x8E7D
2105 #define GL_MAX_TESS_GEN_LEVEL             0x8E7E
2106 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
2107 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
2108 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
2109 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
2110 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
2111 #define GL_MAX_TESS_PATCH_COMPONENTS      0x8E84
2112 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
2113 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
2114 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
2115 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
2116 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
2117 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
2118 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
2119 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
2120 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
2121 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
2122 #define GL_TESS_EVALUATION_SHADER         0x8E87
2123 #define GL_TESS_CONTROL_SHADER            0x8E88
2124 #endif
2125
2126 #ifndef GL_ARB_texture_buffer_object_rgb32
2127 /* reuse GL_RGB32F */
2128 /* reuse GL_RGB32UI */
2129 /* reuse GL_RGB32I */
2130 #endif
2131
2132 #ifndef GL_ARB_transform_feedback2
2133 #define GL_TRANSFORM_FEEDBACK             0x8E22
2134 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
2135 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
2136 #define GL_TRANSFORM_FEEDBACK_BINDING     0x8E25
2137 #endif
2138
2139 #ifndef GL_ARB_transform_feedback3
2140 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
2141 #define GL_MAX_VERTEX_STREAMS             0x8E71
2142 #endif
2143
2144 #ifndef GL_ARB_ES2_compatibility
2145 #define GL_FIXED                          0x140C
2146 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
2147 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
2148 #define GL_LOW_FLOAT                      0x8DF0
2149 #define GL_MEDIUM_FLOAT                   0x8DF1
2150 #define GL_HIGH_FLOAT                     0x8DF2
2151 #define GL_LOW_INT                        0x8DF3
2152 #define GL_MEDIUM_INT                     0x8DF4
2153 #define GL_HIGH_INT                       0x8DF5
2154 #define GL_SHADER_COMPILER                0x8DFA
2155 #define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
2156 #define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
2157 #define GL_MAX_VARYING_VECTORS            0x8DFC
2158 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
2159 #endif
2160
2161 #ifndef GL_ARB_get_program_binary
2162 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
2163 #define GL_PROGRAM_BINARY_LENGTH          0x8741
2164 #define GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
2165 #define GL_PROGRAM_BINARY_FORMATS         0x87FF
2166 #endif
2167
2168 #ifndef GL_ARB_separate_shader_objects
2169 #define GL_VERTEX_SHADER_BIT              0x00000001
2170 #define GL_FRAGMENT_SHADER_BIT            0x00000002
2171 #define GL_GEOMETRY_SHADER_BIT            0x00000004
2172 #define GL_TESS_CONTROL_SHADER_BIT        0x00000008
2173 #define GL_TESS_EVALUATION_SHADER_BIT     0x00000010
2174 #define GL_ALL_SHADER_BITS                0xFFFFFFFF
2175 #define GL_PROGRAM_SEPARABLE              0x8258
2176 #define GL_ACTIVE_PROGRAM                 0x8259
2177 #define GL_PROGRAM_PIPELINE_BINDING       0x825A
2178 #endif
2179
2180 #ifndef GL_ARB_shader_precision
2181 #endif
2182
2183 #ifndef GL_ARB_vertex_attrib_64bit
2184 /* reuse GL_RGB32I */
2185 /* reuse GL_DOUBLE_VEC2 */
2186 /* reuse GL_DOUBLE_VEC3 */
2187 /* reuse GL_DOUBLE_VEC4 */
2188 /* reuse GL_DOUBLE_MAT2 */
2189 /* reuse GL_DOUBLE_MAT3 */
2190 /* reuse GL_DOUBLE_MAT4 */
2191 /* reuse GL_DOUBLE_MAT2x3 */
2192 /* reuse GL_DOUBLE_MAT2x4 */
2193 /* reuse GL_DOUBLE_MAT3x2 */
2194 /* reuse GL_DOUBLE_MAT3x4 */
2195 /* reuse GL_DOUBLE_MAT4x2 */
2196 /* reuse GL_DOUBLE_MAT4x3 */
2197 #endif
2198
2199 #ifndef GL_ARB_viewport_array
2200 /* reuse GL_SCISSOR_BOX */
2201 /* reuse GL_VIEWPORT */
2202 /* reuse GL_DEPTH_RANGE */
2203 /* reuse GL_SCISSOR_TEST */
2204 #define GL_MAX_VIEWPORTS                  0x825B
2205 #define GL_VIEWPORT_SUBPIXEL_BITS         0x825C
2206 #define GL_VIEWPORT_BOUNDS_RANGE          0x825D
2207 #define GL_LAYER_PROVOKING_VERTEX         0x825E
2208 #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
2209 #define GL_UNDEFINED_VERTEX               0x8260
2210 /* reuse GL_FIRST_VERTEX_CONVENTION */
2211 /* reuse GL_LAST_VERTEX_CONVENTION */
2212 /* reuse GL_PROVOKING_VERTEX */
2213 #endif
2214
2215 #ifndef GL_ARB_cl_event
2216 #define GL_SYNC_CL_EVENT_ARB              0x8240
2217 #define GL_SYNC_CL_EVENT_COMPLETE_ARB     0x8241
2218 #endif
2219
2220 #ifndef GL_ARB_debug_output
2221 #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
2222 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
2223 #define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
2224 #define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
2225 #define GL_DEBUG_SOURCE_API_ARB           0x8246
2226 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
2227 #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
2228 #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
2229 #define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
2230 #define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
2231 #define GL_DEBUG_TYPE_ERROR_ARB           0x824C
2232 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
2233 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
2234 #define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
2235 #define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
2236 #define GL_DEBUG_TYPE_OTHER_ARB           0x8251
2237 #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
2238 #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
2239 #define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
2240 #define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
2241 #define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
2242 #define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
2243 #endif
2244
2245 #ifndef GL_ARB_robustness
2246 /* reuse GL_NO_ERROR */
2247 #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
2248 #define GL_LOSE_CONTEXT_ON_RESET_ARB      0x8252
2249 #define GL_GUILTY_CONTEXT_RESET_ARB       0x8253
2250 #define GL_INNOCENT_CONTEXT_RESET_ARB     0x8254
2251 #define GL_UNKNOWN_CONTEXT_RESET_ARB      0x8255
2252 #define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
2253 #define GL_NO_RESET_NOTIFICATION_ARB      0x8261
2254 #endif
2255
2256 #ifndef GL_ARB_shader_stencil_export
2257 #endif
2258
2259 #ifndef GL_ARB_base_instance
2260 #endif
2261
2262 #ifndef GL_ARB_shading_language_420pack
2263 #endif
2264
2265 #ifndef GL_ARB_transform_feedback_instanced
2266 #endif
2267
2268 #ifndef GL_ARB_compressed_texture_pixel_storage
2269 #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH  0x9127
2270 #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
2271 #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH  0x9129
2272 #define GL_UNPACK_COMPRESSED_BLOCK_SIZE   0x912A
2273 #define GL_PACK_COMPRESSED_BLOCK_WIDTH    0x912B
2274 #define GL_PACK_COMPRESSED_BLOCK_HEIGHT   0x912C
2275 #define GL_PACK_COMPRESSED_BLOCK_DEPTH    0x912D
2276 #define GL_PACK_COMPRESSED_BLOCK_SIZE     0x912E
2277 #endif
2278
2279 #ifndef GL_ARB_conservative_depth
2280 #endif
2281
2282 #ifndef GL_ARB_internalformat_query
2283 #define GL_NUM_SAMPLE_COUNTS              0x9380
2284 #endif
2285
2286 #ifndef GL_ARB_map_buffer_alignment
2287 #define GL_MIN_MAP_BUFFER_ALIGNMENT       0x90BC
2288 #endif
2289
2290 #ifndef GL_ARB_shader_atomic_counters
2291 #define GL_ATOMIC_COUNTER_BUFFER          0x92C0
2292 #define GL_ATOMIC_COUNTER_BUFFER_BINDING  0x92C1
2293 #define GL_ATOMIC_COUNTER_BUFFER_START    0x92C2
2294 #define GL_ATOMIC_COUNTER_BUFFER_SIZE     0x92C3
2295 #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
2296 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
2297 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
2298 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
2299 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
2300 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
2301 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
2302 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
2303 #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
2304 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
2305 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
2306 #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
2307 #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
2308 #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
2309 #define GL_MAX_VERTEX_ATOMIC_COUNTERS     0x92D2
2310 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
2311 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
2312 #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS   0x92D5
2313 #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS   0x92D6
2314 #define GL_MAX_COMBINED_ATOMIC_COUNTERS   0x92D7
2315 #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
2316 #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
2317 #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS  0x92D9
2318 #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
2319 #define GL_UNSIGNED_INT_ATOMIC_COUNTER    0x92DB
2320 #endif
2321
2322 #ifndef GL_ARB_shader_image_load_store
2323 #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
2324 #define GL_ELEMENT_ARRAY_BARRIER_BIT      0x00000002
2325 #define GL_UNIFORM_BARRIER_BIT            0x00000004
2326 #define GL_TEXTURE_FETCH_BARRIER_BIT      0x00000008
2327 #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
2328 #define GL_COMMAND_BARRIER_BIT            0x00000040
2329 #define GL_PIXEL_BUFFER_BARRIER_BIT       0x00000080
2330 #define GL_TEXTURE_UPDATE_BARRIER_BIT     0x00000100
2331 #define GL_BUFFER_UPDATE_BARRIER_BIT      0x00000200
2332 #define GL_FRAMEBUFFER_BARRIER_BIT        0x00000400
2333 #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
2334 #define GL_ATOMIC_COUNTER_BARRIER_BIT     0x00001000
2335 #define GL_ALL_BARRIER_BITS               0xFFFFFFFF
2336 #define GL_MAX_IMAGE_UNITS                0x8F38
2337 #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
2338 #define GL_IMAGE_BINDING_NAME             0x8F3A
2339 #define GL_IMAGE_BINDING_LEVEL            0x8F3B
2340 #define GL_IMAGE_BINDING_LAYERED          0x8F3C
2341 #define GL_IMAGE_BINDING_LAYER            0x8F3D
2342 #define GL_IMAGE_BINDING_ACCESS           0x8F3E
2343 #define GL_IMAGE_1D                       0x904C
2344 #define GL_IMAGE_2D                       0x904D
2345 #define GL_IMAGE_3D                       0x904E
2346 #define GL_IMAGE_2D_RECT                  0x904F
2347 #define GL_IMAGE_CUBE                     0x9050
2348 #define GL_IMAGE_BUFFER                   0x9051
2349 #define GL_IMAGE_1D_ARRAY                 0x9052
2350 #define GL_IMAGE_2D_ARRAY                 0x9053
2351 #define GL_IMAGE_CUBE_MAP_ARRAY           0x9054
2352 #define GL_IMAGE_2D_MULTISAMPLE           0x9055
2353 #define GL_IMAGE_2D_MULTISAMPLE_ARRAY     0x9056
2354 #define GL_INT_IMAGE_1D                   0x9057
2355 #define GL_INT_IMAGE_2D                   0x9058
2356 #define GL_INT_IMAGE_3D                   0x9059
2357 #define GL_INT_IMAGE_2D_RECT              0x905A
2358 #define GL_INT_IMAGE_CUBE                 0x905B
2359 #define GL_INT_IMAGE_BUFFER               0x905C
2360 #define GL_INT_IMAGE_1D_ARRAY             0x905D
2361 #define GL_INT_IMAGE_2D_ARRAY             0x905E
2362 #define GL_INT_IMAGE_CUBE_MAP_ARRAY       0x905F
2363 #define GL_INT_IMAGE_2D_MULTISAMPLE       0x9060
2364 #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
2365 #define GL_UNSIGNED_INT_IMAGE_1D          0x9062
2366 #define GL_UNSIGNED_INT_IMAGE_2D          0x9063
2367 #define GL_UNSIGNED_INT_IMAGE_3D          0x9064
2368 #define GL_UNSIGNED_INT_IMAGE_2D_RECT     0x9065
2369 #define GL_UNSIGNED_INT_IMAGE_CUBE        0x9066
2370 #define GL_UNSIGNED_INT_IMAGE_BUFFER      0x9067
2371 #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY    0x9068
2372 #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY    0x9069
2373 #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
2374 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
2375 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
2376 #define GL_MAX_IMAGE_SAMPLES              0x906D
2377 #define GL_IMAGE_BINDING_FORMAT           0x906E
2378 #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
2379 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
2380 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
2381 #define GL_MAX_VERTEX_IMAGE_UNIFORMS      0x90CA
2382 #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
2383 #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
2384 #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS    0x90CD
2385 #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS    0x90CE
2386 #define GL_MAX_COMBINED_IMAGE_UNIFORMS    0x90CF
2387 #endif
2388
2389 #ifndef GL_ARB_shading_language_packing
2390 #endif
2391
2392 #ifndef GL_ARB_texture_storage
2393 #define GL_TEXTURE_IMMUTABLE_FORMAT       0x912F
2394 #endif
2395
2396 #ifndef GL_EXT_abgr
2397 #define GL_ABGR_EXT                       0x8000
2398 #endif
2399
2400 #ifndef GL_EXT_blend_color
2401 #define GL_CONSTANT_COLOR_EXT             0x8001
2402 #define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
2403 #define GL_CONSTANT_ALPHA_EXT             0x8003
2404 #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
2405 #define GL_BLEND_COLOR_EXT                0x8005
2406 #endif
2407
2408 #ifndef GL_EXT_polygon_offset
2409 #define GL_POLYGON_OFFSET_EXT             0x8037
2410 #define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
2411 #define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
2412 #endif
2413
2414 #ifndef GL_EXT_texture
2415 #define GL_ALPHA4_EXT                     0x803B
2416 #define GL_ALPHA8_EXT                     0x803C
2417 #define GL_ALPHA12_EXT                    0x803D
2418 #define GL_ALPHA16_EXT                    0x803E
2419 #define GL_LUMINANCE4_EXT                 0x803F
2420 #define GL_LUMINANCE8_EXT                 0x8040
2421 #define GL_LUMINANCE12_EXT                0x8041
2422 #define GL_LUMINANCE16_EXT                0x8042
2423 #define GL_LUMINANCE4_ALPHA4_EXT          0x8043
2424 #define GL_LUMINANCE6_ALPHA2_EXT          0x8044
2425 #define GL_LUMINANCE8_ALPHA8_EXT          0x8045
2426 #define GL_LUMINANCE12_ALPHA4_EXT         0x8046
2427 #define GL_LUMINANCE12_ALPHA12_EXT        0x8047
2428 #define GL_LUMINANCE16_ALPHA16_EXT        0x8048
2429 #define GL_INTENSITY_EXT                  0x8049
2430 #define GL_INTENSITY4_EXT                 0x804A
2431 #define GL_INTENSITY8_EXT                 0x804B
2432 #define GL_INTENSITY12_EXT                0x804C
2433 #define GL_INTENSITY16_EXT                0x804D
2434 #define GL_RGB2_EXT                       0x804E
2435 #define GL_RGB4_EXT                       0x804F
2436 #define GL_RGB5_EXT                       0x8050
2437 #define GL_RGB8_EXT                       0x8051
2438 #define GL_RGB10_EXT                      0x8052
2439 #define GL_RGB12_EXT                      0x8053
2440 #define GL_RGB16_EXT                      0x8054
2441 #define GL_RGBA2_EXT                      0x8055
2442 #define GL_RGBA4_EXT                      0x8056
2443 #define GL_RGB5_A1_EXT                    0x8057
2444 #define GL_RGBA8_EXT                      0x8058
2445 #define GL_RGB10_A2_EXT                   0x8059
2446 #define GL_RGBA12_EXT                     0x805A
2447 #define GL_RGBA16_EXT                     0x805B
2448 #define GL_TEXTURE_RED_SIZE_EXT           0x805C
2449 #define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
2450 #define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
2451 #define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
2452 #define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
2453 #define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
2454 #define GL_REPLACE_EXT                    0x8062
2455 #define GL_PROXY_TEXTURE_1D_EXT           0x8063
2456 #define GL_PROXY_TEXTURE_2D_EXT           0x8064
2457 #define GL_TEXTURE_TOO_LARGE_EXT          0x8065
2458 #endif
2459
2460 #ifndef GL_EXT_texture3D
2461 #define GL_PACK_SKIP_IMAGES_EXT           0x806B
2462 #define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
2463 #define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
2464 #define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
2465 #define GL_TEXTURE_3D_EXT                 0x806F
2466 #define GL_PROXY_TEXTURE_3D_EXT           0x8070
2467 #define GL_TEXTURE_DEPTH_EXT              0x8071
2468 #define GL_TEXTURE_WRAP_R_EXT             0x8072
2469 #define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
2470 #endif
2471
2472 #ifndef GL_SGIS_texture_filter4
2473 #define GL_FILTER4_SGIS                   0x8146
2474 #define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
2475 #endif
2476
2477 #ifndef GL_EXT_subtexture
2478 #endif
2479
2480 #ifndef GL_EXT_copy_texture
2481 #endif
2482
2483 #ifndef GL_EXT_histogram
2484 #define GL_HISTOGRAM_EXT                  0x8024
2485 #define GL_PROXY_HISTOGRAM_EXT            0x8025
2486 #define GL_HISTOGRAM_WIDTH_EXT            0x8026
2487 #define GL_HISTOGRAM_FORMAT_EXT           0x8027
2488 #define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
2489 #define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
2490 #define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
2491 #define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
2492 #define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
2493 #define GL_HISTOGRAM_SINK_EXT             0x802D
2494 #define GL_MINMAX_EXT                     0x802E
2495 #define GL_MINMAX_FORMAT_EXT              0x802F
2496 #define GL_MINMAX_SINK_EXT                0x8030
2497 #define GL_TABLE_TOO_LARGE_EXT            0x8031
2498 #endif
2499
2500 #ifndef GL_EXT_convolution
2501 #define GL_CONVOLUTION_1D_EXT             0x8010
2502 #define GL_CONVOLUTION_2D_EXT             0x8011
2503 #define GL_SEPARABLE_2D_EXT               0x8012
2504 #define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
2505 #define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
2506 #define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
2507 #define GL_REDUCE_EXT                     0x8016
2508 #define GL_CONVOLUTION_FORMAT_EXT         0x8017
2509 #define GL_CONVOLUTION_WIDTH_EXT          0x8018
2510 #define GL_CONVOLUTION_HEIGHT_EXT         0x8019
2511 #define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
2512 #define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
2513 #define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
2514 #define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
2515 #define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
2516 #define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
2517 #define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
2518 #define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
2519 #define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
2520 #define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
2521 #endif
2522
2523 #ifndef GL_SGI_color_matrix
2524 #define GL_COLOR_MATRIX_SGI               0x80B1
2525 #define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
2526 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
2527 #define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
2528 #define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
2529 #define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
2530 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
2531 #define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
2532 #define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
2533 #define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
2534 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
2535 #endif
2536
2537 #ifndef GL_SGI_color_table
2538 #define GL_COLOR_TABLE_SGI                0x80D0
2539 #define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
2540 #define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
2541 #define GL_PROXY_COLOR_TABLE_SGI          0x80D3
2542 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
2543 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
2544 #define GL_COLOR_TABLE_SCALE_SGI          0x80D6
2545 #define GL_COLOR_TABLE_BIAS_SGI           0x80D7
2546 #define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
2547 #define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
2548 #define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
2549 #define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
2550 #define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
2551 #define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
2552 #define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
2553 #define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
2554 #endif
2555
2556 #ifndef GL_SGIS_pixel_texture
2557 #define GL_PIXEL_TEXTURE_SGIS             0x8353
2558 #define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
2559 #define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
2560 #define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
2561 #endif
2562
2563 #ifndef GL_SGIX_pixel_texture
2564 #define GL_PIXEL_TEX_GEN_SGIX             0x8139
2565 #define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
2566 #endif
2567
2568 #ifndef GL_SGIS_texture4D
2569 #define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
2570 #define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
2571 #define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
2572 #define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
2573 #define GL_TEXTURE_4D_SGIS                0x8134
2574 #define GL_PROXY_TEXTURE_4D_SGIS          0x8135
2575 #define GL_TEXTURE_4DSIZE_SGIS            0x8136
2576 #define GL_TEXTURE_WRAP_Q_SGIS            0x8137
2577 #define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
2578 #define GL_TEXTURE_4D_BINDING_SGIS        0x814F
2579 #endif
2580
2581 #ifndef GL_SGI_texture_color_table
2582 #define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
2583 #define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
2584 #endif
2585
2586 #ifndef GL_EXT_cmyka
2587 #define GL_CMYK_EXT                       0x800C
2588 #define GL_CMYKA_EXT                      0x800D
2589 #define GL_PACK_CMYK_HINT_EXT             0x800E
2590 #define GL_UNPACK_CMYK_HINT_EXT           0x800F
2591 #endif
2592
2593 #ifndef GL_EXT_texture_object
2594 #define GL_TEXTURE_PRIORITY_EXT           0x8066
2595 #define GL_TEXTURE_RESIDENT_EXT           0x8067
2596 #define GL_TEXTURE_1D_BINDING_EXT         0x8068
2597 #define GL_TEXTURE_2D_BINDING_EXT         0x8069
2598 #define GL_TEXTURE_3D_BINDING_EXT         0x806A
2599 #endif
2600
2601 #ifndef GL_SGIS_detail_texture
2602 #define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
2603 #define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
2604 #define GL_LINEAR_DETAIL_SGIS             0x8097
2605 #define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
2606 #define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
2607 #define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
2608 #define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
2609 #define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
2610 #endif
2611
2612 #ifndef GL_SGIS_sharpen_texture
2613 #define GL_LINEAR_SHARPEN_SGIS            0x80AD
2614 #define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
2615 #define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
2616 #define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
2617 #endif
2618
2619 #ifndef GL_EXT_packed_pixels
2620 #define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
2621 #define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
2622 #define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
2623 #define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
2624 #define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
2625 #endif
2626
2627 #ifndef GL_SGIS_texture_lod
2628 #define GL_TEXTURE_MIN_LOD_SGIS           0x813A
2629 #define GL_TEXTURE_MAX_LOD_SGIS           0x813B
2630 #define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
2631 #define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
2632 #endif
2633
2634 #ifndef GL_SGIS_multisample
2635 #define GL_MULTISAMPLE_SGIS               0x809D
2636 #define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
2637 #define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
2638 #define GL_SAMPLE_MASK_SGIS               0x80A0
2639 #define GL_1PASS_SGIS                     0x80A1
2640 #define GL_2PASS_0_SGIS                   0x80A2
2641 #define GL_2PASS_1_SGIS                   0x80A3
2642 #define GL_4PASS_0_SGIS                   0x80A4
2643 #define GL_4PASS_1_SGIS                   0x80A5
2644 #define GL_4PASS_2_SGIS                   0x80A6
2645 #define GL_4PASS_3_SGIS                   0x80A7
2646 #define GL_SAMPLE_BUFFERS_SGIS            0x80A8
2647 #define GL_SAMPLES_SGIS                   0x80A9
2648 #define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
2649 #define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
2650 #define GL_SAMPLE_PATTERN_SGIS            0x80AC
2651 #endif
2652
2653 #ifndef GL_EXT_rescale_normal
2654 #define GL_RESCALE_NORMAL_EXT             0x803A
2655 #endif
2656
2657 #ifndef GL_EXT_vertex_array
2658 #define GL_VERTEX_ARRAY_EXT               0x8074
2659 #define GL_NORMAL_ARRAY_EXT               0x8075
2660 #define GL_COLOR_ARRAY_EXT                0x8076
2661 #define GL_INDEX_ARRAY_EXT                0x8077
2662 #define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
2663 #define GL_EDGE_FLAG_ARRAY_EXT            0x8079
2664 #define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
2665 #define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
2666 #define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
2667 #define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
2668 #define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
2669 #define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
2670 #define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
2671 #define GL_COLOR_ARRAY_SIZE_EXT           0x8081
2672 #define GL_COLOR_ARRAY_TYPE_EXT           0x8082
2673 #define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
2674 #define GL_COLOR_ARRAY_COUNT_EXT          0x8084
2675 #define GL_INDEX_ARRAY_TYPE_EXT           0x8085
2676 #define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
2677 #define GL_INDEX_ARRAY_COUNT_EXT          0x8087
2678 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
2679 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
2680 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
2681 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
2682 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
2683 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
2684 #define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
2685 #define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
2686 #define GL_COLOR_ARRAY_POINTER_EXT        0x8090
2687 #define GL_INDEX_ARRAY_POINTER_EXT        0x8091
2688 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
2689 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
2690 #endif
2691
2692 #ifndef GL_EXT_misc_attribute
2693 #endif
2694
2695 #ifndef GL_SGIS_generate_mipmap
2696 #define GL_GENERATE_MIPMAP_SGIS           0x8191
2697 #define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
2698 #endif
2699
2700 #ifndef GL_SGIX_clipmap
2701 #define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
2702 #define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
2703 #define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
2704 #define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
2705 #define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
2706 #define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
2707 #define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
2708 #define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
2709 #define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
2710 #define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
2711 #define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
2712 #define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
2713 #endif
2714
2715 #ifndef GL_SGIX_shadow
2716 #define GL_TEXTURE_COMPARE_SGIX           0x819A
2717 #define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
2718 #define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
2719 #define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
2720 #endif
2721
2722 #ifndef GL_SGIS_texture_edge_clamp
2723 #define GL_CLAMP_TO_EDGE_SGIS             0x812F
2724 #endif
2725
2726 #ifndef GL_SGIS_texture_border_clamp
2727 #define GL_CLAMP_TO_BORDER_SGIS           0x812D
2728 #endif
2729
2730 #ifndef GL_EXT_blend_minmax
2731 #define GL_FUNC_ADD_EXT                   0x8006
2732 #define GL_MIN_EXT                        0x8007
2733 #define GL_MAX_EXT                        0x8008
2734 #define GL_BLEND_EQUATION_EXT             0x8009
2735 #endif
2736
2737 #ifndef GL_EXT_blend_subtract
2738 #define GL_FUNC_SUBTRACT_EXT              0x800A
2739 #define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
2740 #endif
2741
2742 #ifndef GL_EXT_blend_logic_op
2743 #endif
2744
2745 #ifndef GL_SGIX_interlace
2746 #define GL_INTERLACE_SGIX                 0x8094
2747 #endif
2748
2749 #ifndef GL_SGIX_pixel_tiles
2750 #define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
2751 #define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
2752 #define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
2753 #define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
2754 #define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
2755 #define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
2756 #define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
2757 #define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
2758 #endif
2759
2760 #ifndef GL_SGIS_texture_select
2761 #define GL_DUAL_ALPHA4_SGIS               0x8110
2762 #define GL_DUAL_ALPHA8_SGIS               0x8111
2763 #define GL_DUAL_ALPHA12_SGIS              0x8112
2764 #define GL_DUAL_ALPHA16_SGIS              0x8113
2765 #define GL_DUAL_LUMINANCE4_SGIS           0x8114
2766 #define GL_DUAL_LUMINANCE8_SGIS           0x8115
2767 #define GL_DUAL_LUMINANCE12_SGIS          0x8116
2768 #define GL_DUAL_LUMINANCE16_SGIS          0x8117
2769 #define GL_DUAL_INTENSITY4_SGIS           0x8118
2770 #define GL_DUAL_INTENSITY8_SGIS           0x8119
2771 #define GL_DUAL_INTENSITY12_SGIS          0x811A
2772 #define GL_DUAL_INTENSITY16_SGIS          0x811B
2773 #define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
2774 #define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
2775 #define GL_QUAD_ALPHA4_SGIS               0x811E
2776 #define GL_QUAD_ALPHA8_SGIS               0x811F
2777 #define GL_QUAD_LUMINANCE4_SGIS           0x8120
2778 #define GL_QUAD_LUMINANCE8_SGIS           0x8121
2779 #define GL_QUAD_INTENSITY4_SGIS           0x8122
2780 #define GL_QUAD_INTENSITY8_SGIS           0x8123
2781 #define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
2782 #define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
2783 #endif
2784
2785 #ifndef GL_SGIX_sprite
2786 #define GL_SPRITE_SGIX                    0x8148
2787 #define GL_SPRITE_MODE_SGIX               0x8149
2788 #define GL_SPRITE_AXIS_SGIX               0x814A
2789 #define GL_SPRITE_TRANSLATION_SGIX        0x814B
2790 #define GL_SPRITE_AXIAL_SGIX              0x814C
2791 #define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
2792 #define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
2793 #endif
2794
2795 #ifndef GL_SGIX_texture_multi_buffer
2796 #define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
2797 #endif
2798
2799 #ifndef GL_EXT_point_parameters
2800 #define GL_POINT_SIZE_MIN_EXT             0x8126
2801 #define GL_POINT_SIZE_MAX_EXT             0x8127
2802 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
2803 #define GL_DISTANCE_ATTENUATION_EXT       0x8129
2804 #endif
2805
2806 #ifndef GL_SGIS_point_parameters
2807 #define GL_POINT_SIZE_MIN_SGIS            0x8126
2808 #define GL_POINT_SIZE_MAX_SGIS            0x8127
2809 #define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
2810 #define GL_DISTANCE_ATTENUATION_SGIS      0x8129
2811 #endif
2812
2813 #ifndef GL_SGIX_instruments
2814 #define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
2815 #define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
2816 #endif
2817
2818 #ifndef GL_SGIX_texture_scale_bias
2819 #define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
2820 #define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
2821 #define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
2822 #define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
2823 #endif
2824
2825 #ifndef GL_SGIX_framezoom
2826 #define GL_FRAMEZOOM_SGIX                 0x818B
2827 #define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
2828 #define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
2829 #endif
2830
2831 #ifndef GL_SGIX_tag_sample_buffer
2832 #endif
2833
2834 #ifndef GL_FfdMaskSGIX
2835 #define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
2836 #define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
2837 #endif
2838
2839 #ifndef GL_SGIX_polynomial_ffd
2840 #define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
2841 #define GL_TEXTURE_DEFORMATION_SGIX       0x8195
2842 #define GL_DEFORMATIONS_MASK_SGIX         0x8196
2843 #define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
2844 #endif
2845
2846 #ifndef GL_SGIX_reference_plane
2847 #define GL_REFERENCE_PLANE_SGIX           0x817D
2848 #define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
2849 #endif
2850
2851 #ifndef GL_SGIX_flush_raster
2852 #endif
2853
2854 #ifndef GL_SGIX_depth_texture
2855 #define GL_DEPTH_COMPONENT16_SGIX         0x81A5
2856 #define GL_DEPTH_COMPONENT24_SGIX         0x81A6
2857 #define GL_DEPTH_COMPONENT32_SGIX         0x81A7
2858 #endif
2859
2860 #ifndef GL_SGIS_fog_function
2861 #define GL_FOG_FUNC_SGIS                  0x812A
2862 #define GL_FOG_FUNC_POINTS_SGIS           0x812B
2863 #define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
2864 #endif
2865
2866 #ifndef GL_SGIX_fog_offset
2867 #define GL_FOG_OFFSET_SGIX                0x8198
2868 #define GL_FOG_OFFSET_VALUE_SGIX          0x8199
2869 #endif
2870
2871 #ifndef GL_HP_image_transform
2872 #define GL_IMAGE_SCALE_X_HP               0x8155
2873 #define GL_IMAGE_SCALE_Y_HP               0x8156
2874 #define GL_IMAGE_TRANSLATE_X_HP           0x8157
2875 #define GL_IMAGE_TRANSLATE_Y_HP           0x8158
2876 #define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
2877 #define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
2878 #define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
2879 #define GL_IMAGE_MAG_FILTER_HP            0x815C
2880 #define GL_IMAGE_MIN_FILTER_HP            0x815D
2881 #define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
2882 #define GL_CUBIC_HP                       0x815F
2883 #define GL_AVERAGE_HP                     0x8160
2884 #define GL_IMAGE_TRANSFORM_2D_HP          0x8161
2885 #define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
2886 #define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
2887 #endif
2888
2889 #ifndef GL_HP_convolution_border_modes
2890 #define GL_IGNORE_BORDER_HP               0x8150
2891 #define GL_CONSTANT_BORDER_HP             0x8151
2892 #define GL_REPLICATE_BORDER_HP            0x8153
2893 #define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
2894 #endif
2895
2896 #ifndef GL_INGR_palette_buffer
2897 #endif
2898
2899 #ifndef GL_SGIX_texture_add_env
2900 #define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
2901 #endif
2902
2903 #ifndef GL_EXT_color_subtable
2904 #endif
2905
2906 #ifndef GL_PGI_vertex_hints
2907 #define GL_VERTEX_DATA_HINT_PGI           0x1A22A
2908 #define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
2909 #define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
2910 #define GL_MAX_VERTEX_HINT_PGI            0x1A22D
2911 #define GL_COLOR3_BIT_PGI                 0x00010000
2912 #define GL_COLOR4_BIT_PGI                 0x00020000
2913 #define GL_EDGEFLAG_BIT_PGI               0x00040000
2914 #define GL_INDEX_BIT_PGI                  0x00080000
2915 #define GL_MAT_AMBIENT_BIT_PGI            0x00100000
2916 #define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
2917 #define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
2918 #define GL_MAT_EMISSION_BIT_PGI           0x00800000
2919 #define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
2920 #define GL_MAT_SHININESS_BIT_PGI          0x02000000
2921 #define GL_MAT_SPECULAR_BIT_PGI           0x04000000
2922 #define GL_NORMAL_BIT_PGI                 0x08000000
2923 #define GL_TEXCOORD1_BIT_PGI              0x10000000
2924 #define GL_TEXCOORD2_BIT_PGI              0x20000000
2925 #define GL_TEXCOORD3_BIT_PGI              0x40000000
2926 #define GL_TEXCOORD4_BIT_PGI              0x80000000
2927 #define GL_VERTEX23_BIT_PGI               0x00000004
2928 #define GL_VERTEX4_BIT_PGI                0x00000008
2929 #endif
2930
2931 #ifndef GL_PGI_misc_hints
2932 #define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
2933 #define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
2934 #define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
2935 #define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
2936 #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
2937 #define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
2938 #define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
2939 #define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
2940 #define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
2941 #define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
2942 #define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
2943 #define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
2944 #define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
2945 #define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
2946 #define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
2947 #define GL_FULL_STIPPLE_HINT_PGI          0x1A219
2948 #define GL_CLIP_NEAR_HINT_PGI             0x1A220
2949 #define GL_CLIP_FAR_HINT_PGI              0x1A221
2950 #define GL_WIDE_LINE_HINT_PGI             0x1A222
2951 #define GL_BACK_NORMALS_HINT_PGI          0x1A223
2952 #endif
2953
2954 #ifndef GL_EXT_paletted_texture
2955 #define GL_COLOR_INDEX1_EXT               0x80E2
2956 #define GL_COLOR_INDEX2_EXT               0x80E3
2957 #define GL_COLOR_INDEX4_EXT               0x80E4
2958 #define GL_COLOR_INDEX8_EXT               0x80E5
2959 #define GL_COLOR_INDEX12_EXT              0x80E6
2960 #define GL_COLOR_INDEX16_EXT              0x80E7
2961 #define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
2962 #endif
2963
2964 #ifndef GL_EXT_clip_volume_hint
2965 #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
2966 #endif
2967
2968 #ifndef GL_SGIX_list_priority
2969 #define GL_LIST_PRIORITY_SGIX             0x8182
2970 #endif
2971
2972 #ifndef GL_SGIX_ir_instrument1
2973 #define GL_IR_INSTRUMENT1_SGIX            0x817F
2974 #endif
2975
2976 #ifndef GL_SGIX_calligraphic_fragment
2977 #define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
2978 #endif
2979
2980 #ifndef GL_SGIX_texture_lod_bias
2981 #define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
2982 #define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
2983 #define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
2984 #endif
2985
2986 #ifndef GL_SGIX_shadow_ambient
2987 #define GL_SHADOW_AMBIENT_SGIX            0x80BF
2988 #endif
2989
2990 #ifndef GL_EXT_index_texture
2991 #endif
2992
2993 #ifndef GL_EXT_index_material
2994 #define GL_INDEX_MATERIAL_EXT             0x81B8
2995 #define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
2996 #define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
2997 #endif
2998
2999 #ifndef GL_EXT_index_func
3000 #define GL_INDEX_TEST_EXT                 0x81B5
3001 #define GL_INDEX_TEST_FUNC_EXT            0x81B6
3002 #define GL_INDEX_TEST_REF_EXT             0x81B7
3003 #endif
3004
3005 #ifndef GL_EXT_index_array_formats
3006 #define GL_IUI_V2F_EXT                    0x81AD
3007 #define GL_IUI_V3F_EXT                    0x81AE
3008 #define GL_IUI_N3F_V2F_EXT                0x81AF
3009 #define GL_IUI_N3F_V3F_EXT                0x81B0
3010 #define GL_T2F_IUI_V2F_EXT                0x81B1
3011 #define GL_T2F_IUI_V3F_EXT                0x81B2
3012 #define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
3013 #define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
3014 #endif
3015
3016 #ifndef GL_EXT_compiled_vertex_array
3017 #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
3018 #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
3019 #endif
3020
3021 #ifndef GL_EXT_cull_vertex
3022 #define GL_CULL_VERTEX_EXT                0x81AA
3023 #define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
3024 #define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
3025 #endif
3026
3027 #ifndef GL_SGIX_ycrcb
3028 #define GL_YCRCB_422_SGIX                 0x81BB
3029 #define GL_YCRCB_444_SGIX                 0x81BC
3030 #endif
3031
3032 #ifndef GL_SGIX_fragment_lighting
3033 #define GL_FRAGMENT_LIGHTING_SGIX         0x8400
3034 #define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
3035 #define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
3036 #define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
3037 #define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
3038 #define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
3039 #define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
3040 #define GL_LIGHT_ENV_MODE_SGIX            0x8407
3041 #define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
3042 #define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
3043 #define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
3044 #define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
3045 #define GL_FRAGMENT_LIGHT0_SGIX           0x840C
3046 #define GL_FRAGMENT_LIGHT1_SGIX           0x840D
3047 #define GL_FRAGMENT_LIGHT2_SGIX           0x840E
3048 #define GL_FRAGMENT_LIGHT3_SGIX           0x840F
3049 #define GL_FRAGMENT_LIGHT4_SGIX           0x8410
3050 #define GL_FRAGMENT_LIGHT5_SGIX           0x8411
3051 #define GL_FRAGMENT_LIGHT6_SGIX           0x8412
3052 #define GL_FRAGMENT_LIGHT7_SGIX           0x8413
3053 #endif
3054
3055 #ifndef GL_IBM_rasterpos_clip
3056 #define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
3057 #endif
3058
3059 #ifndef GL_HP_texture_lighting
3060 #define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
3061 #define GL_TEXTURE_POST_SPECULAR_HP       0x8168
3062 #define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
3063 #endif
3064
3065 #ifndef GL_EXT_draw_range_elements
3066 #define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
3067 #define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
3068 #endif
3069
3070 #ifndef GL_WIN_phong_shading
3071 #define GL_PHONG_WIN                      0x80EA
3072 #define GL_PHONG_HINT_WIN                 0x80EB
3073 #endif
3074
3075 #ifndef GL_WIN_specular_fog
3076 #define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
3077 #endif
3078
3079 #ifndef GL_EXT_light_texture
3080 #define GL_FRAGMENT_MATERIAL_EXT          0x8349
3081 #define GL_FRAGMENT_NORMAL_EXT            0x834A
3082 #define GL_FRAGMENT_COLOR_EXT             0x834C
3083 #define GL_ATTENUATION_EXT                0x834D
3084 #define GL_SHADOW_ATTENUATION_EXT         0x834E
3085 #define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
3086 #define GL_TEXTURE_LIGHT_EXT              0x8350
3087 #define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
3088 #define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
3089 /* reuse GL_FRAGMENT_DEPTH_EXT */
3090 #endif
3091
3092 #ifndef GL_SGIX_blend_alpha_minmax
3093 #define GL_ALPHA_MIN_SGIX                 0x8320
3094 #define GL_ALPHA_MAX_SGIX                 0x8321
3095 #endif
3096
3097 #ifndef GL_SGIX_impact_pixel_texture
3098 #define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX   0x8184
3099 #define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX     0x8185
3100 #define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX     0x8186
3101 #define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187
3102 #define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188
3103 #define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX    0x8189
3104 #define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX    0x818A
3105 #endif
3106
3107 #ifndef GL_EXT_bgra
3108 #define GL_BGR_EXT                        0x80E0
3109 #define GL_BGRA_EXT                       0x80E1
3110 #endif
3111
3112 #ifndef GL_SGIX_async
3113 #define GL_ASYNC_MARKER_SGIX              0x8329
3114 #endif
3115
3116 #ifndef GL_SGIX_async_pixel
3117 #define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
3118 #define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
3119 #define GL_ASYNC_READ_PIXELS_SGIX         0x835E
3120 #define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
3121 #define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
3122 #define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
3123 #endif
3124
3125 #ifndef GL_SGIX_async_histogram
3126 #define GL_ASYNC_HISTOGRAM_SGIX           0x832C
3127 #define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
3128 #endif
3129
3130 #ifndef GL_INTEL_texture_scissor
3131 #endif
3132
3133 #ifndef GL_INTEL_parallel_arrays
3134 #define GL_PARALLEL_ARRAYS_INTEL          0x83F4
3135 #define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
3136 #define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
3137 #define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
3138 #define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
3139 #endif
3140
3141 #ifndef GL_HP_occlusion_test
3142 #define GL_OCCLUSION_TEST_HP              0x8165
3143 #define GL_OCCLUSION_TEST_RESULT_HP       0x8166
3144 #endif
3145
3146 #ifndef GL_EXT_pixel_transform
3147 #define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
3148 #define GL_PIXEL_MAG_FILTER_EXT           0x8331
3149 #define GL_PIXEL_MIN_FILTER_EXT           0x8332
3150 #define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
3151 #define GL_CUBIC_EXT                      0x8334
3152 #define GL_AVERAGE_EXT                    0x8335
3153 #define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
3154 #define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
3155 #define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
3156 #endif
3157
3158 #ifndef GL_EXT_pixel_transform_color_table
3159 #endif
3160
3161 #ifndef GL_EXT_shared_texture_palette
3162 #define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
3163 #endif
3164
3165 #ifndef GL_EXT_separate_specular_color
3166 #define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
3167 #define GL_SINGLE_COLOR_EXT               0x81F9
3168 #define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
3169 #endif
3170
3171 #ifndef GL_EXT_secondary_color
3172 #define GL_COLOR_SUM_EXT                  0x8458
3173 #define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
3174 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
3175 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
3176 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
3177 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
3178 #define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
3179 #endif
3180
3181 #ifndef GL_EXT_texture_perturb_normal
3182 #define GL_PERTURB_EXT                    0x85AE
3183 #define GL_TEXTURE_NORMAL_EXT             0x85AF
3184 #endif
3185
3186 #ifndef GL_EXT_multi_draw_arrays
3187 #endif
3188
3189 #ifndef GL_EXT_fog_coord
3190 #define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
3191 #define GL_FOG_COORDINATE_EXT             0x8451
3192 #define GL_FRAGMENT_DEPTH_EXT             0x8452
3193 #define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
3194 #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
3195 #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
3196 #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
3197 #define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
3198 #endif
3199
3200 #ifndef GL_REND_screen_coordinates
3201 #define GL_SCREEN_COORDINATES_REND        0x8490
3202 #define GL_INVERTED_SCREEN_W_REND         0x8491
3203 #endif
3204
3205 #ifndef GL_EXT_coordinate_frame
3206 #define GL_TANGENT_ARRAY_EXT              0x8439
3207 #define GL_BINORMAL_ARRAY_EXT             0x843A
3208 #define GL_CURRENT_TANGENT_EXT            0x843B
3209 #define GL_CURRENT_BINORMAL_EXT           0x843C
3210 #define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
3211 #define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
3212 #define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
3213 #define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
3214 #define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
3215 #define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
3216 #define GL_MAP1_TANGENT_EXT               0x8444
3217 #define GL_MAP2_TANGENT_EXT               0x8445
3218 #define GL_MAP1_BINORMAL_EXT              0x8446
3219 #define GL_MAP2_BINORMAL_EXT              0x8447
3220 #endif
3221
3222 #ifndef GL_EXT_texture_env_combine
3223 #define GL_COMBINE_EXT                    0x8570
3224 #define GL_COMBINE_RGB_EXT                0x8571
3225 #define GL_COMBINE_ALPHA_EXT              0x8572
3226 #define GL_RGB_SCALE_EXT                  0x8573
3227 #define GL_ADD_SIGNED_EXT                 0x8574
3228 #define GL_INTERPOLATE_EXT                0x8575
3229 #define GL_CONSTANT_EXT                   0x8576
3230 #define GL_PRIMARY_COLOR_EXT              0x8577
3231 #define GL_PREVIOUS_EXT                   0x8578
3232 #define GL_SOURCE0_RGB_EXT                0x8580
3233 #define GL_SOURCE1_RGB_EXT                0x8581
3234 #define GL_SOURCE2_RGB_EXT                0x8582
3235 #define GL_SOURCE0_ALPHA_EXT              0x8588
3236 #define GL_SOURCE1_ALPHA_EXT              0x8589
3237 #define GL_SOURCE2_ALPHA_EXT              0x858A
3238 #define GL_OPERAND0_RGB_EXT               0x8590
3239 #define GL_OPERAND1_RGB_EXT               0x8591
3240 #define GL_OPERAND2_RGB_EXT               0x8592
3241 #define GL_OPERAND0_ALPHA_EXT             0x8598
3242 #define GL_OPERAND1_ALPHA_EXT             0x8599
3243 #define GL_OPERAND2_ALPHA_EXT             0x859A
3244 #endif
3245
3246 #ifndef GL_APPLE_specular_vector
3247 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
3248 #endif
3249
3250 #ifndef GL_APPLE_transform_hint
3251 #define GL_TRANSFORM_HINT_APPLE           0x85B1
3252 #endif
3253
3254 #ifndef GL_SGIX_fog_scale
3255 #define GL_FOG_SCALE_SGIX                 0x81FC
3256 #define GL_FOG_SCALE_VALUE_SGIX           0x81FD
3257 #endif
3258
3259 #ifndef GL_SUNX_constant_data
3260 #define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
3261 #define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
3262 #endif
3263
3264 #ifndef GL_SUN_global_alpha
3265 #define GL_GLOBAL_ALPHA_SUN               0x81D9
3266 #define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
3267 #endif
3268
3269 #ifndef GL_SUN_triangle_list
3270 #define GL_RESTART_SUN                    0x0001
3271 #define GL_REPLACE_MIDDLE_SUN             0x0002
3272 #define GL_REPLACE_OLDEST_SUN             0x0003
3273 #define GL_TRIANGLE_LIST_SUN              0x81D7
3274 #define GL_REPLACEMENT_CODE_SUN           0x81D8
3275 #define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
3276 #define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
3277 #define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
3278 #define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
3279 #define GL_R1UI_V3F_SUN                   0x85C4
3280 #define GL_R1UI_C4UB_V3F_SUN              0x85C5
3281 #define GL_R1UI_C3F_V3F_SUN               0x85C6
3282 #define GL_R1UI_N3F_V3F_SUN               0x85C7
3283 #define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
3284 #define GL_R1UI_T2F_V3F_SUN               0x85C9
3285 #define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
3286 #define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
3287 #endif
3288
3289 #ifndef GL_SUN_vertex
3290 #endif
3291
3292 #ifndef GL_EXT_blend_func_separate
3293 #define GL_BLEND_DST_RGB_EXT              0x80C8
3294 #define GL_BLEND_SRC_RGB_EXT              0x80C9
3295 #define GL_BLEND_DST_ALPHA_EXT            0x80CA
3296 #define GL_BLEND_SRC_ALPHA_EXT            0x80CB
3297 #endif
3298
3299 #ifndef GL_INGR_color_clamp
3300 #define GL_RED_MIN_CLAMP_INGR             0x8560
3301 #define GL_GREEN_MIN_CLAMP_INGR           0x8561
3302 #define GL_BLUE_MIN_CLAMP_INGR            0x8562
3303 #define GL_ALPHA_MIN_CLAMP_INGR           0x8563
3304 #define GL_RED_MAX_CLAMP_INGR             0x8564
3305 #define GL_GREEN_MAX_CLAMP_INGR           0x8565
3306 #define GL_BLUE_MAX_CLAMP_INGR            0x8566
3307 #define GL_ALPHA_MAX_CLAMP_INGR           0x8567
3308 #endif
3309
3310 #ifndef GL_INGR_interlace_read
3311 #define GL_INTERLACE_READ_INGR            0x8568
3312 #endif
3313
3314 #ifndef GL_EXT_stencil_wrap
3315 #define GL_INCR_WRAP_EXT                  0x8507
3316 #define GL_DECR_WRAP_EXT                  0x8508
3317 #endif
3318
3319 #ifndef GL_EXT_422_pixels
3320 #define GL_422_EXT                        0x80CC
3321 #define GL_422_REV_EXT                    0x80CD
3322 #define GL_422_AVERAGE_EXT                0x80CE
3323 #define GL_422_REV_AVERAGE_EXT            0x80CF
3324 #endif
3325
3326 #ifndef GL_NV_texgen_reflection
3327 #define GL_NORMAL_MAP_NV                  0x8511
3328 #define GL_REFLECTION_MAP_NV              0x8512
3329 #endif
3330
3331 #ifndef GL_EXT_texture_cube_map
3332 #define GL_NORMAL_MAP_EXT                 0x8511
3333 #define GL_REFLECTION_MAP_EXT             0x8512
3334 #define GL_TEXTURE_CUBE_MAP_EXT           0x8513
3335 #define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
3336 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
3337 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
3338 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
3339 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
3340 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
3341 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
3342 #define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
3343 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
3344 #endif
3345
3346 #ifndef GL_SUN_convolution_border_modes
3347 #define GL_WRAP_BORDER_SUN                0x81D4
3348 #endif
3349
3350 #ifndef GL_EXT_texture_env_add
3351 #endif
3352
3353 #ifndef GL_EXT_texture_lod_bias
3354 #define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
3355 #define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
3356 #define GL_TEXTURE_LOD_BIAS_EXT           0x8501
3357 #endif
3358
3359 #ifndef GL_EXT_texture_filter_anisotropic
3360 #define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
3361 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
3362 #endif
3363
3364 #ifndef GL_EXT_vertex_weighting
3365 #define GL_MODELVIEW0_STACK_DEPTH_EXT     GL_MODELVIEW_STACK_DEPTH
3366 #define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
3367 #define GL_MODELVIEW0_MATRIX_EXT          GL_MODELVIEW_MATRIX
3368 #define GL_MODELVIEW1_MATRIX_EXT          0x8506
3369 #define GL_VERTEX_WEIGHTING_EXT           0x8509
3370 #define GL_MODELVIEW0_EXT                 GL_MODELVIEW
3371 #define GL_MODELVIEW1_EXT                 0x850A
3372 #define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
3373 #define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
3374 #define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
3375 #define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
3376 #define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
3377 #define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
3378 #endif
3379
3380 #ifndef GL_NV_light_max_exponent
3381 #define GL_MAX_SHININESS_NV               0x8504
3382 #define GL_MAX_SPOT_EXPONENT_NV           0x8505
3383 #endif
3384
3385 #ifndef GL_NV_vertex_array_range
3386 #define GL_VERTEX_ARRAY_RANGE_NV          0x851D
3387 #define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
3388 #define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
3389 #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
3390 #define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
3391 #endif
3392
3393 #ifndef GL_NV_register_combiners
3394 #define GL_REGISTER_COMBINERS_NV          0x8522
3395 #define GL_VARIABLE_A_NV                  0x8523
3396 #define GL_VARIABLE_B_NV                  0x8524
3397 #define GL_VARIABLE_C_NV                  0x8525
3398 #define GL_VARIABLE_D_NV                  0x8526
3399 #define GL_VARIABLE_E_NV                  0x8527
3400 #define GL_VARIABLE_F_NV                  0x8528
3401 #define GL_VARIABLE_G_NV                  0x8529
3402 #define GL_CONSTANT_COLOR0_NV             0x852A
3403 #define GL_CONSTANT_COLOR1_NV             0x852B
3404 #define GL_PRIMARY_COLOR_NV               0x852C
3405 #define GL_SECONDARY_COLOR_NV             0x852D
3406 #define GL_SPARE0_NV                      0x852E
3407 #define GL_SPARE1_NV                      0x852F
3408 #define GL_DISCARD_NV                     0x8530
3409 #define GL_E_TIMES_F_NV                   0x8531
3410 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
3411 #define GL_UNSIGNED_IDENTITY_NV           0x8536
3412 #define GL_UNSIGNED_INVERT_NV             0x8537
3413 #define GL_EXPAND_NORMAL_NV               0x8538
3414 #define GL_EXPAND_NEGATE_NV               0x8539
3415 #define GL_HALF_BIAS_NORMAL_NV            0x853A
3416 #define GL_HALF_BIAS_NEGATE_NV            0x853B
3417 #define GL_SIGNED_IDENTITY_NV             0x853C
3418 #define GL_SIGNED_NEGATE_NV               0x853D
3419 #define GL_SCALE_BY_TWO_NV                0x853E
3420 #define GL_SCALE_BY_FOUR_NV               0x853F
3421 #define GL_SCALE_BY_ONE_HALF_NV           0x8540
3422 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
3423 #define GL_COMBINER_INPUT_NV              0x8542
3424 #define GL_COMBINER_MAPPING_NV            0x8543
3425 #define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
3426 #define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
3427 #define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
3428 #define GL_COMBINER_MUX_SUM_NV            0x8547
3429 #define GL_COMBINER_SCALE_NV              0x8548
3430 #define GL_COMBINER_BIAS_NV               0x8549
3431 #define GL_COMBINER_AB_OUTPUT_NV          0x854A
3432 #define GL_COMBINER_CD_OUTPUT_NV          0x854B
3433 #define GL_COMBINER_SUM_OUTPUT_NV         0x854C
3434 #define GL_MAX_GENERAL_COMBINERS_NV       0x854D
3435 #define GL_NUM_GENERAL_COMBINERS_NV       0x854E
3436 #define GL_COLOR_SUM_CLAMP_NV             0x854F
3437 #define GL_COMBINER0_NV                   0x8550
3438 #define GL_COMBINER1_NV                   0x8551
3439 #define GL_COMBINER2_NV                   0x8552
3440 #define GL_COMBINER3_NV                   0x8553
3441 #define GL_COMBINER4_NV                   0x8554
3442 #define GL_COMBINER5_NV                   0x8555
3443 #define GL_COMBINER6_NV                   0x8556
3444 #define GL_COMBINER7_NV                   0x8557
3445 /* reuse GL_TEXTURE0_ARB */
3446 /* reuse GL_TEXTURE1_ARB */
3447 /* reuse GL_ZERO */
3448 /* reuse GL_NONE */
3449 /* reuse GL_FOG */
3450 #endif
3451
3452 #ifndef GL_NV_fog_distance
3453 #define GL_FOG_DISTANCE_MODE_NV           0x855A
3454 #define GL_EYE_RADIAL_NV                  0x855B
3455 #define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
3456 /* reuse GL_EYE_PLANE */
3457 #endif
3458
3459 #ifndef GL_NV_texgen_emboss
3460 #define GL_EMBOSS_LIGHT_NV                0x855D
3461 #define GL_EMBOSS_CONSTANT_NV             0x855E
3462 #define GL_EMBOSS_MAP_NV                  0x855F
3463 #endif
3464
3465 #ifndef GL_NV_blend_square
3466 #endif
3467
3468 #ifndef GL_NV_texture_env_combine4
3469 #define GL_COMBINE4_NV                    0x8503
3470 #define GL_SOURCE3_RGB_NV                 0x8583
3471 #define GL_SOURCE3_ALPHA_NV               0x858B
3472 #define GL_OPERAND3_RGB_NV                0x8593
3473 #define GL_OPERAND3_ALPHA_NV              0x859B
3474 #endif
3475
3476 #ifndef GL_MESA_resize_buffers
3477 #endif
3478
3479 #ifndef GL_MESA_window_pos
3480 #endif
3481
3482 #ifndef GL_EXT_texture_compression_s3tc
3483 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
3484 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
3485 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
3486 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
3487 #endif
3488
3489 #ifndef GL_IBM_cull_vertex
3490 #define GL_CULL_VERTEX_IBM                103050
3491 #endif
3492
3493 #ifndef GL_IBM_multimode_draw_arrays
3494 #endif
3495
3496 #ifndef GL_IBM_vertex_array_lists
3497 #define GL_VERTEX_ARRAY_LIST_IBM          103070
3498 #define GL_NORMAL_ARRAY_LIST_IBM          103071
3499 #define GL_COLOR_ARRAY_LIST_IBM           103072
3500 #define GL_INDEX_ARRAY_LIST_IBM           103073
3501 #define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
3502 #define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
3503 #define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
3504 #define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
3505 #define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
3506 #define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
3507 #define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
3508 #define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
3509 #define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
3510 #define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
3511 #define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
3512 #define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
3513 #endif
3514
3515 #ifndef GL_SGIX_subsample
3516 #define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
3517 #define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
3518 #define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
3519 #define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
3520 #define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
3521 #endif
3522
3523 #ifndef GL_SGIX_ycrcb_subsample
3524 #endif
3525
3526 #ifndef GL_SGIX_ycrcba
3527 #define GL_YCRCB_SGIX                     0x8318
3528 #define GL_YCRCBA_SGIX                    0x8319
3529 #endif
3530
3531 #ifndef GL_SGI_depth_pass_instrument
3532 #define GL_DEPTH_PASS_INSTRUMENT_SGIX     0x8310
3533 #define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311
3534 #define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312
3535 #endif
3536
3537 #ifndef GL_3DFX_texture_compression_FXT1
3538 #define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
3539 #define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
3540 #endif
3541
3542 #ifndef GL_3DFX_multisample
3543 #define GL_MULTISAMPLE_3DFX               0x86B2
3544 #define GL_SAMPLE_BUFFERS_3DFX            0x86B3
3545 #define GL_SAMPLES_3DFX                   0x86B4
3546 #define GL_MULTISAMPLE_BIT_3DFX           0x20000000
3547 #endif
3548
3549 #ifndef GL_3DFX_tbuffer
3550 #endif
3551
3552 #ifndef GL_EXT_multisample
3553 #define GL_MULTISAMPLE_EXT                0x809D
3554 #define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
3555 #define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
3556 #define GL_SAMPLE_MASK_EXT                0x80A0
3557 #define GL_1PASS_EXT                      0x80A1
3558 #define GL_2PASS_0_EXT                    0x80A2
3559 #define GL_2PASS_1_EXT                    0x80A3
3560 #define GL_4PASS_0_EXT                    0x80A4
3561 #define GL_4PASS_1_EXT                    0x80A5
3562 #define GL_4PASS_2_EXT                    0x80A6
3563 #define GL_4PASS_3_EXT                    0x80A7
3564 #define GL_SAMPLE_BUFFERS_EXT             0x80A8
3565 #define GL_SAMPLES_EXT                    0x80A9
3566 #define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
3567 #define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
3568 #define GL_SAMPLE_PATTERN_EXT             0x80AC
3569 #define GL_MULTISAMPLE_BIT_EXT            0x20000000
3570 #endif
3571
3572 #ifndef GL_SGIX_vertex_preclip
3573 #define GL_VERTEX_PRECLIP_SGIX            0x83EE
3574 #define GL_VERTEX_PRECLIP_HINT_SGIX       0x83EF
3575 #endif
3576
3577 #ifndef GL_SGIX_convolution_accuracy
3578 #define GL_CONVOLUTION_HINT_SGIX          0x8316
3579 #endif
3580
3581 #ifndef GL_SGIX_resample
3582 #define GL_PACK_RESAMPLE_SGIX             0x842C
3583 #define GL_UNPACK_RESAMPLE_SGIX           0x842D
3584 #define GL_RESAMPLE_REPLICATE_SGIX        0x842E
3585 #define GL_RESAMPLE_ZERO_FILL_SGIX        0x842F
3586 #define GL_RESAMPLE_DECIMATE_SGIX         0x8430
3587 #endif
3588
3589 #ifndef GL_SGIS_point_line_texgen
3590 #define GL_EYE_DISTANCE_TO_POINT_SGIS     0x81F0
3591 #define GL_OBJECT_DISTANCE_TO_POINT_SGIS  0x81F1
3592 #define GL_EYE_DISTANCE_TO_LINE_SGIS      0x81F2
3593 #define GL_OBJECT_DISTANCE_TO_LINE_SGIS   0x81F3
3594 #define GL_EYE_POINT_SGIS                 0x81F4
3595 #define GL_OBJECT_POINT_SGIS              0x81F5
3596 #define GL_EYE_LINE_SGIS                  0x81F6
3597 #define GL_OBJECT_LINE_SGIS               0x81F7
3598 #endif
3599
3600 #ifndef GL_SGIS_texture_color_mask
3601 #define GL_TEXTURE_COLOR_WRITEMASK_SGIS   0x81EF
3602 #endif
3603
3604 #ifndef GL_EXT_texture_env_dot3
3605 #define GL_DOT3_RGB_EXT                   0x8740
3606 #define GL_DOT3_RGBA_EXT                  0x8741
3607 #endif
3608
3609 #ifndef GL_ATI_texture_mirror_once
3610 #define GL_MIRROR_CLAMP_ATI               0x8742
3611 #define GL_MIRROR_CLAMP_TO_EDGE_ATI       0x8743
3612 #endif
3613
3614 #ifndef GL_NV_fence
3615 #define GL_ALL_COMPLETED_NV               0x84F2
3616 #define GL_FENCE_STATUS_NV                0x84F3
3617 #define GL_FENCE_CONDITION_NV             0x84F4
3618 #endif
3619
3620 #ifndef GL_IBM_texture_mirrored_repeat
3621 #define GL_MIRRORED_REPEAT_IBM            0x8370
3622 #endif
3623