VirtualBox

root/trunk/include/VBox/HostServices/glext.h

Revision 4172, 363.6 kB (checked in by vboxsync, 1 year ago)

eol-style native

  • Property svn:eol-style set to native
Line 
1 #ifndef __glext_h_
2 #define __glext_h_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9 ** Copyright (c) 2007 The Khronos Group Inc.
10 **
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
18 **
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 **
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29 */
30
31 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
32 #define WIN32_LEAN_AND_MEAN 1
33 #include <windows.h>
34 #endif
35
36 #ifndef APIENTRY
37 #define APIENTRY
38 #endif
39 #ifndef APIENTRYP
40 #define APIENTRYP APIENTRY *
41 #endif
42 #ifndef GLAPI
43 #define GLAPI extern
44 #endif
45
46 /*************************************************************/
47
48 /* Header file version number, required by OpenGL ABI for Linux */
49 /* glext.h last updated 2007/02/12 */
50 /* Current version at http://www.opengl.org/registry/ */
51 #define GL_GLEXT_VERSION 39
52
53 #ifndef GL_VERSION_1_2
54 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
55 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
56 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
57 #define GL_UNSIGNED_INT_8_8_8_8           0x8035
58 #define GL_UNSIGNED_INT_10_10_10_2        0x8036
59 #define GL_RESCALE_NORMAL                 0x803A
60 #define GL_TEXTURE_BINDING_3D             0x806A
61 #define GL_PACK_SKIP_IMAGES               0x806B
62 #define GL_PACK_IMAGE_HEIGHT              0x806C
63 #define GL_UNPACK_SKIP_IMAGES             0x806D
64 #define GL_UNPACK_IMAGE_HEIGHT            0x806E
65 #define GL_TEXTURE_3D                     0x806F
66 #define GL_PROXY_TEXTURE_3D               0x8070
67 #define GL_TEXTURE_DEPTH                  0x8071
68 #define GL_TEXTURE_WRAP_R                 0x8072
69 #define GL_MAX_3D_TEXTURE_SIZE            0x8073
70 #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
71 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
72 #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
73 #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
74 #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
75 #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
76 #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
77 #define GL_BGR                            0x80E0
78 #define GL_BGRA                           0x80E1
79 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
80 #define GL_MAX_ELEMENTS_INDICES           0x80E9
81 #define GL_CLAMP_TO_EDGE                  0x812F
82 #define GL_TEXTURE_MIN_LOD                0x813A
83 #define GL_TEXTURE_MAX_LOD                0x813B
84 #define GL_TEXTURE_BASE_LEVEL             0x813C
85 #define GL_TEXTURE_MAX_LEVEL              0x813D
86 #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
87 #define GL_SINGLE_COLOR                   0x81F9
88 #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
89 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
90 #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
91 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
92 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
93 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
94 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
95 #endif
96
97 #ifndef GL_ARB_imaging
98 #define GL_CONSTANT_COLOR                 0x8001
99 #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
100 #define GL_CONSTANT_ALPHA                 0x8003
101 #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
102 #define GL_BLEND_COLOR                    0x8005
103 #define GL_FUNC_ADD                       0x8006
104 #define GL_MIN                            0x8007
105 #define GL_MAX                            0x8008
106 #define GL_BLEND_EQUATION                 0x8009
107 #define GL_FUNC_SUBTRACT                  0x800A
108 #define GL_FUNC_REVERSE_SUBTRACT          0x800B
109 #define GL_CONVOLUTION_1D                 0x8010
110 #define GL_CONVOLUTION_2D                 0x8011
111 #define GL_SEPARABLE_2D                   0x8012
112 #define GL_CONVOLUTION_BORDER_MODE        0x8013
113 #define GL_CONVOLUTION_FILTER_SCALE       0x8014
114 #define GL_CONVOLUTION_FILTER_BIAS        0x8015
115 #define GL_REDUCE                         0x8016
116 #define GL_CONVOLUTION_FORMAT             0x8017
117 #define GL_CONVOLUTION_WIDTH              0x8018
118 #define GL_CONVOLUTION_HEIGHT             0x8019
119 #define GL_MAX_CONVOLUTION_WIDTH          0x801A
120 #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
121 #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
122 #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
123 #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
124 #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
125 #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
126 #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
127 #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
128 #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
129 #define GL_HISTOGRAM                      0x8024
130 #define GL_PROXY_HISTOGRAM                0x8025
131 #define GL_HISTOGRAM_WIDTH                0x8026
132 #define GL_HISTOGRAM_FORMAT               0x8027
133 #define GL_HISTOGRAM_RED_SIZE             0x8028
134 #define GL_HISTOGRAM_GREEN_SIZE           0x8029
135 #define GL_HISTOGRAM_BLUE_SIZE            0x802A
136 #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
137 #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
138 #define GL_HISTOGRAM_SINK                 0x802D
139 #define GL_MINMAX                         0x802E
140 #define GL_MINMAX_FORMAT                  0x802F
141 #define GL_MINMAX_SINK                    0x8030
142 #define GL_TABLE_TOO_LARGE                0x8031
143 #define GL_COLOR_MATRIX                   0x80B1
144 #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
145 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
146 #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
147 #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
148 #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
149 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
150 #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
151 #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
152 #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
153 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
154 #define GL_COLOR_TABLE                    0x80D0
155 #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
156 #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
157 #define GL_PROXY_COLOR_TABLE              0x80D3
158 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
159 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
160 #define GL_COLOR_TABLE_SCALE              0x80D6
161 #define GL_COLOR_TABLE_BIAS               0x80D7
162 #define GL_COLOR_TABLE_FORMAT             0x80D8
163 #define GL_COLOR_TABLE_WIDTH              0x80D9
164 #define GL_COLOR_TABLE_RED_SIZE           0x80DA
165 #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
166 #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
167 #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
168 #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
169 #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
170 #define GL_CONSTANT_BORDER                0x8151
171 #define GL_REPLICATE_BORDER               0x8153
172 #define GL_CONVOLUTION_BORDER_COLOR       0x8154
173 #endif
174
175 #ifndef GL_VERSION_1_3
176 #define GL_TEXTURE0                       0x84C0
177 #define GL_TEXTURE1                       0x84C1
178 #define GL_TEXTURE2                       0x84C2
179 #define GL_TEXTURE3                       0x84C3
180 #define GL_TEXTURE4                       0x84C4
181 #define GL_TEXTURE5                       0x84C5
182 #define GL_TEXTURE6                       0x84C6
183 #define GL_TEXTURE7                       0x84C7
184 #define GL_TEXTURE8                       0x84C8
185 #define GL_TEXTURE9                       0x84C9
186 #define GL_TEXTURE10                      0x84CA
187 #define GL_TEXTURE11                      0x84CB
188 #define GL_TEXTURE12                      0x84CC
189 #define GL_TEXTURE13                      0x84CD
190 #define GL_TEXTURE14                      0x84CE
191 #define GL_TEXTURE15                      0x84CF
192 #define GL_TEXTURE16                      0x84D0
193 #define GL_TEXTURE17                      0x84D1
194 #define GL_TEXTURE18                      0x84D2
195 #define GL_TEXTURE19                      0x84D3
196 #define GL_TEXTURE20                      0x84D4
197 #define GL_TEXTURE21                      0x84D5
198 #define GL_TEXTURE22                      0x84D6
199 #define GL_TEXTURE23                      0x84D7
200 #define GL_TEXTURE24                      0x84D8
201 #define GL_TEXTURE25                      0x84D9
202 #define GL_TEXTURE26                      0x84DA
203 #define GL_TEXTURE27                      0x84DB
204 #define GL_TEXTURE28                      0x84DC
205 #define GL_TEXTURE29                      0x84DD
206 #define GL_TEXTURE30                      0x84DE
207 #define GL_TEXTURE31                      0x84DF
208 #define GL_ACTIVE_TEXTURE                 0x84E0
209 #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
210 #define GL_MAX_TEXTURE_UNITS              0x84E2
211 #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
212 #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
213 #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
214 #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
215 #define GL_MULTISAMPLE                    0x809D
216 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
217 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
218 #define GL_SAMPLE_COVERAGE                0x80A0
219 #define GL_SAMPLE_BUFFERS                 0x80A8
220 #define GL_SAMPLES                        0x80A9
221 #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
222 #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
223 #define GL_MULTISAMPLE_BIT                0x20000000
224 #define GL_NORMAL_MAP                     0x8511
225 #define GL_REFLECTION_MAP                 0x8512
226 #define GL_TEXTURE_CUBE_MAP               0x8513
227 #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
228 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
229 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
230 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
231 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
232 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
233 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
234 #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
235 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
236 #define GL_COMPRESSED_ALPHA               0x84E9
237 #define GL_COMPRESSED_LUMINANCE           0x84EA
238 #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
239 #define GL_COMPRESSED_INTENSITY           0x84EC
240 #define GL_COMPRESSED_RGB                 0x84ED
241 #define GL_COMPRESSED_RGBA                0x84EE
242 #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
243 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
244 #define GL_TEXTURE_COMPRESSED             0x86A1
245 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
246 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
247 #define GL_CLAMP_TO_BORDER                0x812D
248 #define GL_COMBINE                        0x8570
249 #define GL_COMBINE_RGB                    0x8571
250 #define GL_COMBINE_ALPHA                  0x8572
251 #define GL_SOURCE0_RGB                    0x8580
252 #define GL_SOURCE1_RGB                    0x8581
253 #define GL_SOURCE2_RGB                    0x8582
254 #define GL_SOURCE0_ALPHA                  0x8588
255 #define GL_SOURCE1_ALPHA                  0x8589
256 #define GL_SOURCE2_ALPHA                  0x858A
257 #define GL_OPERAND0_RGB                   0x8590
258 #define GL_OPERAND1_RGB                   0x8591
259 #define GL_OPERAND2_RGB                   0x8592
260 #define GL_OPERAND0_ALPHA                 0x8598
261 #define GL_OPERAND1_ALPHA                 0x8599
262 #define GL_OPERAND2_ALPHA                 0x859A
263 #define GL_RGB_SCALE                      0x8573
264 #define GL_ADD_SIGNED                     0x8574
265 #define GL_INTERPOLATE                    0x8575
266 #define GL_SUBTRACT                       0x84E7
267 #define GL_CONSTANT                       0x8576
268 #define GL_PRIMARY_COLOR                  0x8577
269 #define GL_PREVIOUS                       0x8578
270 #define GL_DOT3_RGB                       0x86AE
271 #define GL_DOT3_RGBA                      0x86AF
272 #endif
273
274 #ifndef GL_VERSION_1_4
275 #define GL_BLEND_DST_RGB                  0x80C8
276 #define GL_BLEND_SRC_RGB                  0x80C9
277 #define GL_BLEND_DST_ALPHA                0x80CA
278 #define GL_BLEND_SRC_ALPHA                0x80CB
279 #define GL_POINT_SIZE_MIN                 0x8126
280 #define GL_POINT_SIZE_MAX                 0x8127
281 #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
282 #define GL_POINT_DISTANCE_ATTENUATION     0x8129
283 #define GL_GENERATE_MIPMAP                0x8191
284 #define GL_GENERATE_MIPMAP_HINT           0x8192
285 #define GL_DEPTH_COMPONENT16              0x81A5
286 #define GL_DEPTH_COMPONENT24              0x81A6
287 #define GL_DEPTH_COMPONENT32              0x81A7
288 #define GL_MIRRORED_REPEAT                0x8370
289 #define GL_FOG_COORDINATE_SOURCE          0x8450
290 #define GL_FOG_COORDINATE                 0x8451
291 #define GL_FRAGMENT_DEPTH                 0x8452
292 #define GL_CURRENT_FOG_COORDINATE         0x8453
293 #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
294 #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
295 #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
296 #define GL_FOG_COORDINATE_ARRAY           0x8457
297 #define GL_COLOR_SUM                      0x8458
298 #define GL_CURRENT_SECONDARY_COLOR        0x8459
299 #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
300 #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
301 #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
302 #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
303 #define GL_SECONDARY_COLOR_ARRAY          0x845E
304 #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
305 #define GL_TEXTURE_FILTER_CONTROL         0x8500
306 #define GL_TEXTURE_LOD_BIAS               0x8501
307 #define GL_INCR_WRAP                      0x8507
308 #define GL_DECR_WRAP                      0x8508
309 #define GL_TEXTURE_DEPTH_SIZE             0x884A
310 #define GL_DEPTH_TEXTURE_MODE             0x884B
311 #define GL_TEXTURE_COMPARE_MODE           0x884C
312 #define GL_TEXTURE_COMPARE_FUNC           0x884D
313 #define GL_COMPARE_R_TO_TEXTURE           0x884E
314 #endif
315
316 #ifndef GL_VERSION_1_5
317 #define GL_BUFFER_SIZE                    0x8764
318 #define GL_BUFFER_USAGE                   0x8765
319 #define GL_QUERY_COUNTER_BITS             0x8864
320 #define GL_CURRENT_QUERY                  0x8865
321 #define GL_QUERY_RESULT                   0x8866
322 #define GL_QUERY_RESULT_AVAILABLE         0x8867
323 #define GL_ARRAY_BUFFER                   0x8892
324 #define GL_ELEMENT_ARRAY_BUFFER           0x8893
325 #define GL_ARRAY_BUFFER_BINDING           0x8894
326 #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
327 #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
328 #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
329 #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
330 #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
331 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
332 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
333 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
334 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
335 #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
336 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
337 #define GL_READ_ONLY                      0x88B8
338 #define GL_WRITE_ONLY                     0x88B9
339 #define GL_READ_WRITE                     0x88BA
340 #define GL_BUFFER_ACCESS                  0x88BB
341 #define GL_BUFFER_MAPPED                  0x88BC
342 #define GL_BUFFER_MAP_POINTER             0x88BD
343 #define GL_STREAM_DRAW                    0x88E0
344 #define GL_STREAM_READ                    0x88E1
345 #define GL_STREAM_COPY                    0x88E2
346 #define GL_STATIC_DRAW                    0x88E4
347 #define GL_STATIC_READ                    0x88E5
348 #define GL_STATIC_COPY                    0x88E6
349 #define GL_DYNAMIC_DRAW                   0x88E8
350 #define GL_DYNAMIC_READ                   0x88E9
351 #define GL_DYNAMIC_COPY                   0x88EA
352 #define GL_SAMPLES_PASSED                 0x8914
353 #define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE
354 #define GL_FOG_COORD                      GL_FOG_COORDINATE
355 #define GL_CURRENT_FOG_COORD              GL_CURRENT_FOG_COORDINATE
356 #define GL_FOG_COORD_ARRAY_TYPE           GL_FOG_COORDINATE_ARRAY_TYPE
357 #define GL_FOG_COORD_ARRAY_STRIDE         GL_FOG_COORDINATE_ARRAY_STRIDE
358 #define GL_FOG_COORD_ARRAY_POINTER        GL_FOG_COORDINATE_ARRAY_POINTER
359 #define GL_FOG_COORD_ARRAY                GL_FOG_COORDINATE_ARRAY
360 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
361 #define GL_SRC0_RGB                       GL_SOURCE0_RGB
362 #define GL_SRC1_RGB                       GL_SOURCE1_RGB
363 #define GL_SRC2_RGB                       GL_SOURCE2_RGB
364 #define GL_SRC0_ALPHA                     GL_SOURCE0_ALPHA
365 #define GL_SRC1_ALPHA                     GL_SOURCE1_ALPHA
366 #define GL_SRC2_ALPHA                     GL_SOURCE2_ALPHA
367 #endif
368
369 #ifndef GL_VERSION_2_0
370 #define GL_BLEND_EQUATION_RGB             GL_BLEND_EQUATION
371 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
372 #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
373 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
374 #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
375 #define GL_CURRENT_VERTEX_ATTRIB          0x8626
376 #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
377 #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
378 #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
379 #define GL_STENCIL_BACK_FUNC              0x8800
380 #define GL_STENCIL_BACK_FAIL              0x8801
381 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
382 #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
383 #define GL_MAX_DRAW_BUFFERS               0x8824
384 #define GL_DRAW_BUFFER0                   0x8825
385 #define GL_DRAW_BUFFER1                   0x8826
386 #define GL_DRAW_BUFFER2                   0x8827
387 #define GL_DRAW_BUFFER3                   0x8828
388 #define GL_DRAW_BUFFER4                   0x8829
389 #define GL_DRAW_BUFFER5                   0x882A
390 #define GL_DRAW_BUFFER6                   0x882B
391 #define GL_DRAW_BUFFER7                   0x882C
392 #define GL_DRAW_BUFFER8                   0x882D
393 #define GL_DRAW_BUFFER9                   0x882E
394 #define GL_DRAW_BUFFER10                  0x882F
395 #define GL_DRAW_BUFFER11                  0x8830
396 #define GL_DRAW_BUFFER12                  0x8831
397 #define GL_DRAW_BUFFER13                  0x8832
398 #define GL_DRAW_BUFFER14                  0x8833
399 #define GL_DRAW_BUFFER15                  0x8834
400 #define GL_BLEND_EQUATION_ALPHA           0x883D
401 #define GL_POINT_SPRITE                   0x8861
402 #define GL_COORD_REPLACE                  0x8862
403 #define GL_MAX_VERTEX_ATTRIBS             0x8869
404 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
405 #define GL_MAX_TEXTURE_COORDS             0x8871
406 #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
407 #define GL_FRAGMENT_SHADER                0x8B30
408 #define GL_VERTEX_SHADER                  0x8B31
409 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
410 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
411 #define GL_MAX_VARYING_FLOATS             0x8B4B
412 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
413 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
414 #define GL_SHADER_TYPE                    0x8B4F
415 #define GL_FLOAT_VEC2                     0x8B50
416 #define GL_FLOAT_VEC3                     0x8B51
417 #define GL_FLOAT_VEC4                     0x8B52
418 #define GL_INT_VEC2                       0x8B53
419 #define GL_INT_VEC3                       0x8B54
420 #define GL_INT_VEC4                       0x8B55
421 #define GL_BOOL                           0x8B56
422 #define GL_BOOL_VEC2                      0x8B57
423 #define GL_BOOL_VEC3                      0x8B58
424 #define GL_BOOL_VEC4                      0x8B59
425 #define GL_FLOAT_MAT2                     0x8B5A
426 #define GL_FLOAT_MAT3                     0x8B5B
427 #define GL_FLOAT_MAT4                     0x8B5C
428 #define GL_SAMPLER_1D                     0x8B5D
429 #define GL_SAMPLER_2D                     0x8B5E
430 #define GL_SAMPLER_3D                     0x8B5F
431 #define GL_SAMPLER_CUBE                   0x8B60
432 #define GL_SAMPLER_1D_SHADOW              0x8B61
433 #define GL_SAMPLER_2D_SHADOW              0x8B62
434 #define GL_DELETE_STATUS                  0x8B80
435 #define GL_COMPILE_STATUS                 0x8B81
436 #define GL_LINK_STATUS                    0x8B82
437 #define GL_VALIDATE_STATUS                0x8B83
438 #define GL_INFO_LOG_LENGTH                0x8B84
439 #define GL_ATTACHED_SHADERS               0x8B85
440 #define GL_ACTIVE_UNIFORMS                0x8B86
441 #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
442 #define GL_SHADER_SOURCE_LENGTH           0x8B88
443 #define GL_ACTIVE_ATTRIBUTES              0x8B89
444 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
445 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
446 #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
447 #define GL_CURRENT_PROGRAM                0x8B8D
448 #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
449 #define GL_LOWER_LEFT                     0x8CA1
450 #define GL_UPPER_LEFT                     0x8CA2
451 #define GL_STENCIL_BACK_REF               0x8CA3
452 #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
453 #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
454 #endif
455
456 #ifndef GL_VERSION_2_1
457 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
458 #define GL_PIXEL_PACK_BUFFER              0x88EB
459 #define GL_PIXEL_UNPACK_BUFFER            0x88EC
460 #define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
461 #define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
462 #define GL_FLOAT_MAT2x3                   0x8B65
463 #define GL_FLOAT_MAT2x4                   0x8B66
464 #define GL_FLOAT_MAT3x2                   0x8B67
465 #define GL_FLOAT_MAT3x4                   0x8B68
466 #define GL_FLOAT_MAT4x2                   0x8B69
467 #define GL_FLOAT_MAT4x3                   0x8B6A
468 #define GL_SRGB                           0x8C40
469 #define GL_SRGB8                          0x8C41
470 #define GL_SRGB_ALPHA                     0x8C42
471 #define GL_SRGB8_ALPHA8                   0x8C43
472 #define GL_SLUMINANCE_ALPHA               0x8C44
473 #define GL_SLUMINANCE8_ALPHA8             0x8C45
474 #define GL_SLUMINANCE                     0x8C46
475 #define GL_SLUMINANCE8                    0x8C47
476 #define GL_COMPRESSED_SRGB                0x8C48
477 #define GL_COMPRESSED_SRGB_ALPHA          0x8C49
478 #define GL_COMPRESSED_SLUMINANCE          0x8C4A
479 #define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
480 #endif
481
482 #ifndef GL_ARB_multitexture
483 #define GL_TEXTURE0_ARB                   0x84C0
484 #define GL_TEXTURE1_ARB                   0x84C1
485 #define GL_TEXTURE2_ARB                   0x84C2
486 #define GL_TEXTURE3_ARB                   0x84C3
487 #define GL_TEXTURE4_ARB                   0x84C4
488 #define GL_TEXTURE5_ARB                   0x84C5
489 #define GL_TEXTURE6_ARB                   0x84C6
490 #define GL_TEXTURE7_ARB                   0x84C7
491 #define GL_TEXTURE8_ARB                   0x84C8
492 #define GL_TEXTURE9_ARB                   0x84C9
493 #define GL_TEXTURE10_ARB                  0x84CA
494 #define GL_TEXTURE11_ARB                  0x84CB
495 #define GL_TEXTURE12_ARB                  0x84CC
496 #define GL_TEXTURE13_ARB                  0x84CD
497 #define GL_TEXTURE14_ARB                  0x84CE
498 #define GL_TEXTURE15_ARB                  0x84CF
499 #define GL_TEXTURE16_ARB                  0x84D0
500 #define GL_TEXTURE17_ARB                  0x84D1
501 #define GL_TEXTURE18_ARB                  0x84D2
502 #define GL_TEXTURE19_ARB                  0x84D3
503 #define GL_TEXTURE20_ARB                  0x84D4
504 #define GL_TEXTURE21_ARB                  0x84D5
505 #define GL_TEXTURE22_ARB                  0x84D6
506 #define GL_TEXTURE23_ARB                  0x84D7
507 #define GL_TEXTURE24_ARB                  0x84D8
508 #define GL_TEXTURE25_ARB                  0x84D9
509 #define GL_TEXTURE26_ARB                  0x84DA
510 #define GL_TEXTURE27_ARB                  0x84DB
511 #define GL_TEXTURE28_ARB                  0x84DC
512 #define GL_TEXTURE29_ARB                  0x84DD
513 #define GL_TEXTURE30_ARB                  0x84DE
514 #define GL_TEXTURE31_ARB                  0x84DF
515 #define GL_ACTIVE_TEXTURE_ARB             0x84E0
516 #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
517 #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
518 #endif
519
520 #ifndef GL_ARB_transpose_matrix
521 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
522 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
523 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
524 #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
525 #endif
526
527 #ifndef GL_ARB_multisample
528 #define GL_MULTISAMPLE_ARB                0x809D
529 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
530 #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
531 #define GL_SAMPLE_COVERAGE_ARB            0x80A0
532 #define GL_SAMPLE_BUFFERS_ARB             0x80A8
533 #define GL_SAMPLES_ARB                    0x80A9
534 #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
535 #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
536 #define GL_MULTISAMPLE_BIT_ARB            0x20000000
537 #endif
538
539 #ifndef GL_ARB_texture_env_add
540 #endif
541
542 #ifndef GL_ARB_texture_cube_map
543 #define GL_NORMAL_MAP_ARB                 0x8511
544 #define GL_REFLECTION_MAP_ARB             0x8512
545 #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
546 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
547 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
548 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
549 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
550 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
551 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
552 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
553 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
554 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
555 #endif
556
557 #ifndef GL_ARB_texture_compression
558 #define GL_COMPRESSED_ALPHA_ARB           0x84E9
559 #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
560 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
561 #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
562 #define GL_COMPRESSED_RGB_ARB             0x84ED
563 #define GL_COMPRESSED_RGBA_ARB            0x84EE
564 #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
565 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
566 #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
567 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
568 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
569 #endif
570
571 #ifndef GL_ARB_texture_border_clamp
572 #define GL_CLAMP_TO_BORDER_ARB            0x812D
573 #endif
574
575 #ifndef GL_ARB_point_parameters
576 #define GL_POINT_SIZE_MIN_ARB             0x8126
577 #define GL_POINT_SIZE_MAX_ARB             0x8127
578 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
579 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
580 #endif
581
582 #ifndef GL_ARB_vertex_blend
583 #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
584 #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
585 #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
586 #define GL_VERTEX_BLEND_ARB               0x86A7
587 #define GL_CURRENT_WEIGHT_ARB             0x86A8
588 #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
589 #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
590 #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
591 #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
592 #define GL_WEIGHT_ARRAY_ARB               0x86AD
593 #define GL_MODELVIEW0_ARB                 0x1700
594 #define GL_MODELVIEW1_ARB                 0x850A
595 #define GL_MODELVIEW2_ARB                 0x8722
596 #define GL_MODELVIEW3_ARB                 0x8723
597 #define GL_MODELVIEW4_ARB                 0x8724
598 #define GL_MODELVIEW5_ARB                 0x8725
599 #define GL_MODELVIEW6_ARB                 0x8726
600 #define GL_MODELVIEW7_ARB                 0x8727
601 #define GL_MODELVIEW8_ARB                 0x8728
602 #define GL_MODELVIEW9_ARB                 0x8729
603 #define GL_MODELVIEW10_ARB                0x872A
604 #define GL_MODELVIEW11_ARB                0x872B
605 #define GL_MODELVIEW12_ARB                0x872C
606 #define GL_MODELVIEW13_ARB                0x872D
607 #define GL_MODELVIEW14_ARB                0x872E
608 #define GL_MODELVIEW15_ARB                0x872F
609 #define GL_MODELVIEW16_ARB                0x8730
610 #define GL_MODELVIEW17_ARB                0x8731
611 #define GL_MODELVIEW18_ARB                0x8732
612 #define GL_MODELVIEW19_ARB                0x8733
613 #define GL_MODELVIEW20_ARB                0x8734
614 #define GL_MODELVIEW21_ARB                0x8735
615 #define GL_MODELVIEW22_ARB                0x8736
616 #define<