1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */
28 module derelict.opengl.exttypes;
29 
30 private
31 {
32     import derelict.opengl.gltypes;
33 }
34 
35 version = DerelictGL_ALL;
36 
37 version(DerelictGL_ALL)
38 {
39     version = DerelictGL_ARB;
40     version = DerelictGL_EXT;
41     version = DerelictGL_NV;
42     version = DerelictGL_ATI;
43     version = DerelictGL_AMD;
44     version = DerelictGL_SGI;
45     version = DerelictGL_SGIS;
46     version = DerelictGL_SGIX;
47     version = DerelictGL_HP;
48     version = DerelictGL_PGI;
49     version = DerelictGL_IBM;
50     version = DerelictGL_WIN;
51     version = DerelictGL_INTEL;
52     version = DerelictGL_REND;
53     version = DerelictGL_APPLE;
54     version = DerelictGL_SUNX;
55     version = DerelictGL_SUN;
56     version = DerelictGL_INGR;
57     version = DerelictGL_MESA;
58     version = DerelictGL_3DFX;
59     version = DerelictGL_OML;
60     version = DerelictGL_S3;
61     version = DerelictGL_OES;
62     version = DerelictGL_GREMEDY;
63     version = DerelictGL_MESAX;
64     version = DerelictGL_I3D;
65     version = DerelictGL_3DL;
66 }
67 
68 version(DerelictGL_ARB)
69 {
70     // from GL_ARB_vertex_buffer_object
71     alias ptrdiff_t GLintptrARB;
72     alias ptrdiff_t GLsizeiptrARB;
73 
74     // from GL_ARB_shader_objects
75     alias char GLcharARB;
76     alias uint GLhandleARB;
77 
78     // from GL_ARB_half_float_pixel
79     alias ushort GLhalfARB;
80 
81     // from GL_ARB_cl_event
82     struct _cl_context;
83     struct _cl_event;
84     alias _cl_context* cl_context;
85     alias _cl_event* cl_event;
86 
87     // from GL_ARB_debug_output
88     alias extern(System) void function(GLenum, GLenum, GLuint, GLenum, GLsizei, in GLchar*, GLvoid*) GLDEBUGPROCARB;
89 
90     // from GL_ARB_sync
91     //alias long GLint64;
92     alias ulong GLuint64;
93     struct __GLsync {}
94     alias __GLsync* GLsync;
95 
96     enum : GLenum
97     {
98         // GL_ARB_multitexture
99         GL_TEXTURE0_ARB                   = 0x84C0,
100         GL_TEXTURE1_ARB                   = 0x84C1,
101         GL_TEXTURE2_ARB                   = 0x84C2,
102         GL_TEXTURE3_ARB                   = 0x84C3,
103         GL_TEXTURE4_ARB                   = 0x84C4,
104         GL_TEXTURE5_ARB                   = 0x84C5,
105         GL_TEXTURE6_ARB                   = 0x84C6,
106         GL_TEXTURE7_ARB                   = 0x84C7,
107         GL_TEXTURE8_ARB                   = 0x84C8,
108         GL_TEXTURE9_ARB                   = 0x84C9,
109         GL_TEXTURE10_ARB                  = 0x84CA,
110         GL_TEXTURE11_ARB                  = 0x84CB,
111         GL_TEXTURE12_ARB                  = 0x84CC,
112         GL_TEXTURE13_ARB                  = 0x84CD,
113         GL_TEXTURE14_ARB                  = 0x84CE,
114         GL_TEXTURE15_ARB                  = 0x84CF,
115         GL_TEXTURE16_ARB                  = 0x84D0,
116         GL_TEXTURE17_ARB                  = 0x84D1,
117         GL_TEXTURE18_ARB                  = 0x84D2,
118         GL_TEXTURE19_ARB                  = 0x84D3,
119         GL_TEXTURE20_ARB                  = 0x84D4,
120         GL_TEXTURE21_ARB                  = 0x84D5,
121         GL_TEXTURE22_ARB                  = 0x84D6,
122         GL_TEXTURE23_ARB                  = 0x84D7,
123         GL_TEXTURE24_ARB                  = 0x84D8,
124         GL_TEXTURE25_ARB                  = 0x84D9,
125         GL_TEXTURE26_ARB                  = 0x84DA,
126         GL_TEXTURE27_ARB                  = 0x84DB,
127         GL_TEXTURE28_ARB                  = 0x84DC,
128         GL_TEXTURE29_ARB                  = 0x84DD,
129         GL_TEXTURE30_ARB                  = 0x84DE,
130         GL_TEXTURE31_ARB                  = 0x84DF,
131         GL_ACTIVE_TEXTURE_ARB             = 0x84E0,
132         GL_CLIENT_ACTIVE_TEXTURE_ARB      = 0x84E1,
133         GL_MAX_TEXTURE_UNITS_ARB          = 0x84E2,
134 
135         // GL_ARB_transpose_matrix
136         GL_TRANSPOSE_MODELVIEW_MATRIX_ARB  = 0x84E3,
137         GL_TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4,
138         GL_TRANSPOSE_TEXTURE_MATRIX_ARB    = 0x84E5,
139         GL_TRANSPOSE_COLOR_MATRIX_ARB      = 0x84E6,
140 
141         // GL_ARB_multisample
142         GL_MULTISAMPLE_ARB                = 0x809D,
143         GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   = 0x809E,
144         GL_SAMPLE_ALPHA_TO_ONE_ARB        = 0x809F,
145         GL_SAMPLE_COVERAGE_ARB            = 0x80A0,
146         GL_SAMPLE_BUFFERS_ARB             = 0x80A8,
147         GL_SAMPLES_ARB                    = 0x80A9,
148         GL_SAMPLE_COVERAGE_VALUE_ARB      = 0x80AA,
149         GL_SAMPLE_COVERAGE_INVERT_ARB     = 0x80AB,
150         GL_MULTISAMPLE_BIT_ARB            = 0x20000000,
151 
152         // GL_ARB_texture_cube_map
153         GL_NORMAL_MAP_ARB                  = 0x8511,
154         GL_REFLECTION_MAP_ARB              = 0x8512,
155         GL_TEXTURE_CUBE_MAP_ARB            = 0x8513,
156         GL_TEXTURE_BINDING_CUBE_MAP_ARB    = 0x8514,
157         GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515,
158         GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516,
159         GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517,
160         GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518,
161         GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519,
162         GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A,
163         GL_PROXY_TEXTURE_CUBE_MAP_ARB      = 0x851B,
164         GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB   = 0x851C,
165 
166         // GL_ARB_texture_compression
167         GL_COMPRESSED_ALPHA_ARB                = 0x84E9,
168         GL_COMPRESSED_LUMINANCE_ARB            = 0x84EA,
169         GL_COMPRESSED_LUMINANCE_ALPHA_ARB      = 0x84EB,
170         GL_COMPRESSED_INTENSITY_ARB            = 0x84EC,
171         GL_COMPRESSED_RGB_ARB                  = 0x84ED,
172         GL_COMPRESSED_RGBA_ARB                 = 0x84EE,
173         GL_TEXTURE_COMPRESSION_HINT_ARB        = 0x84EF,
174         GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB   = 0x86A0,
175         GL_TEXTURE_COMPRESSED_ARB              = 0x86A1,
176         GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB  = 0x86A2,
177         GL_COMPRESSED_TEXTURE_FORMATS_ARB      = 0x86A3,
178 
179         // GL_ARB_texture_border_clamp
180         GL_CLAMP_TO_BORDER_ARB = 0x812D,
181 
182         // GL_ARB_point_parameters
183         GL_POINT_SIZE_MIN_ARB             = 0x8126,
184         GL_POINT_SIZE_MAX_ARB             = 0x8127,
185         GL_POINT_FADE_THRESHOLD_SIZE_ARB  = 0x8128,
186         GL_POINT_DISTANCE_ATTENUATION_ARB = 0x8129,
187 
188         // GL_ARB_vertex_blend
189         GL_MAX_VERTEX_UNITS_ARB           = 0x86A4,
190         GL_ACTIVE_VERTEX_UNITS_ARB        = 0x86A5,
191         GL_WEIGHT_SUM_UNITY_ARB           = 0x86A6,
192         GL_VERTEX_BLEND_ARB               = 0x86A7,
193         GL_CURRENT_WEIGHT_ARB             = 0x86A8,
194         GL_WEIGHT_ARRAY_TYPE_ARB          = 0x86A9,
195         GL_WEIGHT_ARRAY_STRIDE_ARB        = 0x86AA,
196         GL_WEIGHT_ARRAY_SIZE_ARB          = 0x86AB,
197         GL_WEIGHT_ARRAY_POINTER_ARB       = 0x86AC,
198         GL_WEIGHT_ARRAY_ARB               = 0x86AD,
199         GL_MODELVIEW0_ARB                 = 0x1700,
200         GL_MODELVIEW1_ARB                 = 0x850A,
201         GL_MODELVIEW2_ARB                 = 0x8722,
202         GL_MODELVIEW3_ARB                 = 0x8723,
203         GL_MODELVIEW4_ARB                 = 0x8724,
204         GL_MODELVIEW5_ARB                 = 0x8725,
205         GL_MODELVIEW6_ARB                 = 0x8726,
206         GL_MODELVIEW7_ARB                 = 0x8727,
207         GL_MODELVIEW8_ARB                 = 0x8728,
208         GL_MODELVIEW9_ARB                 = 0x8729,
209         GL_MODELVIEW10_ARB                = 0x872A,
210         GL_MODELVIEW11_ARB                = 0x872B,
211         GL_MODELVIEW12_ARB                = 0x872C,
212         GL_MODELVIEW13_ARB                = 0x872D,
213         GL_MODELVIEW14_ARB                = 0x872E,
214         GL_MODELVIEW15_ARB                = 0x872F,
215         GL_MODELVIEW16_ARB                = 0x8730,
216         GL_MODELVIEW17_ARB                = 0x8731,
217         GL_MODELVIEW18_ARB                = 0x8732,
218         GL_MODELVIEW19_ARB                = 0x8733,
219         GL_MODELVIEW20_ARB                = 0x8734,
220         GL_MODELVIEW21_ARB                = 0x8735,
221         GL_MODELVIEW22_ARB                = 0x8736,
222         GL_MODELVIEW23_ARB                = 0x8737,
223         GL_MODELVIEW24_ARB                = 0x8738,
224         GL_MODELVIEW25_ARB                = 0x8739,
225         GL_MODELVIEW26_ARB                = 0x873A,
226         GL_MODELVIEW27_ARB                = 0x873B,
227         GL_MODELVIEW28_ARB                = 0x873C,
228         GL_MODELVIEW29_ARB                = 0x873D,
229         GL_MODELVIEW30_ARB                = 0x873E,
230         GL_MODELVIEW31_ARB                = 0x873F,
231 
232         // GL_ARB_matrix_palette
233         GL_MATRIX_PALETTE_ARB                   = 0x8840,
234         GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB   = 0x8841,
235         GL_MAX_PALETTE_MATRICES_ARB             = 0x8842,
236         GL_CURRENT_PALETTE_MATRIX_ARB           = 0x8843,
237         GL_MATRIX_INDEX_ARRAY_ARB               = 0x8844,
238         GL_CURRENT_MATRIX_INDEX_ARB             = 0x8845,
239         GL_MATRIX_INDEX_ARRAY_SIZE_ARB          = 0x8846,
240         GL_MATRIX_INDEX_ARRAY_TYPE_ARB          = 0x8847,
241         GL_MATRIX_INDEX_ARRAY_STRIDE_ARB        = 0x8848,
242         GL_MATRIX_INDEX_ARRAY_POINTER_ARB       = 0x8849,
243 
244         // GL_ARB_texture_env_combine
245         GL_COMBINE_ARB                    = 0x8570,
246         GL_COMBINE_RGB_ARB                = 0x8571,
247         GL_COMBINE_ALPHA_ARB              = 0x8572,
248         GL_SOURCE0_RGB_ARB                = 0x8580,
249         GL_SOURCE1_RGB_ARB                = 0x8581,
250         GL_SOURCE2_RGB_ARB                = 0x8582,
251         GL_SOURCE0_ALPHA_ARB              = 0x8588,
252         GL_SOURCE1_ALPHA_ARB              = 0x8589,
253         GL_SOURCE2_ALPHA_ARB              = 0x858A,
254         GL_OPERAND0_RGB_ARB               = 0x8590,
255         GL_OPERAND1_RGB_ARB               = 0x8591,
256         GL_OPERAND2_RGB_ARB               = 0x8592,
257         GL_OPERAND0_ALPHA_ARB             = 0x8598,
258         GL_OPERAND1_ALPHA_ARB             = 0x8599,
259         GL_OPERAND2_ALPHA_ARB             = 0x859A,
260         GL_RGB_SCALE_ARB                  = 0x8573,
261         GL_ADD_SIGNED_ARB                 = 0x8574,
262         GL_INTERPOLATE_ARB                = 0x8575,
263         GL_SUBTRACT_ARB                   = 0x84E7,
264         GL_CONSTANT_ARB                   = 0x8576,
265         GL_PRIMARY_COLOR_ARB              = 0x8577,
266         GL_PREVIOUS_ARB                   = 0x8578,
267 
268         // GL_ARB_texture_env_dot3
269         GL_DOT3_RGB_ARB   = 0x86AE,
270         GL_DOT3_RGBA_ARB  = 0x86AF,
271 
272         // GL_ARB_texture_mirrored_repeat
273         GL_MIRRORED_REPEAT_ARB = 0x8370,
274 
275         // GL_ARB_depth_texture
276         GL_DEPTH_COMPONENT16_ARB          = 0x81A5,
277         GL_DEPTH_COMPONENT24_ARB          = 0x81A6,
278         GL_DEPTH_COMPONENT32_ARB          = 0x81A7,
279         GL_TEXTURE_DEPTH_SIZE_ARB         = 0x884A,
280         GL_DEPTH_TEXTURE_MODE_ARB         = 0x884B,
281 
282         // GL_ARB_shadow
283         GL_TEXTURE_COMPARE_MODE_ARB       = 0x884C,
284         GL_TEXTURE_COMPARE_FUNC_ARB       = 0x884D,
285         GL_COMPARE_R_TO_TEXTURE_ARB       = 0x884E,
286 
287         // GL_ARB_shadow_ambient
288         GL_TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF,
289 
290         // GL_ARB_vertex_program
291         GL_COLOR_SUM_ARB                           = 0x8458,
292         GL_VERTEX_PROGRAM_ARB                      = 0x8620,
293         GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB         = 0x8622,
294         GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB            = 0x8623,
295         GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB          = 0x8624,
296         GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB            = 0x8625,
297         GL_CURRENT_VERTEX_ATTRIB_ARB               = 0x8626,
298         GL_PROGRAM_LENGTH_ARB                      = 0x8627,
299         GL_PROGRAM_STRING_ARB                      = 0x8628,
300         GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB      = 0x862E,
301         GL_MAX_PROGRAM_MATRICES_ARB                = 0x862F,
302         GL_CURRENT_MATRIX_STACK_DEPTH_ARB          = 0x8640,
303         GL_CURRENT_MATRIX_ARB                      = 0x8641,
304         GL_VERTEX_PROGRAM_POINT_SIZE_ARB           = 0x8642,
305         GL_VERTEX_PROGRAM_TWO_SIDE_ARB             = 0x8643,
306         GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB         = 0x8645,
307         GL_PROGRAM_ERROR_POSITION_ARB              = 0x864B,
308         GL_PROGRAM_BINDING_ARB                     = 0x8677,
309         GL_MAX_VERTEX_ATTRIBS_ARB                  = 0x8869,
310         GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB      = 0x886A,
311         GL_PROGRAM_ERROR_STRING_ARB                = 0x8874,
312         GL_PROGRAM_FORMAT_ASCII_ARB                = 0x8875,
313         GL_PROGRAM_FORMAT_ARB                      = 0x8876,
314         GL_PROGRAM_INSTRUCTIONS_ARB                = 0x88A0,
315         GL_MAX_PROGRAM_INSTRUCTIONS_ARB            = 0x88A1,
316         GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB         = 0x88A2,
317         GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB     = 0x88A3,
318         GL_PROGRAM_TEMPORARIES_ARB                 = 0x88A4,
319         GL_MAX_PROGRAM_TEMPORARIES_ARB             = 0x88A5,
320         GL_PROGRAM_NATIVE_TEMPORARIES_ARB          = 0x88A6,
321         GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB      = 0x88A7,
322         GL_PROGRAM_PARAMETERS_ARB                  = 0x88A8,
323         GL_MAX_PROGRAM_PARAMETERS_ARB              = 0x88A9,
324         GL_PROGRAM_NATIVE_PARAMETERS_ARB           = 0x88AA,
325         GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB       = 0x88AB,
326         GL_PROGRAM_ATTRIBS_ARB                     = 0x88AC,
327         GL_MAX_PROGRAM_ATTRIBS_ARB                 = 0x88AD,
328         GL_PROGRAM_NATIVE_ATTRIBS_ARB              = 0x88AE,
329         GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB          = 0x88AF,
330         GL_PROGRAM_ADDRESS_REGISTERS_ARB           = 0x88B0,
331         GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB       = 0x88B1,
332         GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB    = 0x88B2,
333         GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3,
334         GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB        = 0x88B4,
335         GL_MAX_PROGRAM_ENV_PARAMETERS_ARB          = 0x88B5,
336         GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB         = 0x88B6,
337         GL_TRANSPOSE_CURRENT_MATRIX_ARB            = 0x88B7,
338         GL_MATRIX0_ARB                             = 0x88C0,
339         GL_MATRIX1_ARB                             = 0x88C1,
340         GL_MATRIX2_ARB                             = 0x88C2,
341         GL_MATRIX3_ARB                             = 0x88C3,
342         GL_MATRIX4_ARB                             = 0x88C4,
343         GL_MATRIX5_ARB                             = 0x88C5,
344         GL_MATRIX6_ARB                             = 0x88C6,
345         GL_MATRIX7_ARB                             = 0x88C7,
346         GL_MATRIX8_ARB                             = 0x88C8,
347         GL_MATRIX9_ARB                             = 0x88C9,
348         GL_MATRIX10_ARB                            = 0x88CA,
349         GL_MATRIX11_ARB                            = 0x88CB,
350         GL_MATRIX12_ARB                            = 0x88CC,
351         GL_MATRIX13_ARB                            = 0x88CD,
352         GL_MATRIX14_ARB                            = 0x88CE,
353         GL_MATRIX15_ARB                            = 0x88CF,
354         GL_MATRIX16_ARB                            = 0x88D0,
355         GL_MATRIX17_ARB                            = 0x88D1,
356         GL_MATRIX18_ARB                            = 0x88D2,
357         GL_MATRIX19_ARB                            = 0x88D3,
358         GL_MATRIX20_ARB                            = 0x88D4,
359         GL_MATRIX21_ARB                            = 0x88D5,
360         GL_MATRIX22_ARB                            = 0x88D6,
361         GL_MATRIX23_ARB                            = 0x88D7,
362         GL_MATRIX24_ARB                            = 0x88D8,
363         GL_MATRIX25_ARB                            = 0x88D9,
364         GL_MATRIX26_ARB                            = 0x88DA,
365         GL_MATRIX27_ARB                            = 0x88DB,
366         GL_MATRIX28_ARB                            = 0x88DC,
367         GL_MATRIX29_ARB                            = 0x88DD,
368         GL_MATRIX30_ARB                            = 0x88DE,
369         GL_MATRIX31_ARB                            = 0x88DF,
370 
371         // GL_ARB_fragment_program
372         GL_FRAGMENT_PROGRAM_ARB                        = 0x8804,
373         GL_PROGRAM_ALU_INSTRUCTIONS_ARB                = 0x8805,
374         GL_PROGRAM_TEX_INSTRUCTIONS_ARB                = 0x8806,
375         GL_PROGRAM_TEX_INDIRECTIONS_ARB                = 0x8807,
376         GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB         = 0x8808,
377         GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB         = 0x8809,
378         GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB         = 0x880A,
379         GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB            = 0x880B,
380         GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB            = 0x880C,
381         GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB            = 0x880D,
382         GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB     = 0x880E,
383         GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB     = 0x880F,
384         GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB     = 0x8810,
385         GL_MAX_TEXTURE_COORDS_ARB                      = 0x8871,
386         GL_MAX_TEXTURE_IMAGE_UNITS_ARB                 = 0x8872,
387 
388         // GL_ARB_vertex_buffer_object
389         GL_BUFFER_SIZE_ARB                             = 0x8764,
390         GL_BUFFER_USAGE_ARB                            = 0x8765,
391         GL_ARRAY_BUFFER_ARB                            = 0x8892,
392         GL_ELEMENT_ARRAY_BUFFER_ARB                    = 0x8893,
393         GL_ARRAY_BUFFER_BINDING_ARB                    = 0x8894,
394         GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB            = 0x8895,
395         GL_VERTEX_ARRAY_BUFFER_BINDING_ARB             = 0x8896,
396         GL_NORMAL_ARRAY_BUFFER_BINDING_ARB             = 0x8897,
397         GL_COLOR_ARRAY_BUFFER_BINDING_ARB              = 0x8898,
398         GL_INDEX_ARRAY_BUFFER_BINDING_ARB              = 0x8899,
399         GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB      = 0x889A,
400         GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB          = 0x889B,
401         GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB    = 0x889C,
402         GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB     = 0x889D,
403         GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB             = 0x889E,
404         GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB      = 0x889F,
405         GL_READ_ONLY_ARB                               = 0x88B8,
406         GL_WRITE_ONLY_ARB                              = 0x88B9,
407         GL_READ_WRITE_ARB                              = 0x88BA,
408         GL_BUFFER_ACCESS_ARB                           = 0x88BB,
409         GL_BUFFER_MAPPED_ARB                           = 0x88BC,
410         GL_BUFFER_MAP_POINTER_ARB                      = 0x88BD,
411         GL_STREAM_DRAW_ARB                             = 0x88E0,
412         GL_STREAM_READ_ARB                             = 0x88E1,
413         GL_STREAM_COPY_ARB                             = 0x88E2,
414         GL_STATIC_DRAW_ARB                             = 0x88E4,
415         GL_STATIC_READ_ARB                             = 0x88E5,
416         GL_STATIC_COPY_ARB                             = 0x88E6,
417         GL_DYNAMIC_DRAW_ARB                            = 0x88E8,
418         GL_DYNAMIC_READ_ARB                            = 0x88E9,
419         GL_DYNAMIC_COPY_ARB                            = 0x88EA,
420 
421         // GL_ARB_occlusion_query
422         GL_QUERY_COUNTER_BITS_ARB         = 0x8864,
423         GL_CURRENT_QUERY_ARB              = 0x8865,
424         GL_QUERY_RESULT_ARB               = 0x8866,
425         GL_QUERY_RESULT_AVAILABLE_ARB     = 0x8867,
426         GL_SAMPLES_PASSED_ARB             = 0x8914,
427 
428         // GL_ARB_shader_objects
429         GL_PROGRAM_OBJECT_ARB                  = 0x8B40,
430         GL_SHADER_OBJECT_ARB                   = 0x8B48,
431         GL_OBJECT_TYPE_ARB                     = 0x8B4E,
432         GL_OBJECT_SUBTYPE_ARB                  = 0x8B4F,
433         GL_FLOAT_VEC2_ARB                      = 0x8B50,
434         GL_FLOAT_VEC3_ARB                      = 0x8B51,
435         GL_FLOAT_VEC4_ARB                      = 0x8B52,
436         GL_INT_VEC2_ARB                        = 0x8B53,
437         GL_INT_VEC3_ARB                        = 0x8B54,
438         GL_INT_VEC4_ARB                        = 0x8B55,
439         GL_BOOL_ARB                            = 0x8B56,
440         GL_BOOL_VEC2_ARB                       = 0x8B57,
441         GL_BOOL_VEC3_ARB                       = 0x8B58,
442         GL_BOOL_VEC4_ARB                       = 0x8B59,
443         GL_FLOAT_MAT2_ARB                      = 0x8B5A,
444         GL_FLOAT_MAT3_ARB                      = 0x8B5B,
445         GL_FLOAT_MAT4_ARB                      = 0x8B5C,
446         GL_SAMPLER_1D_ARB                      = 0x8B5D,
447         GL_SAMPLER_2D_ARB                      = 0x8B5E,
448         GL_SAMPLER_3D_ARB                      = 0x8B5F,
449         GL_SAMPLER_CUBE_ARB                    = 0x8B60,
450         GL_SAMPLER_1D_SHADOW_ARB               = 0x8B61,
451         GL_SAMPLER_2D_SHADOW_ARB               = 0x8B62,
452         GL_SAMPLER_2D_RECT_ARB                 = 0x8B63,
453         GL_SAMPLER_2D_RECT_SHADOW_ARB          = 0x8B64,
454         GL_OBJECT_DELETE_STATUS_ARB            = 0x8B80,
455         GL_OBJECT_COMPILE_STATUS_ARB           = 0x8B81,
456         GL_OBJECT_LINK_STATUS_ARB              = 0x8B82,
457         GL_OBJECT_VALIDATE_STATUS_ARB          = 0x8B83,
458         GL_OBJECT_INFO_LOG_LENGTH_ARB          = 0x8B84,
459         GL_OBJECT_ATTACHED_OBJECTS_ARB         = 0x8B85,
460         GL_OBJECT_ACTIVE_UNIFORMS_ARB          = 0x8B86,
461         GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87,
462         GL_OBJECT_SHADER_SOURCE_LENGTH_ARB     = 0x8B88,
463 
464         // GL_ARB_vertex_shader
465         GL_VERTEX_SHADER_ARB                       = 0x8B31,
466         GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB       = 0x8B4A,
467         GL_MAX_VARYING_FLOATS_ARB                  = 0x8B4B,
468         GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB      = 0x8B4C,
469         GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB    = 0x8B4D,
470         GL_OBJECT_ACTIVE_ATTRIBUTES_ARB            = 0x8B89,
471         GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB  = 0x8B8A,
472 
473         // GL_ARB_fragment_shader
474         GL_FRAGMENT_SHADER_ARB                     = 0x8B30,
475         GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB     = 0x8B49,
476         GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB     = 0x8B8B,
477 
478         // GL_ARB_shading_language_100
479         GL_SHADING_LANGUAGE_VERSION_ARB = 0x8B8C,
480 
481         // GL_ARB_point_sprite
482         GL_POINT_SPRITE_ARB        = 0x8861,
483         GL_COORD_REPLACE_ARB       = 0x8862,
484 
485         // GL_ARB_draw_buffers
486         GL_MAX_DRAW_BUFFERS_ARB           = 0x8824,
487         GL_DRAW_BUFFER0_ARB               = 0x8825,
488         GL_DRAW_BUFFER1_ARB               = 0x8826,
489         GL_DRAW_BUFFER2_ARB               = 0x8827,
490         GL_DRAW_BUFFER3_ARB               = 0x8828,
491         GL_DRAW_BUFFER4_ARB               = 0x8829,
492         GL_DRAW_BUFFER5_ARB               = 0x882A,
493         GL_DRAW_BUFFER6_ARB               = 0x882B,
494         GL_DRAW_BUFFER7_ARB               = 0x882C,
495         GL_DRAW_BUFFER8_ARB               = 0x882D,
496         GL_DRAW_BUFFER9_ARB               = 0x882E,
497         GL_DRAW_BUFFER10_ARB              = 0x882F,
498         GL_DRAW_BUFFER11_ARB              = 0x8830,
499         GL_DRAW_BUFFER12_ARB              = 0x8831,
500         GL_DRAW_BUFFER13_ARB              = 0x8832,
501         GL_DRAW_BUFFER14_ARB              = 0x8833,
502         GL_DRAW_BUFFER15_ARB              = 0x8834,
503 
504         // GL_ARB_texture_rectangle
505         GL_TEXTURE_RECTANGLE_ARB           = 0x84F5,
506         GL_TEXTURE_BINDING_RECTANGLE_ARB   = 0x84F6,
507         GL_PROXY_TEXTURE_RECTANGLE_ARB     = 0x84F7,
508         GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB  = 0x84F8,
509 
510         // GL_ARB_color_buffer_float
511         GL_RGBA_FLOAT_MODE_ARB             = 0x8820,
512         GL_CLAMP_VERTEX_COLOR_ARB          = 0x891A,
513         GL_CLAMP_FRAGMENT_COLOR_ARB        = 0x891B,
514         GL_CLAMP_READ_COLOR_ARB            = 0x891C,
515         GL_FIXED_ONLY_COLOR_ARB            = 0x891D,
516 
517         // GL_ARB_half_float_pixel
518         GL_HALF_FLOAT_ARB  = 0x140B,
519 
520         // GL_ARB_texture_float
521         GL_TEXTURE_RED_TYPE_ARB           = 0x8C10,
522         GL_TEXTURE_GREEN_TYPE_ARB         = 0x8C11,
523         GL_TEXTURE_BLUE_TYPE_ARB          = 0x8C12,
524         GL_TEXTURE_ALPHA_TYPE_ARB         = 0x8C13,
525         GL_TEXTURE_LUMINANCE_TYPE_ARB     = 0x8C14,
526         GL_TEXTURE_INTENSITY_TYPE_ARB     = 0x8C15,
527         GL_TEXTURE_DEPTH_TYPE_ARB         = 0x8C16,
528         GL_UNSIGNED_NORMALIZED_ARB        = 0x8C17,
529         GL_RGBA32F_ARB                    = 0x8814,
530         GL_RGB32F_ARB                     = 0x8815,
531         GL_ALPHA32F_ARB                   = 0x8816,
532         GL_INTENSITY32F_ARB               = 0x8817,
533         GL_LUMINANCE32F_ARB               = 0x8818,
534         GL_LUMINANCE_ALPHA32F_ARB         = 0x8819,
535         GL_RGBA16F_ARB                    = 0x881A,
536         GL_RGB16F_ARB                     = 0x881B,
537         GL_ALPHA16F_ARB                   = 0x881C,
538         GL_INTENSITY16F_ARB               = 0x881D,
539         GL_LUMINANCE16F_ARB               = 0x881E,
540         GL_LUMINANCE_ALPHA16F_ARB         = 0x881F,
541 
542         // GL_ARB_pixel_buffer_object
543         GL_PIXEL_PACK_BUFFER_ARB           = 0x88EB,
544         GL_PIXEL_UNPACK_BUFFER_ARB         = 0x88EC,
545         GL_PIXEL_PACK_BUFFER_BINDING_ARB   = 0x88ED,
546         GL_PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF,
547 
548         // GL_ARB_depth_buffer_float
549         GL_DEPTH_COMPONENT32F               = 0x8CAC,
550         GL_DEPTH32F_STENCIL8                = 0x8CAD,
551         GL_FLOAT_32_UNSIGNED_INT_24_8_REV   = 0x8DAD,
552 
553         // GL_ARB_framebuffer_object
554         GL_INVALID_FRAMEBUFFER_OPERATION            = 0x0506,
555         GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING    = 0x8210,
556         GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE    = 0x8211,
557         GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE          = 0x8212,
558         GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE        = 0x8213,
559         GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE         = 0x8214,
560         GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE        = 0x8215,
561         GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE        = 0x8216,
562         GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE      = 0x8217,
563         GL_FRAMEBUFFER_DEFAULT                      = 0x8218,
564         GL_FRAMEBUFFER_UNDEFINED                    = 0x8219,
565         GL_DEPTH_STENCIL_ATTACHMENT                 = 0x821A,
566         GL_INDEX                                    = 0x8222,
567         GL_MAX_RENDERBUFFER_SIZE                    = 0x84E8,
568         GL_DEPTH_STENCIL                            = 0x84F9,
569         GL_UNSIGNED_INT_24_8                        = 0x84FA,
570         GL_DEPTH24_STENCIL8                         = 0x88F0,
571         GL_TEXTURE_STENCIL_SIZE                     = 0x88F1,
572         GL_UNSIGNED_NORMALIZED                      = 0x8C17,
573         GL_SRGB                                     = 0x8C40,
574         GL_DRAW_FRAMEBUFFER_BINDING                 = 0x8CA6,
575         GL_FRAMEBUFFER_BINDING                      = 0x8CA6,
576         GL_RENDERBUFFER_BINDING                     = 0x8CA7,
577         GL_READ_FRAMEBUFFER                         = 0x8CA8,
578         GL_DRAW_FRAMEBUFFER                         = 0x8CA9,
579         GL_READ_FRAMEBUFFER_BINDING                 = 0x8CAA,
580         GL_RENDERBUFFER_SAMPLES                     = 0x8CAB,
581         GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE       = 0x8CD0,
582         GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME       = 0x8CD1,
583         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL     = 0x8CD2,
584         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3,
585         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER     = 0x8CD4,
586         GL_FRAMEBUFFER_COMPLETE                     = 0x8CD5,
587         GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT        = 0x8CD6,
588         GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7,
589         GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER       = 0x8CDB,
590         GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER       = 0x8CDC,
591         GL_FRAMEBUFFER_UNSUPPORTED                  = 0x8CDD,
592         GL_MAX_COLOR_ATTACHMENTS                    = 0x8CDF,
593         GL_COLOR_ATTACHMENT0                        = 0x8CE0,
594         GL_COLOR_ATTACHMENT1                        = 0x8CE1,
595         GL_COLOR_ATTACHMENT2                        = 0x8CE2,
596         GL_COLOR_ATTACHMENT3                        = 0x8CE3,
597         GL_COLOR_ATTACHMENT4                        = 0x8CE4,
598         GL_COLOR_ATTACHMENT5                        = 0x8CE5,
599         GL_COLOR_ATTACHMENT6                        = 0x8CE6,
600         GL_COLOR_ATTACHMENT7                        = 0x8CE7,
601         GL_COLOR_ATTACHMENT8                        = 0x8CE8,
602         GL_COLOR_ATTACHMENT9                        = 0x8CE9,
603         GL_COLOR_ATTACHMENT10                       = 0x8CEA,
604         GL_COLOR_ATTACHMENT11                       = 0x8CEB,
605         GL_COLOR_ATTACHMENT12                       = 0x8CEC,
606         GL_COLOR_ATTACHMENT13                       = 0x8CED,
607         GL_COLOR_ATTACHMENT14                       = 0x8CEE,
608         GL_COLOR_ATTACHMENT15                       = 0x8CEF,
609         GL_DEPTH_ATTACHMENT                         = 0x8D00,
610         GL_STENCIL_ATTACHMENT                       = 0x8D20,
611         GL_FRAMEBUFFER                              = 0x8D40,
612         GL_RENDERBUFFER                             = 0x8D41,
613         GL_RENDERBUFFER_WIDTH                       = 0x8D42,
614         GL_RENDERBUFFER_HEIGHT                      = 0x8D43,
615         GL_RENDERBUFFER_INTERNAL_FORMAT             = 0x8D44,
616         GL_STENCIL_INDEX1                           = 0x8D46,
617         GL_STENCIL_INDEX4                           = 0x8D47,
618         GL_STENCIL_INDEX8                           = 0x8D48,
619         GL_STENCIL_INDEX16                          = 0x8D49,
620         GL_RENDERBUFFER_RED_SIZE                    = 0x8D50,
621         GL_RENDERBUFFER_GREEN_SIZE                  = 0x8D51,
622         GL_RENDERBUFFER_BLUE_SIZE                   = 0x8D52,
623         GL_RENDERBUFFER_ALPHA_SIZE                  = 0x8D53,
624         GL_RENDERBUFFER_DEPTH_SIZE                  = 0x8D54,
625         GL_RENDERBUFFER_STENCIL_SIZE                = 0x8D55,
626         GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE       = 0x8D56,
627         GL_MAX_SAMPLES                              = 0x8D57,
628 
629         // GL_ARB_framebuffer_sRGB
630         GL_FRAMEBUFFER_SRGB  = 0x8DB9,
631 
632         // GL_ARB_geometry_shader4
633         GL_LINES_ADJACENCY_ARB                          = 0xA,
634         GL_LINE_STRIP_ADJACENCY_ARB                     = 0xB,
635         GL_TRIANGLES_ADJACENCY_ARB                      = 0xC,
636         GL_TRIANGLE_STRIP_ADJACENCY_ARB                 = 0xD,
637         GL_PROGRAM_POINT_SIZE_ARB                       = 0x8642,
638         GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB         = 0x8C29,
639         GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB           = 0x8DA7,
640         GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB     = 0x8DA8,
641         GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB       = 0x8DA9,
642         GL_GEOMETRY_SHADER_ARB                          = 0x8DD9,
643         GL_GEOMETRY_VERTICES_OUT_ARB                    = 0x8DDA,
644         GL_GEOMETRY_INPUT_TYPE_ARB                      = 0x8DDB,
645         GL_GEOMETRY_OUTPUT_TYPE_ARB                     = 0x8DDC,
646         GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB          = 0x8DDD,
647         GL_MAX_VERTEX_VARYING_COMPONENTS_ARB            = 0x8DDE,
648         GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB          = 0x8DDF,
649         GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB             = 0x8DE0,
650         GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB     = 0x8DE1,
651 
652         // GL_ARB_half_float_vertex
653         GL_HALF_FLOAT = 0x140B,
654 
655         // GL_ARB_imaging
656         GL_CONVOLUTION_1D                   = 0x8010,
657         GL_CONVOLUTION_2D                   = 0x8011,
658         GL_SEPARABLE_2D                     = 0x8012,
659         GL_CONVOLUTION_BORDER_MODE          = 0x8013,
660         GL_CONVOLUTION_FILTER_SCALE         = 0x8014,
661         GL_CONVOLUTION_FILTER_BIAS          = 0x8015,
662         GL_REDUCE                           = 0x8016,
663         GL_CONVOLUTION_FORMAT               = 0x8017,
664         GL_CONVOLUTION_WIDTH                = 0x8018,
665         GL_CONVOLUTION_HEIGHT               = 0x8019,
666         GL_MAX_CONVOLUTION_WIDTH            = 0x801A,
667         GL_MAX_CONVOLUTION_HEIGHT           = 0x801B,
668         GL_POST_CONVOLUTION_RED_SCALE       = 0x801C,
669         GL_POST_CONVOLUTION_GREEN_SCALE     = 0x801D,
670         GL_POST_CONVOLUTION_BLUE_SCALE      = 0x801E,
671         GL_POST_CONVOLUTION_ALPHA_SCALE     = 0x801F,
672         GL_POST_CONVOLUTION_RED_BIAS        = 0x8020,
673         GL_POST_CONVOLUTION_GREEN_BIAS      = 0x8021,
674         GL_POST_CONVOLUTION_BLUE_BIAS       = 0x8022,
675         GL_POST_CONVOLUTION_ALPHA_BIAS      = 0x8023,
676         GL_HISTOGRAM                        = 0x8024,
677         GL_PROXY_HISTOGRAM                  = 0x8025,
678         GL_HISTOGRAM_WIDTH                  = 0x8026,
679         GL_HISTOGRAM_FORMAT                 = 0x8027,
680         GL_HISTOGRAM_RED_SIZE               = 0x8028,
681         GL_HISTOGRAM_GREEN_SIZE             = 0x8029,
682         GL_HISTOGRAM_BLUE_SIZE              = 0x802A,
683         GL_HISTOGRAM_ALPHA_SIZE             = 0x802B,
684         GL_HISTOGRAM_LUMINANCE_SIZE         = 0x802C,
685         GL_HISTOGRAM_SINK                   = 0x802D,
686         GL_MINMAX                           = 0x802E,
687         GL_MINMAX_FORMAT                    = 0x802F,
688         GL_MINMAX_SINK                      = 0x8030,
689         GL_TABLE_TOO_LARGE                  = 0x8031,
690         GL_COLOR_MATRIX                     = 0x80B1,
691         GL_COLOR_MATRIX_STACK_DEPTH         = 0x80B2,
692         GL_MAX_COLOR_MATRIX_STACK_DEPTH     = 0x80B3,
693         GL_POST_COLOR_MATRIX_RED_SCALE      = 0x80B4,
694         GL_POST_COLOR_MATRIX_GREEN_SCALE    = 0x80B5,
695         GL_POST_COLOR_MATRIX_BLUE_SCALE     = 0x80B6,
696         GL_POST_COLOR_MATRIX_ALPHA_SCALE    = 0x80B7,
697         GL_POST_COLOR_MATRIX_RED_BIAS       = 0x80B8,
698         GL_POST_COLOR_MATRIX_GREEN_BIAS     = 0x80B9,
699         GL_POST_COLOR_MATRIX_BLUE_BIAS      = 0x80BA,
700         GL_POST_COLOR_MATRIX_ALPHA_BIAS     = 0x80BB,
701         GL_COLOR_TABLE                      = 0x80D0,
702         GL_POST_CONVOLUTION_COLOR_TABLE     = 0x80D1,
703         GL_POST_COLOR_MATRIX_COLOR_TABLE    = 0x80D2,
704         GL_PROXY_COLOR_TABLE                = 0x80D3,
705         GL_PROXY_POST_CONVOLUTION_COLOR_TABLE   = 0x80D4,
706         GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE  = 0x80D5,
707         GL_COLOR_TABLE_SCALE                = 0x80D6,
708         GL_COLOR_TABLE_BIAS                 = 0x80D7,
709         GL_COLOR_TABLE_FORMAT               = 0x80D8,
710         GL_COLOR_TABLE_WIDTH                = 0x80D9,
711         GL_COLOR_TABLE_RED_SIZE             = 0x80DA,
712         GL_COLOR_TABLE_GREEN_SIZE           = 0x80DB,
713         GL_COLOR_TABLE_BLUE_SIZE            = 0x80DC,
714         GL_COLOR_TABLE_ALPHA_SIZE           = 0x80DD,
715         GL_COLOR_TABLE_LUMINANCE_SIZE       = 0x80DE,
716         GL_COLOR_TABLE_INTENSITY_SIZE       = 0x80DF,
717         GL_IGNORE_BORDER                    = 0x8150,
718         GL_CONSTANT_BORDER                  = 0x8151,
719         GL_WRAP_BORDER                      = 0x8152,
720         GL_REPLICATE_BORDER                 = 0x8153,
721         GL_CONVOLUTION_BORDER_COLOR         = 0x8154,
722 
723         // GL_ARB_instanced_arrays
724         GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE,
725 
726         // GL_ARB_map_buffer_range
727         GL_MAP_READ_BIT                             = 0x0001,
728         GL_MAP_WRITE_BIT                            = 0x0002,
729         GL_MAP_INVALIDATE_RANGE_BIT                 = 0x0004,
730         GL_MAP_INVALIDATE_BUFFER_BIT                = 0x0008,
731         GL_MAP_FLUSH_EXPLICIT_BIT                   = 0x0010,
732         GL_MAP_UNSYNCHRONIZED_BIT                   = 0x0020,
733 
734         // GL_ARB_texture_buffer_object
735         GL_TEXTURE_BUFFER_ARB                       = 0x8C2A,
736         GL_MAX_TEXTURE_BUFFER_SIZE_ARB              = 0x8C2B,
737         GL_TEXTURE_BINDING_BUFFER_ARB               = 0x8C2C,
738         GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB    = 0x8C2D,
739         GL_TEXTURE_BUFFER_FORMAT_ARB                = 0x8C2E,
740 
741         // GL_ARB_texture_compression_rgtc
742         GL_COMPRESSED_RED_RGTC1         = 0x8DBB,
743         GL_COMPRESSED_SIGNED_RED_RGTC1  = 0x8DBC,
744         GL_COMPRESSED_RG_RGTC2          = 0x8DBD,
745         GL_COMPRESSED_SIGNED_RG_RGTC2   = 0x8DBE,
746 
747         // GL_ARB_texture_rg
748         GL_RG           = 0x8227,
749         GL_RG_INTEGER   = 0x8228,
750         GL_R8           = 0x8229,
751         GL_R16          = 0x822A,
752         GL_RG8          = 0x822B,
753         GL_RG16         = 0x822C,
754         GL_R16F         = 0x822D,
755         GL_R32F         = 0x822E,
756         GL_RG16F        = 0x822F,
757         GL_RG32F        = 0x8230,
758         GL_R8I          = 0x8231,
759         GL_R8UI         = 0x8232,
760         GL_R16I         = 0x8233,
761         GL_R16UI        = 0x8234,
762         GL_R32I         = 0x8235,
763         GL_R32UI        = 0x8236,
764         GL_RG8I         = 0x8237,
765         GL_RG8UI        = 0x8238,
766         GL_RG16I        = 0x8239,
767         GL_RG16UI       = 0x823A,
768         GL_RG32I        = 0x823B,
769         GL_RG32UI       = 0x823C,
770 
771         // GL_ARB_vertex_array_object
772         GL_VERTEX_ARRAY_BINDING = 0x85B5,
773 
774         // GL_ARB_copy_buffer
775         GL_COPY_READ_BUFFER               = 0x8F36,
776         GL_COPY_WRITE_BUFFER              = 0x8F37,
777 
778         // GL_ARB_uniform_buffer_object
779         GL_UNIFORM_BUFFER                 = 0x8A11,
780         GL_UNIFORM_BUFFER_BINDING         = 0x8A28,
781         GL_UNIFORM_BUFFER_START           = 0x8A29,
782         GL_UNIFORM_BUFFER_SIZE            = 0x8A2A,
783         GL_MAX_VERTEX_UNIFORM_BLOCKS      = 0x8A2B,
784         GL_MAX_GEOMETRY_UNIFORM_BLOCKS    = 0x8A2C,
785         GL_MAX_FRAGMENT_UNIFORM_BLOCKS    = 0x8A2D,
786         GL_MAX_COMBINED_UNIFORM_BLOCKS    = 0x8A2E,
787         GL_MAX_UNIFORM_BUFFER_BINDINGS    = 0x8A2F,
788         GL_MAX_UNIFORM_BLOCK_SIZE         = 0x8A30,
789         GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31,
790         GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32,
791         GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33,
792         GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34,
793         GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35,
794         GL_ACTIVE_UNIFORM_BLOCKS          = 0x8A36,
795         GL_UNIFORM_TYPE                   = 0x8A37,
796         GL_UNIFORM_SIZE                   = 0x8A38,
797         GL_UNIFORM_NAME_LENGTH            = 0x8A39,
798         GL_UNIFORM_BLOCK_INDEX            = 0x8A3A,
799         GL_UNIFORM_OFFSET                 = 0x8A3B,
800         GL_UNIFORM_ARRAY_STRIDE           = 0x8A3C,
801         GL_UNIFORM_MATRIX_STRIDE          = 0x8A3D,
802         GL_UNIFORM_IS_ROW_MAJOR           = 0x8A3E,
803         GL_UNIFORM_BLOCK_BINDING          = 0x8A3F,
804         GL_UNIFORM_BLOCK_DATA_SIZE        = 0x8A40,
805         GL_UNIFORM_BLOCK_NAME_LENGTH      = 0x8A41,
806         GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  = 0x8A42,
807         GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43,
808         GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44,
809         GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45,
810         GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46,
811         GL_INVALID_INDEX                  = 0xFFFFFFFFu,
812 
813         // GL_ARB_vertex_attrib_64bit
814         GL_DOUBLE_MAT2          = 0x8F46,
815         GL_DOUBLE_MAT3          = 0x8F47,
816         GL_DOUBLE_MAT4          = 0x8F48,
817         GL_DOUBLE_VEC2          = 0x8FFC,
818         GL_DOUBLE_VEC3          = 0x8FFD,
819         GL_DOUBLE_VEC4          = 0x8FFE,
820 
821         // GL_ARB_provoking_vertex
822         GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C,
823         GL_FIRST_VERTEX_CONVENTION        = 0x8E4D,
824         GL_LAST_VERTEX_CONVENTION         = 0x8E4E,
825         GL_PROVOKING_VERTEX               = 0x8E4F,
826 
827         // GL_ARB_sync
828         GL_MAX_SERVER_WAIT_TIMEOUT        = 0x9111,
829         GL_OBJECT_TYPE                    = 0x9112,
830         GL_SYNC_CONDITION                 = 0x9113,
831         GL_SYNC_STATUS                    = 0x9114,
832         GL_SYNC_FLAGS                     = 0x9115,
833         GL_SYNC_FENCE                     = 0x9116,
834         GL_SYNC_GPU_COMMANDS_COMPLETE     = 0x9117,
835         GL_UNSIGNALED                     = 0x9118,
836         GL_SIGNALED                       = 0x9119,
837         GL_ALREADY_SIGNALED               = 0x911A,
838         GL_TIMEOUT_EXPIRED                = 0x911B,
839         GL_CONDITION_SATISFIED            = 0x911C,
840         GL_WAIT_FAILED                    = 0x911D,
841         GL_SYNC_FLUSH_COMMANDS_BIT        = 0x00000001,
842 
843         // GL_ARB_texture_multisample
844         GL_SAMPLE_POSITION                = 0x8E50,
845         GL_SAMPLE_MASK                    = 0x8E51,
846         GL_SAMPLE_MASK_VALUE              = 0x8E52,
847         GL_MAX_SAMPLE_MASK_WORDS          = 0x8E59,
848         GL_TEXTURE_2D_MULTISAMPLE         = 0x9100,
849         GL_PROXY_TEXTURE_2D_MULTISAMPLE   = 0x9101,
850         GL_TEXTURE_2D_MULTISAMPLE_ARRAY   = 0x9102,
851         GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103,
852         GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104,
853         GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105,
854         GL_TEXTURE_SAMPLES                = 0x9106,
855         GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107,
856         GL_SAMPLER_2D_MULTISAMPLE         = 0x9108,
857         GL_INT_SAMPLER_2D_MULTISAMPLE     = 0x9109,
858         GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A,
859         GL_SAMPLER_2D_MULTISAMPLE_ARRAY   = 0x910B,
860         GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C,
861         GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D,
862         GL_MAX_COLOR_TEXTURE_SAMPLES      = 0x910E,
863         GL_MAX_DEPTH_TEXTURE_SAMPLES      = 0x910F,
864         GL_MAX_INTEGER_SAMPLES            = 0x9110,
865 
866         // GL_ARB_viewport_array
867         GL_MAX_VIEWPORTS        = 0x825B,
868         GL_VIEWPORT_SUBPIXEL_BITS = 0x825C,
869         GL_VIEWPORT_BOUNDS_RANGE = 0x825D,
870         GL_LAYER_PROVOKING_VERTEX = 0x825E,
871         GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F,
872         GL_UNDEFINED_VERTEX     = 0x8260,
873 
874         // GL_ARB_cl_event
875         GL_SYNC_CL_EVENT_ARB    = 0x8240,
876         GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241,
877 
878         // GL_ARB_debug_output
879         GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB         = 0x8242,
880         GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243,
881         GL_DEBUG_CALLBACK_FUNCTION_ARB          = 0x8244,
882         GL_DEBUG_CALLBACK_USER_PARAM_ARB        = 0x8245,
883         GL_DEBUG_SOURCE_API_ARB                 = 0x8246,
884         GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB       = 0x8247,
885         GL_DEBUG_SOURCE_SHADER_COMPILER_ARB     = 0x8248,
886         GL_DEBUG_SOURCE_THIRD_PARTY_ARB         = 0x8249,
887         GL_DEBUG_SOURCE_APPLICATION_ARB         = 0x824A,
888         GL_DEBUG_SOURCE_OTHER_ARB               = 0x824B,
889         GL_DEBUG_TYPE_ERROR_ARB                 = 0x824C,
890         GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB   = 0x824D,
891         GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB    = 0x824E,
892         GL_DEBUG_TYPE_PORTABILITY_ARB           = 0x824F,
893         GL_DEBUG_TYPE_PERFORMANCE_ARB           = 0x8250,
894         GL_DEBUG_TYPE_OTHER_ARB                 = 0x8251,
895         GL_MAX_DEBUG_MESSAGE_LENGTH_ARB         = 0x9143,
896         GL_MAX_DEBUG_LOGGED_MESSAGES_ARB        = 0x9144,
897         GL_DEBUG_LOGGED_MESSAGES_ARB            = 0x9145,
898         GL_DEBUG_SEVERITY_HIGH_ARB              = 0x9146,
899         GL_DEBUG_SEVERITY_MEDIUM_ARB            = 0x9147,
900         GL_DEBUG_SEVERITY_LOW_ARB               = 0x9148,
901 
902         // GL_ARB_robustness
903         GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB   = 0x00000004,
904         GL_LOSE_CONTEXT_ON_RESET_ARB            = 0x8252,
905         GL_GUILTY_CONTEXT_RESET_ARB             = 0x8253,
906         GL_INNOCENT_CONTEXT_RESET_ARB           = 0x8254,
907         GL_UNKNOWN_CONTEXT_RESET_ARB            = 0x8255,
908         GL_RESET_NOTIFICATION_STRATEGY_ARB      = 0x8256,
909         GL_NO_RESET_NOTIFICATION_ARB            = 0x8261,
910 
911         // GL_ARB_depth_clamp
912         GL_DEPTH_CLAMP                          = 0x864F,
913 
914         // GL_ARB_blend_func_extended
915         GL_SRC1_COLOR                     = 0x88F9,
916         GL_ONE_MINUS_SRC1_COLOR           = 0x88FA,
917         GL_ONE_MINUS_SRC1_ALPHA           = 0x88FB,
918         GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   = 0x88FC,
919 
920         // GL_ARB_sampler_objects
921         GL_SAMPLER_BINDING                      = 0x8919,
922 
923         // GL_ARB_timer_query
924         GL_TIME_ELAPSED                   = 0x88BF,
925         GL_TIMESTAMP                      = 0x8E28,
926 
927         // GL_ARB_vertex_type_2_10_10_10_rev
928         GL_INT_2_10_10_10_REV             = 0x8D9F,
929     }
930 }
931 
932 version(DerelictGL_EXT)
933 {
934     // from GL_EXT_timer_query
935     alias long GLint64EXT;
936     alias ulong GLuint64EXT;
937 
938     enum : GLenum
939     {
940         // GL_EXT_abgr
941         GL_ABGR_EXT = 0x8000,
942 
943         // GL_EXT_blend_color
944         GL_CONSTANT_COLOR_EXT             = 0x8001,
945         GL_ONE_MINUS_CONSTANT_COLOR_EXT   = 0x8002,
946         GL_CONSTANT_ALPHA_EXT             = 0x8003,
947         GL_ONE_MINUS_CONSTANT_ALPHA_EXT   = 0x8004,
948         GL_BLEND_COLOR_EXT                = 0x8005,
949 
950         // GL_EXT_polygon_offset
951         GL_POLYGON_OFFSET_EXT             = 0x8037,
952         GL_POLYGON_OFFSET_FACTOR_EXT      = 0x8038,
953         GL_POLYGON_OFFSET_BIAS_EXT        = 0x8039,
954 
955         // GL_EXT_texture
956         GL_ALPHA4_EXT                     = 0x803B,
957         GL_ALPHA8_EXT                     = 0x803C,
958         GL_ALPHA12_EXT                    = 0x803D,
959         GL_ALPHA16_EXT                    = 0x803E,
960         GL_LUMINANCE4_EXT                 = 0x803F,
961         GL_LUMINANCE8_EXT                 = 0x8040,
962         GL_LUMINANCE12_EXT                = 0x8041,
963         GL_LUMINANCE16_EXT                = 0x8042,
964         GL_LUMINANCE4_ALPHA4_EXT          = 0x8043,
965         GL_LUMINANCE6_ALPHA2_EXT          = 0x8044,
966         GL_LUMINANCE8_ALPHA8_EXT          = 0x8045,
967         GL_LUMINANCE12_ALPHA4_EXT         = 0x8046,
968         GL_LUMINANCE12_ALPHA12_EXT        = 0x8047,
969         GL_LUMINANCE16_ALPHA16_EXT        = 0x8048,
970         GL_INTENSITY_EXT                  = 0x8049,
971         GL_INTENSITY4_EXT                 = 0x804A,
972         GL_INTENSITY8_EXT                 = 0x804B,
973         GL_INTENSITY12_EXT                = 0x804C,
974         GL_INTENSITY16_EXT                = 0x804D,
975         GL_RGB2_EXT                       = 0x804E,
976         GL_RGB4_EXT                       = 0x804F,
977         GL_RGB5_EXT                       = 0x8050,
978         GL_RGB8_EXT                       = 0x8051,
979         GL_RGB10_EXT                      = 0x8052,
980         GL_RGB12_EXT                      = 0x8053,
981         GL_RGB16_EXT                      = 0x8054,
982         GL_RGBA2_EXT                      = 0x8055,
983         GL_RGBA4_EXT                      = 0x8056,
984         GL_RGB5_A1_EXT                    = 0x8057,
985         GL_RGBA8_EXT                      = 0x8058,
986         GL_RGB10_A2_EXT                   = 0x8059,
987         GL_RGBA12_EXT                     = 0x805A,
988         GL_RGBA16_EXT                     = 0x805B,
989         GL_TEXTURE_RED_SIZE_EXT           = 0x805C,
990         GL_TEXTURE_GREEN_SIZE_EXT         = 0x805D,
991         GL_TEXTURE_BLUE_SIZE_EXT          = 0x805E,
992         GL_TEXTURE_ALPHA_SIZE_EXT         = 0x805F,
993         GL_TEXTURE_LUMINANCE_SIZE_EXT     = 0x8060,
994         GL_TEXTURE_INTENSITY_SIZE_EXT     = 0x8061,
995         GL_REPLACE_EXT                    = 0x8062,
996         GL_PROXY_TEXTURE_1D_EXT           = 0x8063,
997         GL_PROXY_TEXTURE_2D_EXT           = 0x8064,
998         GL_TEXTURE_TOO_LARGE_EXT          = 0x8065,
999 
1000         // GL_EXT_texture3D
1001         GL_PACK_SKIP_IMAGES_EXT           = 0x806B,
1002         GL_PACK_IMAGE_HEIGHT_EXT          = 0x806C,
1003         GL_UNPACK_SKIP_IMAGES_EXT         = 0x806D,
1004         GL_UNPACK_IMAGE_HEIGHT_EXT        = 0x806E,
1005         GL_TEXTURE_3D_EXT                 = 0x806F,
1006         GL_PROXY_TEXTURE_3D_EXT           = 0x8070,
1007         GL_TEXTURE_DEPTH_EXT              = 0x8071,
1008         GL_TEXTURE_WRAP_R_EXT             = 0x8072,
1009         GL_MAX_3D_TEXTURE_SIZE_EXT        = 0x8073,
1010 
1011         // GL_EXT_histogram
1012         GL_HISTOGRAM_EXT                  = 0x8024,
1013         GL_PROXY_HISTOGRAM_EXT            = 0x8025,
1014         GL_HISTOGRAM_WIDTH_EXT            = 0x8026,
1015         GL_HISTOGRAM_FORMAT_EXT           = 0x8027,
1016         GL_HISTOGRAM_RED_SIZE_EXT         = 0x8028,
1017         GL_HISTOGRAM_GREEN_SIZE_EXT       = 0x8029,
1018         GL_HISTOGRAM_BLUE_SIZE_EXT        = 0x802A,
1019         GL_HISTOGRAM_ALPHA_SIZE_EXT       = 0x802B,
1020         GL_HISTOGRAM_LUMINANCE_SIZE_EXT   = 0x802C,
1021         GL_HISTOGRAM_SINK_EXT             = 0x802D,
1022         GL_MINMAX_EXT                     = 0x802E,
1023         GL_MINMAX_FORMAT_EXT              = 0x802F,
1024         GL_MINMAX_SINK_EXT                = 0x8030,
1025         GL_TABLE_TOO_LARGE_EXT            = 0x8031,
1026 
1027         // GL_EXT_convolution
1028         GL_CONVOLUTION_1D_EXT                  = 0x8010,
1029         GL_CONVOLUTION_2D_EXT                  = 0x8011,
1030         GL_SEPARABLE_2D_EXT                    = 0x8012,
1031         GL_CONVOLUTION_BORDER_MODE_EXT         = 0x8013,
1032         GL_CONVOLUTION_FILTER_SCALE_EXT        = 0x8014,
1033         GL_CONVOLUTION_FILTER_BIAS_EXT         = 0x8015,
1034         GL_REDUCE_EXT                          = 0x8016,
1035         GL_CONVOLUTION_FORMAT_EXT              = 0x8017,
1036         GL_CONVOLUTION_WIDTH_EXT               = 0x8018,
1037         GL_CONVOLUTION_HEIGHT_EXT              = 0x8019,
1038         GL_MAX_CONVOLUTION_WIDTH_EXT           = 0x801A,
1039         GL_MAX_CONVOLUTION_HEIGHT_EXT          = 0x801B,
1040         GL_POST_CONVOLUTION_RED_SCALE_EXT      = 0x801C,
1041         GL_POST_CONVOLUTION_GREEN_SCALE_EXT    = 0x801D,
1042         GL_POST_CONVOLUTION_BLUE_SCALE_EXT     = 0x801E,
1043         GL_POST_CONVOLUTION_ALPHA_SCALE_EXT    = 0x801F,
1044         GL_POST_CONVOLUTION_RED_BIAS_EXT       = 0x8020,
1045         GL_POST_CONVOLUTION_GREEN_BIAS_EXT     = 0x8021,
1046         GL_POST_CONVOLUTION_BLUE_BIAS_EXT      = 0x8022,
1047         GL_POST_CONVOLUTION_ALPHA_BIAS_EXT     = 0x8023,
1048 
1049         // GL_EXT_cmyka
1050         GL_CMYK_EXT             = 0x800C,
1051         GL_CMYKA_EXT            = 0x800D,
1052         GL_PACK_CMYK_HINT_EXT   = 0x800E,
1053         GL_UNPACK_CMYK_HINT_EXT = 0x800F,
1054 
1055         // GL_EXT_texture_object
1056         GL_TEXTURE_PRIORITY_EXT             = 0x8066,
1057         GL_TEXTURE_RESIDENT_EXT             = 0x8067,
1058         GL_TEXTURE_1D_BINDING_EXT           = 0x8068,
1059         GL_TEXTURE_2D_BINDING_EXT           = 0x8069,
1060         GL_TEXTURE_3D_BINDING_EXT           = 0x806A,
1061 
1062         // GL_EXT_packed_pixels
1063         GL_UNSIGNED_BYTE_3_3_2_EXT          = 0x8032,
1064         GL_UNSIGNED_SHORT_4_4_4_4_EXT       = 0x8033,
1065         GL_UNSIGNED_SHORT_5_5_5_1_EXT       = 0x8034,
1066         GL_UNSIGNED_INT_8_8_8_8_EXT         = 0x8035,
1067         GL_UNSIGNED_INT_10_10_10_2_EXT      = 0x8036,
1068 
1069         // GL_EXT_rescale_normal
1070         GL_RESCALE_NORMAL_EXT = 0x803A,
1071 
1072         // GL_EXT_vertex_array
1073         GL_VERTEX_ARRAY_EXT                 = 0x8074,
1074         GL_NORMAL_ARRAY_EXT                 = 0x8075,
1075         GL_COLOR_ARRAY_EXT                  = 0x8076,
1076         GL_INDEX_ARRAY_EXT                  = 0x8077,
1077         GL_TEXTURE_COORD_ARRAY_EXT          = 0x8078,
1078         GL_EDGE_FLAG_ARRAY_EXT              = 0x8079,
1079         GL_VERTEX_ARRAY_SIZE_EXT            = 0x807A,
1080         GL_VERTEX_ARRAY_TYPE_EXT            = 0x807B,
1081         GL_VERTEX_ARRAY_STRIDE_EXT          = 0x807C,
1082         GL_VERTEX_ARRAY_COUNT_EXT           = 0x807D,
1083         GL_NORMAL_ARRAY_TYPE_EXT            = 0x807E,
1084         GL_NORMAL_ARRAY_STRIDE_EXT          = 0x807F,
1085         GL_NORMAL_ARRAY_COUNT_EXT           = 0x8080,
1086         GL_COLOR_ARRAY_SIZE_EXT             = 0x8081,
1087         GL_COLOR_ARRAY_TYPE_EXT             = 0x8082,
1088         GL_COLOR_ARRAY_STRIDE_EXT           = 0x8083,
1089         GL_COLOR_ARRAY_COUNT_EXT            = 0x8084,
1090         GL_INDEX_ARRAY_TYPE_EXT             = 0x8085,
1091         GL_INDEX_ARRAY_STRIDE_EXT           = 0x8086,
1092         GL_INDEX_ARRAY_COUNT_EXT            = 0x8087,
1093         GL_TEXTURE_COORD_ARRAY_SIZE_EXT     = 0x8088,
1094         GL_TEXTURE_COORD_ARRAY_TYPE_EXT     = 0x8089,
1095         GL_TEXTURE_COORD_ARRAY_STRIDE_EXT   = 0x808A,
1096         GL_TEXTURE_COORD_ARRAY_COUNT_EXT    = 0x808B,
1097         GL_EDGE_FLAG_ARRAY_STRIDE_EXT       = 0x808C,
1098         GL_EDGE_FLAG_ARRAY_COUNT_EXT        = 0x808D,
1099         GL_VERTEX_ARRAY_POINTER_EXT         = 0x808E,
1100         GL_NORMAL_ARRAY_POINTER_EXT         = 0x808F,
1101         GL_COLOR_ARRAY_POINTER_EXT          = 0x8090,
1102         GL_INDEX_ARRAY_POINTER_EXT          = 0x8091,
1103         GL_TEXTURE_COORD_ARRAY_POINTER_EXT  = 0x8092,
1104         GL_EDGE_FLAG_ARRAY_POINTER_EXT      = 0x8093,
1105 
1106         // GL_EXT_blend_minmax
1107         GL_FUNC_ADD_EXT                     = 0x8006,
1108         GL_MIN_EXT                          = 0x8007,
1109         GL_MAX_EXT                          = 0x8008,
1110         GL_BLEND_EQUATION_EXT               = 0x8009,
1111 
1112         // GL_EXT_blend_subtract
1113         GL_FUNC_SUBTRACT_EXT                = 0x800A,
1114         GL_FUNC_REVERSE_SUBTRACT_EXT        = 0x800B,
1115 
1116         // GL_EXT_point_parameters
1117         GL_POINT_SIZE_MIN_EXT               = 0x8126,
1118         GL_POINT_SIZE_MAX_EXT               = 0x8127,
1119         GL_POINT_FADE_THRESHOLD_SIZE_EXT    = 0x8128,
1120         GL_DISTANCE_ATTENUATION_EXT         = 0x8129,
1121 
1122         // GL_EXT_paletted_texture
1123         GL_COLOR_INDEX1_EXT                 = 0x80E2,
1124         GL_COLOR_INDEX2_EXT                 = 0x80E3,
1125         GL_COLOR_INDEX4_EXT                 = 0x80E4,
1126         GL_COLOR_INDEX8_EXT                 = 0x80E5,
1127         GL_COLOR_INDEX12_EXT                = 0x80E6,
1128         GL_COLOR_INDEX16_EXT                = 0x80E7,
1129         GL_TEXTURE_INDEX_SIZE_EXT           = 0x80ED,
1130 
1131         // GL_EXT_clip_volume_hint
1132         GL_CLIP_VOLUME_CLIPPING_HINT_EXT    = 0x80F0,
1133 
1134         // GL_EXT_index_material
1135         GL_INDEX_MATERIAL_EXT               = 0x81B8,
1136         GL_INDEX_MATERIAL_PARAMETER_EXT     = 0x81B9,
1137         GL_INDEX_MATERIAL_FACE_EXT          = 0x81BA,
1138 
1139         // GL_EXT_index_func
1140         GL_INDEX_TEST_EXT                   = 0x81B5,
1141         GL_INDEX_TEST_FUNC_EXT              = 0x81B6,
1142         GL_INDEX_TEST_REF_EXT               = 0x81B7,
1143 
1144         // GL_EXT_index_array_formats
1145         GL_IUI_V2F_EXT                      = 0x81AD,
1146         GL_IUI_V3F_EXT                      = 0x81AE,
1147         GL_IUI_N3F_V2F_EXT                  = 0x81AF,
1148         GL_IUI_N3F_V3F_EXT                  = 0x81B0,
1149         GL_T2F_IUI_V2F_EXT                  = 0x81B1,
1150         GL_T2F_IUI_V3F_EXT                  = 0x81B2,
1151         GL_T2F_IUI_N3F_V2F_EXT              = 0x81B3,
1152         GL_T2F_IUI_N3F_V3F_EXT              = 0x81B4,
1153 
1154         // GL_EXT_compiled_vertex_array
1155         GL_ARRAY_ELEMENT_LOCK_FIRST_EXT     = 0x81A8,
1156         GL_ARRAY_ELEMENT_LOCK_COUNT_EXT     = 0x81A9,
1157 
1158         // GL_EXT_cull_vertex
1159         GL_CULL_VERTEX_EXT                  = 0x81AA,
1160         GL_CULL_VERTEX_EYE_POSITION_EXT     = 0x81AB,
1161         GL_CULL_VERTEX_OBJECT_POSITION_EXT  = 0x81AC,
1162 
1163         // GL_EXT_draw_range_elements
1164         GL_MAX_ELEMENTS_VERTICES_EXT        = 0x80E8,
1165         GL_MAX_ELEMENTS_INDICES_EXT         = 0x80E9,
1166 
1167         // GL_EXT_light_texture
1168         GL_FRAGMENT_MATERIAL_EXT            = 0x8349,
1169         GL_FRAGMENT_NORMAL_EXT              = 0x834A,
1170         GL_FRAGMENT_COLOR_EXT               = 0x834C,
1171         GL_ATTENUATION_EXT                  = 0x834D,
1172         GL_SHADOW_ATTENUATION_EXT           = 0x834E,
1173         GL_TEXTURE_APPLICATION_MODE_EXT     = 0x834F,
1174         GL_TEXTURE_LIGHT_EXT                = 0x8350,
1175         GL_TEXTURE_MATERIAL_FACE_EXT        = 0x8351,
1176         GL_TEXTURE_MATERIAL_PARAMETER_EXT   = 0x8352,
1177 
1178         // GL_EXT_bgra
1179         GL_BGR_EXT                          = 0x80E0,
1180         GL_BGRA_EXT                         = 0x80E1,
1181 
1182         // GL_EXT_pixel_transform
1183         GL_PIXEL_TRANSFORM_2D_EXT           = 0x8330,
1184         GL_PIXEL_MAG_FILTER_EXT             = 0x8331,
1185         GL_PIXEL_MIN_FILTER_EXT             = 0x8332,
1186         GL_PIXEL_CUBIC_WEIGHT_EXT           = 0x8333,
1187         GL_CUBIC_EXT                        = 0x8334,
1188         GL_AVERAGE_EXT                      = 0x8335,
1189         GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336,
1190         GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337,
1191         GL_PIXEL_TRANSFORM_2D_MATRIX_EXT    = 0x8338,
1192 
1193         // GL_EXT_shared_texture_palette
1194         GL_SHARED_TEXTURE_PALETTE_EXT       = 0x81FB,
1195 
1196         // GL_EXT_separate_specular_color
1197         GL_LIGHT_MODEL_COLOR_CONTROL_EXT    = 0x81F8,
1198         GL_SINGLE_COLOR_EXT                 = 0x81F9,
1199         GL_SEPARATE_SPECULAR_COLOR_EXT      = 0x81FA,
1200 
1201         // GL_EXT_secondary_color
1202         GL_COLOR_SUM_EXT                    = 0x8458,
1203         GL_CURRENT_SECONDARY_COLOR_EXT      = 0x8459,
1204         GL_SECONDARY_COLOR_ARRAY_SIZE_EXT   = 0x845A,
1205         GL_SECONDARY_COLOR_ARRAY_TYPE_EXT   = 0x845B,
1206         GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C,
1207         GL_SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D,
1208         GL_SECONDARY_COLOR_ARRAY_EXT        = 0x845E,
1209 
1210         // GL_EXT_texture_perturb_normal
1211         GL_PERTURB_EXT                      = 0x85AE,
1212         GL_TEXTURE_NORMAL_EXT               = 0x85AF,
1213 
1214         // GL_EXT_fog_coord
1215         GL_FOG_COORDINATE_SOURCE_EXT        = 0x8450,
1216         GL_FOG_COORDINATE_EXT               = 0x8451,
1217         GL_FRAGMENT_DEPTH_EXT               = 0x8452,
1218         GL_CURRENT_FOG_COORDINATE_EXT       = 0x8453,
1219         GL_FOG_COORDINATE_ARRAY_TYPE_EXT    = 0x8454,
1220         GL_FOG_COORDINATE_ARRAY_STRIDE_EXT  = 0x8455,
1221         GL_FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456,
1222         GL_FOG_COORDINATE_ARRAY_EXT         = 0x8457,
1223 
1224         // GL_EXT_coordinate_frame
1225         GL_TANGENT_ARRAY_EXT                = 0x8439,
1226         GL_BINORMAL_ARRAY_EXT               = 0x843A,
1227         GL_CURRENT_TANGENT_EXT              = 0x843B,
1228         GL_CURRENT_BINORMAL_EXT             = 0x843C,
1229         GL_TANGENT_ARRAY_TYPE_EXT           = 0x843E,
1230         GL_TANGENT_ARRAY_STRIDE_EXT         = 0x843F,
1231         GL_BINORMAL_ARRAY_TYPE_EXT          = 0x8440,
1232         GL_BINORMAL_ARRAY_STRIDE_EXT        = 0x8441,
1233         GL_TANGENT_ARRAY_POINTER_EXT        = 0x8442,
1234         GL_BINORMAL_ARRAY_POINTER_EXT       = 0x8443,
1235         GL_MAP1_TANGENT_EXT                 = 0x8444,
1236         GL_MAP2_TANGENT_EXT                 = 0x8445,
1237         GL_MAP1_BINORMAL_EXT                = 0x8446,
1238         GL_MAP2_BINORMAL_EXT                = 0x8447,
1239 
1240         // GL_EXT_texture_env_combine
1241         GL_COMBINE_EXT                      = 0x8570,
1242         GL_COMBINE_RGB_EXT                  = 0x8571,
1243         GL_COMBINE_ALPHA_EXT                = 0x8572,
1244         GL_RGB_SCALE_EXT                    = 0x8573,
1245         GL_ADD_SIGNED_EXT                   = 0x8574,
1246         GL_INTERPOLATE_EXT                  = 0x8575,
1247         GL_CONSTANT_EXT                     = 0x8576,
1248         GL_PRIMARY_COLOR_EXT                = 0x8577,
1249         GL_PREVIOUS_EXT                     = 0x8578,
1250         GL_SOURCE0_RGB_EXT                  = 0x8580,
1251         GL_SOURCE1_RGB_EXT                  = 0x8581,
1252         GL_SOURCE2_RGB_EXT                  = 0x8582,
1253         GL_SOURCE0_ALPHA_EXT                = 0x8588,
1254         GL_SOURCE1_ALPHA_EXT                = 0x8589,
1255         GL_SOURCE2_ALPHA_EXT                = 0x858A,
1256         GL_OPERAND0_RGB_EXT                 = 0x8590,
1257         GL_OPERAND1_RGB_EXT                 = 0x8591,
1258         GL_OPERAND2_RGB_EXT                 = 0x8592,
1259         GL_OPERAND0_ALPHA_EXT               = 0x8598,
1260         GL_OPERAND1_ALPHA_EXT               = 0x8599,
1261         GL_OPERAND2_ALPHA_EXT               = 0x859A,
1262 
1263         // GL_EXT_blend_func_separate
1264         GL_BLEND_DST_RGB_EXT                = 0x80C8,
1265         GL_BLEND_SRC_RGB_EXT                = 0x80C9,
1266         GL_BLEND_DST_ALPHA_EXT              = 0x80CA,
1267         GL_BLEND_SRC_ALPHA_EXT              = 0x80CB,
1268 
1269         // GL_EXT_stencil_wrap
1270         GL_INCR_WRAP_EXT                    = 0x8507,
1271         GL_DECR_WRAP_EXT                    = 0x8508,
1272 
1273         // GL_EXT_422_pixels
1274         GL_422_EXT                          = 0x80CC,
1275         GL_422_REV_EXT                      = 0x80CD,
1276         GL_422_AVERAGE_EXT                  = 0x80CE,
1277         GL_422_REV_AVERAGE_EXT              = 0x80CF,
1278 
1279         // GL_EXT_texture_cube_map
1280         GL_NORMAL_MAP_EXT                   = 0x8511,
1281         GL_REFLECTION_MAP_EXT               = 0x8512,
1282         GL_TEXTURE_CUBE_MAP_EXT             = 0x8513,
1283         GL_TEXTURE_BINDING_CUBE_MAP_EXT     = 0x8514,
1284         GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT  = 0x8515,
1285         GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT  = 0x8516,
1286         GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT  = 0x8517,
1287         GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT  = 0x8518,
1288         GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT  = 0x8519,
1289         GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT  = 0x851A,
1290         GL_PROXY_TEXTURE_CUBE_MAP_EXT       = 0x851B,
1291         GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT    = 0x851C,
1292 
1293         // GL_EXT_texture_lod_bias
1294         GL_MAX_TEXTURE_LOD_BIAS_EXT         = 0x84FD,
1295         GL_TEXTURE_FILTER_CONTROL_EXT       = 0x8500,
1296         GL_TEXTURE_LOD_BIAS_EXT             = 0x8501,
1297 
1298         // GL_EXT_texture_filter_anisotropic
1299         GL_TEXTURE_MAX_ANISOTROPY_EXT       = 0x84FE,
1300         GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT   = 0x84FF,
1301 
1302         // GL_EXT_vertex_weighting
1303         GL_MODELVIEW0_STACK_DEPTH_EXT       = GL_MODELVIEW_STACK_DEPTH,
1304         GL_MODELVIEW1_STACK_DEPTH_EXT       = 0x8502,
1305         GL_MODELVIEW0_MATRIX_EXT            = GL_MODELVIEW_MATRIX,
1306         GL_MODELVIEW1_MATRIX_EXT            = 0x8506,
1307         GL_VERTEX_WEIGHTING_EXT             = 0x8509,
1308         GL_MODELVIEW0_EXT                   = GL_MODELVIEW,
1309         GL_MODELVIEW1_EXT                   = 0x850A,
1310         GL_CURRENT_VERTEX_WEIGHT_EXT        = 0x850B,
1311         GL_VERTEX_WEIGHT_ARRAY_EXT          = 0x850C,
1312         GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT     = 0x850D,
1313         GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT     = 0x850E,
1314         GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT   = 0x850F,
1315         GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT  = 0x8510,
1316 
1317         // GL_EXT_texture_compression_s3tc
1318         GL_COMPRESSED_RGB_S3TC_DXT1_EXT     = 0x83F0,
1319         GL_COMPRESSED_RGBA_S3TC_DXT1_EXT    = 0x83F1,
1320         GL_COMPRESSED_RGBA_S3TC_DXT3_EXT    = 0x83F2,
1321         GL_COMPRESSED_RGBA_S3TC_DXT5_EXT    = 0x83F3,
1322 
1323         // GL_EXT_multisample
1324         GL_MULTISAMPLE_EXT                  = 0x809D,
1325         GL_SAMPLE_ALPHA_TO_MASK_EXT         = 0x809E,
1326         GL_SAMPLE_ALPHA_TO_ONE_EXT          = 0x809F,
1327         GL_SAMPLE_MASK_EXT                  = 0x80A0,
1328         GL_1PASS_EXT                        = 0x80A1,
1329         GL_2PASS_0_EXT                      = 0x80A2,
1330         GL_2PASS_1_EXT                      = 0x80A3,
1331         GL_4PASS_0_EXT                      = 0x80A4,
1332         GL_4PASS_1_EXT                      = 0x80A5,
1333         GL_4PASS_2_EXT                      = 0x80A6,
1334         GL_4PASS_3_EXT                      = 0x80A7,
1335         GL_SAMPLE_BUFFERS_EXT               = 0x80A8,
1336         GL_SAMPLES_EXT                      = 0x80A9,
1337         GL_SAMPLE_MASK_VALUE_EXT            = 0x80AA,
1338         GL_SAMPLE_MASK_INVERT_EXT           = 0x80AB,
1339         GL_SAMPLE_PATTERN_EXT               = 0x80AC,
1340         GL_MULTISAMPLE_BIT_EXT              = 0x20000000,
1341 
1342         // GL_EXT_texture_env_dot3
1343         GL_DOT3_RGB_EXT                     = 0x8740,
1344         GL_DOT3_RGBA_EXT                    = 0x8741,
1345 
1346         // GL_EXT_vertex_shader
1347         GL_VERTEX_SHADER_EXT                = 0x8780,
1348         GL_VERTEX_SHADER_BINDING_EXT        = 0x8781,
1349         GL_OP_INDEX_EXT                     = 0x8782,
1350         GL_OP_NEGATE_EXT                    = 0x8783,
1351         GL_OP_DOT3_EXT                      = 0x8784,
1352         GL_OP_DOT4_EXT                      = 0x8785,
1353         GL_OP_MUL_EXT                       = 0x8786,
1354         GL_OP_ADD_EXT                       = 0x8787,
1355         GL_OP_MADD_EXT                      = 0x8788,
1356         GL_OP_FRAC_EXT                      = 0x8789,
1357         GL_OP_MAX_EXT                       = 0x878A,
1358         GL_OP_MIN_EXT                       = 0x878B,
1359         GL_OP_SET_GE_EXT                    = 0x878C,
1360         GL_OP_SET_LT_EXT                    = 0x878D,
1361         GL_OP_CLAMP_EXT                     = 0x878E,
1362         GL_OP_FLOOR_EXT                     = 0x878F,
1363         GL_OP_ROUND_EXT                     = 0x8790,
1364         GL_OP_EXP_BASE_2_EXT                = 0x8791,
1365         GL_OP_LOG_BASE_2_EXT                = 0x8792,
1366         GL_OP_POWER_EXT                     = 0x8793,
1367         GL_OP_RECIP_EXT                     = 0x8794,
1368         GL_OP_RECIP_SQRT_EXT                = 0x8795,
1369         GL_OP_SUB_EXT                       = 0x8796,
1370         GL_OP_CROSS_PRODUCT_EXT             = 0x8797,
1371         GL_OP_MULTIPLY_MATRIX_EXT           = 0x8798,
1372         GL_OP_MOV_EXT                       = 0x8799,
1373         GL_OUTPUT_VERTEX_EXT                = 0x879A,
1374         GL_OUTPUT_COLOR0_EXT                = 0x879B,
1375         GL_OUTPUT_COLOR1_EXT                = 0x879C,
1376         GL_OUTPUT_TEXTURE_COORD0_EXT        = 0x879D,
1377         GL_OUTPUT_TEXTURE_COORD1_EXT        = 0x879E,
1378         GL_OUTPUT_TEXTURE_COORD2_EXT        = 0x879F,
1379         GL_OUTPUT_TEXTURE_COORD3_EXT        = 0x87A0,
1380         GL_OUTPUT_TEXTURE_COORD4_EXT        = 0x87A1,
1381         GL_OUTPUT_TEXTURE_COORD5_EXT        = 0x87A2,
1382         GL_OUTPUT_TEXTURE_COORD6_EXT        = 0x87A3,
1383         GL_OUTPUT_TEXTURE_COORD7_EXT        = 0x87A4,
1384         GL_OUTPUT_TEXTURE_COORD8_EXT        = 0x87A5,
1385         GL_OUTPUT_TEXTURE_COORD9_EXT        = 0x87A6,
1386         GL_OUTPUT_TEXTURE_COORD10_EXT       = 0x87A7,
1387         GL_OUTPUT_TEXTURE_COORD11_EXT       = 0x87A8,
1388         GL_OUTPUT_TEXTURE_COORD12_EXT       = 0x87A9,
1389         GL_OUTPUT_TEXTURE_COORD13_EXT       = 0x87AA,
1390         GL_OUTPUT_TEXTURE_COORD14_EXT       = 0x87AB,
1391         GL_OUTPUT_TEXTURE_COORD15_EXT       = 0x87AC,
1392         GL_OUTPUT_TEXTURE_COORD16_EXT       = 0x87AD,
1393         GL_OUTPUT_TEXTURE_COORD17_EXT       = 0x87AE,
1394         GL_OUTPUT_TEXTURE_COORD18_EXT       = 0x87AF,
1395         GL_OUTPUT_TEXTURE_COORD19_EXT       = 0x87B0,
1396         GL_OUTPUT_TEXTURE_COORD20_EXT       = 0x87B1,
1397         GL_OUTPUT_TEXTURE_COORD21_EXT       = 0x87B2,
1398         GL_OUTPUT_TEXTURE_COORD22_EXT       = 0x87B3,
1399         GL_OUTPUT_TEXTURE_COORD23_EXT       = 0x87B4,
1400         GL_OUTPUT_TEXTURE_COORD24_EXT       = 0x87B5,
1401         GL_OUTPUT_TEXTURE_COORD25_EXT       = 0x87B6,
1402         GL_OUTPUT_TEXTURE_COORD26_EXT       = 0x87B7,
1403         GL_OUTPUT_TEXTURE_COORD27_EXT       = 0x87B8,
1404         GL_OUTPUT_TEXTURE_COORD28_EXT       = 0x87B9,
1405         GL_OUTPUT_TEXTURE_COORD29_EXT       = 0x87BA,
1406         GL_OUTPUT_TEXTURE_COORD30_EXT       = 0x87BB,
1407         GL_OUTPUT_TEXTURE_COORD31_EXT       = 0x87BC,
1408         GL_OUTPUT_FOG_EXT                   = 0x87BD,
1409         GL_SCALAR_EXT                       = 0x87BE,
1410         GL_VECTOR_EXT                       = 0x87BF,
1411         GL_MATRIX_EXT                       = 0x87C0,
1412         GL_VARIANT_EXT                      = 0x87C1,
1413         GL_INVARIANT_EXT                    = 0x87C2,
1414         GL_LOCAL_CONSTANT_EXT               = 0x87C3,
1415         GL_LOCAL_EXT                        = 0x87C4,
1416         GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5,
1417         GL_MAX_VERTEX_SHADER_VARIANTS_EXT   = 0x87C6,
1418         GL_MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7,
1419         GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8,
1420         GL_MAX_VERTEX_SHADER_LOCALS_EXT     = 0x87C9,
1421         GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA,
1422         GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB,
1423         GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC,
1424         GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD,
1425         GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE,
1426         GL_VERTEX_SHADER_INSTRUCTIONS_EXT   = 0x87CF,
1427         GL_VERTEX_SHADER_VARIANTS_EXT       = 0x87D0,
1428         GL_VERTEX_SHADER_INVARIANTS_EXT     = 0x87D1,
1429         GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2,
1430         GL_VERTEX_SHADER_LOCALS_EXT         = 0x87D3,
1431         GL_VERTEX_SHADER_OPTIMIZED_EXT      = 0x87D4,
1432         GL_X_EXT                            = 0x87D5,
1433         GL_Y_EXT                            = 0x87D6,
1434         GL_Z_EXT                            = 0x87D7,
1435         GL_W_EXT                            = 0x87D8,
1436         GL_NEGATIVE_X_EXT                   = 0x87D9,
1437         GL_NEGATIVE_Y_EXT                   = 0x87DA,
1438         GL_NEGATIVE_Z_EXT                   = 0x87DB,
1439         GL_NEGATIVE_W_EXT                   = 0x87DC,
1440         GL_ZERO_EXT                         = 0x87DD,
1441         GL_ONE_EXT                          = 0x87DE,
1442         GL_NEGATIVE_ONE_EXT                 = 0x87DF,
1443         GL_NORMALIZED_RANGE_EXT             = 0x87E0,
1444         GL_FULL_RANGE_EXT                   = 0x87E1,
1445         GL_CURRENT_VERTEX_EXT               = 0x87E2,
1446         GL_MVP_MATRIX_EXT                   = 0x87E3,
1447         GL_VARIANT_VALUE_EXT                = 0x87E4,
1448         GL_VARIANT_DATATYPE_EXT             = 0x87E5,
1449         GL_VARIANT_ARRAY_STRIDE_EXT         = 0x87E6,
1450         GL_VARIANT_ARRAY_TYPE_EXT           = 0x87E7,
1451         GL_VARIANT_ARRAY_EXT                = 0x87E8,
1452         GL_VARIANT_ARRAY_POINTER_EXT        = 0x87E9,
1453         GL_INVARIANT_VALUE_EXT              = 0x87EA,
1454         GL_INVARIANT_DATATYPE_EXT           = 0x87EB,
1455         GL_LOCAL_CONSTANT_VALUE_EXT         = 0x87EC,
1456         GL_LOCAL_CONSTANT_DATATYPE_EXT      = 0x87ED,
1457 
1458         // GL_EXT_stencil_two_side
1459         GL_STENCIL_TEST_TWO_SIDE_EXT        = 0x8910,
1460         GL_ACTIVE_STENCIL_FACE_EXT          = 0x8911,
1461 
1462         // GL_EXT_depth_bounds_test
1463         GL_DEPTH_BOUNDS_TEST_EXT            = 0x8890,
1464         GL_DEPTH_BOUNDS_EXT                 = 0x8891,
1465 
1466         // GL_EXT_texture_mirror_clamp
1467         GL_MIRROR_CLAMP_EXT                 = 0x8742,
1468         GL_MIRROR_CLAMP_TO_EDGE_EXT         = 0x8743,
1469         GL_MIRROR_CLAMP_TO_BORDER_EXT       = 0x8912,
1470 
1471         // GL_EXT_blend_equation_separate
1472         GL_BLEND_EQUATION_RGB_EXT           = 0x8009,
1473         GL_BLEND_EQUATION_ALPHA_EXT         = 0x883D,
1474 
1475         // GL_EXT_pixel_buffer_object
1476         GL_PIXEL_PACK_BUFFER_EXT            = 0x88EB,
1477         GL_PIXEL_UNPACK_BUFFER_EXT          = 0x88EC,
1478         GL_PIXEL_PACK_BUFFER_BINDING_EXT    = 0x88ED,
1479         GL_PIXEL_UNPACK_BUFFER_BINDING_EXT  = 0x88EF,
1480 
1481         // GL_EXT_framebuffer_object
1482         GL_INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506,
1483         GL_MAX_RENDERBUFFER_SIZE_EXT        = 0x84E8,
1484         GL_FRAMEBUFFER_BINDING_EXT          = 0x8CA6,
1485         GL_RENDERBUFFER_BINDING_EXT         = 0x8CA7,
1486         GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0,
1487         GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1,
1488         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2,
1489         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3,
1490         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4,
1491         GL_FRAMEBUFFER_COMPLETE_EXT         = 0x8CD5,
1492         GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6,
1493         GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7,
1494         GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9,
1495         GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA,
1496         GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB,
1497         GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC,
1498         GL_FRAMEBUFFER_UNSUPPORTED_EXT      = 0x8CDD,
1499         GL_MAX_COLOR_ATTACHMENTS_EXT        = 0x8CDF,
1500         GL_COLOR_ATTACHMENT0_EXT            = 0x8CE0,
1501         GL_COLOR_ATTACHMENT1_EXT            = 0x8CE1,
1502         GL_COLOR_ATTACHMENT2_EXT            = 0x8CE2,
1503         GL_COLOR_ATTACHMENT3_EXT            = 0x8CE3,
1504         GL_COLOR_ATTACHMENT4_EXT            = 0x8CE4,
1505         GL_COLOR_ATTACHMENT5_EXT            = 0x8CE5,
1506         GL_COLOR_ATTACHMENT6_EXT            = 0x8CE6,
1507         GL_COLOR_ATTACHMENT7_EXT            = 0x8CE7,
1508         GL_COLOR_ATTACHMENT8_EXT            = 0x8CE8,
1509         GL_COLOR_ATTACHMENT9_EXT            = 0x8CE9,
1510         GL_COLOR_ATTACHMENT10_EXT           = 0x8CEA,
1511         GL_COLOR_ATTACHMENT11_EXT           = 0x8CEB,
1512         GL_COLOR_ATTACHMENT12_EXT           = 0x8CEC,
1513         GL_COLOR_ATTACHMENT13_EXT           = 0x8CED,
1514         GL_COLOR_ATTACHMENT14_EXT           = 0x8CEE,
1515         GL_COLOR_ATTACHMENT15_EXT           = 0x8CEF,
1516         GL_DEPTH_ATTACHMENT_EXT             = 0x8D00,
1517         GL_STENCIL_ATTACHMENT_EXT           = 0x8D20,
1518         GL_FRAMEBUFFER_EXT                  = 0x8D40,
1519         GL_RENDERBUFFER_EXT                 = 0x8D41,
1520         GL_RENDERBUFFER_WIDTH_EXT           = 0x8D42,
1521         GL_RENDERBUFFER_HEIGHT_EXT          = 0x8D43,
1522         GL_RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44,
1523         GL_STENCIL_INDEX1_EXT               = 0x8D46,
1524         GL_STENCIL_INDEX4_EXT               = 0x8D47,
1525         GL_STENCIL_INDEX8_EXT               = 0x8D48,
1526         GL_STENCIL_INDEX16_EXT              = 0x8D49,
1527         GL_RENDERBUFFER_RED_SIZE_EXT        = 0x8D50,
1528         GL_RENDERBUFFER_GREEN_SIZE_EXT      = 0x8D51,
1529         GL_RENDERBUFFER_BLUE_SIZE_EXT       = 0x8D52,
1530         GL_RENDERBUFFER_ALPHA_SIZE_EXT      = 0x8D53,
1531         GL_RENDERBUFFER_DEPTH_SIZE_EXT      = 0x8D54,
1532         GL_RENDERBUFFER_STENCIL_SIZE_EXT    = 0x8D55,
1533 
1534         // GL_EXT_packed_depth_stencil
1535         GL_DEPTH_STENCIL_EXT                = 0x84F9,
1536         GL_UNSIGNED_INT_24_8_EXT            = 0x84FA,
1537         GL_DEPTH24_STENCIL8_EXT             = 0x88F0,
1538         GL_TEXTURE_STENCIL_SIZE_EXT         = 0x88F1,
1539 
1540         // GL_EXT_stencil_clear_tag
1541         GL_STENCIL_TAG_BITS_EXT             = 0x88F2,
1542         GL_STENCIL_CLEAR_TAG_VALUE_EXT      = 0x88F3,
1543 
1544         // GL_EXT_texture_sRGB
1545         GL_SRGB_EXT                         = 0x8C40,
1546         GL_SRGB8_EXT                        = 0x8C41,
1547         GL_SRGB_ALPHA_EXT                   = 0x8C42,
1548         GL_SRGB8_ALPHA8_EXT                 = 0x8C43,
1549         GL_SLUMINANCE_ALPHA_EXT             = 0x8C44,
1550         GL_SLUMINANCE8_ALPHA8_EXT           = 0x8C45,
1551         GL_SLUMINANCE_EXT                   = 0x8C46,
1552         GL_SLUMINANCE8_EXT                  = 0x8C47,
1553         GL_COMPRESSED_SRGB_EXT              = 0x8C48,
1554         GL_COMPRESSED_SRGB_ALPHA_EXT        = 0x8C49,
1555         GL_COMPRESSED_SLUMINANCE_EXT        = 0x8C4A,
1556         GL_COMPRESSED_SLUMINANCE_ALPHA_EXT  = 0x8C4B,
1557         GL_COMPRESSED_SRGB_S3TC_DXT1_EXT    = 0x8C4C,
1558         GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D,
1559         GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E,
1560         GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F,
1561 
1562         // GL_EXT_framebuffer_blit
1563         GL_READ_FRAMEBUFFER_EXT             = 0x8CA8,
1564         GL_DRAW_FRAMEBUFFER_EXT             = 0x8CA9,
1565         GL_DRAW_FRAMEBUFFER_BINDING_EXT     = GL_FRAMEBUFFER_BINDING_EXT,
1566         GL_READ_FRAMEBUFFER_BINDING_EXT     = 0x8CAA,
1567 
1568         // GL_EXT_framebuffer_multisample
1569         GL_RENDERBUFFER_SAMPLES_EXT         = 0x8CAB,
1570         GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56,
1571         GL_MAX_SAMPLES_EXT                  = 0x8D57,
1572 
1573         // GL_EXT_timer_query
1574         GL_TIME_ELAPSED_EXT                 = 0x88BF,
1575 
1576         // GL_EXT_geometry_shader4
1577         GL_GEOMETRY_SHADER_EXT              = 0x8DD9,
1578         GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD,
1579         GL_MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE,
1580         GL_MAX_VARYING_COMPONENTS_EXT       = 0x8B4B,
1581         GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF,
1582         GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0,
1583         GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1,
1584 
1585         // GL_EXT_gpu_shader4
1586         GL_SAMPLER_1D_ARRAY_EXT             = 0x8DC0,
1587         GL_SAMPLER_2D_ARRAY_EXT             = 0x8DC1,
1588         GL_SAMPLER_BUFFER_EXT               = 0x8DC2,
1589         GL_SAMPLER_1D_ARRAY_SHADOW_EXT      = 0x8DC3,
1590         GL_SAMPLER_2D_ARRAY_SHADOW_EXT      = 0x8DC4,
1591         GL_SAMPLER_CUBE_SHADOW_EXT          = 0x8DC5,
1592         GL_UNSIGNED_INT_VEC2_EXT            = 0x8DC6,
1593         GL_UNSIGNED_INT_VEC3_EXT            = 0x8DC7,
1594         GL_UNSIGNED_INT_VEC4_EXT            = 0x8DC8,
1595         GL_INT_SAMPLER_1D_EXT               = 0x8DC9,
1596         GL_INT_SAMPLER_2D_EXT               = 0x8DCA,
1597         GL_INT_SAMPLER_3D_EXT               = 0x8DCB,
1598         GL_INT_SAMPLER_CUBE_EXT             = 0x8DCC,
1599         GL_INT_SAMPLER_2D_RECT_EXT          = 0x8DCD,
1600         GL_INT_SAMPLER_1D_ARRAY_EXT         = 0x8DCE,
1601         GL_INT_SAMPLER_2D_ARRAY_EXT         = 0x8DCF,
1602         GL_INT_SAMPLER_BUFFER_EXT           = 0x8DD0,
1603         GL_UNSIGNED_INT_SAMPLER_1D_EXT      = 0x8DD1,
1604         GL_UNSIGNED_INT_SAMPLER_2D_EXT      = 0x8DD2,
1605         GL_UNSIGNED_INT_SAMPLER_3D_EXT      = 0x8DD3,
1606         GL_UNSIGNED_INT_SAMPLER_CUBE_EXT    = 0x8DD4,
1607         GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5,
1608         GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6,
1609         GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7,
1610         GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT  = 0x8DD8,
1611 
1612         // GL_EXT_packed_float
1613         GL_R11F_G11F_B10F_EXT               = 0x8C3A,
1614         GL_UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B,
1615         GL_RGBA_SIGNED_COMPONENTS_EXT       = 0x8C3C,
1616 
1617         // GL_EXT_texture_array
1618         GL_TEXTURE_1D_ARRAY_EXT             = 0x8C18,
1619         GL_PROXY_TEXTURE_1D_ARRAY_EXT       = 0x8C19,
1620         GL_TEXTURE_2D_ARRAY_EXT             = 0x8C1A,
1621         GL_PROXY_TEXTURE_2D_ARRAY_EXT       = 0x8C1B,
1622         GL_TEXTURE_BINDING_1D_ARRAY_EXT     = 0x8C1C,
1623         GL_TEXTURE_BINDING_2D_ARRAY_EXT     = 0x8C1D,
1624         GL_MAX_ARRAY_TEXTURE_LAYERS_EXT     = 0x88FF,
1625         GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E,
1626 
1627         // GL_EXT_texture_buffer_object
1628         GL_TEXTURE_BUFFER_EXT               = 0x8C2A,
1629         GL_MAX_TEXTURE_BUFFER_SIZE_EXT      = 0x8C2B,
1630         GL_TEXTURE_BINDING_BUFFER_EXT       = 0x8C2C,
1631         GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D,
1632         GL_TEXTURE_BUFFER_FORMAT_EXT        = 0x8C2E,
1633 
1634         // GL_EXT_texture_compression_latc
1635         GL_COMPRESSED_LUMINANCE_LATC1_EXT   = 0x8C70,
1636         GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71,
1637         GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72,
1638         GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73,
1639 
1640         // GL_EXT_texture_compression_rgtc
1641         GL_COMPRESSED_RED_RGTC1_EXT         = 0x8DBB,
1642         GL_COMPRESSED_SIGNED_RED_RGTC1_EXT  = 0x8DBC,
1643         GL_COMPRESSED_RED_GREEN_RGTC2_EXT   = 0x8DBD,
1644         GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE,
1645 
1646         // GL_EXT_texture_shared_exponent
1647         GL_RGB9_E5_EXT                      = 0x8C3D,
1648         GL_UNSIGNED_INT_5_9_9_9_REV_EXT     = 0x8C3E,
1649         GL_TEXTURE_SHARED_SIZE_EXT          = 0x8C3F,
1650 
1651         // GL_EXT_framebuffer_sRGB
1652         GL_FRAMEBUFFER_SRGB_EXT             = 0x8DB9,
1653         GL_FRAMEBUFFER_SRGB_CAPABLE_EXT     = 0x8DBA,
1654 
1655         // GL_EXT_bindable_uniform
1656         GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2,
1657         GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3,
1658         GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4,
1659         GL_MAX_BINDABLE_UNIFORM_SIZE_EXT    = 0x8DED,
1660         GL_UNIFORM_BUFFER_EXT               = 0x8DEE,
1661         GL_UNIFORM_BUFFER_BINDING_EXT       = 0x8DEF,
1662 
1663         // GL_EXT_texture_integer
1664         GL_RGBA32UI_EXT                     = 0x8D70,
1665         GL_RGB32UI_EXT                      = 0x8D71,
1666         GL_ALPHA32UI_EXT                    = 0x8D72,
1667         GL_INTENSITY32UI_EXT                = 0x8D73,
1668         GL_LUMINANCE32UI_EXT                = 0x8D74,
1669         GL_LUMINANCE_ALPHA32UI_EXT          = 0x8D75,
1670         GL_RGBA16UI_EXT                     = 0x8D76,
1671         GL_RGB16UI_EXT                      = 0x8D77,
1672         GL_ALPHA16UI_EXT                    = 0x8D78,
1673         GL_INTENSITY16UI_EXT                = 0x8D79,
1674         GL_LUMINANCE16UI_EXT                = 0x8D7A,
1675         GL_LUMINANCE_ALPHA16UI_EXT          = 0x8D7B,
1676         GL_RGBA8UI_EXT                      = 0x8D7C,
1677         GL_RGB8UI_EXT                       = 0x8D7D,
1678         GL_ALPHA8UI_EXT                     = 0x8D7E,
1679         GL_INTENSITY8UI_EXT                 = 0x8D7F,
1680         GL_LUMINANCE8UI_EXT                 = 0x8D80,
1681         GL_LUMINANCE_ALPHA8UI_EXT           = 0x8D81,
1682         GL_RGBA32I_EXT                      = 0x8D82,
1683         GL_RGB32I_EXT                       = 0x8D83,
1684         GL_ALPHA32I_EXT                     = 0x8D84,
1685         GL_INTENSITY32I_EXT                 = 0x8D85,
1686         GL_LUMINANCE32I_EXT                 = 0x8D86,
1687         GL_LUMINANCE_ALPHA32I_EXT           = 0x8D87,
1688         GL_RGBA16I_EXT                      = 0x8D88,
1689         GL_RGB16I_EXT                       = 0x8D89,
1690         GL_ALPHA16I_EXT                     = 0x8D8A,
1691         GL_INTENSITY16I_EXT                 = 0x8D8B,
1692         GL_LUMINANCE16I_EXT                 = 0x8D8C,
1693         GL_LUMINANCE_ALPHA16I_EXT           = 0x8D8D,
1694         GL_RGBA8I_EXT                       = 0x8D8E,
1695         GL_RGB8I_EXT                        = 0x8D8F,
1696         GL_ALPHA8I_EXT                      = 0x8D90,
1697         GL_INTENSITY8I_EXT                  = 0x8D91,
1698         GL_LUMINANCE8I_EXT                  = 0x8D92,
1699         GL_LUMINANCE_ALPHA8I_EXT            = 0x8D93,
1700         GL_RED_INTEGER_EXT                  = 0x8D94,
1701         GL_GREEN_INTEGER_EXT                = 0x8D95,
1702         GL_BLUE_INTEGER_EXT                 = 0x8D96,
1703         GL_ALPHA_INTEGER_EXT                = 0x8D97,
1704         GL_RGB_INTEGER_EXT                  = 0x8D98,
1705         GL_RGBA_INTEGER_EXT                 = 0x8D99,
1706         GL_BGR_INTEGER_EXT                  = 0x8D9A,
1707         GL_BGRA_INTEGER_EXT                 = 0x8D9B,
1708         GL_LUMINANCE_INTEGER_EXT            = 0x8D9C,
1709         GL_LUMINANCE_ALPHA_INTEGER_EXT      = 0x8D9D,
1710         GL_RGBA_INTEGER_MODE_EXT            = 0x8D9E,
1711 
1712         // GL_EXT_transform_feedback
1713         GL_TRANSFORM_FEEDBACK_BUFFER_EXT    = 0x8C8E,
1714         GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84,
1715         GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85,
1716         GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F,
1717         GL_INTERLEAVED_ATTRIBS_EXT          = 0x8C8C,
1718         GL_SEPARATE_ATTRIBS_EXT             = 0x8C8D,
1719         GL_PRIMITIVES_GENERATED_EXT         = 0x8C87,
1720         GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88,
1721         GL_RASTERIZER_DISCARD_EXT           = 0x8C89,
1722         GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A,
1723         GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B,
1724         GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80,
1725         GL_TRANSFORM_FEEDBACK_VARYINGS_EXT  = 0x8C83,
1726         GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F,
1727         GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76,
1728 
1729         // GL_EXT_direct_state_access
1730         GL_PROGRAM_MATRIX_EXT               = 0x8E2D,
1731         GL_TRANSPOSE_PROGRAM_MATRIX_EXT     = 0x8E2E,
1732         GL_PROGRAM_MATRIX_STACK_DEPTH_EXT   = 0x8E2F,
1733 
1734         // GL_EXT_texture_swizzle
1735         GL_TEXTURE_SWIZZLE_R_EXT            = 0x8E42,
1736         GL_TEXTURE_SWIZZLE_G_EXT            = 0x8E43,
1737         GL_TEXTURE_SWIZZLE_B_EXT            = 0x8E44,
1738         GL_TEXTURE_SWIZZLE_A_EXT            = 0x8E45,
1739         GL_TEXTURE_SWIZZLE_RGBA_EXT         = 0x8E46,
1740 
1741         // GL_EXT_provoking_vertex
1742         GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C,
1743         GL_FIRST_VERTEX_CONVENTION_EXT      = 0x8E4D,
1744         GL_LAST_VERTEX_CONVENTION_EXT       = 0x8E4E,
1745         GL_PROVOKING_VERTEX_EXT             = 0x8E4F,
1746 
1747         // GL_EXT_texture_snorm
1748         GL_ALPHA_SNORM                      = 0x9010,
1749         GL_LUMINANCE_SNORM                  = 0x9011,
1750         GL_LUMINANCE_ALPHA_SNORM            = 0x9012,
1751         GL_INTENSITY_SNORM                  = 0x9013,
1752         GL_ALPHA8_SNORM                     = 0x9014,
1753         GL_LUMINANCE8_SNORM                 = 0x9015,
1754         GL_LUMINANCE8_ALPHA8_SNORM          = 0x9016,
1755         GL_INTENSITY8_SNORM                 = 0x9017,
1756         GL_ALPHA16_SNORM                    = 0x9018,
1757         GL_LUMINANCE16_SNORM                = 0x9019,
1758         GL_LUMINANCE16_ALPHA16_SNORM        = 0x901A,
1759         GL_INTENSITY16_SNORM                = 0x901B,
1760 
1761         // GL_EXT_separate_shader_objects
1762         GL_ACTIVE_PROGRAM_EXT               = 0x8B8D,
1763     }
1764 }
1765 
1766 version(DerelictGL_NV)
1767 {
1768     // from GL_NV_half_float
1769     alias ushort GLhalfNV;
1770 
1771     enum : GLenum
1772     {
1773         // GL_NV_texgen_reflection
1774         GL_NORMAL_MAP_NV                    = 0x8511,
1775         GL_REFLECTION_MAP_NV                = 0x8512,
1776 
1777         // GL_NV_light_max_exponent
1778         GL_MAX_SHININESS_NV                 = 0x8504,
1779         GL_MAX_SPOT_EXPONENT_NV             = 0x8505,
1780 
1781         // GL_NV_vertex_array_range
1782         GL_VERTEX_ARRAY_RANGE_NV            = 0x851D,
1783         GL_VERTEX_ARRAY_RANGE_LENGTH_NV     = 0x851E,
1784         GL_VERTEX_ARRAY_RANGE_VALID_NV      = 0x851F,
1785         GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520,
1786         GL_VERTEX_ARRAY_RANGE_POINTER_NV    = 0x8521,
1787 
1788         // GL_NV_register_combiners
1789         GL_REGISTER_COMBINERS_NV            = 0x8522,
1790         GL_VARIABLE_A_NV                    = 0x8523,
1791         GL_VARIABLE_B_NV                    = 0x8524,
1792         GL_VARIABLE_C_NV                    = 0x8525,
1793         GL_VARIABLE_D_NV                    = 0x8526,
1794         GL_VARIABLE_E_NV                    = 0x8527,
1795         GL_VARIABLE_F_NV                    = 0x8528,
1796         GL_VARIABLE_G_NV                    = 0x8529,
1797         GL_CONSTANT_COLOR0_NV               = 0x852A,
1798         GL_CONSTANT_COLOR1_NV               = 0x852B,
1799         GL_PRIMARY_COLOR_NV                 = 0x852C,
1800         GL_SECONDARY_COLOR_NV               = 0x852D,
1801         GL_SPARE0_NV                        = 0x852E,
1802         GL_SPARE1_NV                        = 0x852F,
1803         GL_DISCARD_NV                       = 0x8530,
1804         GL_E_TIMES_F_NV                     = 0x8531,
1805         GL_SPARE0_PLUS_SECONDARY_COLOR_NV   = 0x8532,
1806         GL_UNSIGNED_IDENTITY_NV             = 0x8536,
1807         GL_UNSIGNED_INVERT_NV               = 0x8537,
1808         GL_EXPAND_NORMAL_NV                 = 0x8538,
1809         GL_EXPAND_NEGATE_NV                 = 0x8539,
1810         GL_HALF_BIAS_NORMAL_NV              = 0x853A,
1811         GL_HALF_BIAS_NEGATE_NV              = 0x853B,
1812         GL_SIGNED_IDENTITY_NV               = 0x853C,
1813         GL_SIGNED_NEGATE_NV                 = 0x853D,
1814         GL_SCALE_BY_TWO_NV                  = 0x853E,
1815         GL_SCALE_BY_FOUR_NV                 = 0x853F,
1816         GL_SCALE_BY_ONE_HALF_NV             = 0x8540,
1817         GL_BIAS_BY_NEGATIVE_ONE_HALF_NV     = 0x8541,
1818         GL_COMBINER_INPUT_NV                = 0x8542,
1819         GL_COMBINER_MAPPING_NV              = 0x8543,
1820         GL_COMBINER_COMPONENT_USAGE_NV      = 0x8544,
1821         GL_COMBINER_AB_DOT_PRODUCT_NV       = 0x8545,
1822         GL_COMBINER_CD_DOT_PRODUCT_NV       = 0x8546,
1823         GL_COMBINER_MUX_SUM_NV              = 0x8547,
1824         GL_COMBINER_SCALE_NV                = 0x8548,
1825         GL_COMBINER_BIAS_NV                 = 0x8549,
1826         GL_COMBINER_AB_OUTPUT_NV            = 0x854A,
1827         GL_COMBINER_CD_OUTPUT_NV            = 0x854B,
1828         GL_COMBINER_SUM_OUTPUT_NV           = 0x854C,
1829         GL_MAX_GENERAL_COMBINERS_NV         = 0x854D,
1830         GL_NUM_GENERAL_COMBINERS_NV         = 0x854E,
1831         GL_COLOR_SUM_CLAMP_NV               = 0x854F,
1832         GL_COMBINER0_NV                     = 0x8550,
1833         GL_COMBINER1_NV                     = 0x8551,
1834         GL_COMBINER2_NV                     = 0x8552,
1835         GL_COMBINER3_NV                     = 0x8553,
1836         GL_COMBINER4_NV                     = 0x8554,
1837         GL_COMBINER5_NV                     = 0x8555,
1838         GL_COMBINER6_NV                     = 0x8556,
1839         GL_COMBINER7_NV                     = 0x8557,
1840 
1841         // GL_NV_fog_distance
1842         GL_FOG_DISTANCE_MODE_NV             = 0x855A,
1843         GL_EYE_RADIAL_NV                    = 0x855B,
1844         GL_EYE_PLANE_ABSOLUTE_NV            = 0x855C,
1845 
1846         // GL_NV_texgen_emboss
1847         GL_EMBOSS_LIGHT_NV                  = 0x855D,
1848         GL_EMBOSS_CONSTANT_NV               = 0x855E,
1849         GL_EMBOSS_MAP_NV                    = 0x855F,
1850 
1851         // GL_NV_texture_env_combine4
1852         GL_COMBINE4_NV                      = 0x8503,
1853         GL_SOURCE3_RGB_NV                   = 0x8583,
1854         GL_SOURCE3_ALPHA_NV                 = 0x858B,
1855         GL_OPERAND3_RGB_NV                  = 0x8593,
1856         GL_OPERAND3_ALPHA_NV                = 0x859B,
1857 
1858         // GL_NV_fence
1859         GL_ALL_COMPLETED_NV                 = 0x84F2,
1860         GL_FENCE_STATUS_NV                  = 0x84F3,
1861         GL_FENCE_CONDITION_NV               = 0x84F4,
1862 
1863         // GL_NV_evaluators
1864         GL_EVAL_2D_NV                       = 0x86C0,
1865         GL_EVAL_TRIANGULAR_2D_NV            = 0x86C1,
1866         GL_MAP_TESSELLATION_NV              = 0x86C2,
1867         GL_MAP_ATTRIB_U_ORDER_NV            = 0x86C3,
1868         GL_MAP_ATTRIB_V_ORDER_NV            = 0x86C4,
1869         GL_EVAL_FRACTIONAL_TESSELLATION_NV  = 0x86C5,
1870         GL_EVAL_VERTEX_ATTRIB0_NV           = 0x86C6,
1871         GL_EVAL_VERTEX_ATTRIB1_NV           = 0x86C7,
1872         GL_EVAL_VERTEX_ATTRIB2_NV           = 0x86C8,
1873         GL_EVAL_VERTEX_ATTRIB3_NV           = 0x86C9,
1874         GL_EVAL_VERTEX_ATTRIB4_NV           = 0x86CA,
1875         GL_EVAL_VERTEX_ATTRIB5_NV           = 0x86CB,
1876         GL_EVAL_VERTEX_ATTRIB6_NV           = 0x86CC,
1877         GL_EVAL_VERTEX_ATTRIB7_NV           = 0x86CD,
1878         GL_EVAL_VERTEX_ATTRIB8_NV           = 0x86CE,
1879         GL_EVAL_VERTEX_ATTRIB9_NV           = 0x86CF,
1880         GL_EVAL_VERTEX_ATTRIB10_NV          = 0x86D0,
1881         GL_EVAL_VERTEX_ATTRIB11_NV          = 0x86D1,
1882         GL_EVAL_VERTEX_ATTRIB12_NV          = 0x86D2,
1883         GL_EVAL_VERTEX_ATTRIB13_NV          = 0x86D3,
1884         GL_EVAL_VERTEX_ATTRIB14_NV          = 0x86D4,
1885         GL_EVAL_VERTEX_ATTRIB15_NV          = 0x86D5,
1886         GL_MAX_MAP_TESSELLATION_NV          = 0x86D6,
1887         GL_MAX_RATIONAL_EVAL_ORDER_NV       = 0x86D7,
1888 
1889         // GL_NV_packed_depth_stencil
1890         GL_DEPTH_STENCIL_NV                 = 0x84F9,
1891         GL_UNSIGNED_INT_24_8_NV             = 0x84FA,
1892 
1893         // GL_NV_register_combiners2
1894         GL_PER_STAGE_CONSTANTS_NV           = 0x8535,
1895 
1896         // GL_NV_texture_rectangle
1897         GL_TEXTURE_RECTANGLE_NV             = 0x84F5,
1898         GL_TEXTURE_BINDING_RECTANGLE_NV     = 0x84F6,
1899         GL_PROXY_TEXTURE_RECTANGLE_NV       = 0x84F7,
1900         GL_MAX_RECTANGLE_TEXTURE_SIZE_NV    = 0x84F8,
1901 
1902         // GL_NV_texture_shader
1903         GL_OFFSET_TEXTURE_RECTANGLE_NV      = 0x864C,
1904         GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D,
1905         GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E,
1906         GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9,
1907         GL_UNSIGNED_INT_S8_S8_8_8_NV        = 0x86DA,
1908         GL_UNSIGNED_INT_8_8_S8_S8_REV_NV    = 0x86DB,
1909         GL_DSDT_MAG_INTENSITY_NV            = 0x86DC,
1910         GL_SHADER_CONSISTENT_NV             = 0x86DD,
1911         GL_TEXTURE_SHADER_NV                = 0x86DE,
1912         GL_SHADER_OPERATION_NV              = 0x86DF,
1913         GL_CULL_MODES_NV                    = 0x86E0,
1914         GL_OFFSET_TEXTURE_MATRIX_NV         = 0x86E1,
1915         GL_OFFSET_TEXTURE_SCALE_NV          = 0x86E2,
1916         GL_OFFSET_TEXTURE_BIAS_NV           = 0x86E3,
1917         GL_OFFSET_TEXTURE_2D_MATRIX_NV      = GL_OFFSET_TEXTURE_MATRIX_NV,
1918         GL_OFFSET_TEXTURE_2D_SCALE_NV       = GL_OFFSET_TEXTURE_SCALE_NV,
1919         GL_OFFSET_TEXTURE_2D_BIAS_NV        = GL_OFFSET_TEXTURE_BIAS_NV,
1920         GL_PREVIOUS_TEXTURE_INPUT_NV        = 0x86E4,
1921         GL_CONST_EYE_NV                     = 0x86E5,
1922         GL_PASS_THROUGH_NV                  = 0x86E6,
1923         GL_CULL_FRAGMENT_NV                 = 0x86E7,
1924         GL_OFFSET_TEXTURE_2D_NV             = 0x86E8,
1925         GL_DEPENDENT_AR_TEXTURE_2D_NV       = 0x86E9,
1926         GL_DEPENDENT_GB_TEXTURE_2D_NV       = 0x86EA,
1927         GL_DOT_PRODUCT_NV                   = 0x86EC,
1928         GL_DOT_PRODUCT_DEPTH_REPLACE_NV     = 0x86ED,
1929         GL_DOT_PRODUCT_TEXTURE_2D_NV        = 0x86EE,
1930         GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV  = 0x86F0,
1931         GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV  = 0x86F1,
1932         GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV  = 0x86F2,
1933         GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3,
1934         GL_HILO_NV                          = 0x86F4,
1935         GL_DSDT_NV                          = 0x86F5,
1936         GL_DSDT_MAG_NV                      = 0x86F6,
1937         GL_DSDT_MAG_VIB_NV                  = 0x86F7,
1938         GL_HILO16_NV                        = 0x86F8,
1939         GL_SIGNED_HILO_NV                   = 0x86F9,
1940         GL_SIGNED_HILO16_NV                 = 0x86FA,
1941         GL_SIGNED_RGBA_NV                   = 0x86FB,
1942         GL_SIGNED_RGBA8_NV                  = 0x86FC,
1943         GL_SIGNED_RGB_NV                    = 0x86FE,
1944         GL_SIGNED_RGB8_NV                   = 0x86FF,
1945         GL_SIGNED_LUMINANCE_NV              = 0x8701,
1946         GL_SIGNED_LUMINANCE8_NV             = 0x8702,
1947         GL_SIGNED_LUMINANCE_ALPHA_NV        = 0x8703,
1948         GL_SIGNED_LUMINANCE8_ALPHA8_NV      = 0x8704,
1949         GL_SIGNED_ALPHA_NV                  = 0x8705,
1950         GL_SIGNED_ALPHA8_NV                 = 0x8706,
1951         GL_SIGNED_INTENSITY_NV              = 0x8707,
1952         GL_SIGNED_INTENSITY8_NV             = 0x8708,
1953         GL_DSDT8_NV                         = 0x8709,
1954         GL_DSDT8_MAG8_NV                    = 0x870A,
1955         GL_DSDT8_MAG8_INTENSITY8_NV         = 0x870B,
1956         GL_SIGNED_RGB_UNSIGNED_ALPHA_NV     = 0x870C,
1957         GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV   = 0x870D,
1958         GL_HI_SCALE_NV                      = 0x870E,
1959         GL_LO_SCALE_NV                      = 0x870F,
1960         GL_DS_SCALE_NV                      = 0x8710,
1961         GL_DT_SCALE_NV                      = 0x8711,
1962         GL_MAGNITUDE_SCALE_NV               = 0x8712,
1963         GL_VIBRANCE_SCALE_NV                = 0x8713,
1964         GL_HI_BIAS_NV                       = 0x8714,
1965         GL_LO_BIAS_NV                       = 0x8715,
1966         GL_DS_BIAS_NV                       = 0x8716,
1967         GL_DT_BIAS_NV                       = 0x8717,
1968         GL_MAGNITUDE_BIAS_NV                = 0x8718,
1969         GL_VIBRANCE_BIAS_NV                 = 0x8719,
1970         GL_TEXTURE_BORDER_VALUES_NV         = 0x871A,
1971         GL_TEXTURE_HI_SIZE_NV               = 0x871B,
1972         GL_TEXTURE_LO_SIZE_NV               = 0x871C,
1973         GL_TEXTURE_DS_SIZE_NV               = 0x871D,
1974         GL_TEXTURE_DT_SIZE_NV               = 0x871E,
1975         GL_TEXTURE_MAG_SIZE_NV              = 0x871F,
1976 
1977         // GL_NV_texture_shader2
1978         GL_DOT_PRODUCT_TEXTURE_3D_NV        = 0x86EF,
1979 
1980         // GL_NV_vertex_array_range2
1981         GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533,
1982 
1983         // GL_NV_vertex_program
1984         GL_VERTEX_PROGRAM_NV                = 0x8620,
1985         GL_VERTEX_STATE_PROGRAM_NV          = 0x8621,
1986         GL_ATTRIB_ARRAY_SIZE_NV             = 0x8623,
1987         GL_ATTRIB_ARRAY_STRIDE_NV           = 0x8624,
1988         GL_ATTRIB_ARRAY_TYPE_NV             = 0x8625,
1989         GL_CURRENT_ATTRIB_NV                = 0x8626,
1990         GL_PROGRAM_LENGTH_NV                = 0x8627,
1991         GL_PROGRAM_STRING_NV                = 0x8628,
1992         GL_MODELVIEW_PROJECTION_NV          = 0x8629,
1993         GL_IDENTITY_NV                      = 0x862A,
1994         GL_INVERSE_NV                       = 0x862B,
1995         GL_TRANSPOSE_NV                     = 0x862C,
1996         GL_INVERSE_TRANSPOSE_NV             = 0x862D,
1997         GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV  = 0x862E,
1998         GL_MAX_TRACK_MATRICES_NV            = 0x862F,
1999         GL_MATRIX0_NV                       = 0x8630,
2000         GL_MATRIX1_NV                       = 0x8631,
2001         GL_MATRIX2_NV                       = 0x8632,
2002         GL_MATRIX3_NV                       = 0x8633,
2003         GL_MATRIX4_NV                       = 0x8634,
2004         GL_MATRIX5_NV                       = 0x8635,
2005         GL_MATRIX6_NV                       = 0x8636,
2006         GL_MATRIX7_NV                       = 0x8637,
2007         GL_CURRENT_MATRIX_STACK_DEPTH_NV    = 0x8640,
2008         GL_CURRENT_MATRIX_NV                = 0x8641,
2009         GL_VERTEX_PROGRAM_POINT_SIZE_NV     = 0x8642,
2010         GL_VERTEX_PROGRAM_TWO_SIDE_NV       = 0x8643,
2011         GL_PROGRAM_PARAMETER_NV             = 0x8644,
2012         GL_ATTRIB_ARRAY_POINTER_NV          = 0x8645,
2013         GL_PROGRAM_TARGET_NV                = 0x8646,
2014         GL_PROGRAM_RESIDENT_NV              = 0x8647,
2015         GL_TRACK_MATRIX_NV                  = 0x8648,
2016         GL_TRACK_MATRIX_TRANSFORM_NV        = 0x8649,
2017         GL_VERTEX_PROGRAM_BINDING_NV        = 0x864A,
2018         GL_PROGRAM_ERROR_POSITION_NV        = 0x864B,
2019         GL_VERTEX_ATTRIB_ARRAY0_NV          = 0x8650,
2020         GL_VERTEX_ATTRIB_ARRAY1_NV          = 0x8651,
2021         GL_VERTEX_ATTRIB_ARRAY2_NV          = 0x8652,
2022         GL_VERTEX_ATTRIB_ARRAY3_NV          = 0x8653,
2023         GL_VERTEX_ATTRIB_ARRAY4_NV          = 0x8654,
2024         GL_VERTEX_ATTRIB_ARRAY5_NV          = 0x8655,
2025         GL_VERTEX_ATTRIB_ARRAY6_NV          = 0x8656,
2026         GL_VERTEX_ATTRIB_ARRAY7_NV          = 0x8657,
2027         GL_VERTEX_ATTRIB_ARRAY8_NV          = 0x8658,
2028         GL_VERTEX_ATTRIB_ARRAY9_NV          = 0x8659,
2029         GL_VERTEX_ATTRIB_ARRAY10_NV         = 0x865A,
2030         GL_VERTEX_ATTRIB_ARRAY11_NV         = 0x865B,
2031         GL_VERTEX_ATTRIB_ARRAY12_NV         = 0x865C,
2032         GL_VERTEX_ATTRIB_ARRAY13_NV         = 0x865D,
2033         GL_VERTEX_ATTRIB_ARRAY14_NV         = 0x865E,
2034         GL_VERTEX_ATTRIB_ARRAY15_NV         = 0x865F,
2035         GL_MAP1_VERTEX_ATTRIB0_4_NV         = 0x8660,
2036         GL_MAP1_VERTEX_ATTRIB1_4_NV         = 0x8661,
2037         GL_MAP1_VERTEX_ATTRIB2_4_NV         = 0x8662,
2038         GL_MAP1_VERTEX_ATTRIB3_4_NV         = 0x8663,
2039         GL_MAP1_VERTEX_ATTRIB4_4_NV         = 0x8664,
2040         GL_MAP1_VERTEX_ATTRIB5_4_NV         = 0x8665,
2041         GL_MAP1_VERTEX_ATTRIB6_4_NV         = 0x8666,
2042         GL_MAP1_VERTEX_ATTRIB7_4_NV         = 0x8667,
2043         GL_MAP1_VERTEX_ATTRIB8_4_NV         = 0x8668,
2044         GL_MAP1_VERTEX_ATTRIB9_4_NV         = 0x8669,
2045         GL_MAP1_VERTEX_ATTRIB10_4_NV        = 0x866A,
2046         GL_MAP1_VERTEX_ATTRIB11_4_NV        = 0x866B,
2047         GL_MAP1_VERTEX_ATTRIB12_4_NV        = 0x866C,
2048         GL_MAP1_VERTEX_ATTRIB13_4_NV        = 0x866D,
2049         GL_MAP1_VERTEX_ATTRIB14_4_NV        = 0x866E,
2050         GL_MAP1_VERTEX_ATTRIB15_4_NV        = 0x866F,
2051         GL_MAP2_VERTEX_ATTRIB0_4_NV         = 0x8670,
2052         GL_MAP2_VERTEX_ATTRIB1_4_NV         = 0x8671,
2053         GL_MAP2_VERTEX_ATTRIB2_4_NV         = 0x8672,
2054         GL_MAP2_VERTEX_ATTRIB3_4_NV         = 0x8673,
2055         GL_MAP2_VERTEX_ATTRIB4_4_NV         = 0x8674,
2056         GL_MAP2_VERTEX_ATTRIB5_4_NV         = 0x8675,
2057         GL_MAP2_VERTEX_ATTRIB6_4_NV         = 0x8676,
2058         GL_MAP2_VERTEX_ATTRIB7_4_NV         = 0x8677,
2059         GL_MAP2_VERTEX_ATTRIB8_4_NV         = 0x8678,
2060         GL_MAP2_VERTEX_ATTRIB9_4_NV         = 0x8679,
2061         GL_MAP2_VERTEX_ATTRIB10_4_NV        = 0x867A,
2062         GL_MAP2_VERTEX_ATTRIB11_4_NV        = 0x867B,
2063         GL_MAP2_VERTEX_ATTRIB12_4_NV        = 0x867C,
2064         GL_MAP2_VERTEX_ATTRIB13_4_NV        = 0x867D,
2065         GL_MAP2_VERTEX_ATTRIB14_4_NV        = 0x867E,
2066         GL_MAP2_VERTEX_ATTRIB15_4_NV        = 0x867F,
2067 
2068         // GL_NV_copy_depth_to_color
2069         GL_DEPTH_STENCIL_TO_RGBA_NV         = 0x886E,
2070         GL_DEPTH_STENCIL_TO_BGRA_NV         = 0x886F,
2071 
2072         // GL_NV_multisample_filter_hint
2073         GL_MULTISAMPLE_FILTER_HINT_NV       = 0x8534,
2074 
2075         // GL_NV_depth_clamp
2076         GL_DEPTH_CLAMP_NV                   = 0x864F,
2077 
2078         // GL_NV_occlusion_query
2079         GL_PIXEL_COUNTER_BITS_NV            = 0x8864,
2080         GL_CURRENT_OCCLUSION_QUERY_ID_NV    = 0x8865,
2081         GL_PIXEL_COUNT_NV                   = 0x8866,
2082         GL_PIXEL_COUNT_AVAILABLE_NV         = 0x8867,
2083 
2084         // GL_NV_point_sprite
2085         GL_POINT_SPRITE_NV                  = 0x8861,
2086         GL_COORD_REPLACE_NV                 = 0x8862,
2087         GL_POINT_SPRITE_R_MODE_NV           = 0x8863,
2088 
2089         // GL_NV_texture_shader3
2090         GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV  = 0x8850,
2091         GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851,
2092         GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852,
2093         GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853,
2094         GL_OFFSET_HILO_TEXTURE_2D_NV        = 0x8854,
2095         GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855,
2096         GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856,
2097         GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857,
2098         GL_DEPENDENT_HILO_TEXTURE_2D_NV     = 0x8858,
2099         GL_DEPENDENT_RGB_TEXTURE_3D_NV      = 0x8859,
2100         GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A,
2101         GL_DOT_PRODUCT_PASS_THROUGH_NV      = 0x885B,
2102         GL_DOT_PRODUCT_TEXTURE_1D_NV        = 0x885C,
2103         GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D,
2104         GL_HILO8_NV                         = 0x885E,
2105         GL_SIGNED_HILO8_NV                  = 0x885F,
2106         GL_FORCE_BLUE_TO_ONE_NV             = 0x8860,
2107 
2108         // GL_NV_float_buffer
2109         GL_FLOAT_R_NV                       = 0x8880,
2110         GL_FLOAT_RG_NV                      = 0x8881,
2111         GL_FLOAT_RGB_NV                     = 0x8882,
2112         GL_FLOAT_RGBA_NV                    = 0x8883,
2113         GL_FLOAT_R16_NV                     = 0x8884,
2114         GL_FLOAT_R32_NV                     = 0x8885,
2115         GL_FLOAT_RG16_NV                    = 0x8886,
2116         GL_FLOAT_RG32_NV                    = 0x8887,
2117         GL_FLOAT_RGB16_NV                   = 0x8888,
2118         GL_FLOAT_RGB32_NV                   = 0x8889,
2119         GL_FLOAT_RGBA16_NV                  = 0x888A,
2120         GL_FLOAT_RGBA32_NV                  = 0x888B,
2121         GL_TEXTURE_FLOAT_COMPONENTS_NV      = 0x888C,
2122         GL_FLOAT_CLEAR_COLOR_VALUE_NV       = 0x888D,
2123         GL_FLOAT_RGBA_MODE_NV               = 0x888E,
2124 
2125         // GL_NV_fragment_program
2126         GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868,
2127         GL_FRAGMENT_PROGRAM_NV              = 0x8870,
2128         GL_MAX_TEXTURE_COORDS_NV            = 0x8871,
2129         GL_MAX_TEXTURE_IMAGE_UNITS_NV       = 0x8872,
2130         GL_FRAGMENT_PROGRAM_BINDING_NV      = 0x8873,
2131         GL_PROGRAM_ERROR_STRING_NV          = 0x8874,
2132 
2133         // GL_NV_half_float
2134         GL_HALF_FLOAT_NV                    = 0x140B,
2135 
2136         // GL_NV_pixel_data_range
2137         GL_WRITE_PIXEL_DATA_RANGE_NV        = 0x8878,
2138         GL_READ_PIXEL_DATA_RANGE_NV         = 0x8879,
2139         GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A,
2140         GL_READ_PIXEL_DATA_RANGE_LENGTH_NV  = 0x887B,
2141         GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C,
2142         GL_READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D,
2143 
2144         // GL_NV_primitive_restart
2145         GL_PRIMITIVE_RESTART_NV             = 0x8558,
2146         GL_PRIMITIVE_RESTART_INDEX_NV       = 0x8559,
2147 
2148         // GL_NV_texture_expand_normal
2149         GL_TEXTURE_UNSIGNED_REMAP_MODE_NV   = 0x888F,
2150 
2151         // GL_NV_fragment_program2
2152         GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4,
2153         GL_MAX_PROGRAM_CALL_DEPTH_NV        = 0x88F5,
2154         GL_MAX_PROGRAM_IF_DEPTH_NV          = 0x88F6,
2155         GL_MAX_PROGRAM_LOOP_DEPTH_NV        = 0x88F7,
2156         GL_MAX_PROGRAM_LOOP_COUNT_NV        = 0x88F8,
2157 
2158         // GL_NV_gpu_program4
2159         GL_MIN_PROGRAM_TEXEL_OFFSET_NV      = 0x8904,
2160         GL_MAX_PROGRAM_TEXEL_OFFSET_NV      = 0x8905,
2161         GL_PROGRAM_ATTRIB_COMPONENTS_NV     = 0x8906,
2162         GL_PROGRAM_RESULT_COMPONENTS_NV     = 0x8907,
2163         GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908,
2164         GL_MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909,
2165         GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV   = 0x8DA5,
2166         GL_MAX_PROGRAM_GENERIC_RESULTS_NV   = 0x8DA6,
2167 
2168         // GL_NV_geometry_program4
2169         GL_LINES_ADJACENCY_EXT              = 0x000A,
2170         GL_LINE_STRIP_ADJACENCY_EXT         = 0x000B,
2171         GL_TRIANGLES_ADJACENCY_EXT          = 0x000C,
2172         GL_TRIANGLE_STRIP_ADJACENCY_EXT     = 0x000D,
2173         GL_GEOMETRY_PROGRAM_NV              = 0x8C26,
2174         GL_MAX_PROGRAM_OUTPUT_VERTICES_NV   = 0x8C27,
2175         GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28,
2176         GL_GEOMETRY_VERTICES_OUT_EXT        = 0x8DDA,
2177         GL_GEOMETRY_INPUT_TYPE_EXT          = 0x8DDB,
2178         GL_GEOMETRY_OUTPUT_TYPE_EXT         = 0x8DDC,
2179         GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29,
2180         GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7,
2181         GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8,
2182         GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9,
2183         GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4,
2184         GL_PROGRAM_POINT_SIZE_EXT           = 0x8642,
2185 
2186         // GL_NV_vertex_program4
2187         GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV   = 0x88FD,
2188 
2189         // GL_NV_depth_buffer_float
2190         GL_DEPTH_COMPONENT32F_NV            = 0x8DAB,
2191         GL_DEPTH32F_STENCIL8_NV             = 0x8DAC,
2192         GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD,
2193         GL_DEPTH_BUFFER_FLOAT_MODE_NV       = 0x8DAF,
2194 
2195         // GL_NV_framebuffer_multisample_coverage
2196         GL_RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB,
2197         GL_RENDERBUFFER_COLOR_SAMPLES_NV    = 0x8E10,
2198         GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11,
2199         GL_MULTISAMPLE_COVERAGE_MODES_NV    = 0x8E12,
2200 
2201         // GL_NV_transform_feedback
2202         GL_BACK_PRIMARY_COLOR_NV            = 0x8C77,
2203         GL_BACK_SECONDARY_COLOR_NV          = 0x8C78,
2204         GL_TEXTURE_COORD_NV                 = 0x8C79,
2205         GL_CLIP_DISTANCE_NV                 = 0x8C7A,
2206         GL_VERTEX_ID_NV                     = 0x8C7B,
2207         GL_PRIMITIVE_ID_NV                  = 0x8C7C,
2208         GL_GENERIC_ATTRIB_NV                = 0x8C7D,
2209         GL_TRANSFORM_FEEDBACK_ATTRIBS_NV    = 0x8C7E,
2210         GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F,
2211         GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80,
2212         GL_ACTIVE_VARYINGS_NV               = 0x8C81,
2213         GL_ACTIVE_VARYING_MAX_LENGTH_NV     = 0x8C82,
2214         GL_TRANSFORM_FEEDBACK_VARYINGS_NV   = 0x8C83,
2215         GL_TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84,
2216         GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85,
2217         GL_TRANSFORM_FEEDBACK_RECORD_NV     = 0x8C86,
2218         GL_PRIMITIVES_GENERATED_NV          = 0x8C87,
2219         GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88,
2220         GL_RASTERIZER_DISCARD_NV            = 0x8C89,
2221         GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV = 0x8C8A,
2222         GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B,
2223         GL_INTERLEAVED_ATTRIBS_NV           = 0x8C8C,
2224         GL_SEPARATE_ATTRIBS_NV              = 0x8C8D,
2225         GL_TRANSFORM_FEEDBACK_BUFFER_NV     = 0x8C8E,
2226         GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F,
2227 
2228         // GL_NV_conditional_render
2229         GL_QUERY_WAIT_NV                    = 0x8E13,
2230         GL_QUERY_NO_WAIT_NV                 = 0x8E14,
2231         GL_QUERY_BY_REGION_WAIT_NV          = 0x8E15,
2232         GL_QUERY_BY_REGION_NO_WAIT_NV       = 0x8E16,
2233 
2234         // GL_NV_present_video
2235         GL_FRAME_NV                         = 0x8E26,
2236         GL_FIELDS_NV                        = 0x8E27,
2237         GL_CURRENT_TIME_NV                  = 0x8E28,
2238         GL_NUM_FILL_STREAMS_NV              = 0x8E29,
2239         GL_PRESENT_TIME_NV                  = 0x8E2A,
2240         GL_PRESENT_DURATION_NV              = 0x8E2B,
2241 
2242         // GL_NV_explicit_multisample
2243         GL_SAMPLE_POSITION_NV               = 0x8E50,
2244         GL_SAMPLE_MASK_NV                   = 0x8E51,
2245         GL_SAMPLE_MASK_VALUE_NV             = 0x8E52,
2246         GL_TEXTURE_BINDING_RENDERBUFFER_NV  = 0x8E53,
2247         GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54,
2248         GL_TEXTURE_RENDERBUFFER_NV          = 0x8E55,
2249         GL_SAMPLER_RENDERBUFFER_NV          = 0x8E56,
2250         GL_INT_SAMPLER_RENDERBUFFER_NV      = 0x8E57,
2251         GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58,
2252         GL_MAX_SAMPLE_MASK_WORDS_NV         = 0x8E59,
2253 
2254         // GL_NV_transform_feedback2
2255         GL_TRANSFORM_FEEDBACK_NV            = 0x8E22,
2256         GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23,
2257         GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24,
2258         GL_TRANSFORM_FEEDBACK_BINDING_NV    = 0x8E25,
2259 
2260         // GL_NV_video_capture
2261         GL_VIDEO_BUFFER_NV                  = 0x9020,
2262         GL_VIDEO_BUFFER_BINDING_NV          = 0x9021,
2263         GL_FIELD_UPPER_NV                   = 0x9022,
2264         GL_FIELD_LOWER_NV                   = 0x9023,
2265         GL_NUM_VIDEO_CAPTURE_STREAMS_NV     = 0x9024,
2266         GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025,
2267         GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026,
2268         GL_LAST_VIDEO_CAPTURE_STATUS_NV     = 0x9027,
2269         GL_VIDEO_BUFFER_PITCH_NV            = 0x9028,
2270         GL_VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029,
2271         GL_VIDEO_COLOR_CONVERSION_MAX_NV    = 0x902A,
2272         GL_VIDEO_COLOR_CONVERSION_MIN_NV    = 0x902B,
2273         GL_VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C,
2274         GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV  = 0x902D,
2275         GL_PARTIAL_SUCCESS_NV               = 0x902E,
2276         GL_SUCCESS_NV                       = 0x902F,
2277         GL_FAILURE_NV                       = 0x9030,
2278         GL_YCBYCR8_422_NV                   = 0x9031,
2279         GL_YCBAYCR8A_4224_NV                = 0x9032,
2280         GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV    = 0x9033,
2281         GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034,
2282         GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV    = 0x9035,
2283         GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036,
2284         GL_Z4Y12Z4CB12Z4CR12_444_NV         = 0x9037,
2285         GL_VIDEO_CAPTURE_FRAME_WIDTH_NV     = 0x9038,
2286         GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV    = 0x9039,
2287         GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A,
2288         GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B,
2289         GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV  = 0x903C,
2290 
2291         // GL_NV_shader_buffer_load
2292         GL_BUFFER_GPU_ADDRESS_NV            = 0x8F1D,
2293         GL_GPU_ADDRESS_NV                   = 0x8F34,
2294         GL_MAX_SHADER_BUFFER_ADDRESS_NV     = 0x8F35,
2295 
2296         // GL_NV_vertex_buffer_unified_memory
2297         GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV   = 0x8F1E,
2298         GL_ELEMENT_ARRAY_UNIFIED_NV         = 0x8F1F,
2299         GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV   = 0x8F20,
2300         GL_VERTEX_ARRAY_ADDRESS_NV          = 0x8F21,
2301         GL_NORMAL_ARRAY_ADDRESS_NV          = 0x8F22,
2302         GL_COLOR_ARRAY_ADDRESS_NV           = 0x8F23,
2303         GL_INDEX_ARRAY_ADDRESS_NV           = 0x8F24,
2304         GL_TEXTURE_COORD_ARRAY_ADDRESS_NV   = 0x8F25,
2305         GL_EDGE_FLAG_ARRAY_ADDRESS_NV       = 0x8F26,
2306         GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27,
2307         GL_FOG_COORD_ARRAY_ADDRESS_NV       = 0x8F28,
2308         GL_ELEMENT_ARRAY_ADDRESS_NV         = 0x8F29,
2309         GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV    = 0x8F2A,
2310         GL_VERTEX_ARRAY_LENGTH_NV           = 0x8F2B,
2311         GL_NORMAL_ARRAY_LENGTH_NV           = 0x8F2C,
2312         GL_COLOR_ARRAY_LENGTH_NV            = 0x8F2D,
2313         GL_INDEX_ARRAY_LENGTH_NV            = 0x8F2E,
2314         GL_TEXTURE_COORD_ARRAY_LENGTH_NV    = 0x8F2F,
2315         GL_EDGE_FLAG_ARRAY_LENGTH_NV        = 0x8F30,
2316         GL_SECONDARY_COLOR_ARRAY_LENGTH_NV  = 0x8F31,
2317         GL_FOG_COORD_ARRAY_LENGTH_NV        = 0x8F32,
2318         GL_ELEMENT_ARRAY_LENGTH_NV          = 0x8F33,
2319     }
2320 }
2321 
2322 version(DerelictGL_ATI)
2323 {
2324     enum : GLenum
2325     {
2326         // GL_ATI_texture_mirror_once
2327         GL_MIRROR_CLAMP_ATI                 = 0x8742,
2328         GL_MIRROR_CLAMP_TO_EDGE_ATI         = 0x8743,
2329 
2330         // GL_ATI_envmap_bumpmap
2331         GL_BUMP_ROT_MATRIX_ATI              = 0x8775,
2332         GL_BUMP_ROT_MATRIX_SIZE_ATI         = 0x8776,
2333         GL_BUMP_NUM_TEX_UNITS_ATI           = 0x8777,
2334         GL_BUMP_TEX_UNITS_ATI               = 0x8778,
2335         GL_DUDV_ATI                         = 0x8779,
2336         GL_DU8DV8_ATI                       = 0x877A,
2337         GL_BUMP_ENVMAP_ATI                  = 0x877B,
2338         GL_BUMP_TARGET_ATI                  = 0x877C,
2339 
2340         // GL_ATI_fragment_shader
2341         GL_FRAGMENT_SHADER_ATI              = 0x8920,
2342         GL_REG_0_ATI                        = 0x8921,
2343         GL_REG_1_ATI                        = 0x8922,
2344         GL_REG_2_ATI                        = 0x8923,
2345         GL_REG_3_ATI                        = 0x8924,
2346         GL_REG_4_ATI                        = 0x8925,
2347         GL_REG_5_ATI                        = 0x8926,
2348         GL_REG_6_ATI                        = 0x8927,
2349         GL_REG_7_ATI                        = 0x8928,
2350         GL_REG_8_ATI                        = 0x8929,
2351         GL_REG_9_ATI                        = 0x892A,
2352         GL_REG_10_ATI                       = 0x892B,
2353         GL_REG_11_ATI                       = 0x892C,
2354         GL_REG_12_ATI                       = 0x892D,
2355         GL_REG_13_ATI                       = 0x892E,
2356         GL_REG_14_ATI                       = 0x892F,
2357         GL_REG_15_ATI                       = 0x8930,
2358         GL_REG_16_ATI                       = 0x8931,
2359         GL_REG_17_ATI                       = 0x8932,
2360         GL_REG_18_ATI                       = 0x8933,
2361         GL_REG_19_ATI                       = 0x8934,
2362         GL_REG_20_ATI                       = 0x8935,
2363         GL_REG_21_ATI                       = 0x8936,
2364         GL_REG_22_ATI                       = 0x8937,
2365         GL_REG_23_ATI                       = 0x8938,
2366         GL_REG_24_ATI                       = 0x8939,
2367         GL_REG_25_ATI                       = 0x893A,
2368         GL_REG_26_ATI                       = 0x893B,
2369         GL_REG_27_ATI                       = 0x893C,
2370         GL_REG_28_ATI                       = 0x893D,
2371         GL_REG_29_ATI                       = 0x893E,
2372         GL_REG_30_ATI                       = 0x893F,
2373         GL_REG_31_ATI                       = 0x8940,
2374         GL_CON_0_ATI                        = 0x8941,
2375         GL_CON_1_ATI                        = 0x8942,
2376         GL_CON_2_ATI                        = 0x8943,
2377         GL_CON_3_ATI                        = 0x8944,
2378         GL_CON_4_ATI                        = 0x8945,
2379         GL_CON_5_ATI                        = 0x8946,
2380         GL_CON_6_ATI                        = 0x8947,
2381         GL_CON_7_ATI                        = 0x8948,
2382         GL_CON_8_ATI                        = 0x8949,
2383         GL_CON_9_ATI                        = 0x894A,
2384         GL_CON_10_ATI                       = 0x894B,
2385         GL_CON_11_ATI                       = 0x894C,
2386         GL_CON_12_ATI                       = 0x894D,
2387         GL_CON_13_ATI                       = 0x894E,
2388         GL_CON_14_ATI                       = 0x894F,
2389         GL_CON_15_ATI                       = 0x8950,
2390         GL_CON_16_ATI                       = 0x8951,
2391         GL_CON_17_ATI                       = 0x8952,
2392         GL_CON_18_ATI                       = 0x8953,
2393         GL_CON_19_ATI                       = 0x8954,
2394         GL_CON_20_ATI                       = 0x8955,
2395         GL_CON_21_ATI                       = 0x8956,
2396         GL_CON_22_ATI                       = 0x8957,
2397         GL_CON_23_ATI                       = 0x8958,
2398         GL_CON_24_ATI                       = 0x8959,
2399         GL_CON_25_ATI                       = 0x895A,
2400         GL_CON_26_ATI                       = 0x895B,
2401         GL_CON_27_ATI                       = 0x895C,
2402         GL_CON_28_ATI                       = 0x895D,
2403         GL_CON_29_ATI                       = 0x895E,
2404         GL_CON_30_ATI                       = 0x895F,
2405         GL_CON_31_ATI                       = 0x8960,
2406         GL_MOV_ATI                          = 0x8961,
2407         GL_ADD_ATI                          = 0x8963,
2408         GL_MUL_ATI                          = 0x8964,
2409         GL_SUB_ATI                          = 0x8965,
2410         GL_DOT3_ATI                         = 0x8966,
2411         GL_DOT4_ATI                         = 0x8967,
2412         GL_MAD_ATI                          = 0x8968,
2413         GL_LERP_ATI                         = 0x8969,
2414         GL_CND_ATI                          = 0x896A,
2415         GL_CND0_ATI                         = 0x896B,
2416         GL_DOT2_ADD_ATI                     = 0x896C,
2417         GL_SECONDARY_INTERPOLATOR_ATI       = 0x896D,
2418         GL_NUM_FRAGMENT_REGISTERS_ATI       = 0x896E,
2419         GL_NUM_FRAGMENT_CONSTANTS_ATI       = 0x896F,
2420         GL_NUM_PASSES_ATI                   = 0x8970,
2421         GL_NUM_INSTRUCTIONS_PER_PASS_ATI    = 0x8971,
2422         GL_NUM_INSTRUCTIONS_TOTAL_ATI       = 0x8972,
2423         GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973,
2424         GL_NUM_LOOPBACK_COMPONENTS_ATI      = 0x8974,
2425         GL_COLOR_ALPHA_PAIRING_ATI          = 0x8975,
2426         GL_SWIZZLE_STR_ATI                  = 0x8976,
2427         GL_SWIZZLE_STQ_ATI                  = 0x8977,
2428         GL_SWIZZLE_STR_DR_ATI               = 0x8978,
2429         GL_SWIZZLE_STQ_DQ_ATI               = 0x8979,
2430         GL_SWIZZLE_STRQ_ATI                 = 0x897A,
2431         GL_SWIZZLE_STRQ_DQ_ATI              = 0x897B,
2432         GL_RED_BIT_ATI                      = 0x00000001,
2433         GL_GREEN_BIT_ATI                    = 0x00000002,
2434         GL_BLUE_BIT_ATI                     = 0x00000004,
2435         GL_2X_BIT_ATI                       = 0x00000001,
2436         GL_4X_BIT_ATI                       = 0x00000002,
2437         GL_8X_BIT_ATI                       = 0x00000004,
2438         GL_HALF_BIT_ATI                     = 0x00000008,
2439         GL_QUARTER_BIT_ATI                  = 0x00000010,
2440         GL_EIGHTH_BIT_ATI                   = 0x00000020,
2441         GL_SATURATE_BIT_ATI                 = 0x00000040,
2442         GL_COMP_BIT_ATI                     = 0x00000002,
2443         GL_NEGATE_BIT_ATI                   = 0x00000004,
2444         GL_BIAS_BIT_ATI                     = 0x00000008,
2445 
2446         // GL_ATI_pn_triangles
2447         GL_PN_TRIANGLES_ATI                 = 0x87F0,
2448         GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1,
2449         GL_PN_TRIANGLES_POINT_MODE_ATI      = 0x87F2,
2450         GL_PN_TRIANGLES_NORMAL_MODE_ATI     = 0x87F3,
2451         GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4,
2452         GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5,
2453         GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6,
2454         GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7,
2455         GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8,
2456 
2457         // GL_ATI_vertex_array_object
2458         GL_STATIC_ATI                       = 0x8760,
2459         GL_DYNAMIC_ATI                      = 0x8761,
2460         GL_PRESERVE_ATI                     = 0x8762,
2461         GL_DISCARD_ATI                      = 0x8763,
2462         GL_OBJECT_BUFFER_SIZE_ATI           = 0x8764,
2463         GL_OBJECT_BUFFER_USAGE_ATI          = 0x8765,
2464         GL_ARRAY_OBJECT_BUFFER_ATI          = 0x8766,
2465         GL_ARRAY_OBJECT_OFFSET_ATI          = 0x8767,
2466 
2467         // GL_ATI_vertex_streams
2468         GL_MAX_VERTEX_STREAMS_ATI           = 0x876B,
2469         GL_VERTEX_STREAM0_ATI               = 0x876C,
2470         GL_VERTEX_STREAM1_ATI               = 0x876D,
2471         GL_VERTEX_STREAM2_ATI               = 0x876E,
2472         GL_VERTEX_STREAM3_ATI               = 0x876F,
2473         GL_VERTEX_STREAM4_ATI               = 0x8770,
2474         GL_VERTEX_STREAM5_ATI               = 0x8771,
2475         GL_VERTEX_STREAM6_ATI               = 0x8772,
2476         GL_VERTEX_STREAM7_ATI               = 0x8773,
2477         GL_VERTEX_SOURCE_ATI                = 0x8774,
2478 
2479         // GL_ATI_element_array
2480         GL_ELEMENT_ARRAY_ATI                = 0x8768,
2481         GL_ELEMENT_ARRAY_TYPE_ATI           = 0x8769,
2482         GL_ELEMENT_ARRAY_POINTER_ATI        = 0x876A,
2483 
2484         // GL_ATI_text_fragment_shader
2485         GL_TEXT_FRAGMENT_SHADER_ATI         = 0x8200,
2486 
2487         // GL_ATI_draw_buffers
2488         GL_MAX_DRAW_BUFFERS_ATI             = 0x8824,
2489         GL_DRAW_BUFFER0_ATI                 = 0x8825,
2490         GL_DRAW_BUFFER1_ATI                 = 0x8826,
2491         GL_DRAW_BUFFER2_ATI                 = 0x8827,
2492         GL_DRAW_BUFFER3_ATI                 = 0x8828,
2493         GL_DRAW_BUFFER4_ATI                 = 0x8829,
2494         GL_DRAW_BUFFER5_ATI                 = 0x882A,
2495         GL_DRAW_BUFFER6_ATI                 = 0x882B,
2496         GL_DRAW_BUFFER7_ATI                 = 0x882C,
2497         GL_DRAW_BUFFER8_ATI                 = 0x882D,
2498         GL_DRAW_BUFFER9_ATI                 = 0x882E,
2499         GL_DRAW_BUFFER10_ATI                = 0x882F,
2500         GL_DRAW_BUFFER11_ATI                = 0x8830,
2501         GL_DRAW_BUFFER12_ATI                = 0x8831,
2502         GL_DRAW_BUFFER13_ATI                = 0x8832,
2503         GL_DRAW_BUFFER14_ATI                = 0x8833,
2504         GL_DRAW_BUFFER15_ATI                = 0x8834,
2505 
2506         // GL_ATI_pixel_format_float
2507         GL_TYPE_RGBA_FLOAT_ATI              = 0x8820,
2508         GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI  = 0x8835,
2509 
2510         // GL_ATI_texture_env_combine3
2511         GL_MODULATE_ADD_ATI                 = 0x8744,
2512         GL_MODULATE_SIGNED_ADD_ATI          = 0x8745,
2513         GL_MODULATE_SUBTRACT_ATI            = 0x8746,
2514 
2515         // GL_ATI_texture_float
2516         GL_RGBA_FLOAT32_ATI                 = 0x8814,
2517         GL_RGB_FLOAT32_ATI                  = 0x8815,
2518         GL_ALPHA_FLOAT32_ATI                = 0x8816,
2519         GL_INTENSITY_FLOAT32_ATI            = 0x8817,
2520         GL_LUMINANCE_FLOAT32_ATI            = 0x8818,
2521         GL_LUMINANCE_ALPHA_FLOAT32_ATI      = 0x8819,
2522         GL_RGBA_FLOAT16_ATI                 = 0x881A,
2523         GL_RGB_FLOAT16_ATI                  = 0x881B,
2524         GL_ALPHA_FLOAT16_ATI                = 0x881C,
2525         GL_INTENSITY_FLOAT16_ATI            = 0x881D,
2526         GL_LUMINANCE_FLOAT16_ATI            = 0x881E,
2527         GL_LUMINANCE_ALPHA_FLOAT16_ATI      = 0x881F,
2528 
2529         // GL_ATI_separate_stencil
2530         GL_STENCIL_BACK_FUNC_ATI            = 0x8800,
2531         GL_STENCIL_BACK_FAIL_ATI            = 0x8801,
2532         GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802,
2533         GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803,
2534 
2535         // GL_ATI_meminfo
2536         GL_VBO_FREE_MEMORY_ATI              = 0x87FB,
2537         GL_TEXTURE_FREE_MEMORY_ATI          = 0x87FC,
2538         GL_RENDERBUFFER_FREE_MEMORY_ATI     = 0x87FD,
2539     }
2540 }
2541 
2542 version(DerelictGL_AMD)
2543 {
2544     enum : GLenum
2545     {
2546         // GL_AMD_performance_monitor
2547         GL_COUNTER_TYPE_AMD                 = 0x8BC0,
2548         GL_COUNTER_RANGE_AMD                = 0x8BC1,
2549         GL_UNSIGNED_INT64_AMD               = 0x8BC2,
2550         GL_PERCENTAGE_AMD                   = 0x8BC3,
2551         GL_PERFMON_RESULT_AVAILABLE_AMD     = 0x8BC4,
2552         GL_PERFMON_RESULT_SIZE_AMD          = 0x8BC5,
2553         GL_PERFMON_RESULT_AMD               = 0x8BC6,
2554 
2555         // GL_AMD_vertex_shader_tesselator
2556         GL_SAMPLER_BUFFER_AMD               = 0x9001,
2557         GL_INT_SAMPLER_BUFFER_AMD           = 0x9002,
2558         GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD  = 0x9003,
2559         GL_TESSELLATION_MODE_AMD            = 0x9004,
2560         GL_TESSELLATION_FACTOR_AMD          = 0x9005,
2561         GL_DISCRETE_AMD                     = 0x9006,
2562         GL_CONTINUOUS_AMD                   = 0x9007,
2563     }
2564 }
2565 
2566 version(DerelictGL_SGI)
2567 {
2568     enum : GLenum
2569     {
2570         // GL_SGI_color_matrix
2571         GL_COLOR_MATRIX_SGI                    = 0x80B1,
2572         GL_COLOR_MATRIX_STACK_DEPTH_SGI        = 0x80B2,
2573         GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI    = 0x80B3,
2574         GL_POST_COLOR_MATRIX_RED_SCALE_SGI     = 0x80B4,
2575         GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI   = 0x80B5,
2576         GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI    = 0x80B6,
2577         GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI   = 0x80B7,
2578         GL_POST_COLOR_MATRIX_RED_BIAS_SGI      = 0x80B8,
2579         GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI    = 0x80B9,
2580         GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI     = 0x80BA,
2581         GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI    = 0x80BB,
2582 
2583         // GL_SGI_color_table
2584         GL_COLOR_TABLE_SGI                          = 0x80D0,
2585         GL_POST_CONVOLUTION_COLOR_TABLE_SGI         = 0x80D1,
2586         GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI        = 0x80D2,
2587         GL_PROXY_COLOR_TABLE_SGI                    = 0x80D3,
2588         GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI   = 0x80D4,
2589         GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI  = 0x80D5,
2590         GL_COLOR_TABLE_SCALE_SGI                    = 0x80D6,
2591         GL_COLOR_TABLE_BIAS_SGI                     = 0x80D7,
2592         GL_COLOR_TABLE_FORMAT_SGI                   = 0x80D8,
2593         GL_COLOR_TABLE_WIDTH_SGI                    = 0x80D9,
2594         GL_COLOR_TABLE_RED_SIZE_SGI                 = 0x80DA,
2595         GL_COLOR_TABLE_GREEN_SIZE_SGI               = 0x80DB,
2596         GL_COLOR_TABLE_BLUE_SIZE_SGI                = 0x80DC,
2597         GL_COLOR_TABLE_ALPHA_SIZE_SGI               = 0x80DD,
2598         GL_COLOR_TABLE_LUMINANCE_SIZE_SGI           = 0x80DE,
2599         GL_COLOR_TABLE_INTENSITY_SIZE_SGI           = 0x80DF,
2600 
2601         // GL_SGI_texture_color_table
2602         GL_TEXTURE_COLOR_TABLE_SGI          = 0x80BC,
2603         GL_PROXY_TEXTURE_COLOR_TABLE_SGI    = 0x80BD,
2604     }
2605 }
2606 
2607 version(DerelictGL_SGIS)
2608 {
2609     enum : GLenum
2610     {
2611         // GL_SGIS_texture_filter4
2612         GL_FILTER4_SGIS                   = 0x8146,
2613         GL_TEXTURE_FILTER4_SIZE_SGIS      = 0x8147,
2614 
2615         // GL_SGIS_pixel_texture
2616         GL_PIXEL_TEXTURE_SGIS               = 0x8353,
2617         GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS   = 0x8354,
2618         GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355,
2619         GL_PIXEL_GROUP_COLOR_SGIS           = 0x8356,
2620 
2621         // GL_SGIS_texture4D
2622         GL_PACK_SKIP_VOLUMES_SGIS       = 0x8130,
2623         GL_PACK_IMAGE_DEPTH_SGIS        = 0x8131,
2624         GL_UNPACK_SKIP_VOLUMES_SGIS     = 0x8132,
2625         GL_UNPACK_IMAGE_DEPTH_SGIS      = 0x8133,
2626         GL_TEXTURE_4D_SGIS              = 0x8134,
2627         GL_PROXY_TEXTURE_4D_SGIS        = 0x8135,
2628         GL_TEXTURE_4DSIZE_SGIS          = 0x8136,
2629         GL_TEXTURE_WRAP_Q_SGIS          = 0x8137,
2630         GL_MAX_4D_TEXTURE_SIZE_SGIS     = 0x8138,
2631         GL_TEXTURE_4D_BINDING_SGIS      = 0x814F,
2632 
2633         // GL_SGIS_detail_texture
2634         GL_DETAIL_TEXTURE_2D_SGIS           = 0x8095,
2635         GL_DETAIL_TEXTURE_2D_BINDING_SGIS   = 0x8096,
2636         GL_LINEAR_DETAIL_SGIS               = 0x8097,
2637         GL_LINEAR_DETAIL_ALPHA_SGIS         = 0x8098,
2638         GL_LINEAR_DETAIL_COLOR_SGIS         = 0x8099,
2639         GL_DETAIL_TEXTURE_LEVEL_SGIS        = 0x809A,
2640         GL_DETAIL_TEXTURE_MODE_SGIS         = 0x809B,
2641         GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS  = 0x809C,
2642 
2643         // GL_SGIS_sharpen_texture
2644         GL_LINEAR_SHARPEN_SGIS              = 0x80AD,
2645         GL_LINEAR_SHARPEN_ALPHA_SGIS        = 0x80AE,
2646         GL_LINEAR_SHARPEN_COLOR_SGIS        = 0x80AF,
2647         GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0,
2648 
2649         // GL_SGIS_texture_lod
2650         GL_TEXTURE_MIN_LOD_SGIS             = 0x813A,
2651         GL_TEXTURE_MAX_LOD_SGIS             = 0x813B,
2652         GL_TEXTURE_BASE_LEVEL_SGIS          = 0x813C,
2653         GL_TEXTURE_MAX_LEVEL_SGIS           = 0x813D,
2654 
2655         // GL_SGIS_multisample
2656         GL_MULTISAMPLE_SGIS                 = 0x809D,
2657         GL_SAMPLE_ALPHA_TO_MASK_SGIS        = 0x809E,
2658         GL_SAMPLE_ALPHA_TO_ONE_SGIS         = 0x809F,
2659         GL_SAMPLE_MASK_SGIS                 = 0x80A0,
2660         GL_1PASS_SGIS                       = 0x80A1,
2661         GL_2PASS_0_SGIS                     = 0x80A2,
2662         GL_2PASS_1_SGIS                     = 0x80A3,
2663         GL_4PASS_0_SGIS                     = 0x80A4,
2664         GL_4PASS_1_SGIS                     = 0x80A5,
2665         GL_4PASS_2_SGIS                     = 0x80A6,
2666         GL_4PASS_3_SGIS                     = 0x80A7,
2667         GL_SAMPLE_BUFFERS_SGIS              = 0x80A8,
2668         GL_SAMPLES_SGIS                     = 0x80A9,
2669         GL_SAMPLE_MASK_VALUE_SGIS           = 0x80AA,
2670         GL_SAMPLE_MASK_INVERT_SGIS          = 0x80AB,
2671         GL_SAMPLE_PATTERN_SGIS              = 0x80AC,
2672 
2673         // GL_SGIS_generate_mipmap
2674         GL_GENERATE_MIPMAP_SGIS             = 0x8191,
2675         GL_GENERATE_MIPMAP_HINT_SGIS        = 0x8192,
2676 
2677         // GL_SGIS_texture_edge_clamp
2678         GL_CLAMP_TO_EDGE_SGIS               = 0x812F,
2679 
2680         // GL_SGIS_texture_border_clamp
2681         GL_CLAMP_TO_BORDER_SGIS             = 0x812D,
2682 
2683         // GL_SGIS_texture_select
2684         GL_DUAL_ALPHA4_SGIS                 = 0x8110,
2685         GL_DUAL_ALPHA8_SGIS                 = 0x8111,
2686         GL_DUAL_ALPHA12_SGIS                = 0x8112,
2687         GL_DUAL_ALPHA16_SGIS                = 0x8113,
2688         GL_DUAL_LUMINANCE4_SGIS             = 0x8114,
2689         GL_DUAL_LUMINANCE8_SGIS             = 0x8115,
2690         GL_DUAL_LUMINANCE12_SGIS            = 0x8116,
2691         GL_DUAL_LUMINANCE16_SGIS            = 0x8117,
2692         GL_DUAL_INTENSITY4_SGIS             = 0x8118,
2693         GL_DUAL_INTENSITY8_SGIS             = 0x8119,
2694         GL_DUAL_INTENSITY12_SGIS            = 0x811A,
2695         GL_DUAL_INTENSITY16_SGIS            = 0x811B,
2696         GL_DUAL_LUMINANCE_ALPHA4_SGIS       = 0x811C,
2697         GL_DUAL_LUMINANCE_ALPHA8_SGIS       = 0x811D,
2698         GL_QUAD_ALPHA4_SGIS                 = 0x811E,
2699         GL_QUAD_ALPHA8_SGIS                 = 0x811F,
2700         GL_QUAD_LUMINANCE4_SGIS             = 0x8120,
2701         GL_QUAD_LUMINANCE8_SGIS             = 0x8121,
2702         GL_QUAD_INTENSITY4_SGIS             = 0x8122,
2703         GL_QUAD_INTENSITY8_SGIS             = 0x8123,
2704         GL_DUAL_TEXTURE_SELECT_SGIS         = 0x8124,
2705         GL_QUAD_TEXTURE_SELECT_SGIS         = 0x8125,
2706 
2707         // GL_SGIS_point_parameters
2708         GL_POINT_SIZE_MIN_SGIS              = 0x8126,
2709         GL_POINT_SIZE_MAX_SGIS              = 0x8127,
2710         GL_POINT_FADE_THRESHOLD_SIZE_SGIS   = 0x8128,
2711         GL_DISTANCE_ATTENUATION_SGIS        = 0x8129,
2712 
2713         // GL_SGIS_fog_function
2714         GL_FOG_FUNC_SGIS                    = 0x812A,
2715         GL_FOG_FUNC_POINTS_SGIS             = 0x812B,
2716         GL_MAX_FOG_FUNC_POINTS_SGIS         = 0x812C,
2717 
2718         // GL_SGIS_point_line_texgen
2719         GL_EYE_DISTANCE_TO_POINT_SGIS       = 0x81F0,
2720         GL_OBJECT_DISTANCE_TO_POINT_SGIS    = 0x81F1,
2721         GL_EYE_DISTANCE_TO_LINE_SGIS        = 0x81F2,
2722         GL_OBJECT_DISTANCE_TO_LINE_SGIS     = 0x81F3,
2723         GL_EYE_POINT_SGIS                   = 0x81F4,
2724         GL_OBJECT_POINT_SGIS                = 0x81F5,
2725         GL_EYE_LINE_SGIS                    = 0x81F6,
2726         GL_OBJECT_LINE_SGIS                 = 0x81F7,
2727 
2728         // GL_SGIS_texture_color_mask
2729         GL_TEXTURE_COLOR_WRITEMASK_SGIS     = 0x81EF,
2730     }
2731 }
2732 
2733 version(DerelictGL_SGIX)
2734 {
2735     enum : GLenum
2736     {
2737         // GL_SGIX_pixel_texture
2738         GL_PIXEL_TEX_GEN_SGIX           = 0x8139,
2739         GL_PIXEL_TEX_GEN_MODE_SGIX      = 0x832B,
2740 
2741         // GL_SGIX_clipmap
2742         GL_LINEAR_CLIPMAP_LINEAR_SGIX           = 0x8170,
2743         GL_TEXTURE_CLIPMAP_CENTER_SGIX          = 0x8171,
2744         GL_TEXTURE_CLIPMAP_FRAME_SGIX           = 0x8172,
2745         GL_TEXTURE_CLIPMAP_OFFSET_SGIX          = 0x8173,
2746         GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX   = 0x8174,
2747         GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX      = 0x8175,
2748         GL_TEXTURE_CLIPMAP_DEPTH_SGIX           = 0x8176,
2749         GL_MAX_CLIPMAP_DEPTH_SGIX               = 0x8177,
2750         GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX       = 0x8178,
2751         GL_NEAREST_CLIPMAP_NEAREST_SGIX         = 0x844D,
2752         GL_NEAREST_CLIPMAP_LINEAR_SGIX          = 0x844E,
2753         GL_LINEAR_CLIPMAP_NEAREST_SGIX          = 0x844F,
2754 
2755         // GL_SGIX_shadow
2756         GL_TEXTURE_COMPARE_SGIX             = 0x819A,
2757         GL_TEXTURE_COMPARE_OPERATOR_SGIX    = 0x819B,
2758         GL_TEXTURE_LEQUAL_R_SGIX            = 0x819C,
2759         GL_TEXTURE_GEQUAL_R_SGIX            = 0x819D,
2760 
2761         // GL_SGIX_interlace
2762         GL_INTERLACE_SGIX                   = 0x8094,
2763 
2764         // GL_SGIX_pixel_tiles
2765         GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX   = 0x813E,
2766         GL_PIXEL_TILE_CACHE_INCREMENT_SGIX  = 0x813F,
2767         GL_PIXEL_TILE_WIDTH_SGIX            = 0x8140,
2768         GL_PIXEL_TILE_HEIGHT_SGIX           = 0x8141,
2769         GL_PIXEL_TILE_GRID_WIDTH_SGIX       = 0x8142,
2770         GL_PIXEL_TILE_GRID_HEIGHT_SGIX      = 0x8143,
2771         GL_PIXEL_TILE_GRID_DEPTH_SGIX       = 0x8144,
2772         GL_PIXEL_TILE_CACHE_SIZE_SGIX       = 0x8145,
2773 
2774         // GL_SGIX_sprite
2775         GL_SPRITE_SGIX                      = 0x8148,
2776         GL_SPRITE_MODE_SGIX                 = 0x8149,
2777         GL_SPRITE_AXIS_SGIX                 = 0x814A,
2778         GL_SPRITE_TRANSLATION_SGIX          = 0x814B,
2779         GL_SPRITE_AXIAL_SGIX                = 0x814C,
2780         GL_SPRITE_OBJECT_ALIGNED_SGIX       = 0x814D,
2781         GL_SPRITE_EYE_ALIGNED_SGIX          = 0x814E,
2782 
2783         // GL_SGIX_texture_multi_buffer
2784         GL_TEXTURE_MULTI_BUFFER_HINT_SGIX   = 0x812E,
2785 
2786         // GL_SGIX_instruments
2787         GL_INSTRUMENT_BUFFER_POINTER_SGIX   = 0x8180,
2788         GL_INSTRUMENT_MEASUREMENTS_SGIX     = 0x8181,
2789 
2790         // GL_SGIX_texture_scale_bias
2791         GL_POST_TEXTURE_FILTER_BIAS_SGIX        = 0x8179,
2792         GL_POST_TEXTURE_FILTER_SCALE_SGIX       = 0x817A,
2793         GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX  = 0x817B,
2794         GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C,
2795 
2796         // GL_SGIX_framezoom
2797         GL_FRAMEZOOM_SGIX                   = 0x818B,
2798         GL_FRAMEZOOM_FACTOR_SGIX            = 0x818C,
2799         GL_MAX_FRAMEZOOM_FACTOR_SGIX        = 0x818D,
2800 
2801         // GL_SGIX_polynomial_ffd
2802         GL_GEOMETRY_DEFORMATION_SGIX        = 0x8194,
2803         GL_TEXTURE_DEFORMATION_SGIX         = 0x8195,
2804         GL_DEFORMATIONS_MASK_SGIX           = 0x8196,
2805         GL_MAX_DEFORMATION_ORDER_SGIX       = 0x8197,
2806 
2807         // GL_SGIX_reference_plane
2808         GL_REFERENCE_PLANE_SGIX             = 0x817D,
2809         GL_REFERENCE_PLANE_EQUATION_SGIX    = 0x817E,
2810 
2811         // GL_SGIX_depth_texture
2812         GL_DEPTH_COMPONENT16_SGIX           = 0x81A5,
2813         GL_DEPTH_COMPONENT24_SGIX           = 0x81A6,
2814         GL_DEPTH_COMPONENT32_SGIX           = 0x81A7,
2815 
2816         // GL_SGIX_fog_offset
2817         GL_FOG_OFFSET_SGIX                  = 0x8198,
2818         GL_FOG_OFFSET_VALUE_SGIX            = 0x8199,
2819 
2820         // GL_SGIX_texture_add_env
2821         GL_TEXTURE_ENV_BIAS_SGIX            = 0x80BE,
2822 
2823         // GL_SGIX_list_priority
2824         GL_LIST_PRIORITY_SGIX               = 0x8182,
2825 
2826         // GL_SGIX_ir_instrument1
2827         GL_IR_INSTRUMENT1_SGIX              = 0x817F,
2828 
2829         // GL_SGIX_calligraphic_fragment
2830         GL_CALLIGRAPHIC_FRAGMENT_SGIX       = 0x8183,
2831 
2832         // GL_SGIX_texture_lod_bias
2833         GL_TEXTURE_LOD_BIAS_S_SGIX          = 0x818E,
2834         GL_TEXTURE_LOD_BIAS_T_SGIX          = 0x818F,
2835         GL_TEXTURE_LOD_BIAS_R_SGIX          = 0x8190,
2836 
2837         // GL_SGIX_shadow_ambient
2838         GL_SHADOW_AMBIENT_SGIX              = 0x80BF,
2839 
2840         // GL_SGIX_ycrcb
2841         GL_YCRCB_422_SGIX                   = 0x81BB,
2842         GL_YCRCB_444_SGIX                   = 0x81BC,
2843 
2844         // GL_SGIX_fragment_lighting
2845         GL_FRAGMENT_LIGHTING_SGIX           = 0x8400,
2846         GL_FRAGMENT_COLOR_MATERIAL_SGIX     = 0x8401,
2847         GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402,
2848         GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403,
2849         GL_MAX_FRAGMENT_LIGHTS_SGIX         = 0x8404,
2850         GL_MAX_ACTIVE_LIGHTS_SGIX           = 0x8405,
2851         GL_CURRENT_RASTER_NORMAL_SGIX       = 0x8406,
2852         GL_LIGHT_ENV_MODE_SGIX              = 0x8407,
2853         GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408,
2854         GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409,
2855         GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A,
2856         GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B,
2857         GL_FRAGMENT_LIGHT0_SGIX             = 0x840C,
2858         GL_FRAGMENT_LIGHT1_SGIX             = 0x840D,
2859         GL_FRAGMENT_LIGHT2_SGIX             = 0x840E,
2860         GL_FRAGMENT_LIGHT3_SGIX             = 0x840F,
2861         GL_FRAGMENT_LIGHT4_SGIX             = 0x8410,
2862         GL_FRAGMENT_LIGHT5_SGIX             = 0x8411,
2863         GL_FRAGMENT_LIGHT6_SGIX             = 0x8412,
2864         GL_FRAGMENT_LIGHT7_SGIX             = 0x8413,
2865 
2866         // GL_SGIX_blend_alpha_minmax
2867         GL_ALPHA_MIN_SGIX                   = 0x8320,
2868         GL_ALPHA_MAX_SGIX                   = 0x8321,
2869 
2870         // GL_SGIX_impact_pixel_texture
2871         GL_PIXEL_TEX_GEN_Q_CEILING_SGIX     = 0x8184,
2872         GL_PIXEL_TEX_GEN_Q_ROUND_SGIX       = 0x8185,
2873         GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX       = 0x8186,
2874         GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX = 0x8187,
2875         GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX = 0x8188,
2876         GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX      = 0x8189,
2877         GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX      = 0x818A,
2878 
2879         // GL_SGIX_async
2880         GL_ASYNC_MARKER_SGIX                = 0x8329,
2881 
2882         // GL_SGIX_async_pixel
2883         GL_ASYNC_TEX_IMAGE_SGIX             = 0x835C,
2884         GL_ASYNC_DRAW_PIXELS_SGIX           = 0x835D,
2885         GL_ASYNC_READ_PIXELS_SGIX           = 0x835E,
2886         GL_MAX_ASYNC_TEX_IMAGE_SGIX         = 0x835F,
2887         GL_MAX_ASYNC_DRAW_PIXELS_SGIX       = 0x8360,
2888         GL_MAX_ASYNC_READ_PIXELS_SGIX       = 0x8361,
2889 
2890         // GL_SGIX_async_histogram
2891         GL_ASYNC_HISTOGRAM_SGIX             = 0x832C,
2892         GL_MAX_ASYNC_HISTOGRAM_SGIX         = 0x832D,
2893 
2894         // GL_SGIX_fog_scale
2895         GL_FOG_SCALE_SGIX                   = 0x81FC,
2896         GL_FOG_SCALE_VALUE_SGIX             = 0x81FD,
2897 
2898         // GL_SGIX_subsample
2899         GL_PACK_SUBSAMPLE_RATE_SGIX         = 0x85A0,
2900         GL_UNPACK_SUBSAMPLE_RATE_SGIX       = 0x85A1,
2901         GL_PIXEL_SUBSAMPLE_4444_SGIX        = 0x85A2,
2902         GL_PIXEL_SUBSAMPLE_2424_SGIX        = 0x85A3,
2903         GL_PIXEL_SUBSAMPLE_4242_SGIX        = 0x85A4,
2904 
2905         // GL_SGIX_ycrcba
2906         GL_YCRCB_SGIX                       = 0x8318,
2907         GL_YCRCBA_SGIX                      = 0x8319,
2908 
2909         // GL_SGIX_depth_pass_instrument
2910         GL_DEPTH_PASS_INSTRUMENT_SGIX       = 0x8310,
2911         GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = 0x8311,
2912         GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX   = 0x8312,
2913 
2914         // GL_SGIX_vertex_preclip
2915         GL_VERTEX_PRECLIP_SGIX              = 0x83EE,
2916         GL_VERTEX_PRECLIP_HINT_SGIX         = 0x83EF,
2917 
2918         // GL_SGIX_convolution_accuracy
2919         GL_CONVOLUTION_HINT_SGIX            = 0x8316,
2920 
2921         // GL_SGIX_resample
2922         GL_PACK_RESAMPLE_SGIX               = 0x842C,
2923         GL_UNPACK_RESAMPLE_SGIX             = 0x842D,
2924         GL_RESAMPLE_REPLICATE_SGIX          = 0x842E,
2925         GL_RESAMPLE_ZERO_FILL_SGIX          = 0x842F,
2926         GL_RESAMPLE_DECIMATE_SGIX           = 0x8430,
2927 
2928         // GL_SGIX_texture_coordinate_clamp
2929         GL_TEXTURE_MAX_CLAMP_S_SGIX         = 0x8369,
2930         GL_TEXTURE_MAX_CLAMP_T_SGIX         = 0x836A,
2931         GL_TEXTURE_MAX_CLAMP_R_SGIX         = 0x836B,
2932 
2933         // GL_SGIX_scalebias_hint
2934         GL_SCALEBIAS_HINT_SGIX              = 0x8322,
2935     }
2936 }
2937 
2938 version(DerelictGL_HP)
2939 {
2940     enum : GLenum
2941     {
2942         // GL_HP_image_transform
2943         GL_IMAGE_SCALE_X_HP                 = 0x8155,
2944         GL_IMAGE_SCALE_Y_HP                 = 0x8156,
2945         GL_IMAGE_TRANSLATE_X_HP             = 0x8157,
2946         GL_IMAGE_TRANSLATE_Y_HP             = 0x8158,
2947         GL_IMAGE_ROTATE_ANGLE_HP            = 0x8159,
2948         GL_IMAGE_ROTATE_ORIGIN_X_HP         = 0x815A,
2949         GL_IMAGE_ROTATE_ORIGIN_Y_HP         = 0x815B,
2950         GL_IMAGE_MAG_FILTER_HP              = 0x815C,
2951         GL_IMAGE_MIN_FILTER_HP              = 0x815D,
2952         GL_IMAGE_CUBIC_WEIGHT_HP            = 0x815E,
2953         GL_CUBIC_HP                         = 0x815F,
2954         GL_AVERAGE_HP                       = 0x8160,
2955         GL_IMAGE_TRANSFORM_2D_HP            = 0x8161,
2956         GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162,
2957         GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163,
2958 
2959         // GL_HP_convolution_border_modes
2960         GL_IGNORE_BORDER_HP                 = 0x8150,
2961         GL_CONSTANT_BORDER_HP               = 0x8151,
2962         GL_REPLICATE_BORDER_HP              = 0x8153,
2963         GL_CONVOLUTION_BORDER_COLOR_HP      = 0x8154,
2964 
2965         // GL_HP_texture_lighting
2966         GL_TEXTURE_LIGHTING_MODE_HP         = 0x8167,
2967         GL_TEXTURE_POST_SPECULAR_HP         = 0x8168,
2968         GL_TEXTURE_PRE_SPECULAR_HP          = 0x8169,
2969 
2970         // GL_HP_occlusion_test
2971         GL_OCCLUSION_TEST_HP                = 0x8165,
2972         GL_OCCLUSION_TEST_RESULT_HP         = 0x8166,
2973     }
2974 }
2975 
2976 version(DerelictGL_PGI)
2977 {
2978     enum : GLenum
2979     {
2980         // GL_PGI_vertex_hints
2981         GL_VERTEX_DATA_HINT_PGI             = 0x1A22A,
2982         GL_VERTEX_CONSISTENT_HINT_PGI       = 0x1A22B,
2983         GL_MATERIAL_SIDE_HINT_PGI           = 0x1A22C,
2984         GL_MAX_VERTEX_HINT_PGI              = 0x1A22D,
2985         GL_COLOR3_BIT_PGI                   = 0x00010000,
2986         GL_COLOR4_BIT_PGI                   = 0x00020000,
2987         GL_EDGEFLAG_BIT_PGI                 = 0x00040000,
2988         GL_INDEX_BIT_PGI                    = 0x00080000,
2989         GL_MAT_AMBIENT_BIT_PGI              = 0x00100000,
2990         GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI  = 0x00200000,
2991         GL_MAT_DIFFUSE_BIT_PGI              = 0x00400000,
2992         GL_MAT_EMISSION_BIT_PGI             = 0x00800000,
2993         GL_MAT_COLOR_INDEXES_BIT_PGI        = 0x01000000,
2994         GL_MAT_SHININESS_BIT_PGI            = 0x02000000,
2995         GL_MAT_SPECULAR_BIT_PGI             = 0x04000000,
2996         GL_NORMAL_BIT_PGI                   = 0x08000000,
2997         GL_TEXCOORD1_BIT_PGI                = 0x10000000,
2998         GL_TEXCOORD2_BIT_PGI                = 0x20000000,
2999         GL_TEXCOORD3_BIT_PGI                = 0x40000000,
3000         GL_TEXCOORD4_BIT_PGI                = 0x80000000,
3001         GL_VERTEX23_BIT_PGI                 = 0x00000004,
3002         GL_VERTEX4_BIT_PGI                  = 0x00000008,
3003 
3004         // GL_PGI_misc_hints
3005         GL_PREFER_DOUBLEBUFFER_HINT_PGI     = 0x1A1F8,
3006         GL_CONSERVE_MEMORY_HINT_PGI         = 0x1A1FD,
3007         GL_RECLAIM_MEMORY_HINT_PGI          = 0x1A1FE,
3008         GL_NATIVE_GRAPHICS_HANDLE_PGI       = 0x1A202,
3009         GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI   = 0x1A203,
3010         GL_NATIVE_GRAPHICS_END_HINT_PGI     = 0x1A204,
3011         GL_ALWAYS_FAST_HINT_PGI             = 0x1A20C,
3012         GL_ALWAYS_SOFT_HINT_PGI             = 0x1A20D,
3013         GL_ALLOW_DRAW_OBJ_HINT_PGI          = 0x1A20E,
3014         GL_ALLOW_DRAW_WIN_HINT_PGI          = 0x1A20F,
3015         GL_ALLOW_DRAW_FRG_HINT_PGI          = 0x1A210,
3016         GL_ALLOW_DRAW_MEM_HINT_PGI          = 0x1A211,
3017         GL_STRICT_DEPTHFUNC_HINT_PGI        = 0x1A216,
3018         GL_STRICT_LIGHTING_HINT_PGI         = 0x1A217,
3019         GL_STRICT_SCISSOR_HINT_PGI          = 0x1A218,
3020         GL_FULL_STIPPLE_HINT_PGI            = 0x1A219,
3021         GL_CLIP_NEAR_HINT_PGI               = 0x1A220,
3022         GL_CLIP_FAR_HINT_PGI                = 0x1A221,
3023         GL_WIDE_LINE_HINT_PGI               = 0x1A222,
3024         GL_BACK_NORMALS_HINT_PGI            = 0x1A223,
3025     }
3026 }
3027 
3028 version(DerelictGL_IBM)
3029 {
3030     enum : GLenum
3031     {
3032         // GL_IBM_rasterpos_clip
3033         GL_RASTER_POSITION_UNCLIPPED_IBM    = 0x19262,
3034 
3035         // GL_IBM_cull_vertex
3036         GL_CULL_VERTEX_IBM                  = 103050,
3037 
3038         // GL_IBM_vertex_array_lists
3039         GL_VERTEX_ARRAY_LIST_IBM            = 103070,
3040         GL_NORMAL_ARRAY_LIST_IBM            = 103071,
3041         GL_COLOR_ARRAY_LIST_IBM             = 103072,
3042         GL_INDEX_ARRAY_LIST_IBM             = 103073,
3043         GL_TEXTURE_COORD_ARRAY_LIST_IBM     = 103074,
3044         GL_EDGE_FLAG_ARRAY_LIST_IBM         = 103075,
3045         GL_FOG_COORDINATE_ARRAY_LIST_IBM    = 103076,
3046         GL_SECONDARY_COLOR_ARRAY_LIST_IBM   = 103077,
3047         GL_VERTEX_ARRAY_LIST_STRIDE_IBM     = 103080,
3048         GL_NORMAL_ARRAY_LIST_STRIDE_IBM     = 103081,
3049         GL_COLOR_ARRAY_LIST_STRIDE_IBM      = 103082,
3050         GL_INDEX_ARRAY_LIST_STRIDE_IBM      = 103083,
3051         GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084,
3052         GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085,
3053         GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086,
3054         GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087,
3055 
3056         // GL_IBM_texture_mirrored_repeat
3057         GL_MIRRORED_REPEAT_IBM              = 0x8370,
3058     }
3059 }
3060 
3061 version(DerelictGL_WIN)
3062 {
3063     enum : GLenum
3064     {
3065         // GL_WIN_phong_shading
3066         GL_PHONG_WIN                        = 0x80EA,
3067         GL_PHONG_HINT_WIN                   = 0x80EB,
3068 
3069         // GL_WIN_specular_fog
3070         GL_FOG_SPECULAR_TEXTURE_WIN         = 0x80EC,
3071     }
3072 }
3073 
3074 version(DerelictGL_INTEL)
3075 {
3076     enum : GLenum
3077     {
3078         // GL_INTEL_parallel_arrays
3079         GL_PARALLEL_ARRAYS_INTEL                        = 0x83F4,
3080         GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL         = 0x83F5,
3081         GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL         = 0x83F6,
3082         GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL          = 0x83F7,
3083         GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL  = 0x83F8,
3084     }
3085 }
3086 
3087 version(DerelictGL_REND)
3088 {
3089     enum : GLenum
3090     {
3091         // GL_REND_screen_coordinates
3092         GL_SCREEN_COORDINATES_REND          = 0x8490,
3093         GL_INVERTED_SCREEN_W_REND           = 0x8491,
3094     }
3095 }
3096 
3097 version(DerelictGL_APPLE)
3098 {
3099     enum : GLenum
3100     {
3101         // GL_APPLE_specular_vector
3102         GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0,
3103 
3104         // GL_APPLE_transform_hint
3105         GL_TRANSFORM_HINT_APPLE             = 0x85B1,
3106 
3107         // GL_APPLE_client_storage
3108         GL_UNPACK_CLIENT_STORAGE_APPLE      = 0x85B2,
3109 
3110         // GL_APPLE_element_array
3111         GL_ELEMENT_ARRAY_APPLE              = 0x8768,
3112         GL_ELEMENT_ARRAY_TYPE_APPLE         = 0x8769,
3113         GL_ELEMENT_ARRAY_POINTER_APPLE      = 0x876A,
3114 
3115         // GL_APPLE_fence
3116         GL_DRAW_PIXELS_APPLE                = 0x8A0A,
3117         GL_FENCE_APPLE                      = 0x8A0B,
3118 
3119         // GL_APPLE_vertex_array_object
3120         GL_VERTEX_ARRAY_BINDING_APPLE       = 0x85B5,
3121 
3122         // GL_APPLE_vertex_array_range
3123         GL_VERTEX_ARRAY_RANGE_APPLE         = 0x851D,
3124         GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE  = 0x851E,
3125         GL_VERTEX_ARRAY_STORAGE_HINT_APPLE  = 0x851F,
3126         GL_VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521,
3127         GL_STORAGE_CACHED_APPLE             = 0x85BE,
3128         GL_STORAGE_SHARED_APPLE             = 0x85BF,
3129 
3130         // GL_APPLE_ycbcr_422
3131         GL_YCBCR_422_APPLE                  = 0x85B9,
3132         GL_UNSIGNED_SHORT_8_8_APPLE         = 0x85BA,
3133         GL_UNSIGNED_SHORT_8_8_REV_APPLE     = 0x85BB,
3134 
3135         // GL_APPLE_flush_buffer_range
3136         GL_BUFFER_SERIALIZED_MODIFY_APPLE   = 0x8A12,
3137         GL_BUFFER_FLUSHING_UNMAP_APPLE      = 0x8A13,
3138 
3139         // GL_APPLE_texture_range
3140         GL_TEXTURE_RANGE_LENGTH_APPLE       = 0x85B7,
3141         GL_TEXTURE_RANGE_POINTER_APPLE      = 0x85B8,
3142         GL_TEXTURE_STORAGE_HINT_APPLE       = 0x85BC,
3143         GL_STORAGE_PRIVATE_APPLE            = 0x85BD,
3144 
3145         // GL_APPLE_float_pixels
3146         GL_HALF_APPLE                       = 0x140B,
3147         GL_RGBA_FLOAT32_APPLE               = 0x8814,
3148         GL_RGB_FLOAT32_APPLE                = 0x8815,
3149         GL_ALPHA_FLOAT32_APPLE              = 0x8816,
3150         GL_INTENSITY_FLOAT32_APPLE          = 0x8817,
3151         GL_LUMINANCE_FLOAT32_APPLE          = 0x8818,
3152         GL_LUMINANCE_ALPHA_FLOAT32_APPLE    = 0x8819,
3153         GL_RGBA_FLOAT16_APPLE               = 0x881A,
3154         GL_RGB_FLOAT16_APPLE                = 0x881B,
3155         GL_ALPHA_FLOAT16_APPLE              = 0x881C,
3156         GL_INTENSITY_FLOAT16_APPLE          = 0x881D,
3157         GL_LUMINANCE_FLOAT16_APPLE          = 0x881E,
3158         GL_LUMINANCE_ALPHA_FLOAT16_APPLE    = 0x881F,
3159         GL_COLOR_FLOAT_APPLE                = 0x8A0F,
3160 
3161         // GL_APPLE_vertex_program_evaluators
3162         GL_VERTEX_ATTRIB_MAP1_APPLE         = 0x8A00,
3163         GL_VERTEX_ATTRIB_MAP2_APPLE         = 0x8A01,
3164         GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE    = 0x8A02,
3165         GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE   = 0x8A03,
3166         GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE   = 0x8A04,
3167         GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE  = 0x8A05,
3168         GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE    = 0x8A06,
3169         GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE   = 0x8A07,
3170         GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE   = 0x8A08,
3171         GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE  = 0x8A09,
3172 
3173         // GL_APPLE_aux_depth_stencil
3174         GL_AUX_DEPTH_STENCIL_APPLE          = 0x8A14,
3175 
3176         // GL_APPLE_object_purgeable
3177         GL_BUFFER_OBJECT_APPLE              = 0x85B3,
3178         GL_RELEASED_APPLE                   = 0x8A19,
3179         GL_VOLATILE_APPLE                   = 0x8A1A,
3180         GL_RETAINED_APPLE                   = 0x8A1B,
3181         GL_UNDEFINED_APPLE                  = 0x8A1C,
3182         GL_PURGEABLE_APPLE                  = 0x8A1D,
3183 
3184         // GL_APPLE_row_bytes
3185         GL_PACK_ROW_BYTES_APPLE             = 0x8A15,
3186         GL_UNPACK_ROW_BYTES_APPLE           = 0x8A16,
3187 
3188         // GL_APPLE_rgb_422
3189         GL_RGB_422_APPLE                    = 0x8A1F,
3190     }
3191 }
3192 
3193 version(DerelictGL_SUNX)
3194 {
3195     enum : GLenum
3196     {
3197         // GL_SUNX_constant_data
3198         GL_UNPACK_CONSTANT_DATA_SUNX        = 0x81D5,
3199         GL_TEXTURE_CONSTANT_DATA_SUNX       = 0x81D6,
3200     }
3201 }
3202 
3203 version(DerelictGL_SUN)
3204 {
3205     enum : GLenum
3206     {
3207         // GL_SUN_global_alpha
3208         GL_GLOBAL_ALPHA_SUN                 = 0x81D9,
3209         GL_GLOBAL_ALPHA_FACTOR_SUN          = 0x81DA,
3210 
3211         // GL_SUN_triangle_list
3212         GL_RESTART_SUN                      = 0x0001,
3213         GL_REPLACE_MIDDLE_SUN               = 0x0002,
3214         GL_REPLACE_OLDEST_SUN               = 0x0003,
3215         GL_TRIANGLE_LIST_SUN                = 0x81D7,
3216         GL_REPLACEMENT_CODE_SUN             = 0x81D8,
3217         GL_REPLACEMENT_CODE_ARRAY_SUN       = 0x85C0,
3218         GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1,
3219         GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2,
3220         GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3,
3221         GL_R1UI_V3F_SUN                     = 0x85C4,
3222         GL_R1UI_C4UB_V3F_SUN                = 0x85C5,
3223         GL_R1UI_C3F_V3F_SUN                 = 0x85C6,
3224         GL_R1UI_N3F_V3F_SUN                 = 0x85C7,
3225         GL_R1UI_C4F_N3F_V3F_SUN             = 0x85C8,
3226         GL_R1UI_T2F_V3F_SUN                 = 0x85C9,
3227         GL_R1UI_T2F_N3F_V3F_SUN             = 0x85CA,
3228         GL_R1UI_T2F_C4F_N3F_V3F_SUN         = 0x85CB,
3229 
3230         // GL_SUN_convolution_border_modes
3231         GL_WRAP_BORDER_SUN                  = 0x81D4,
3232 
3233         // GL_SUN_mesh_array
3234         GL_QUAD_MESH_SUN                    = 0x8614,
3235         GL_TRIANGLE_MESH_SUN                = 0x8615,
3236 
3237         // GL_SUN_slice_accum
3238         GL_SLICE_ACCUM_SUN                  = 0x85CC,
3239     }
3240 }
3241 
3242 version(DerelictGL_INGR)
3243 {
3244     enum : GLenum
3245     {
3246         // GL_INGR_color_clamp
3247         GL_RED_MIN_CLAMP_INGR               = 0x8560,
3248         GL_GREEN_MIN_CLAMP_INGR             = 0x8561,
3249         GL_BLUE_MIN_CLAMP_INGR              = 0x8562,
3250         GL_ALPHA_MIN_CLAMP_INGR             = 0x8563,
3251         GL_RED_MAX_CLAMP_INGR               = 0x8564,
3252         GL_GREEN_MAX_CLAMP_INGR             = 0x8565,
3253         GL_BLUE_MAX_CLAMP_INGR              = 0x8566,
3254         GL_ALPHA_MAX_CLAMP_INGR             = 0x8567,
3255 
3256         // GL_INGR_interlace_read
3257         GL_INTERLACE_READ_INGR              = 0x8568,
3258     }
3259 }
3260 
3261 version(DerelictGL_MESA)
3262 {
3263     enum : GLenum
3264     {
3265         // GL_MESA_pack_invert
3266         GL_PACK_INVERT_MESA                 = 0x8758,
3267 
3268         // GL_MESA_ycbcr_texture
3269         GL_UNSIGNED_SHORT_8_8_MESA          = 0x85BA,
3270         GL_UNSIGNED_SHORT_8_8_REV_MESA      = 0x85BB,
3271         GL_YCBCR_MESA                       = 0x8757,
3272     }
3273 }
3274 
3275 version(DerelictGL_3DFX)
3276 {
3277     enum : GLenum
3278     {
3279         // GL_3DFX_texture_compression_FXT1
3280         GL_COMPRESSED_RGB_FXT1_3DFX         = 0x86B0,
3281         GL_COMPRESSED_RGBA_FXT1_3DFX        = 0x86B1,
3282 
3283         // GL_3DFX_multisample
3284         GL_MULTISAMPLE_3DFX                 = 0x86B2,
3285         GL_SAMPLE_BUFFERS_3DFX              = 0x86B3,
3286         GL_SAMPLES_3DFX                     = 0x86B4,
3287         GL_MULTISAMPLE_BIT_3DFX             = 0x20000000,
3288     }
3289 }
3290 
3291 version(DerelictGL_OML)
3292 {
3293     enum : GLenum
3294     {
3295         // GL_OML_interlace
3296         GL_INTERLACE_OML                    = 0x8980,
3297         GL_INTERLACE_READ_OML               = 0x8981,
3298 
3299         // GL_OML_subsample
3300         GL_FORMAT_SUBSAMPLE_24_24_OML       = 0x8982,
3301         GL_FORMAT_SUBSAMPLE_244_244_OML     = 0x8983,
3302 
3303         // GL_OML_resample
3304         GL_PACK_RESAMPLE_OML                = 0x8984,
3305         GL_UNPACK_RESAMPLE_OML              = 0x8985,
3306         GL_RESAMPLE_REPLICATE_OML           = 0x8986,
3307         GL_RESAMPLE_ZERO_FILL_OML           = 0x8987,
3308         GL_RESAMPLE_AVERAGE_OML             = 0x8988,
3309         GL_RESAMPLE_DECIMATE_OML            = 0x8989,
3310     }
3311 }
3312 
3313 version(DerelictGL_S3)
3314 {
3315     enum : GLenum
3316     {
3317         // GL_S3_s3tc
3318         GL_RGB_S3TC                         = 0x83A0,
3319         GL_RGB4_S3TC                        = 0x83A1,
3320         GL_RGBA_S3TC                        = 0x83A2,
3321         GL_RGBA4_S3TC                       = 0x83A3,
3322     }
3323 }
3324 
3325 version(DerelictGL_OES)
3326 {
3327     enum : GLenum
3328     {
3329         // GL_OES_read_format
3330         GL_IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A,
3331         GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B,
3332     }
3333 }
3334 
3335 version(DerelictGL_GREMEDY)
3336 {
3337 }
3338 
3339 version(DerelictGL_MESAX)
3340 {
3341     enum : GLenum
3342     {
3343         // GL_MESAX_texture_stack
3344         GL_TEXTURE_1D_STACK_MESAX           = 0x8759,
3345         GL_TEXTURE_2D_STACK_MESAX           = 0x875A,
3346         GL_PROXY_TEXTURE_1D_STACK_MESAX     = 0x875B,
3347         GL_PROXY_TEXTURE_2D_STACK_MESAX     = 0x875C,
3348         GL_TEXTURE_1D_STACK_BINDING_MESAX   = 0x875D,
3349         GL_TEXTURE_2D_STACK_BINDING_MESAX   = 0x875E,
3350     }
3351 }
3352 
3353 version(Windows)
3354 {
3355     private
3356     {
3357         import derelict.util.wintypes;
3358     }
3359 
3360     alias HANDLE HPBUFFERARB;
3361     alias HANDLE HPBUFFEREXT;
3362 
3363     alias HANDLE HGPUNV;
3364     alias GPU_DEVICE* PGPU_DEVICE;
3365     alias HANDLE HVIDEOOUTPUTDEVICENV;
3366     alias HANDLE HPVIDEODEV;
3367 
3368     struct GPU_DEVICE
3369     {
3370         DWORD cb;
3371         char DeviceName[32];
3372         char DeviceString[128];
3373         DWORD flags;
3374         RECT rcVirtualScreen;
3375     }
3376 
3377 
3378     version(DerelictGL_ARB)
3379     {
3380         enum : GLenum
3381         {
3382             // WGL_ARB_buffer_region
3383             WGL_FRONT_COLOR_BUFFER_BIT_ARB      = 0x00000001,
3384             WGL_BACK_COLOR_BUFFER_BIT_ARB       = 0x00000002,
3385             WGL_DEPTH_BUFFER_BIT_ARB            = 0x00000004,
3386             WGL_STENCIL_BUFFER_BIT_ARB          = 0x00000008,
3387 
3388             // WGL_ARB_multisample
3389             WGL_SAMPLE_BUFFERS_ARB              = 0x2041,
3390             WGL_SAMPLES_ARB                     = 0x2042,
3391 
3392             // WGL_ARB_pixel_format
3393             WGL_NUMBER_PIXEL_FORMATS_ARB        = 0x2000,
3394             WGL_DRAW_TO_WINDOW_ARB              = 0x2001,
3395             WGL_DRAW_TO_BITMAP_ARB              = 0x2002,
3396             WGL_ACCELERATION_ARB                = 0x2003,
3397             WGL_NEED_PALETTE_ARB                = 0x2004,
3398             WGL_NEED_SYSTEM_PALETTE_ARB         = 0x2005,
3399             WGL_SWAP_LAYER_BUFFERS_ARB          = 0x2006,
3400             WGL_SWAP_METHOD_ARB                 = 0x2007,
3401             WGL_NUMBER_OVERLAYS_ARB             = 0x2008,
3402             WGL_NUMBER_UNDERLAYS_ARB            = 0x2009,
3403             WGL_TRANSPARENT_ARB                 = 0x200A,
3404             WGL_TRANSPARENT_RED_VALUE_ARB       = 0x2037,
3405             WGL_TRANSPARENT_GREEN_VALUE_ARB     = 0x2038,
3406             WGL_TRANSPARENT_BLUE_VALUE_ARB      = 0x2039,
3407             WGL_TRANSPARENT_ALPHA_VALUE_ARB     = 0x203A,
3408             WGL_TRANSPARENT_INDEX_VALUE_ARB     = 0x203B,
3409             WGL_SHARE_DEPTH_ARB                 = 0x200C,
3410             WGL_SHARE_STENCIL_ARB               = 0x200D,
3411             WGL_SHARE_ACCUM_ARB                 = 0x200E,
3412             WGL_SUPPORT_GDI_ARB                 = 0x200F,
3413             WGL_SUPPORT_OPENGL_ARB              = 0x2010,
3414             WGL_DOUBLE_BUFFER_ARB               = 0x2011,
3415             WGL_STEREO_ARB                      = 0x2012,
3416             WGL_PIXEL_TYPE_ARB                  = 0x2013,
3417             WGL_COLOR_BITS_ARB                  = 0x2014,
3418             WGL_RED_BITS_ARB                    = 0x2015,
3419             WGL_RED_SHIFT_ARB                   = 0x2016,
3420             WGL_GREEN_BITS_ARB                  = 0x2017,
3421             WGL_GREEN_SHIFT_ARB                 = 0x2018,
3422             WGL_BLUE_BITS_ARB                   = 0x2019,
3423             WGL_BLUE_SHIFT_ARB                  = 0x201A,
3424             WGL_ALPHA_BITS_ARB                  = 0x201B,
3425             WGL_ALPHA_SHIFT_ARB                 = 0x201C,
3426             WGL_ACCUM_BITS_ARB                  = 0x201D,
3427             WGL_ACCUM_RED_BITS_ARB              = 0x201E,
3428             WGL_ACCUM_GREEN_BITS_ARB            = 0x201F,
3429             WGL_ACCUM_BLUE_BITS_ARB             = 0x2020,
3430             WGL_ACCUM_ALPHA_BITS_ARB            = 0x2021,
3431             WGL_DEPTH_BITS_ARB                  = 0x2022,
3432             WGL_STENCIL_BITS_ARB                = 0x2023,
3433             WGL_AUX_BUFFERS_ARB                 = 0x2024,
3434             WGL_NO_ACCELERATION_ARB             = 0x2025,
3435             WGL_GENERIC_ACCELERATION_ARB        = 0x2026,
3436             WGL_FULL_ACCELERATION_ARB           = 0x2027,
3437             WGL_SWAP_EXCHANGE_ARB               = 0x2028,
3438             WGL_SWAP_COPY_ARB                   = 0x2029,
3439             WGL_SWAP_UNDEFINED_ARB              = 0x202A,
3440             WGL_TYPE_RGBA_ARB                   = 0x202B,
3441             WGL_TYPE_COLORINDEX_ARB             = 0x202C,
3442 
3443             // WGL_ARB_make_current_read
3444             ERROR_INVALID_PIXEL_TYPE_ARB            = 0x2043,
3445             ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB  = 0x2054,
3446 
3447             // WGL_ARB_pbuffer
3448             WGL_DRAW_TO_PBUFFER_ARB             = 0x202D,
3449             WGL_MAX_PBUFFER_PIXELS_ARB          = 0x202E,
3450             WGL_MAX_PBUFFER_WIDTH_ARB           = 0x202F,
3451             WGL_MAX_PBUFFER_HEIGHT_ARB          = 0x2030,
3452             WGL_PBUFFER_LARGEST_ARB             = 0x2033,
3453             WGL_PBUFFER_WIDTH_ARB               = 0x2034,
3454             WGL_PBUFFER_HEIGHT_ARB              = 0x2035,
3455             WGL_PBUFFER_LOST_ARB                = 0x2036,
3456 
3457             // WGL_ARB_render_texture
3458             WGL_BIND_TO_TEXTURE_RGB_ARB         = 0x2070,
3459             WGL_BIND_TO_TEXTURE_RGBA_ARB        = 0x2071,
3460             WGL_TEXTURE_FORMAT_ARB              = 0x2072,
3461             WGL_TEXTURE_TARGET_ARB              = 0x2073,
3462             WGL_MIPMAP_TEXTURE_ARB              = 0x2074,
3463             WGL_TEXTURE_RGB_ARB                 = 0x2075,
3464             WGL_TEXTURE_RGBA_ARB                = 0x2076,
3465             WGL_NO_TEXTURE_ARB                  = 0x2077,
3466             WGL_TEXTURE_CUBE_MAP_ARB            = 0x2078,
3467             WGL_TEXTURE_1D_ARB                  = 0x2079,
3468             WGL_TEXTURE_2D_ARB                  = 0x207A,
3469             WGL_MIPMAP_LEVEL_ARB                = 0x207B,
3470             WGL_CUBE_MAP_FACE_ARB               = 0x207C,
3471             WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x207D,
3472             WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x207E,
3473             WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x207F,
3474             WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x2080,
3475             WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x2081,
3476             WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x2082,
3477             WGL_FRONT_LEFT_ARB                  = 0x2083,
3478             WGL_FRONT_RIGHT_ARB                 = 0x2084,
3479             WGL_BACK_LEFT_ARB                   = 0x2085,
3480             WGL_BACK_RIGHT_ARB                  = 0x2086,
3481             WGL_AUX0_ARB                        = 0x2087,
3482             WGL_AUX1_ARB                        = 0x2088,
3483             WGL_AUX2_ARB                        = 0x2089,
3484             WGL_AUX3_ARB                        = 0x208A,
3485             WGL_AUX4_ARB                        = 0x208B,
3486             WGL_AUX5_ARB                        = 0x208C,
3487             WGL_AUX6_ARB                        = 0x208D,
3488             WGL_AUX7_ARB                        = 0x208E,
3489             WGL_AUX8_ARB                        = 0x208F,
3490             WGL_AUX9_ARB                        = 0x2090,
3491 
3492             // WGL_ARB_pixel_format_float
3493             WGL_TYPE_RGBA_FLOAT_ARB  = 0x21A0,
3494 
3495             // WGL_ARB_create_context
3496             WGL_CONTEXT_DEBUG_BIT_ARB               = 0x0001,
3497             WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB  = 0x0002,
3498             WGL_CONTEXT_MAJOR_VERSION_ARB           = 0x2091,
3499             WGL_CONTEXT_MINOR_VERSION_ARB           = 0x2092,
3500             WGL_CONTEXT_LAYER_PLANE_ARB             = 0x2093,
3501             WGL_CONTEXT_FLAGS_ARB                   = 0x2094,
3502             ERROR_INVALID_VERSION_ARB               = 0x2095,
3503 
3504             // WGL_ARB_create_context_profile
3505             WGL_CONTEXT_CORE_PROFILE_BIT_ARB            = 0x00000001,
3506             WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB   = 0x00000002,
3507             WGL_CONTEXT_PROFILE_MASK_ARB                = 0x9126,
3508 
3509             // WGL_ARB_framebuffer_sRGB
3510             WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB    = 0x20A9,
3511         }
3512     }
3513 
3514     version(DerelictGL_EXT)
3515     {
3516         enum : GLenum
3517         {
3518             // WGL_EXT_depth_float
3519             WGL_DEPTH_FLOAT_EXT                 = 0x2040,
3520 
3521             // WGL_EXT_framebuffer_sRGB
3522             WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT    = 0x20A9,
3523 
3524             // WGL_EXT_make_current_read
3525             ERROR_INVALID_PIXEL_TYPE_EXT        = 0x2043,
3526 
3527             // WGL_EXT_multisample
3528             WGL_SAMPLE_BUFFERS_EXT              = 0x2041,
3529             WGL_SAMPLES_EXT                     = 0x2042,
3530 
3531             // WGL_EXT_pbuffer
3532             WGL_DRAW_TO_PBUFFER_EXT             = 0x202D,
3533             WGL_MAX_PBUFFER_PIXELS_EXT          = 0x202E,
3534             WGL_MAX_PBUFFER_WIDTH_EXT           = 0x202F,
3535             WGL_MAX_PBUFFER_HEIGHT_EXT          = 0x2030,
3536             WGL_OPTIMAL_PBUFFER_WIDTH_EXT       = 0x2031,
3537             WGL_OPTIMAL_PBUFFER_HEIGHT_EXT      = 0x2032,
3538             WGL_PBUFFER_LARGEST_EXT             = 0x2033,
3539             WGL_PBUFFER_WIDTH_EXT               = 0x2034,
3540             WGL_PBUFFER_HEIGHT_EXT              = 0x2035,
3541 
3542             // WGL_EXT_pixel_format
3543             WGL_NUMBER_PIXEL_FORMATS_EXT        = 0x2000,
3544             WGL_DRAW_TO_WINDOW_EXT              = 0x2001,
3545             WGL_DRAW_TO_BITMAP_EXT              = 0x2002,
3546             WGL_ACCELERATION_EXT                = 0x2003,
3547             WGL_NEED_PALETTE_EXT                = 0x2004,
3548             WGL_NEED_SYSTEM_PALETTE_EXT         = 0x2005,
3549             WGL_SWAP_LAYER_BUFFERS_EXT          = 0x2006,
3550             WGL_SWAP_METHOD_EXT                 = 0x2007,
3551             WGL_NUMBER_OVERLAYS_EXT             = 0x2008,
3552             WGL_NUMBER_UNDERLAYS_EXT            = 0x2009,
3553             WGL_TRANSPARENT_EXT                 = 0x200A,
3554             WGL_TRANSPARENT_VALUE_EXT           = 0x200B,
3555             WGL_SHARE_DEPTH_EXT                 = 0x200C,
3556             WGL_SHARE_STENCIL_EXT               = 0x200D,
3557             WGL_SHARE_ACCUM_EXT                 = 0x200E,
3558             WGL_SUPPORT_GDI_EXT                 = 0x200F,
3559             WGL_SUPPORT_OPENGL_EXT              = 0x2010,
3560             WGL_DOUBLE_BUFFER_EXT               = 0x2011,
3561             WGL_STEREO_EXT                      = 0x2012,
3562             WGL_PIXEL_TYPE_EXT                  = 0x2013,
3563             WGL_COLOR_BITS_EXT                  = 0x2014,
3564             WGL_RED_BITS_EXT                    = 0x2015,
3565             WGL_RED_SHIFT_EXT                   = 0x2016,
3566             WGL_GREEN_BITS_EXT                  = 0x2017,
3567             WGL_GREEN_SHIFT_EXT                 = 0x2018,
3568             WGL_BLUE_BITS_EXT                   = 0x2019,
3569             WGL_BLUE_SHIFT_EXT                  = 0x201A,
3570             WGL_ALPHA_BITS_EXT                  = 0x201B,
3571             WGL_ALPHA_SHIFT_EXT                 = 0x201C,
3572             WGL_ACCUM_BITS_EXT                  = 0x201D,
3573             WGL_ACCUM_RED_BITS_EXT              = 0x201E,
3574             WGL_ACCUM_GREEN_BITS_EXT            = 0x201F,
3575             WGL_ACCUM_BLUE_BITS_EXT             = 0x2020,
3576             WGL_ACCUM_ALPHA_BITS_EXT            = 0x2021,
3577             WGL_DEPTH_BITS_EXT                  = 0x2022,
3578             WGL_STENCIL_BITS_EXT                = 0x2023,
3579             WGL_AUX_BUFFERS_EXT                 = 0x2024,
3580             WGL_NO_ACCELERATION_EXT             = 0x2025,
3581             WGL_GENERIC_ACCELERATION_EXT        = 0x2026,
3582             WGL_FULL_ACCELERATION_EXT           = 0x2027,
3583             WGL_SWAP_EXCHANGE_EXT               = 0x2028,
3584             WGL_SWAP_COPY_EXT                   = 0x2029,
3585             WGL_SWAP_UNDEFINED_EXT              = 0x202A,
3586             WGL_TYPE_RGBA_EXT                   = 0x202B,
3587             WGL_TYPE_COLORINDEX_EXT             = 0x202C,
3588 
3589             // WGL_EXT_pixel_format_packed_float
3590             WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT    = 0x20A8,
3591         }
3592     }
3593 
3594     version(DerelictGL_NV)
3595     {
3596         enum : GLenum
3597         {
3598             // WGL_NV_float_buffer
3599             WGL_FLOAT_COMPONENTS_NV                     = 0x20B0,
3600             WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV    = 0x20B1,
3601             WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV   = 0x20B2,
3602             WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV  = 0x20B3,
3603             WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV = 0x20B4,
3604             WGL_TEXTURE_FLOAT_R_NV                      = 0x20B5,
3605             WGL_TEXTURE_FLOAT_RG_NV                     = 0x20B6,
3606             WGL_TEXTURE_FLOAT_RGB_NV                    = 0x20B7,
3607             WGL_TEXTURE_FLOAT_RGBA_NV                   = 0x20B8,
3608 
3609             // WGL_NV_multisample_coverage
3610             WGL_COVERAGE_SAMPLES_NV             = 0x2042,
3611             WGL_COLOR_SAMPLES_NV                = 0x20B9,
3612 
3613             // WGL_NV_render_depth_texture
3614             // WGL_NO_TEXTURE_ARB                       = 0x2077, <-- Declared in WGL_ARB_render_texture
3615             WGL_BIND_TO_TEXTURE_DEPTH_NV            = 0x20A3,
3616             WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV  = 0x20A4,
3617             WGL_DEPTH_TEXTURE_FORMAT_NV             = 0x20A5,
3618             WGL_TEXTURE_DEPTH_COMPONENT_NV          = 0x20A6,
3619             WGL_DEPTH_COMPONENT_NV                  = 0x20A7,
3620 
3621             // WGL_NV_render_texture_rectangle
3622             WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV    = 0x20A0,
3623             WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV   = 0x20A1,
3624             WGL_TEXTURE_RECTANGLE_NV                = 0x20A2,
3625 
3626             // WGL_NV_video_output
3627             WGL_BIND_TO_VIDEO_RGB_NV            = 0x20C0,
3628             WGL_BIND_TO_VIDEO_RGBA_NV           = 0x20C1,
3629             WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV  = 0x20C2,
3630             WGL_VIDEO_OUT_COLOR_NV              = 0x20C3,
3631             WGL_VIDEO_OUT_ALPHA_NV              = 0x20C4,
3632             WGL_VIDEO_OUT_DEPTH_NV              = 0x20C5,
3633             WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV    = 0x20C6,
3634             WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV    = 0x20C7,
3635             WGL_VIDEO_OUT_FRAME                 = 0x20C8,
3636             WGL_VIDEO_OUT_FIELD_1               = 0x20C9,
3637             WGL_VIDEO_OUT_FIELD_2               = 0x20CA,
3638             WGL_VIDEO_OUT_STACKED_FIELDS_1_2    = 0x20CB,
3639             WGL_VIDEO_OUT_STACKED_FIELDS_2_1    = 0x20CC,
3640         }
3641     }
3642 
3643     version(DerelictGL_ATI)
3644     {
3645         enum : GLenum
3646         {
3647             // WGL_ATI_pixel_format_float
3648             WGL_TYPE_RGBA_FLOAT_ATI             = 0x21A0,
3649             GL_RGBA_FLOAT_MODE_ATI              = 0x8820,
3650             //GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI    = 0x8835, <-- Already declared above.
3651 
3652             // WGL_ATI_render_texture_rectangle
3653             WGL_TEXTURE_RECTANGLE_ATI           = 0x21A5,
3654         }
3655     }
3656 
3657     version(DerelictGL_AMD)
3658     {
3659         enum : GLenum
3660         {
3661             // WGL_AMD_gpu_association
3662             WGL_GPU_VENDOR_AMD                  = 0x1F00,
3663             WGL_GPU_RENDERER_STRING_AMD         = 0x1F01,
3664             WGL_GPU_OPENGL_VERSION_STRING_AMD   = 0x1F02,
3665             WGL_GPU_FASTEST_TARGET_GPUS_AMD     = 0x21A2,
3666             WGL_GPU_RAM_AMD                     = 0x21A3,
3667             WGL_GPU_CLOCK_AMD                   = 0x21A4,
3668             WGL_GPU_NUM_PIPES_AMD               = 0x21A5,
3669             WGL_GPU_NUM_SIMD_AMD                = 0x21A6,
3670             WGL_GPU_NUM_RB_AMD                  = 0x21A7,
3671             WGL_GPU_NUM_SPI_AMD                 = 0x21A8,
3672         }
3673     }
3674 
3675     version(DerelictGL_I3D)
3676     {
3677         enum : GLenum
3678         {
3679             // WGL_I3D_digital_video_control
3680             WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D  = 0x2050,
3681             WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D        = 0x2051,
3682             WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D           = 0x2052,
3683             WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D           = 0x2053,
3684 
3685             // WGL_I3D_gamma
3686             WGL_GAMMA_TABLE_SIZE_I3D            = 0x204E,
3687             WGL_GAMMA_EXCLUDE_DESKTOP_I3D       = 0x204F,
3688 
3689             // WGL_I3D_genlock
3690             WGL_GENLOCK_SOURCE_MULTIVIEW_I3D        = 0x2044,
3691             WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D    = 0x2045,
3692             WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D   = 0x2046,
3693             WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D     = 0x2047,
3694             WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D     = 0x2048,
3695             WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D    = 0x2049,
3696             WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D     = 0x204A,
3697             WGL_GENLOCK_SOURCE_EDGE_RISING_I3D      = 0x204B,
3698             WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D        = 0x204C,
3699 
3700             // WGL_I3D_image_buffer
3701             WGL_IMAGE_BUFFER_MIN_ACCESS_I3D         = 0x00000001,
3702             WGL_IMAGE_BUFFER_LOCK_I3D               = 0x00000002,
3703         }
3704     }
3705 
3706     version(DerelictGL_3DFX)
3707     {
3708         enum : GLenum
3709         {
3710             // WGL_3DFX_multisample
3711             WGL_SAMPLE_BUFFERS_3DFX             = 0x2060,
3712             WGL_SAMPLES_3DFX                    = 0x2061,
3713         }
3714     }
3715 
3716     version(DerelictGL_3DL)
3717     {
3718         enum : GLenum
3719         {
3720             // WGL_3DL_stereo_control
3721             WGL_STEREO_EMITTER_ENABLE_3DL       = 0x2055,
3722             WGL_STEREO_EMITTER_DISABLE_3DL      = 0x2056,
3723             WGL_STEREO_POLARITY_NORMAL_3DL      = 0x2057,
3724             WGL_STEREO_POLARITY_INVERT_3DL      = 0x2058,
3725         }
3726     }
3727 }