934c7f6755cb05d553cf700a07ba50595e52e3bd
[mesa.git] / include / GL / glext.h
1 #ifndef __glext_h_
2 #define __glext_h_
3
4
5 /*
6 * XXX Many extensions need to be added yet.
7 * XXX Some token values aren't known (grep for ?)
8 * XXX This file may be automatically generated in the future.
9 */
10
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16
17 #ifdef _WIN32
18 #define WIN32_LEAN_AND_MEAN 1
19 #include <windows.h>
20 #endif
21
22 #ifndef GLAPI
23 #define GLAPI extern
24 #endif
25
26 #ifndef APIENTRY
27 #define APIENTRY
28 #endif
29
30
31
32 /*
33 * 1. GL_EXT_abgr
34 */
35 #ifndef GL_EXT_abgr
36 #define GL_EXT_abgr 1
37
38 #define GL_ABGR_EXT 0x8000
39
40 #endif /* GL_EXT_abgr */
41
42
43
44 /*
45 * 2. GL_EXT_blend_color
46 */
47 #ifndef GL_EXT_blend_color
48 #define GL_EXT_blend_color 1
49
50 #define GL_CONSTANT_COLOR_EXT 0x8001
51 #define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
52 #define GL_CONSTANT_ALPHA_EXT 0x8003
53 #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
54 #define GL_BLEND_COLOR_EXT 0x8005
55
56 GLAPI void APIENTRY glBlendColorEXT(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
57
58 #endif /* GL_EXT_blend_color */
59
60
61
62 /*
63 * 3. GL_EXT_polygon_offset
64 */
65 #ifndef GL_EXT_polygon_offset
66 #define GL_EXT_polygon_offset 1
67
68 #define GL_POLYGON_OFFSET_EXT 0x8037
69 #define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038
70 #define GL_POLYGON_OFFSET_BIAS_EXT 0x8039
71
72 GLAPI void APIENTRY glPolygonOffsetEXT(GLfloat factor, GLfloat bias);
73
74 #endif /* GL_EXT_polygon_offset */
75
76
77
78 /*
79 * 6. GL_EXT_texture3D
80 */
81 #ifndef GL_EXT_texture3D
82 #define GL_EXT_texture3D 1
83
84 #define GL_PACK_SKIP_IMAGES_EXT 0x806B
85 #define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
86 #define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
87 #define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
88 #define GL_TEXTURE_3D_EXT 0x806F
89 #define GL_PROXY_TEXTURE_3D_EXT 0x8070
90 #define GL_TEXTURE_DEPTH_EXT 0x8071
91 #define GL_TEXTURE_WRAP_R_EXT 0x8072
92 #define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
93 #define GL_TEXTURE_3D_BINDING_EXT 0x806A
94
95 GLAPI void APIENTRY glTexImage3DEXT(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
96
97 GLAPI void APIENTRY glTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
98
99 GLAPI void APIENTRY glCopyTexSubImage3DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
100
101 #endif /* GL_EXT_texture3D */
102
103
104
105 /*
106 * 7. GL_SGI_texture_filter4
107 */
108 #ifndef GL_SGI_texture_filter4
109 #define GL_SGI_texture_filter4 1
110
111 #define GL_FILTER4_SGIS ?
112 #define GL_TEXTURE_FILTER4_SIZE_SGIS ?
113
114 GLAPI void APIENTRY glGetTexFilterFuncSGIS(GLenum target, GLenum filter, GLfloat *weights);
115
116 GLAPI void APIENTRY glTexFilterFuncSGIS(GLenum target, GLenum filter, GLsizei n, const GLfloat *weights);
117
118 #endif /* GL_SGI_texture_filter4 */
119
120
121
122 /*
123 * 9. GL_EXT_subtexture
124 */
125 #ifndef GL_EXT_subtexture
126 #define GL_EXT_subtexture 1
127
128 GLAPI void APIENTRY glCopyTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
129
130 GLAPI void APIENTRY glTexSubImage1DEXT(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
131
132 GLAPI void APIENTRY glTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
133
134 #endif /* GL_EXT_subtexture */
135
136
137
138 /*
139 * 10. GL_EXT_copy_texture
140 */
141 #ifndef GL_EXT_copy_texture
142 #define GL_EXT_copy_texture 1
143
144 GLAPI void APIENTRY glCopyTexImage1DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
145
146 GLAPI void APIENTRY glCopyTexImage2DEXT(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
147
148 GLAPI void APIENTRY glCopyTexSubImage2DEXT(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
149
150 #endif /* GL_EXT_copy_texture */
151
152
153
154 /*
155 * 11. GL_EXT_histogram
156 */
157 #ifndef GL_EXT_histogram
158 #define GL_EXT_histogram 1
159
160
161 #define GL_HISTOGRAM_EXT 0x8024
162 #define GL_PROXY_HISTOGRAM_EXT 0x8025
163 #define GL_HISTOGRAM_WIDTH_EXT 0x8026
164 #define GL_HISTOGRAM_FORMAT_EXT 0x8027
165 #define GL_HISTOGRAM_RED_SIZE_EXT 0x8028
166 #define GL_HISTOGRAM_GREEN_SIZE_EXT 0x8029
167 #define GL_HISTOGRAM_BLUE_SIZE_EXT 0x802A
168 #define GL_HISTOGRAM_ALPHA_SIZE_EXT 0x802B
169 #define GL_HISTOGRAM_LUMINANCE_SIZE_EXT 0x802C
170 #define GL_HISTOGRAM_SINK_EXT 0x802D
171
172 GLAPI void APIENTRY glGetHistogramEXT(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
173
174 GLAPI void APIENTRY glGetHistogramParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
175
176 GLAPI void APIENTRY glGetHistogramParameterivEXT(GLenum target, GLenum pname, GLint *params);
177
178 GLAPI void APIENTRY glGetMinmaxEXT(GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values);
179
180 GLAPI void APIENTRY glGetMinmaxParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
181
182 GLAPI void APIENTRY glGetMinmaxParameterivEXT(GLenum target, GLenum pname, GLint *params);
183
184 GLAPI void APIENTRY glHistogramEXT(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
185
186 GLAPI void APIENTRY glMinmaxEXT(GLenum target, GLenum internalformat, GLboolean sink);
187
188 GLAPI void APIENTRY glResetHistogramEXT(GLenum target);
189
190 GLAPI void APIENTRY glResetMinmaxEXT(GLenum target);
191
192 #endif /* GL_EXT_histogram */
193
194
195
196 /*
197 * 12. GL_EXT_convolution
198 */
199 #ifndef GL_EXT_convolution
200 #define GL_EXT_convolution 1
201
202 #define GL_CONVOLUTION_1D_EXT 0x8010
203 #define GL_CONVOLUTION_2D_EXT 0x8011
204 #define GL_SEPARABLE_2D_EXT 0x8012
205 #define GL_CONVOLUTION_BORDER_MODE_EXT 0x8013
206 #define GL_CONVOLUTION_FILTER_SCALE_EXT 0x8014
207 #define GL_CONVOLUTION_FILTER_BIAS_EXT 0x8015
208 #define GL_REDUCE_EXT 0x8016
209 #define GL_CONVOLUTION_FORMAT_EXT 0x8017
210 #define GL_CONVOLUTION_WIDTH_EXT 0x8018
211 #define GL_CONVOLUTION_HEIGHT_EXT 0x8019
212 #define GL_MAX_CONVOLUTION_WIDTH_EXT 0x801A
213 #define GL_MAX_CONVOLUTION_HEIGHT_EXT 0x801B
214 #define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
215 #define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
216 #define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
217 #define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
218 #define GL_POST_CONVOLUTION_RED_BIAS_EXT 0x8020
219 #define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
220 #define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
221 #define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
222
223 GLAPI void APIENTRY glConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
224
225 GLAPI void APIENTRY glConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
226
227 GLAPI void APIENTRY glConvolutionParameterfEXT(GLenum target, GLenum pname, GLfloat params);
228
229 GLAPI void APIENTRY glConvolutionParameterfvEXT(GLenum target, GLenum pname, const GLfloat *params);
230
231 GLAPI void APIENTRY glConvolutionParameteriEXT(GLenum target, GLenum pname, GLint params);
232
233 GLAPI void APIENTRY glConvolutionParameterivEXT(GLenum target, GLenum pname, const GLint *params);
234
235 GLAPI void APIENTRY glCopyConvolutionFilter1DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
236
237 GLAPI void APIENTRY glCopyConvolutionFilter2DEXT(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
238
239 GLAPI void APIENTRY glGetConvolutionFilterEXT(GLenum target, GLenum format, GLenum type, GLvoid *image);
240
241 GLAPI void APIENTRY glGetConvolutionParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
242
243 GLAPI void APIENTRY glGetConvolutionParameterivEXT(GLenum target, GLenum pname, GLint *params);
244
245 GLAPI void APIENTRY glGetSeparableFilterEXT(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
246
247 GLAPI void APIENTRY glSeparableFilter2DEXT(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
248
249 #endif /* GL_EXT_convolution */
250
251
252
253 /*
254 * 13. GL_SGI_color_matrix
255 */
256 #ifndef GL_SGI_color_matrix
257 #define GL_SGI_color_matrix 1
258
259 #define GL_COLOR_MATRIX_SGI 0x80B1
260 #define GL_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B2
261 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
262 #define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
263 #define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
264 #define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
265 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
266 #define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
267 #define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
268 #define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
269 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
270
271 #endif /* GL_SGI_color_matrix */
272
273
274
275 /*
276 * 14. GL_SGI_color_table
277 */
278 #ifndef GL_SGI_color_table
279 #define GL_SGI_color_table 1
280
281 #define COLOR_TABLE_SGI 0x80D0
282 #define POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
283 #define POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
284 #define PROXY_COLOR_TABLE_SGI 0x80D3
285 #define PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
286 #define PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
287 #define COLOR_TABLE_SCALE_SGI 0x80D6
288 #define COLOR_TABLE_BIAS_SGI 0x80D7
289 #define COLOR_TABLE_FORMAT_SGI 0x80D8
290 #define COLOR_TABLE_WIDTH_SGI 0x80D9
291 #define COLOR_TABLE_RED_SIZE_SGI 0x80DA
292 #define COLOR_TABLE_GREEN_SIZE_SGI 0x80DB
293 #define COLOR_TABLE_BLUE_SIZE_SGI 0x80DC
294 #define COLOR_TABLE_ALPHA_SIZE_SGI 0x80DD
295 #define COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
296 #define COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
297
298 GLAPI void APIENTRY glColorTableParameterfvSGI(GLenum target, GLenum pname, const GLfloat *params);
299
300 GLAPI void APIENTRY glColorTableParameterivSGI(GLenum target, GLenum pname, const GLint *params);
301
302 GLAPI void APIENTRY glColorTableSGI(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
303
304 GLAPI void APIENTRY glCopyColorTableSGI(GLenum target, GLenum internalFormat, GLint x, GLint y, GLsizei width);
305
306 GLAPI void APIENTRY glGetColorTableParameterfvSGI(GLenum target, GLenum pname, GLfloat *params);
307
308 GLAPI void APIENTRY glGetColorTableParameterivSGI(GLenum target, GLenum pname, GLint *params);
309
310 GLAPI void APIENTRY glGetColorTableSGI(GLenum target, GLenum format, GLenum type, GLvoid *table);
311
312 #endif /* GL_SGI_color_table */
313
314
315
316 /*
317 * ?. GL_SGIX_pixel_texture
318 */
319 #ifndef GL_SGIX_pixel_texture
320 #define GL_SGIX_pixel_texture 1
321
322 GLAPI void APIENTRY glPixelTexGenSGIX(GLenum mode);
323
324 #endif /* GL_SGIX_pixel_texture */
325
326
327
328 /*
329 * 15. GL_SGIS_pixel_texture
330 */
331 #ifndef GL_SGIS_pixel_texture
332 #define GL_SGIS_pixel_texture 1
333
334 #define GL_PIXEL_TEXTURE_SGIS ?
335 #define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS ?
336 #define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS ?
337 #define GL_PIXEL_GROUP_COLOR_SGIS ?
338
339 GLAPI void APIENTRY glPixelTexGenParameterfSGIS(GLenum target, GLfloat value);
340
341 GLAPI void APIENTRY glPixelTexGenParameterfvSGIS(GLenum target, const GLfloat *value);
342
343 GLAPI void APIENTRY glPixelTexGenParameteriSGIS(GLenum target, GLint value);
344
345 GLAPI void APIENTRY glPixelTexGenParameterivSGIS(GLenum target, const GLint *value);
346
347 GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS(GLenum target, GLfloat *value);
348
349 GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS(GLenum target, GLint *value);
350
351 #endif /* GL_SGIS_pixel_texture */
352
353
354
355 /*
356 * 16. GL_SGIS_texture4D
357 */
358 #ifndef GL_SGIS_texture4D
359 #define GL_SGIS_texture4D 1
360
361 #define GL_PACK_SKIP_VOLUMES_SGIS ?
362 #define GL_PACK_IMAGE_DEPTH_SGIS ?
363 #define GL_UNPACK_SKIP_VOLUMES_SGIS ?
364 #define GL_UNPACK_IMAGE_DEPTH_SGIS ?
365 #define GL_TEXTURE_4D_SGIS ?
366 #define GL_PROXY_TEXTURE_4D_SGIS ?
367 #define GL_TEXTURE_4DSIZE_SGIS ?
368 #define GL_TEXTURE_WRAP_Q_SGIS ?
369 #define GL_MAX_4D_TEXTURE_SIZE_SGIS ?
370 #define GL_TEXTURE_4D_BINDING_SGIS ?
371
372 GLAPI void APIENTRY glTexImage4DSGIS(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLint border, GLenum format, GLenum type, const void *pixels);
373
374 GLAPI void APIENTRY glTexSubImage4DSGIS(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei extent, GLenum format, GLenum type, const void *pixels);
375
376 #endif /* GL_SGIS_texture4D */
377
378
379
380 /*
381 * 20. GL_EXT_texture_object
382 */
383 #ifndef GL_EXT_texture_object
384 #define GL_EXT_texture_object 1
385
386 #define GL_TEXTURE_PRIORITY_EXT 0x8066
387 #define GL_TEXTURE_RESIDENT_EXT 0x8067
388 #define GL_TEXTURE_1D_BINDING_EXT 0x8068
389 #define GL_TEXTURE_2D_BINDING_EXT 0x8069
390
391 GLAPI void APIENTRY glGenTexturesEXT(GLsizei n, GLuint *textures);
392
393 GLAPI void APIENTRY glDeleteTexturesEXT(GLsizei n, const GLuint *textures);
394
395 GLAPI void APIENTRY glBindTextureEXT(GLenum target, GLuint texture);
396
397 GLAPI void APIENTRY glPrioritizeTexturesEXT(GLsizei n, const GLuint *textures, const GLclampf *priorities);
398
399 GLAPI GLboolean APIENTRY glAreTexturesResidentEXT(GLsizei n, const GLuint *textures, GLboolean *residences);
400
401 GLAPI GLboolean APIENTRY glIsTextureEXT(GLuint texture);
402
403 #endif /* GL_EXT_texture_object */
404
405
406
407 /*
408 * 21. GL_SGIS_detail_texture
409 */
410 #ifndef GL_SGIS_detail_texture
411 #define GL_SGIS_detail_texture
412
413 #define GL_DETAIL_TEXTURE_2D_SGIS 0x8095
414 #define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
415 #define GL_LINEAR_DETAIL_SGIS 0x8097
416 #define GL_LINEAR_DETAIL_ALPHA_SGIS 0x8098
417 #define GL_LINEAR_DETAIL_COLOR_SGIS 0x8099
418 #define GL_DETAIL_TEXTURE_LEVEL_SGIS 0x809A
419 #define GL_DETAIL_TEXTURE_MODE_SGIS 0x809B
420
421 GLAPI void APIENTRY glDetailTexFuncSGIS(GLenum target, GLsizei n, const GLfloat *points);
422
423 GLAPI void APIENTRY glGetDetailTexFuncSGIS(GLenum target, GLfloat *points);
424
425 #endif /* GL_SGIS_detail_texture */
426
427
428
429 /*
430 * 22. GL_SGIS_sharpen_texture
431 */
432 #ifndef GL_SGIS_sharpen_texture
433 #define GL_SGIS_sharpen_texture 1
434
435 #define GL_LINEAR_SHARPEN_SGIS 0x80AD
436 #define GL_LINEAR_SHARPEN_ALPHA_SGIS 0x80AE
437 #define GL_LINEAR_SHARPEN_COLOR_SGIS 0x80AF
438 #define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
439
440 GLAPI void APIENTRY glGetSharpenTexFuncSGIS(GLenum target, GLfloat *points);
441
442 GLAPI void APIENTRY glSharpenTexFuncSGIS(GLenum target, GLsizei n, const GLfloat *points);
443
444 #endif /* GL_SGIS_sharpen_texture */
445
446
447
448 /*
449 * 23. GL_EXT_packed_pixels
450 */
451 #ifndef GL_EXT_packed_pixels
452 #define GL_EXT_packed_pixels 1
453
454 #define GL_UNSIGNED_BYTE_3_3_2_EXT 0x8032
455 #define GL_UNSIGNED_SHORT_4_4_4_4_EXT 0x8033
456 #define GL_UNSIGNED_SHORT_5_5_5_1_EXT 0x8034
457 #define GL_UNSIGNED_INT_8_8_8_8_EXT 0x8035
458 #define GL_UNSIGNED_INT_10_10_10_2_EXT 0x8036
459
460 #endif /* GL_EXT_packed_pixels */
461
462
463
464 /*
465 * 25. GL_SGIS_multisample
466 */
467
468 #ifndef GL_SGIS_multisample
469 #define GL_SGIS_multisample 1
470
471 #define GL_MULTISAMPLE_SGIS 0x809D
472 #define GL_SAMPLE_ALPHA_TO_MASK_SGIS 0x809E
473 #define GL_SAMPLE_ALPHA_TO_ONE_SGIS 0x809F
474 #define GL_SAMPLE_MASK_SGIS 0x80A0
475 #define GL_MULTISAMPLE_BIT_EXT 0x20000000
476 #define GL_1PASS_SGIS 0x80A1
477 #define GL_2PASS_0_SGIS 0x80A2
478 #define GL_2PASS_1_SGIS 0x80A3
479 #define GL_4PASS_0_SGIS 0x80A4
480 #define GL_4PASS_1_SGIS 0x80A5
481 #define GL_4PASS_2_SGIS 0x80A6
482 #define GL_4PASS_3_SGIS 0x80A7
483 #define GL_SAMPLE_BUFFERS_SGIS 0x80A8
484 #define GL_SAMPLES_SGIS 0x80A9
485 #define GL_SAMPLE_MASK_VALUE_SGIS 0x80AA
486 #define GL_SAMPLE_MASK_INVERT_SGIS 0x80AB
487 #define GL_SAMPLE_PATTERN_SGIS 0x80AC
488
489 GLAPI void APIENTRY glSampleMaskSGIS(GLclampf value, GLboolean invert);
490
491 GLAPI void APIENTRY glSamplePatternSGIS(GLenum pattern);
492
493 #endif /* GL_SGIS_multisample */
494
495
496
497 /*
498 * 27. GL_EXT_rescale_normal
499 */
500 #ifndef GL_EXT_rescale_normal
501 #define GL_EXT_rescale_normal 1
502
503 #define GL_RESCALE_NORMAL_EXT 0x803A
504
505 #endif /* GL_EXT_rescale_normal */
506
507
508
509 /*
510 * 30. GL_EXT_vertex_array
511 */
512 #ifndef GL_EXT_vertex_array
513 #define GL_EXT_vertex_array 1
514
515 #define GL_VERTEX_ARRAY_EXT 0x8074
516 #define GL_NORMAL_ARRAY_EXT 0x8075
517 #define GL_COLOR_ARRAY_EXT 0x8076
518 #define GL_INDEX_ARRAY_EXT 0x8077
519 #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
520 #define GL_EDGE_FLAG_ARRAY_EXT 0x8079
521 #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
522 #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
523 #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
524 #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
525 #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
526 #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
527 #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
528 #define GL_COLOR_ARRAY_SIZE_EXT 0x8081
529 #define GL_COLOR_ARRAY_TYPE_EXT 0x8082
530 #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
531 #define GL_COLOR_ARRAY_COUNT_EXT 0x8084
532 #define GL_INDEX_ARRAY_TYPE_EXT 0x8085
533 #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
534 #define GL_INDEX_ARRAY_COUNT_EXT 0x8087
535 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
536 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
537 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
538 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
539 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
540 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
541 #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
542 #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
543 #define GL_COLOR_ARRAY_POINTER_EXT 0x8090
544 #define GL_INDEX_ARRAY_POINTER_EXT 0x8091
545 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
546 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
547
548 GLAPI void APIENTRY glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
549
550 GLAPI void APIENTRY glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
551
552 GLAPI void APIENTRY glColorPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
553
554 GLAPI void APIENTRY glIndexPointerEXT(GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
555
556 GLAPI void APIENTRY glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr);
557
558 GLAPI void APIENTRY glEdgeFlagPointerEXT(GLsizei stride, GLsizei count, const GLboolean *ptr);
559
560 GLAPI void APIENTRY glGetPointervEXT(GLenum pname, void **params);
561
562 GLAPI void APIENTRY glArrayElementEXT(GLint i);
563
564 GLAPI void APIENTRY glDrawArraysEXT(GLenum mode, GLint first, GLsizei count);
565
566 typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i);
567 typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
568 typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
569 typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
570 typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
571 typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
572 typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
573 typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
574 typedef void (APIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
575
576 #endif /* GL_EXT_vertex_array */
577
578
579
580 /*
581 * 35. GL_SGIS_texture_edge_clamp
582 */
583 #ifndef GL_SGIS_texture_edge_clamp
584 #define GL_SGIS_texture_edge_clamp 1
585
586 #define GL_CLAMP_TO_EDGE_SGIS 0x812F
587
588 #endif /* GL_SGIS_texture_edge_clamp */
589
590
591
592 /*
593 * 37. GL_EXT_blend_minmax
594 */
595 #ifndef GL_EXT_blend_minmax
596 #define GL_EXT_blend_minmax 1
597
598 #define GL_FUNC_ADD_EXT 0x8006
599 #define GL_MIN_EXT 0x8007
600 #define GL_MAX_EXT 0x8008
601 #define GL_BLEND_EQUATION_EXT 0x8009
602
603 GLAPI void APIENTRY glBlendEquationEXT(GLenum mode);
604
605 #endif /* GL_EXT_blend_minmax */
606
607
608
609 /*
610 * 38. GL_EXT_blend_subtract (requires GL_EXT_blend_max)
611 */
612 #ifndef GL_EXT_blend_subtract
613 #define GL_EXT_blend_subtract 1
614
615 #define GL_FUNC_SUBTRACT_EXT 0x800A
616 #define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
617
618 #endif /* GL_EXT_blend_subtract */
619
620
621
622 /*
623 * 39. GL_EXT_blend_logic_op
624 */
625 #ifndef GL_EXT_blend_logic_op
626 #define GL_EXT_blend_logic_op 1
627
628 /* No new tokens or functions */
629
630 #endif /* GL_EXT_blend_logic_op */
631
632
633
634 /*
635 * 52. GL_SGIX_sprite
636 */
637 #ifndef GL_SGIX_sprite
638 #define GL_SGIX_sprite 1
639
640 #define GL_SPRITE_SGIX 0x8148
641 #define GL_SPRITE_MODE_SGIX 0x8149
642 #define GL_SPRITE_AXIS_SGIX 0x814A
643 #define GL_SPRITE_TRANSLATION_SGIX 0x814B
644 #define GL_SPRITE_AXIAL_SGIX 0x814C
645 #define GL_SPRITE_OBJECT_ALIGNED_SGIX 0x814D
646 #define GL_SPRITE_EYE_ALIGNED_SGIX 0x814E
647
648 GLAPI void APIENTRY glSpriteParameterfSGIX(GLenum pname, GLfloat param);
649
650 GLAPI void APIENTRY glSpriteParameterfvSGIX(GLenum pname, const GLfloat *param);
651
652 GLAPI void APIENTRY glSpriteParameteriSGIX(GLenum pname, GLint param);
653
654 GLAPI void APIENTRY glSpriteParameterivSGIX(GLenum pname, const GLint *param);
655
656 #endif /* GL_SGIX_sprite */
657
658
659
660 /*
661 * 54. GL_EXT_point_parameters
662 */
663 #ifndef GL_EXT_point_parameters
664 #define GL_EXT_point_parameters 1
665
666 #define GL_POINT_SIZE_MIN_EXT 0x8126
667 #define GL_POINT_SIZE_MAX_EXT 0x8127
668 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
669 #define GL_DISTANCE_ATTENUATION_EXT 0x8129
670
671 GLAPI void APIENTRY glPointParameterfEXT(GLenum pname, GLfloat param);
672 GLAPI void APIENTRY glPointParameterfvEXT(GLenum pname, const GLfloat *params);
673
674 typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
675 typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
676
677 #endif /* GL_EXT_point_parameters */
678
679
680
681 /*
682 * 55. GL_SGIX_instruments
683 */
684 #ifndef GL_SGIX_instruments
685 #define GL_SGIX_instruments 1
686
687 #define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
688 #define GL_INSTRUMENT_MEASUREMENTS_SGIX 0x8181
689
690 GLAPI GLint APIENTRY glGetInstrumentsSGIX(void);
691
692 GLAPI void APIENTRY glInstrumentsBufferSGIX(GLsizei size, GLint *buf);
693
694 GLAPI GLint APIENTRY glPollInstrumentsSGIX(GLint *markerp);
695
696 GLAPI void APIENTRY glReadInstrumentsSGIX(GLint marker);
697
698 GLAPI void APIENTRY glStartInstrumentsSGIX(void);
699
700 GLAPI void APIENTRY glStopInstrumentsSGIX(GLint marker);
701
702 #endif
703
704
705 /*
706 * 57. GL_SGIX_framezoom
707 */
708 #ifndef GL_SGIX_framezoom
709 #define GL_SGIX_framezoom 1
710
711 #define GL_FRAMEZOOM_SGIX 0x818B
712 #define GL_FRAMEZOOM_FACTOR_SGIX 0x818C
713 #define GL_MAX_FRAMEZOOM_FACTOR_SGIX 0x818D
714
715 GLAPI void APIENTRY glFrameZoomSGIX(GLint factor);
716
717 #endif /* GL_SGIX_framezoom */
718
719
720
721 /*
722 * 58. GL_SGIX_tag_sample_buffer
723 */
724 #ifndef GL_SGIX_tag_sample_buffer
725 #define GL_SGIX_tag_sample_buffer 1
726
727 GLAPI void APIENTRY glTagSampleBufferSGIX(void);
728
729 #endif /* GL_SGIX_tag_sample_buffer */
730
731
732
733 /*
734 * 60. GL_SGIX_reference_plane
735 */
736 #ifndef GL_SGIX_reference_plane
737 #define GL_SGIX_reference_plane 1
738
739 #define GL_REFERENCE_PLANE_SGIX 0x817D
740 #define GL_REFERENCE_PLANE_EQUATION_SGIX 0x817E
741
742 GLAPI void APIENTRY glReferencePlaneSGIX(const GLdouble *plane);
743
744 #endif /* GL_SGIX_reference_plane */
745
746
747
748 /*
749 * 61. GL_SGIX_flush_raster
750 */
751 #ifndef GL_SGIX_flush_raster
752 #define GL_SGIX_flush_raster 1
753
754 GLAPI void APIENTRY glFlushRasterSGIX(void);
755
756 #endif /* GL_SGIX_flush_raster */
757
758
759
760 /*
761 * 74. GL_EXT_color_subtable
762 */
763
764 #ifndef GL_EXT_color_subtable
765 #define GL_EXT_color_subtable 1
766
767 GLAPI void APIENTRY glColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
768
769 GLAPI void APIENTRY glCopyColorSubTableEXT(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
770
771 #endif
772
773
774 /*
775 * 77. GL_PGI_misc_hints
776 */
777 #ifndef GL_PGI_misc_hints
778 #define GL_PGI_misc_hints 1
779
780 #define GL_PREFER_DOUBLEBUFFER_HINT_PGI 107000
781 #define GL_STRICT_DEPTHFUNC_HINT_PGI 107030
782 #define GL_STRICT_LIGHTING_HINT_PGI 107031
783 #define GL_STRICT_SCISSOR_HINT_PGI 107032
784 #define GL_FULL_STIPPLE_HINT_PGI 107033
785 #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 107011
786 #define GL_NATIVE_GRAPHICS_END_HINT_PGI 107012
787 #define GL_CONSERVE_MEMORY_HINT_PGI 107005
788 #define GL_RECLAIM_MEMORY_HINT_PGI 107006
789 #define GL_ALWAYS_FAST_HINT_PGI 107020
790 #define GL_ALWAYS_SOFT_HINT_PGI 107021
791 #define GL_ALLOW_DRAW_OBJ_HINT_PGI 107022
792 #define GL_ALLOW_DRAW_WIN_HINT_PGI 107023
793 #define GL_ALLOW_DRAW_FRG_HINT_PGI 107024
794 #define GL_ALLOW_DRAW_SPN_HINT_PGI 107024
795 #define GL_ALLOW_DRAW_MEM_HINT_PGI 107025
796 #define GL_CLIP_NEAR_HINT_PGI 107040
797 #define GL_CLIP_FAR_HINT_PGI 107041
798 #define GL_WIDE_LINE_HINT_PGI 107042
799 #define GL_BACK_NORMALS_HINT_PGI 107043
800 #define GL_NATIVE_GRAPHICS_HANDLE_PGI 107010
801
802 GLAPI void APIENTRY glHintPGI(GLenum target, GLint mode);
803
804 #endif /* GL_PGI_misc_hints */
805
806
807
808 /*
809 * 78. GL_EXT_paletted_texture
810 */
811 #ifndef GL_EXT_paletted_texture
812 #define GL_EXT_paletted_texture 1
813
814 #define GL_TABLE_TOO_LARGE_EXT 0x8031
815 #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
816 #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
817 #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
818 #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
819 #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
820 #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
821 #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
822 #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
823 #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
824 #define GL_COLOR_INDEX1_EXT 0x80E2
825 #define GL_COLOR_INDEX2_EXT 0x80E3
826 #define GL_COLOR_INDEX4_EXT 0x80E4
827 #define GL_COLOR_INDEX8_EXT 0x80E5
828 #define GL_COLOR_INDEX12_EXT 0x80E6
829 #define GL_COLOR_INDEX16_EXT 0x80E7
830
831 GLAPI void APIENTRY glColorTableEXT(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
832
833 GLAPI void APIENTRY glColorSubTableEXT(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
834
835 GLAPI void APIENTRY glGetColorTableEXT(GLenum target, GLenum format, GLenum type, GLvoid *table);
836
837 GLAPI void APIENTRY glGetColorTableParameterfvEXT(GLenum target, GLenum pname, GLfloat *params);
838
839 GLAPI void APIENTRY glGetColorTableParameterivEXT(GLenum target, GLenum pname, GLint *params);
840
841 #endif /* GL_EXT_paletted_texture */
842
843
844
845 /*
846 * 79. GL_EXT_clip_volume_hint
847 */
848 #ifndef GL_EXT_clip_volume_hint
849 #define GL_EXT_clip_volume_hint 1
850
851 #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F
852
853 #endif /* GL_EXT_clip_volume_hint */
854
855
856
857 /*
858 * 80. GL_SGIX_list_priority
859 */
860 #ifndef GL_SGIX_list_priority
861 #define GL_SGIX_list_priority 1
862
863 #define GL_LIST_PRIORITY_SGIX 0x8182
864
865 GLAPI void APIENTRY glGetListParameterfvSGIX(GLuint list, GLenum name, GLfloat *param);
866
867 GLAPI void APIENTRY glGetListParameterivSGIX(GLuint list, GLenum name, GLint *param);
868
869 GLAPI void APIENTRY glListParameterfSGIX(GLuint list, GLenum name, GLfloat param);
870
871 GLAPI void APIENTRY glListParameterfvSGIX(GLuint list, GLenum name, const GLfloat *param);
872
873 GLAPI void APIENTRY glListParameteriSGIX(GLuint list, GLenum name, GLint param);
874
875 GLAPI void APIENTRY glListParameterivSGIX(GLuint list, GLenum name, const GLint *param);
876
877 #endif /* GL_SGIX_list_priority */
878
879
880
881 /*
882 * 94. GL_EXT_index_material
883 */
884 #ifndef GL_EXT_index_material
885 #define GL_EXT_index_material 1
886
887 #define GL_INDEX_MATERIAL_EXT ?
888 #define GL_INDEX_MATERIAL_PARAMETER_EXT ?
889 #define GL_INDEX_MATERIAL_FACE_EXT ?
890
891 GLAPI void APIENTRY glIndexMaterialEXT(GLenum face, GLenum mode);
892
893 #endif /* GL_EXT_index_material */
894
895
896
897 /*
898 * 95. GL_EXT_index_func
899 */
900 #ifndef GL_EXT_index_func
901 #define GL_EXT_index_func 1
902
903 #define GL_INDEX_TEST_EXT ?
904 #define GL_INDEX_TEST_FUNC_EXT ?
905 #define GL_INDEX_TEST_REF_EXT ?
906
907 GLAPI void APIENTRY glIndexFuncEXT(GLenum func, GLfloat ref);
908
909 #endif /* GL_EXT_index_func */
910
911
912
913 /*
914 * 97. GL_EXT_compiled_vertex_array
915 */
916 #ifndef GL_EXT_compiled_vertex_array
917 #define GL_EXT_compiled_vertex_array 1
918
919 #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8
920 #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9
921
922 GLAPI void APIENTRY glLockArraysEXT(GLint first, GLsizei count);
923 GLAPI void APIENTRY glUnlockArraysEXT(void);
924
925 typedef void (APIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
926 typedef void (APIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void);
927
928 #endif /* GL_EXT_compiled_vertex_array */
929
930
931
932 /*
933 * 98. GL_EXT_cull_vertex
934 */
935 #ifndef GL_EXT_cull_vertex
936 #define GL_EXT_cull_vertex 1
937
938 #define GL_CULL_VERTEX_EXT 0x81AA
939 #define GL_CULL_VERTEX_EYE_POSITION_EXT 0x81AB
940 #define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
941
942 GLAPI void APIENTRY glCullParameterdvEXT(GLenum pname, const GLdouble *params);
943 GLAPI void APIENTRY glCullParameterfvEXT(GLenum pname, const GLfloat *params);
944
945 typedef void (APIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params);
946 typedef void (APIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params);
947
948 #endif /* GL_EXT_cull_vertex */
949
950
951
952 /*
953 * 102. GL_SGIX_fragment_lighting
954 */
955 #ifndef GL_SGIX_fragment_lighting
956 #define GL_SGIX_fragment_lighting 1
957
958 GLAPI void APIENTRY glFragmentColorMaterialSGIX(GLenum face, GLenum mode);
959
960 GLAPI void APIENTRY glFragmentLightfSGIX(GLenum light, GLenum pname, GLfloat param);
961
962 GLAPI void APIENTRY glFragmentLightfvSGIX(GLenum light, GLenum pname, const GLfloat * params);
963
964 GLAPI void APIENTRY glFragmentLightiSGIX(GLenum light, GLenum pname, GLint param);
965
966 GLAPI void APIENTRY glFragmentLightivSGIX(GLenum light, GLenum pname, const GLint * params);
967
968 GLAPI void APIENTRY glFragmentLightModelfSGIX(GLenum pname, GLfloat param);
969
970 GLAPI void APIENTRY glFragmentLightModelfvSGIX(GLenum pname, const GLfloat * params);
971
972 GLAPI void APIENTRY glFragmentLightModeliSGIX(GLenum pname, GLint param);
973
974 GLAPI void APIENTRY glFragmentLightModelivSGIX(GLenum pname, const GLint * params);
975
976 GLAPI void APIENTRY glFragmentMaterialfSGIX(GLenum face, GLenum pname, GLfloat param);
977
978 GLAPI void APIENTRY glFragmentMaterialfvSGIX(GLenum face, GLenum pname, const GLfloat * params);
979
980 GLAPI void APIENTRY glFragmentMaterialiSGIX(GLenum face, GLenum pname, GLint param);
981
982 GLAPI void APIENTRY glFragmentMaterialivSGIX(GLenum face, GLenum pname, const GLint * params);
983
984 GLAPI void APIENTRY glGetFragmentLightfvSGIX(GLenum light, GLenum pname, GLfloat * params);
985
986 GLAPI void APIENTRY glGetFragmentLightivSGIX(GLenum light, GLenum pname, GLint * params);
987
988 GLAPI void APIENTRY glGetFragmentMaterialfvSGIX(GLenum face, GLenum pname, GLfloat * params);
989
990 GLAPI void APIENTRY glGetFragmentMaterialivSGIX(GLenum face, GLenum pname, GLint * params);
991
992 GLAPI void APIENTRY glLightEnviSGIX(GLenum pname, GLint param);
993
994 #endif /* GL_SGIX_fragment_lighting */
995
996
997
998 /*
999 * 129. GL_EXT_bgra
1000 */
1001 #ifndef GL_EXT_bgra
1002 #define GL_EXT_bgra 1
1003
1004 #define GL_BGR_EXT 0x80E0
1005 #define GL_BGRA_EXT 0x80E1
1006
1007 #endif /* GL_EXT_bgra */
1008
1009
1010
1011 /*
1012 * 141. GL_EXT_shared_texture_palette (req's GL_EXT_paletted_texture)
1013 */
1014 #ifndef GL_EXT_shared_texture_palette
1015 #define GL_EXT_shared_texture_palette 1
1016
1017 #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
1018
1019 #endif /* GL_EXT_shared_texture_palette */
1020
1021
1022
1023 /*
1024 * 149. GL_EXT_fog_coord
1025 */
1026 #ifndef GL_EXT_fog_coord
1027 #define GL_EXT_fog_coord 1
1028
1029 #define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
1030 #define GL_FOG_COORDINATE_EXT 0x8451
1031 #define GL_FRAGMENT_DEPTH_EXT 0x8452
1032 #define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
1033 #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
1034 #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
1035 #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
1036 #define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
1037
1038 GLAPI void APIENTRY glFogCoordfEXT(GLfloat coord);
1039
1040 GLAPI void APIENTRY glFogCoordfvEXT(const GLfloat * coord);
1041
1042 GLAPI void APIENTRY glFogCoorddEXT(GLdouble coord);
1043
1044 GLAPI void APIENTRY glFogCoorddvEXT(const GLdouble * coord);
1045
1046 GLAPI void APIENTRY glFogCoordPointerEXT(GLenum type, GLsizei stride, const GLvoid * pointer);
1047
1048 #endif
1049
1050
1051
1052 /*
1053 * 158. GL_EXT_texture_env_combine
1054 */
1055 #ifndef GL_EXT_texture_env_combine
1056 #define GL_EXT_texture_env_combine 1
1057
1058 #define GL_COMBINE_EXT 0x8570
1059 #define GL_COMBINE_RGB_EXT 0x8571
1060 #define GL_COMBINE_ALPHA_EXT 0x8572
1061 #define GL_RGB_SCALE_EXT 0x8573
1062 #define GL_ADD_SIGNED_EXT 0x8574
1063 #define GL_INTERPOLATE_EXT 0x8575
1064 #define GL_CONSTANT_EXT 0x8576
1065 #define GL_PRIMARY_COLOR_EXT 0x8577
1066 #define GL_PREVIOUS_EXT 0x8578
1067 #define GL_SOURCE0_RGB_EXT 0x8580
1068 #define GL_SOURCE1_RGB_EXT 0x8581
1069 #define GL_SOURCE2_RGB_EXT 0x8582
1070 #define GL_SOURCE0_ALPHA_EXT 0x8588
1071 #define GL_SOURCE1_ALPHA_EXT 0x8589
1072 #define GL_SOURCE2_ALPHA_EXT 0x858A
1073 #define GL_OPERAND0_RGB_EXT 0x8590
1074 #define GL_OPERAND1_RGB_EXT 0x8591
1075 #define GL_OPERAND2_RGB_EXT 0x8592
1076 #define GL_OPERAND0_ALPHA_EXT 0x8598
1077 #define GL_OPERAND1_ALPHA_EXT 0x8599
1078 #define GL_OPERAND2_ALPHA_EXT 0x859A
1079
1080 #endif /* GL_EXT_texture_env_combine */
1081
1082
1083
1084 /*
1085 * 173. GL_EXT_blend_func_separate
1086 */
1087 #ifndef GL_EXT_blend_func_separate
1088 #define GL_EXT_blend_func_separate 1
1089
1090 #define GL_BLEND_DST_RGB_EXT 0x80C8
1091 #define GL_BLEND_SRC_RGB_EXT 0x80C9
1092 #define GL_BLEND_DST_ALPHA_EXT 0x80CA
1093 #define GL_BLEND_SRC_ALPHA_EXT 0x80CB
1094
1095 GLAPI void APIENTRY glBlendFuncSeparateEXT(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1096
1097 #endif /* GL_EXT_blend_func_separate */
1098
1099
1100
1101 /*
1102 * 173. GL_INGR_blend_func_separate
1103 */
1104 #ifndef GL_INGR_blend_func_separate
1105 #define GL_INGR_blend_func_separate 1
1106
1107 #define GL_BLEND_DST_RGB_INGR 0x80C8
1108 #define GL_BLEND_SRC_RGB_INGR 0x80C9
1109 #define GL_BLEND_DST_ALPHA_INGR 0x80CA
1110 #define GL_BLEND_SRC_ALPHA_INGR 0x80CB
1111
1112 GLAPI void APIENTRY glBlendFuncSeparateINGR(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1113
1114 #endif /* GL_INGR_blend_func_separate */
1115
1116
1117
1118 /*
1119 * 176. GL_EXT_stencil_wrap
1120 */
1121 #ifndef GL_EXT_stencil_wrap
1122 #define GL_EXT_stencil_wrap 1
1123
1124 #define GL_INCR_WRAP_EXT 0x8507
1125 #define GL_DECR_WRAP_EXT 0x8508
1126
1127 #endif /* GL_EXT_stencil_wrap */
1128
1129
1130
1131 /*
1132 * 179. GL_NV_texgen_reflection
1133 */
1134 #ifndef GL_NV_texgen_reflection
1135 #define GL_NV_texgen_reflection 1
1136
1137 #define GL_NORMAL_MAP_NV 0x8511
1138 #define GL_REFLECTION_MAP_NV 0x8512
1139
1140 #endif /* GL_NV_texgen_reflection */
1141
1142
1143
1144 /*
1145 * 185. GL_EXT_texture_env_add
1146 */
1147 #ifndef GL_EXT_texture_env_add
1148 #define GL_EXT_texture_env_add 1
1149
1150 /* No new tokens or functions */
1151
1152 #endif /* GL_EXT_texture_env_add */
1153
1154
1155
1156 /*
1157 * ??. GL_WIN_swap_hint
1158 */
1159 #ifndef GL_WIN_swap_hint
1160 #define GL_WIN_swap_hint 1
1161
1162 GLAPI void APIENTRY glAddSwapHintRectWIN(GLint x, GLint y, GLsizei width, GLsizei height);
1163
1164 typedef void (APIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
1165
1166 #endif /* GL_WIN_swap_hint */
1167
1168
1169
1170 /*
1171 * 188. GL_EXT_vertex_weighting
1172 */
1173 #ifndef GL_EXT_vertex_weighting
1174 #define GL_EXT_vertex_weighting 1
1175
1176 #define GL_VERTEX_WEIGHTING_EXT 0x8509
1177 #define GL_MODELVIEW0_EXT 0x1700
1178 #define GL_MODELVIEW1_EXT 0x850a
1179 #define GL_CURRENT_VERTEX_WEIGHT_EXT 0x850b
1180 #define GL_VERTEX_WEIGHT_ARRAY_EXT 0x850c
1181 #define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT 0x850d
1182 #define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT 0x850e
1183 #define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850f
1184 #define GL_MODELVIEW0_STACK_DEPTH_EXT 0x0BA3
1185 #define GL_MODELVIEW1_STACK_DEPTH_EXT 0x8502
1186 #define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
1187
1188 GLAPI void APIENTRY glVertexWeightfEXT(GLfloat weight);
1189
1190 GLAPI void APIENTRY glVertexWeightfvEXT(const GLfloat *weight);
1191
1192 GLAPI void APIENTRY glVertexWeightPointerEXT(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1193
1194 #endif
1195
1196
1197
1198 /*
1199 * 189. GL_NV_light_max_exponent
1200 */
1201 #ifndef GL_NV_light_max_exponent
1202 #define GL_NV_light_max_exponent 1
1203
1204 #define GL_MAX_SHININESS_NV 0x8507
1205 #define GL_MAX_SPOT_EXPONENT_NV 0x8508
1206
1207 #endif
1208
1209
1210
1211 /*
1212 * 190. GL_NV_vertex_array_range
1213 */
1214 #ifndef GL_NV_vertex_array_range
1215 #define GL_NV_vertex_array_range 1
1216
1217 /* TOKENS? */
1218
1219 GLAPI void APIENTRY glFlushVertexArrayRangeNV(void);
1220
1221 GLAPI void APIENTRY glVertexArrayRangeNV(GLsizei size, const GLvoid * pointer);
1222
1223 #endif
1224
1225
1226
1227 /*
1228 * 191. GL_NV_register_combiners
1229 */
1230 #ifndef GL_NV_register_combiners
1231 #define GL_NV_register_combiners 1
1232
1233 /* TOKENS? */
1234
1235 GLAPI void APIENTRY glCombinerParameterfvNV(GLenum pname, const GLfloat * params);
1236
1237 GLAPI void APIENTRY glCombinerParameterfNV(GLenum pname, GLfloat param);
1238
1239 GLAPI void APIENTRY glCombinerParameterivNV(GLenum pname, const GLint * params);
1240
1241 GLAPI void APIENTRY glCombinerParameteriNV(GLenum pname, GLint param);
1242
1243 GLAPI void APIENTRY glCombinerInputNV(GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
1244
1245 GLAPI void APIENTRY glCombinerOutputNV(GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum);
1246
1247 GLAPI void APIENTRY glFinalCombinerInputNV(GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage);
1248
1249 GLAPI void APIENTRY glGetCombinerInputParameterfvNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params);
1250
1251 GLAPI void APIENTRY glGetCombinerInputParameterivNV(GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params);
1252
1253 GLAPI void APIENTRY glGetCombinerOutputParameterfvNV(GLenum stage, GLenum portion, GLenum pname, GLfloat * params);
1254
1255 GLAPI void APIENTRY glGetCombinerOutputParameterivNV(GLenum stage, GLenum portion, GLenum pname, GLint * params);
1256
1257 GLAPI void APIENTRY glGetFinalCombinerInputParameterfvNV(GLenum variable, GLenum pname, GLfloat * params);
1258
1259 GLAPI void APIENTRY glGetFinalCombinerInputParameterivNV(GLenum variable, GLenum pname, GLint * params);
1260
1261 #endif /* GL_NV_register_combiners */
1262
1263
1264
1265 /*
1266 * 192. GL_NV_fog_distance
1267 */
1268 #ifndef GL_NV_fog_distance
1269 #define GL_NV_fog_distance 1
1270
1271 #define GL_FOG_DISTANCE_MODE_NV 0x855a
1272 #define GL_EYE_RADIAL_NV 0x855b
1273 #define GL_EYE_PLANE_ABSOLUTE_NV 0x855c
1274
1275 #endif /* GL_NV_fog_distance*/
1276
1277
1278
1279 /*
1280 * 194. GL_NV_blend_square
1281 */
1282 #ifndef GL_NV_blend_square
1283 #define GL_NV_blend_square 1
1284
1285 /* no tokens or functions */
1286
1287 #endif /* GL_NV_blend_square */
1288
1289
1290
1291 /*
1292 * 195. GL_NV_texture_env_combine4
1293 */
1294 #ifndef GL_NV_texture_env_combine4
1295 #define GL_NV_texture_env_combine4 1
1296
1297 #define GL_COMBINE4_NV 0x8503
1298 #define GL_SOURCE3_RGB_NV 0x8583
1299 #define GL_SOURCE3_ALPHA_NV 0x858B
1300 #define GL_OPERAND3_RGB_NV 0x8593
1301 #define GL_OPERAND3_ALPHA_NV 0x859B
1302
1303 #endif /* GL_NV_texture_env_combine4 */
1304
1305
1306
1307 /*
1308 * 196. GL_MESA_resize_bufffers
1309 */
1310 #ifndef GL_MESA_resize_buffers
1311 #define GL_MESA_resize_buffers 1
1312
1313 GLAPI void APIENTRY glResizeBuffersMESA(void);
1314
1315 #endif /* GL_MESA_resize_bufffers */
1316
1317
1318
1319 /*
1320 * 197. GL_MESA_window_pos
1321 */
1322 #ifndef GL_MESA_window_pos
1323 #define GL_MESA_window_pos 1
1324
1325 GLAPI void APIENTRY glWindowPos2iMESA(GLint x, GLint y);
1326 GLAPI void APIENTRY glWindowPos2sMESA(GLshort x, GLshort y);
1327 GLAPI void APIENTRY glWindowPos2fMESA(GLfloat x, GLfloat y);
1328 GLAPI void APIENTRY glWindowPos2dMESA(GLdouble x, GLdouble y);
1329 GLAPI void APIENTRY glWindowPos2ivMESA(const GLint *p);
1330 GLAPI void APIENTRY glWindowPos2svMESA(const GLshort *p);
1331 GLAPI void APIENTRY glWindowPos2fvMESA(const GLfloat *p);
1332 GLAPI void APIENTRY glWindowPos2dvMESA(const GLdouble *p);
1333 GLAPI void APIENTRY glWindowPos3iMESA(GLint x, GLint y, GLint z);
1334 GLAPI void APIENTRY glWindowPos3sMESA(GLshort x, GLshort y, GLshort z);
1335 GLAPI void APIENTRY glWindowPos3fMESA(GLfloat x, GLfloat y, GLfloat z);
1336 GLAPI void APIENTRY glWindowPos3dMESA(GLdouble x, GLdouble y, GLdouble z);
1337 GLAPI void APIENTRY glWindowPos3ivMESA(const GLint *p);
1338 GLAPI void APIENTRY glWindowPos3svMESA(const GLshort *p);
1339 GLAPI void APIENTRY glWindowPos3fvMESA(const GLfloat *p);
1340 GLAPI void APIENTRY glWindowPos3dvMESA(const GLdouble *p);
1341 GLAPI void APIENTRY glWindowPos4iMESA(GLint x, GLint y, GLint z, GLint w);
1342 GLAPI void APIENTRY glWindowPos4sMESA(GLshort x, GLshort y, GLshort z, GLshort w);
1343 GLAPI void APIENTRY glWindowPos4fMESA(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1344 GLAPI void APIENTRY glWindowPos4dMESA(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1345 GLAPI void APIENTRY glWindowPos4ivMESA(const GLint *p);
1346 GLAPI void APIENTRY glWindowPos4svMESA(const GLshort *p);
1347 GLAPI void APIENTRY glWindowPos4fvMESA(const GLfloat *p);
1348 GLAPI void APIENTRY glWindowPos4dvMESA(const GLdouble *p);
1349
1350 #endif /* GL_MESA_window_pos */
1351
1352
1353
1354 /*
1355 * ARB 0. GL_ARB_multitexture
1356 */
1357 #ifndef GL_ARB_multitexture
1358 #define GL_ARB_multitexture 1
1359
1360 #define GL_TEXTURE0_ARB 0x84C0
1361 #define GL_TEXTURE1_ARB 0x84C1
1362 #define GL_TEXTURE2_ARB 0x84C2
1363 #define GL_TEXTURE3_ARB 0x84C3
1364 #define GL_TEXTURE4_ARB 0x84C4
1365 #define GL_TEXTURE5_ARB 0x84C5
1366 #define GL_TEXTURE6_ARB 0x84C6
1367 #define GL_TEXTURE7_ARB 0x84C7
1368 #define GL_TEXTURE8_ARB 0x84C8
1369 #define GL_TEXTURE9_ARB 0x84C9
1370 #define GL_TEXTURE10_ARB 0x84CA
1371 #define GL_TEXTURE11_ARB 0x84CB
1372 #define GL_TEXTURE12_ARB 0x84CC
1373 #define GL_TEXTURE13_ARB 0x84CD
1374 #define GL_TEXTURE14_ARB 0x84CE
1375 #define GL_TEXTURE15_ARB 0x84CF
1376 #define GL_TEXTURE16_ARB 0x84D0
1377 #define GL_TEXTURE17_ARB 0x84D1
1378 #define GL_TEXTURE18_ARB 0x84D2
1379 #define GL_TEXTURE19_ARB 0x84D3
1380 #define GL_TEXTURE20_ARB 0x84D4
1381 #define GL_TEXTURE21_ARB 0x84D5
1382 #define GL_TEXTURE22_ARB 0x84D6
1383 #define GL_TEXTURE23_ARB 0x84D7
1384 #define GL_TEXTURE24_ARB 0x84D8
1385 #define GL_TEXTURE25_ARB 0x84D9
1386 #define GL_TEXTURE26_ARB 0x84DA
1387 #define GL_TEXTURE27_ARB 0x84DB
1388 #define GL_TEXTURE28_ARB 0x84DC
1389 #define GL_TEXTURE29_ARB 0x84DD
1390 #define GL_TEXTURE30_ARB 0x84DE
1391 #define GL_TEXTURE31_ARB 0x84DF
1392 #define GL_ACTIVE_TEXTURE_ARB 0x84E0
1393 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
1394 #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
1395
1396 GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
1397 GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
1398 GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
1399 GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
1400 GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
1401 GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
1402 GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
1403 GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
1404 GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
1405 GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
1406 GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
1407 GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
1408 GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
1409 GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
1410 GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
1411 GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
1412 GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
1413 GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
1414 GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
1415 GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
1416 GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
1417 GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
1418 GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
1419 GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
1420 GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
1421 GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
1422 GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1423 GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
1424 GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1425 GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
1426 GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
1427 GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
1428 GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1429 GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
1430
1431 #endif /* GL_ARB_multitexture */
1432
1433
1434
1435 /*
1436 * ARB 2. GL_ARB_tranpose_matrix
1437 */
1438 #ifndef GL_ARB_transpose_matrix
1439 #define GL_ARB_transpose_matrix 1
1440
1441 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
1442 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
1443 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5
1444 #define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6
1445
1446 GLAPI void GLAPIENTRY glLoadTransposeMatrixdARB( const GLdouble m[16] );
1447 GLAPI void GLAPIENTRY glLoadTransposeMatrixfARB( const GLfloat m[16] );
1448 GLAPI void GLAPIENTRY glMultTransposeMatrixdARB( const GLdouble m[16] );
1449 GLAPI void GLAPIENTRY glMultTransposeMatrixfARB( const GLfloat m[16] );
1450
1451 #endif /* GL_ARB_tranpose_matrix */
1452
1453
1454
1455 /*
1456 * ARB 4. GL_ARB_multisample
1457 */
1458 #ifndef GL_ARB_multisample
1459 #define GL_ARB_multisample 1
1460
1461 GLAPI void GLAPIENTRY glSampleCoverageARB(GLclampf value, GLboolean invert);
1462
1463 GLAPI void GLAPIENTRY glSamplePassARB(GLenum pass);
1464
1465 #endif /* GL_ARB_multisample */
1466
1467
1468
1469 #ifdef __cplusplus
1470 }
1471 #endif
1472
1473
1474 #endif /* __glext_h_ */