Main MRPT website > C++ reference for MRPT 1.5.7
glew.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 /*
11  * Mesa 3-D graphics library
12  * Version: 7.0
13  *
14  * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
15  *
16  * Permission is hereby granted, free of charge, to any person obtaining a
17  * copy of this software and associated documentation files (the "Software"),
18  * to deal in the Software without restriction, including without limitation
19  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
20  * and/or sell copies of the Software, and to permit persons to whom the
21  * Software is furnished to do so, subject to the following conditions:
22  *
23  * The above copyright notice and this permission notice shall be included
24  * in all copies or substantial portions of the Software.
25  *
26  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
29  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
30  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
31  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32  */
33 
34 /*
35 ** Copyright (c) 2007 The Khronos Group Inc.
36 **
37 ** Permission is hereby granted, free of charge, to any person obtaining a
38 ** copy of this software and/or associated documentation files (the
39 ** "Materials"), to deal in the Materials without restriction, including
40 ** without limitation the rights to use, copy, modify, merge, publish,
41 ** distribute, sublicense, and/or sell copies of the Materials, and to
42 ** permit persons to whom the Materials are furnished to do so, subject to
43 ** the following conditions:
44 **
45 ** The above copyright notice and this permission notice shall be included
46 ** in all copies or substantial portions of the Materials.
47 **
48 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
51 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
52 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
53 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
54 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
55 */
56 
57 #ifndef __glew_h__
58 #define __glew_h__
59 #define __GLEW_H__
60 
61 #if defined(__gl_h_) || defined(__GL_H__)
62 #error gl.h included before glew.h
63 #endif
64 #if defined(__glext_h_) || defined(__GLEXT_H_)
65 #error glext.h included before glew.h
66 #endif
67 #if defined(__gl_ATI_h_)
68 #error glATI.h included before glew.h
69 #endif
70 
71 #define __gl_h_
72 #define __GL_H__
73 #define __glext_h_
74 #define __GLEXT_H_
75 #define __gl_ATI_h_
76 
77 #if defined(_WIN32)
78 
79 /*
80  * GLEW does not include <windows.h> to avoid name space pollution.
81  * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
82  * defined properly.
83  */
84 /* <windef.h> */
85 #ifndef APIENTRY
86 #define GLEW_APIENTRY_DEFINED
87 # if defined(__MINGW32__)
88 # define APIENTRY __stdcall
89 # elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
90 # define APIENTRY __stdcall
91 # else
92 # define APIENTRY
93 # endif
94 #endif
95 #ifndef GLAPI
96 # if defined(__MINGW32__)
97 # define GLAPI extern
98 # endif
99 #endif
100 /* <winnt.h> */
101 #ifndef CALLBACK
102 #define GLEW_CALLBACK_DEFINED
103 # if defined(__MINGW32__)
104 # define CALLBACK __attribute__ ((__stdcall__))
105 # elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
106 # define CALLBACK __stdcall
107 # else
108 # define CALLBACK
109 # endif
110 #endif
111 /* <wingdi.h> and <winnt.h> */
112 #ifndef WINGDIAPI
113 #define GLEW_WINGDIAPI_DEFINED
114 #define WINGDIAPI __declspec(dllimport)
115 #endif
116 /* <ctype.h> */
117 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED)
118 typedef unsigned short wchar_t;
119 # define _WCHAR_T_DEFINED
120 #endif
121 /* <stddef.h> */
122 #if !defined(_W64)
123 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && defined(_MSC_VER) && _MSC_VER >= 1300
124 # define _W64 __w64
125 # else
126 # define _W64
127 # endif
128 #endif
129 #if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_)
130 # ifdef _WIN64
131 typedef __int64 ptrdiff_t;
132 # else
133 typedef _W64 int ptrdiff_t;
134 # endif
135 # define _PTRDIFF_T_DEFINED
136 # define _PTRDIFF_T_
137 #endif
138 
139 #ifndef GLAPI
140 # if defined(__MINGW32__)
141 # define GLAPI extern
142 # else
143 # define GLAPI WINGDIAPI
144 # endif
145 #endif
146 
147 #ifndef GLAPIENTRY
148 #define GLAPIENTRY APIENTRY
149 #endif
150 
151 /*
152  * GLEW_STATIC needs to be set when using the static version.
153  * GLEW_BUILD is set when building the DLL version.
154  */
155 #ifdef GLEW_STATIC
156 # define GLEWAPI extern
157 #else
158 # ifdef GLEW_BUILD
159 # define GLEWAPI extern __declspec(dllexport)
160 # else
161 # define GLEWAPI extern __declspec(dllimport)
162 # endif
163 #endif
164 
165 #else /* _UNIX */
166 
167 /*
168  * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO
169  * C. On my system, this amounts to _3 lines_ of included code, all of
170  * them pretty much harmless. If you know of a way of detecting 32 vs
171  * 64 _targets_ at compile time you are free to replace this with
172  * something that's portable. For now, _this_ is the portable solution.
173  * (mem, 2004-01-04)
174  */
175 
176 #include <stddef.h>
177 #include <stdint.h>
178 
179 #define GLEW_APIENTRY_DEFINED
180 #define APIENTRY
181 #define GLEWAPI extern
182 
183 /* <glu.h> */
184 #ifndef GLAPI
185 #define GLAPI extern
186 #endif
187 #ifndef GLAPIENTRY
188 #define GLAPIENTRY
189 #endif
190 
191 #endif /* _WIN32 */
192 
193 #ifdef __cplusplus
194 extern "C" {
195 #endif
196 
197 /* ----------------------------- GL_VERSION_1_1 ---------------------------- */
198 
199 #ifndef GL_VERSION_1_1
200 #define GL_VERSION_1_1 1
201 
202 typedef unsigned int GLenum;
203 typedef unsigned int GLbitfield;
204 typedef unsigned int GLuint;
205 typedef int GLint;
206 typedef int GLsizei;
207 typedef unsigned char GLboolean;
208 typedef signed char GLbyte;
209 typedef short GLshort;
210 typedef unsigned char GLubyte;
211 typedef unsigned short GLushort;
212 typedef unsigned long GLulong;
213 typedef float GLfloat;
214 typedef float GLclampf;
215 typedef double GLdouble;
216 typedef double GLclampd;
217 typedef void GLvoid;
218 #if defined(_MSC_VER)
219 # if _MSC_VER < 1400
220 typedef __int64 GLint64EXT;
221 typedef unsigned __int64 GLuint64EXT;
222 # else
223 typedef signed long long GLint64EXT;
224 typedef unsigned long long GLuint64EXT;
225 # endif
226 #else
227 # if defined(__MINGW32__)
228 #include <inttypes.h>
229 # endif
232 #endif
233 
234 #define GL_ACCUM 0x0100
235 #define GL_LOAD 0x0101
236 #define GL_RETURN 0x0102
237 #define GL_MULT 0x0103
238 #define GL_ADD 0x0104
239 #define GL_NEVER 0x0200
240 #define GL_LESS 0x0201
241 #define GL_EQUAL 0x0202
242 #define GL_LEQUAL 0x0203
243 #define GL_GREATER 0x0204
244 #define GL_NOTEQUAL 0x0205
245 #define GL_GEQUAL 0x0206
246 #define GL_ALWAYS 0x0207
247 #define GL_CURRENT_BIT 0x00000001
248 #define GL_POINT_BIT 0x00000002
249 #define GL_LINE_BIT 0x00000004
250 #define GL_POLYGON_BIT 0x00000008
251 #define GL_POLYGON_STIPPLE_BIT 0x00000010
252 #define GL_PIXEL_MODE_BIT 0x00000020
253 #define GL_LIGHTING_BIT 0x00000040
254 #define GL_FOG_BIT 0x00000080
255 #define GL_DEPTH_BUFFER_BIT 0x00000100
256 #define GL_ACCUM_BUFFER_BIT 0x00000200
257 #define GL_STENCIL_BUFFER_BIT 0x00000400
258 #define GL_VIEWPORT_BIT 0x00000800
259 #define GL_TRANSFORM_BIT 0x00001000
260 #define GL_ENABLE_BIT 0x00002000
261 #define GL_COLOR_BUFFER_BIT 0x00004000
262 #define GL_HINT_BIT 0x00008000
263 #define GL_EVAL_BIT 0x00010000
264 #define GL_LIST_BIT 0x00020000
265 #define GL_TEXTURE_BIT 0x00040000
266 #define GL_SCISSOR_BIT 0x00080000
267 #define GL_ALL_ATTRIB_BITS 0x000fffff
268 #define GL_POINTS 0x0000
269 #define GL_LINES 0x0001
270 #define GL_LINE_LOOP 0x0002
271 #define GL_LINE_STRIP 0x0003
272 #define GL_TRIANGLES 0x0004
273 #define GL_TRIANGLE_STRIP 0x0005
274 #define GL_TRIANGLE_FAN 0x0006
275 #define GL_QUADS 0x0007
276 #define GL_QUAD_STRIP 0x0008
277 #define GL_POLYGON 0x0009
278 #define GL_ZERO 0
279 #define GL_ONE 1
280 #define GL_SRC_COLOR 0x0300
281 #define GL_ONE_MINUS_SRC_COLOR 0x0301
282 #define GL_SRC_ALPHA 0x0302
283 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
284 #define GL_DST_ALPHA 0x0304
285 #define GL_ONE_MINUS_DST_ALPHA 0x0305
286 #define GL_DST_COLOR 0x0306
287 #define GL_ONE_MINUS_DST_COLOR 0x0307
288 #define GL_SRC_ALPHA_SATURATE 0x0308
289 #define GL_TRUE 1
290 #define GL_FALSE 0
291 #define GL_CLIP_PLANE0 0x3000
292 #define GL_CLIP_PLANE1 0x3001
293 #define GL_CLIP_PLANE2 0x3002
294 #define GL_CLIP_PLANE3 0x3003
295 #define GL_CLIP_PLANE4 0x3004
296 #define GL_CLIP_PLANE5 0x3005
297 #define GL_BYTE 0x1400
298 #define GL_UNSIGNED_BYTE 0x1401
299 #define GL_SHORT 0x1402
300 #define GL_UNSIGNED_SHORT 0x1403
301 #define GL_INT 0x1404
302 #define GL_UNSIGNED_INT 0x1405
303 #define GL_FLOAT 0x1406
304 #define GL_2_BYTES 0x1407
305 #define GL_3_BYTES 0x1408
306 #define GL_4_BYTES 0x1409
307 #define GL_DOUBLE 0x140A
308 #define GL_NONE 0
309 #define GL_FRONT_LEFT 0x0400
310 #define GL_FRONT_RIGHT 0x0401
311 #define GL_BACK_LEFT 0x0402
312 #define GL_BACK_RIGHT 0x0403
313 #define GL_FRONT 0x0404
314 #define GL_BACK 0x0405
315 #define GL_LEFT 0x0406
316 #define GL_RIGHT 0x0407
317 #define GL_FRONT_AND_BACK 0x0408
318 #define GL_AUX0 0x0409
319 #define GL_AUX1 0x040A
320 #define GL_AUX2 0x040B
321 #define GL_AUX3 0x040C
322 #define GL_NO_ERROR 0
323 #define GL_INVALID_ENUM 0x0500
324 #define GL_INVALID_VALUE 0x0501
325 #define GL_INVALID_OPERATION 0x0502
326 #define GL_STACK_OVERFLOW 0x0503
327 #define GL_STACK_UNDERFLOW 0x0504
328 #define GL_OUT_OF_MEMORY 0x0505
329 #define GL_2D 0x0600
330 #define GL_3D 0x0601
331 #define GL_3D_COLOR 0x0602
332 #define GL_3D_COLOR_TEXTURE 0x0603
333 #define GL_4D_COLOR_TEXTURE 0x0604
334 #define GL_PASS_THROUGH_TOKEN 0x0700
335 #define GL_POINT_TOKEN 0x0701
336 #define GL_LINE_TOKEN 0x0702
337 #define GL_POLYGON_TOKEN 0x0703
338 #define GL_BITMAP_TOKEN 0x0704
339 #define GL_DRAW_PIXEL_TOKEN 0x0705
340 #define GL_COPY_PIXEL_TOKEN 0x0706
341 #define GL_LINE_RESET_TOKEN 0x0707
342 #define GL_EXP 0x0800
343 #define GL_EXP2 0x0801
344 #define GL_CW 0x0900
345 #define GL_CCW 0x0901
346 #define GL_COEFF 0x0A00
347 #define GL_ORDER 0x0A01
348 #define GL_DOMAIN 0x0A02
349 #define GL_CURRENT_COLOR 0x0B00
350 #define GL_CURRENT_INDEX 0x0B01
351 #define GL_CURRENT_NORMAL 0x0B02
352 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
353 #define GL_CURRENT_RASTER_COLOR 0x0B04
354 #define GL_CURRENT_RASTER_INDEX 0x0B05
355 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
356 #define GL_CURRENT_RASTER_POSITION 0x0B07
357 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
358 #define GL_CURRENT_RASTER_DISTANCE 0x0B09
359 #define GL_POINT_SMOOTH 0x0B10
360 #define GL_POINT_SIZE 0x0B11
361 #define GL_POINT_SIZE_RANGE 0x0B12
362 #define GL_POINT_SIZE_GRANULARITY 0x0B13
363 #define GL_LINE_SMOOTH 0x0B20
364 #define GL_LINE_WIDTH 0x0B21
365 #define GL_LINE_WIDTH_RANGE 0x0B22
366 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
367 #define GL_LINE_STIPPLE 0x0B24
368 #define GL_LINE_STIPPLE_PATTERN 0x0B25
369 #define GL_LINE_STIPPLE_REPEAT 0x0B26
370 #define GL_LIST_MODE 0x0B30
371 #define GL_MAX_LIST_NESTING 0x0B31
372 #define GL_LIST_BASE 0x0B32
373 #define GL_LIST_INDEX 0x0B33
374 #define GL_POLYGON_MODE 0x0B40
375 #define GL_POLYGON_SMOOTH 0x0B41
376 #define GL_POLYGON_STIPPLE 0x0B42
377 #define GL_EDGE_FLAG 0x0B43
378 #define GL_CULL_FACE 0x0B44
379 #define GL_CULL_FACE_MODE 0x0B45
380 #define GL_FRONT_FACE 0x0B46
381 #define GL_LIGHTING 0x0B50
382 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
383 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
384 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
385 #define GL_SHADE_MODEL 0x0B54
386 #define GL_COLOR_MATERIAL_FACE 0x0B55
387 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
388 #define GL_COLOR_MATERIAL 0x0B57
389 #define GL_FOG 0x0B60
390 #define GL_FOG_INDEX 0x0B61
391 #define GL_FOG_DENSITY 0x0B62
392 #define GL_FOG_START 0x0B63
393 #define GL_FOG_END 0x0B64
394 #define GL_FOG_MODE 0x0B65
395 #define GL_FOG_COLOR 0x0B66
396 #define GL_DEPTH_RANGE 0x0B70
397 #define GL_DEPTH_TEST 0x0B71
398 #define GL_DEPTH_WRITEMASK 0x0B72
399 #define GL_DEPTH_CLEAR_VALUE 0x0B73
400 #define GL_DEPTH_FUNC 0x0B74
401 #define GL_ACCUM_CLEAR_VALUE 0x0B80
402 #define GL_STENCIL_TEST 0x0B90
403 #define GL_STENCIL_CLEAR_VALUE 0x0B91
404 #define GL_STENCIL_FUNC 0x0B92
405 #define GL_STENCIL_VALUE_MASK 0x0B93
406 #define GL_STENCIL_FAIL 0x0B94
407 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
408 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
409 #define GL_STENCIL_REF 0x0B97
410 #define GL_STENCIL_WRITEMASK 0x0B98
411 #define GL_MATRIX_MODE 0x0BA0
412 #define GL_NORMALIZE 0x0BA1
413 #define GL_VIEWPORT 0x0BA2
414 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
415 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
416 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
417 #define GL_MODELVIEW_MATRIX 0x0BA6
418 #define GL_PROJECTION_MATRIX 0x0BA7
419 #define GL_TEXTURE_MATRIX 0x0BA8
420 #define GL_ATTRIB_STACK_DEPTH 0x0BB0
421 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
422 #define GL_ALPHA_TEST 0x0BC0
423 #define GL_ALPHA_TEST_FUNC 0x0BC1
424 #define GL_ALPHA_TEST_REF 0x0BC2
425 #define GL_DITHER 0x0BD0
426 #define GL_BLEND_DST 0x0BE0
427 #define GL_BLEND_SRC 0x0BE1
428 #define GL_BLEND 0x0BE2
429 #define GL_LOGIC_OP_MODE 0x0BF0
430 #define GL_INDEX_LOGIC_OP 0x0BF1
431 #define GL_COLOR_LOGIC_OP 0x0BF2
432 #define GL_AUX_BUFFERS 0x0C00
433 #define GL_DRAW_BUFFER 0x0C01
434 #define GL_READ_BUFFER 0x0C02
435 #define GL_SCISSOR_BOX 0x0C10
436 #define GL_SCISSOR_TEST 0x0C11
437 #define GL_INDEX_CLEAR_VALUE 0x0C20
438 #define GL_INDEX_WRITEMASK 0x0C21
439 #define GL_COLOR_CLEAR_VALUE 0x0C22
440 #define GL_COLOR_WRITEMASK 0x0C23
441 #define GL_INDEX_MODE 0x0C30
442 #define GL_RGBA_MODE 0x0C31
443 #define GL_DOUBLEBUFFER 0x0C32
444 #define GL_STEREO 0x0C33
445 #define GL_RENDER_MODE 0x0C40
446 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
447 #define GL_POINT_SMOOTH_HINT 0x0C51
448 #define GL_LINE_SMOOTH_HINT 0x0C52
449 #define GL_POLYGON_SMOOTH_HINT 0x0C53
450 #define GL_FOG_HINT 0x0C54
451 #define GL_TEXTURE_GEN_S 0x0C60
452 #define GL_TEXTURE_GEN_T 0x0C61
453 #define GL_TEXTURE_GEN_R 0x0C62
454 #define GL_TEXTURE_GEN_Q 0x0C63
455 #define GL_PIXEL_MAP_I_TO_I 0x0C70
456 #define GL_PIXEL_MAP_S_TO_S 0x0C71
457 #define GL_PIXEL_MAP_I_TO_R 0x0C72
458 #define GL_PIXEL_MAP_I_TO_G 0x0C73
459 #define GL_PIXEL_MAP_I_TO_B 0x0C74
460 #define GL_PIXEL_MAP_I_TO_A 0x0C75
461 #define GL_PIXEL_MAP_R_TO_R 0x0C76
462 #define GL_PIXEL_MAP_G_TO_G 0x0C77
463 #define GL_PIXEL_MAP_B_TO_B 0x0C78
464 #define GL_PIXEL_MAP_A_TO_A 0x0C79
465 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
466 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
467 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
468 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
469 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
470 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
471 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
472 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
473 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
474 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
475 #define GL_UNPACK_SWAP_BYTES 0x0CF0
476 #define GL_UNPACK_LSB_FIRST 0x0CF1
477 #define GL_UNPACK_ROW_LENGTH 0x0CF2
478 #define GL_UNPACK_SKIP_ROWS 0x0CF3
479 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
480 #define GL_UNPACK_ALIGNMENT 0x0CF5
481 #define GL_PACK_SWAP_BYTES 0x0D00
482 #define GL_PACK_LSB_FIRST 0x0D01
483 #define GL_PACK_ROW_LENGTH 0x0D02
484 #define GL_PACK_SKIP_ROWS 0x0D03
485 #define GL_PACK_SKIP_PIXELS 0x0D04
486 #define GL_PACK_ALIGNMENT 0x0D05
487 #define GL_MAP_COLOR 0x0D10
488 #define GL_MAP_STENCIL 0x0D11
489 #define GL_INDEX_SHIFT 0x0D12
490 #define GL_INDEX_OFFSET 0x0D13
491 #define GL_RED_SCALE 0x0D14
492 #define GL_RED_BIAS 0x0D15
493 #define GL_ZOOM_X 0x0D16
494 #define GL_ZOOM_Y 0x0D17
495 #define GL_GREEN_SCALE 0x0D18
496 #define GL_GREEN_BIAS 0x0D19
497 #define GL_BLUE_SCALE 0x0D1A
498 #define GL_BLUE_BIAS 0x0D1B
499 #define GL_ALPHA_SCALE 0x0D1C
500 #define GL_ALPHA_BIAS 0x0D1D
501 #define GL_DEPTH_SCALE 0x0D1E
502 #define GL_DEPTH_BIAS 0x0D1F
503 #define GL_MAX_EVAL_ORDER 0x0D30
504 #define GL_MAX_LIGHTS 0x0D31
505 #define GL_MAX_CLIP_PLANES 0x0D32
506 #define GL_MAX_TEXTURE_SIZE 0x0D33
507 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
508 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
509 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
510 #define GL_MAX_NAME_STACK_DEPTH 0x0D37
511 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
512 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
513 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
514 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
515 #define GL_SUBPIXEL_BITS 0x0D50
516 #define GL_INDEX_BITS 0x0D51
517 #define GL_RED_BITS 0x0D52
518 #define GL_GREEN_BITS 0x0D53
519 #define GL_BLUE_BITS 0x0D54
520 #define GL_ALPHA_BITS 0x0D55
521 #define GL_DEPTH_BITS 0x0D56
522 #define GL_STENCIL_BITS 0x0D57
523 #define GL_ACCUM_RED_BITS 0x0D58
524 #define GL_ACCUM_GREEN_BITS 0x0D59
525 #define GL_ACCUM_BLUE_BITS 0x0D5A
526 #define GL_ACCUM_ALPHA_BITS 0x0D5B
527 #define GL_NAME_STACK_DEPTH 0x0D70
528 #define GL_AUTO_NORMAL 0x0D80
529 #define GL_MAP1_COLOR_4 0x0D90
530 #define GL_MAP1_INDEX 0x0D91
531 #define GL_MAP1_NORMAL 0x0D92
532 #define GL_MAP1_TEXTURE_COORD_1 0x0D93
533 #define GL_MAP1_TEXTURE_COORD_2 0x0D94
534 #define GL_MAP1_TEXTURE_COORD_3 0x0D95
535 #define GL_MAP1_TEXTURE_COORD_4 0x0D96
536 #define GL_MAP1_VERTEX_3 0x0D97
537 #define GL_MAP1_VERTEX_4 0x0D98
538 #define GL_MAP2_COLOR_4 0x0DB0
539 #define GL_MAP2_INDEX 0x0DB1
540 #define GL_MAP2_NORMAL 0x0DB2
541 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
542 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
543 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
544 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
545 #define GL_MAP2_VERTEX_3 0x0DB7
546 #define GL_MAP2_VERTEX_4 0x0DB8
547 #define GL_MAP1_GRID_DOMAIN 0x0DD0
548 #define GL_MAP1_GRID_SEGMENTS 0x0DD1
549 #define GL_MAP2_GRID_DOMAIN 0x0DD2
550 #define GL_MAP2_GRID_SEGMENTS 0x0DD3
551 #define GL_TEXTURE_1D 0x0DE0
552 #define GL_TEXTURE_2D 0x0DE1
553 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
554 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
555 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
556 #define GL_SELECTION_BUFFER_POINTER 0x0DF3
557 #define GL_SELECTION_BUFFER_SIZE 0x0DF4
558 #define GL_TEXTURE_WIDTH 0x1000
559 #define GL_TEXTURE_HEIGHT 0x1001
560 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
561 #define GL_TEXTURE_BORDER_COLOR 0x1004
562 #define GL_TEXTURE_BORDER 0x1005
563 #define GL_DONT_CARE 0x1100
564 #define GL_FASTEST 0x1101
565 #define GL_NICEST 0x1102
566 #define GL_LIGHT0 0x4000
567 #define GL_LIGHT1 0x4001
568 #define GL_LIGHT2 0x4002
569 #define GL_LIGHT3 0x4003
570 #define GL_LIGHT4 0x4004
571 #define GL_LIGHT5 0x4005
572 #define GL_LIGHT6 0x4006
573 #define GL_LIGHT7 0x4007
574 #define GL_AMBIENT 0x1200
575 #define GL_DIFFUSE 0x1201
576 #define GL_SPECULAR 0x1202
577 #define GL_POSITION 0x1203
578 #define GL_SPOT_DIRECTION 0x1204
579 #define GL_SPOT_EXPONENT 0x1205
580 #define GL_SPOT_CUTOFF 0x1206
581 #define GL_CONSTANT_ATTENUATION 0x1207
582 #define GL_LINEAR_ATTENUATION 0x1208
583 #define GL_QUADRATIC_ATTENUATION 0x1209
584 #define GL_COMPILE 0x1300
585 #define GL_COMPILE_AND_EXECUTE 0x1301
586 #define GL_CLEAR 0x1500
587 #define GL_AND 0x1501
588 #define GL_AND_REVERSE 0x1502
589 #define GL_COPY 0x1503
590 #define GL_AND_INVERTED 0x1504
591 #define GL_NOOP 0x1505
592 #define GL_XOR 0x1506
593 #define GL_OR 0x1507
594 #define GL_NOR 0x1508
595 #define GL_EQUIV 0x1509
596 #define GL_INVERT 0x150A
597 #define GL_OR_REVERSE 0x150B
598 #define GL_COPY_INVERTED 0x150C
599 #define GL_OR_INVERTED 0x150D
600 #define GL_NAND 0x150E
601 #define GL_SET 0x150F
602 #define GL_EMISSION 0x1600
603 #define GL_SHININESS 0x1601
604 #define GL_AMBIENT_AND_DIFFUSE 0x1602
605 #define GL_COLOR_INDEXES 0x1603
606 #define GL_MODELVIEW 0x1700
607 #define GL_PROJECTION 0x1701
608 #define GL_TEXTURE 0x1702
609 #define GL_COLOR 0x1800
610 #define GL_DEPTH 0x1801
611 #define GL_STENCIL 0x1802
612 #define GL_COLOR_INDEX 0x1900
613 #define GL_STENCIL_INDEX 0x1901
614 #define GL_DEPTH_COMPONENT 0x1902
615 #define GL_RED 0x1903
616 #define GL_GREEN 0x1904
617 #define GL_BLUE 0x1905
618 #define GL_ALPHA 0x1906
619 #define GL_RGB 0x1907
620 #define GL_RGBA 0x1908
621 #define GL_LUMINANCE 0x1909
622 #define GL_LUMINANCE_ALPHA 0x190A
623 #define GL_BITMAP 0x1A00
624 #define GL_POINT 0x1B00
625 #define GL_LINE 0x1B01
626 #define GL_FILL 0x1B02
627 #define GL_RENDER 0x1C00
628 #define GL_FEEDBACK 0x1C01
629 #define GL_SELECT 0x1C02
630 #define GL_FLAT 0x1D00
631 #define GL_SMOOTH 0x1D01
632 #define GL_KEEP 0x1E00
633 #define GL_REPLACE 0x1E01
634 #define GL_INCR 0x1E02
635 #define GL_DECR 0x1E03
636 #define GL_VENDOR 0x1F00
637 #define GL_RENDERER 0x1F01
638 #define GL_VERSION 0x1F02
639 #define GL_EXTENSIONS 0x1F03
640 #define GL_S 0x2000
641 #define GL_T 0x2001
642 #define GL_R 0x2002
643 #define GL_Q 0x2003
644 #define GL_MODULATE 0x2100
645 #define GL_DECAL 0x2101
646 #define GL_TEXTURE_ENV_MODE 0x2200
647 #define GL_TEXTURE_ENV_COLOR 0x2201
648 #define GL_TEXTURE_ENV 0x2300
649 #define GL_EYE_LINEAR 0x2400
650 #define GL_OBJECT_LINEAR 0x2401
651 #define GL_SPHERE_MAP 0x2402
652 #define GL_TEXTURE_GEN_MODE 0x2500
653 #define GL_OBJECT_PLANE 0x2501
654 #define GL_EYE_PLANE 0x2502
655 #define GL_NEAREST 0x2600
656 #define GL_LINEAR 0x2601
657 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
658 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
659 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
660 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
661 #define GL_TEXTURE_MAG_FILTER 0x2800
662 #define GL_TEXTURE_MIN_FILTER 0x2801
663 #define GL_TEXTURE_WRAP_S 0x2802
664 #define GL_TEXTURE_WRAP_T 0x2803
665 #define GL_CLAMP 0x2900
666 #define GL_REPEAT 0x2901
667 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
668 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
669 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
670 #define GL_POLYGON_OFFSET_FACTOR 0x8038
671 #define GL_POLYGON_OFFSET_UNITS 0x2A00
672 #define GL_POLYGON_OFFSET_POINT 0x2A01
673 #define GL_POLYGON_OFFSET_LINE 0x2A02
674 #define GL_POLYGON_OFFSET_FILL 0x8037
675 #define GL_ALPHA4 0x803B
676 #define GL_ALPHA8 0x803C
677 #define GL_ALPHA12 0x803D
678 #define GL_ALPHA16 0x803E
679 #define GL_LUMINANCE4 0x803F
680 #define GL_LUMINANCE8 0x8040
681 #define GL_LUMINANCE12 0x8041
682 #define GL_LUMINANCE16 0x8042
683 #define GL_LUMINANCE4_ALPHA4 0x8043
684 #define GL_LUMINANCE6_ALPHA2 0x8044
685 #define GL_LUMINANCE8_ALPHA8 0x8045
686 #define GL_LUMINANCE12_ALPHA4 0x8046
687 #define GL_LUMINANCE12_ALPHA12 0x8047
688 #define GL_LUMINANCE16_ALPHA16 0x8048
689 #define GL_INTENSITY 0x8049
690 #define GL_INTENSITY4 0x804A
691 #define GL_INTENSITY8 0x804B
692 #define GL_INTENSITY12 0x804C
693 #define GL_INTENSITY16 0x804D
694 #define GL_R3_G3_B2 0x2A10
695 #define GL_RGB4 0x804F
696 #define GL_RGB5 0x8050
697 #define GL_RGB8 0x8051
698 #define GL_RGB10 0x8052
699 #define GL_RGB12 0x8053
700 #define GL_RGB16 0x8054
701 #define GL_RGBA2 0x8055
702 #define GL_RGBA4 0x8056
703 #define GL_RGB5_A1 0x8057
704 #define GL_RGBA8 0x8058
705 #define GL_RGB10_A2 0x8059
706 #define GL_RGBA12 0x805A
707 #define GL_RGBA16 0x805B
708 #define GL_TEXTURE_RED_SIZE 0x805C
709 #define GL_TEXTURE_GREEN_SIZE 0x805D
710 #define GL_TEXTURE_BLUE_SIZE 0x805E
711 #define GL_TEXTURE_ALPHA_SIZE 0x805F
712 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
713 #define GL_TEXTURE_INTENSITY_SIZE 0x8061
714 #define GL_PROXY_TEXTURE_1D 0x8063
715 #define GL_PROXY_TEXTURE_2D 0x8064
716 #define GL_TEXTURE_PRIORITY 0x8066
717 #define GL_TEXTURE_RESIDENT 0x8067
718 #define GL_TEXTURE_BINDING_1D 0x8068
719 #define GL_TEXTURE_BINDING_2D 0x8069
720 #define GL_VERTEX_ARRAY 0x8074
721 #define GL_NORMAL_ARRAY 0x8075
722 #define GL_COLOR_ARRAY 0x8076
723 #define GL_INDEX_ARRAY 0x8077
724 #define GL_TEXTURE_COORD_ARRAY 0x8078
725 #define GL_EDGE_FLAG_ARRAY 0x8079
726 #define GL_VERTEX_ARRAY_SIZE 0x807A
727 #define GL_VERTEX_ARRAY_TYPE 0x807B
728 #define GL_VERTEX_ARRAY_STRIDE 0x807C
729 #define GL_NORMAL_ARRAY_TYPE 0x807E
730 #define GL_NORMAL_ARRAY_STRIDE 0x807F
731 #define GL_COLOR_ARRAY_SIZE 0x8081
732 #define GL_COLOR_ARRAY_TYPE 0x8082
733 #define GL_COLOR_ARRAY_STRIDE 0x8083
734 #define GL_INDEX_ARRAY_TYPE 0x8085
735 #define GL_INDEX_ARRAY_STRIDE 0x8086
736 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
737 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
738 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
739 #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
740 #define GL_VERTEX_ARRAY_POINTER 0x808E
741 #define GL_NORMAL_ARRAY_POINTER 0x808F
742 #define GL_COLOR_ARRAY_POINTER 0x8090
743 #define GL_INDEX_ARRAY_POINTER 0x8091
744 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
745 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
746 #define GL_V2F 0x2A20
747 #define GL_V3F 0x2A21
748 #define GL_C4UB_V2F 0x2A22
749 #define GL_C4UB_V3F 0x2A23
750 #define GL_C3F_V3F 0x2A24
751 #define GL_N3F_V3F 0x2A25
752 #define GL_C4F_N3F_V3F 0x2A26
753 #define GL_T2F_V3F 0x2A27
754 #define GL_T4F_V4F 0x2A28
755 #define GL_T2F_C4UB_V3F 0x2A29
756 #define GL_T2F_C3F_V3F 0x2A2A
757 #define GL_T2F_N3F_V3F 0x2A2B
758 #define GL_T2F_C4F_N3F_V3F 0x2A2C
759 #define GL_T4F_C4F_N3F_V4F 0x2A2D
760 #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
761 #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
762 #define GL_COLOR_INDEX1_EXT 0x80E2
763 #define GL_COLOR_INDEX2_EXT 0x80E3
764 #define GL_COLOR_INDEX4_EXT 0x80E4
765 #define GL_COLOR_INDEX8_EXT 0x80E5
766 #define GL_COLOR_INDEX12_EXT 0x80E6
767 #define GL_COLOR_INDEX16_EXT 0x80E7
768 
775 GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
776 GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
777 GLAPI void GLAPIENTRY glCallList (GLuint list);
778 GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
785 GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
787 GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v);
789 GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v);
791 GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v);
793 GLAPI void GLAPIENTRY glColor3iv (const GLint *v);
795 GLAPI void GLAPIENTRY glColor3sv (const GLshort *v);
797 GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v);
799 GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v);
801 GLAPI void GLAPIENTRY glColor3usv (const GLushort *v);
803 GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v);
805 GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v);
807 GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v);
809 GLAPI void GLAPIENTRY glColor4iv (const GLint *v);
811 GLAPI void GLAPIENTRY glColor4sv (const GLshort *v);
813 GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v);
815 GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v);
817 GLAPI void GLAPIENTRY glColor4usv (const GLushort *v);
829 GLAPI void GLAPIENTRY glDepthFunc (GLenum func);
840 GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag);
843 GLAPI void GLAPIENTRY glEnd (void);
844 GLAPI void GLAPIENTRY glEndList (void);
846 GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u);
848 GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u);
850 GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u);
852 GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u);
854 GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
858 GLAPI void GLAPIENTRY glFinish (void);
859 GLAPI void GLAPIENTRY glFlush (void);
865 GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
869 GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
876 GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
877 GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
878 GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
897 GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
901 GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c);
903 GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c);
905 GLAPI void GLAPIENTRY glIndexiv (const GLint *c);
907 GLAPI void GLAPIENTRY glIndexsv (const GLshort *c);
909 GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c);
910 GLAPI void GLAPIENTRY glInitNames (void);
920 GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
922 GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
923 GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern);
925 GLAPI void GLAPIENTRY glListBase (GLuint base);
926 GLAPI void GLAPIENTRY glLoadIdentity (void);
927 GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m);
928 GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m);
930 GLAPI void GLAPIENTRY glLogicOp (GLenum opcode);
932 GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
944 GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m);
945 GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m);
948 GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v);
950 GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v);
952 GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v);
954 GLAPI void GLAPIENTRY glNormal3iv (const GLint *v);
956 GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v);
958 GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
960 GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
961 GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
962 GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
967 GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
970 GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
972 GLAPI void GLAPIENTRY glPopAttrib (void);
974 GLAPI void GLAPIENTRY glPopMatrix (void);
975 GLAPI void GLAPIENTRY glPopName (void);
979 GLAPI void GLAPIENTRY glPushMatrix (void);
984 GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v);
986 GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v);
988 GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v);
992 GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v);
994 GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v);
996 GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v);
1000 GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v);
1002 GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v);
1004 GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v);
1007 GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
1008 GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
1009 GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
1010 GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
1011 GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
1012 GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2);
1013 GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
1014 GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
1025 GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1027 GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v);
1029 GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v);
1031 GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v);
1033 GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v);
1035 GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v);
1037 GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v);
1039 GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v);
1041 GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v);
1043 GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v);
1045 GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v);
1047 GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v);
1049 GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v);
1051 GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v);
1053 GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v);
1055 GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v);
1057 GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v);
1060 GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
1062 GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
1080 GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v);
1082 GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v);
1084 GLAPI void GLAPIENTRY glVertex2iv (const GLint *v);
1086 GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v);
1088 GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v);
1090 GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v);
1092 GLAPI void GLAPIENTRY glVertex3iv (const GLint *v);
1094 GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v);
1096 GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v);
1098 GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v);
1100 GLAPI void GLAPIENTRY glVertex4iv (const GLint *v);
1102 GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v);
1105 
1106 #define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1)
1107 
1108 #endif /* GL_VERSION_1_1 */
1109 
1110 /* ---------------------------------- GLU ---------------------------------- */
1111 
1112 /* this is where we can safely include GLU */
1113 #if defined(__APPLE__) && defined(__MACH__)
1114 #include <OpenGL/glu.h>
1115 #else
1116 #include <GL/glu.h>
1117 #endif
1118 
1119 /* ----------------------------- GL_VERSION_1_2 ---------------------------- */
1120 
1121 #ifndef GL_VERSION_1_2
1122 #define GL_VERSION_1_2 1
1123 
1124 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
1125 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
1126 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
1127 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
1128 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
1129 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
1130 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
1131 #define GL_UNSIGNED_INT_8_8_8_8 0x8035
1132 #define GL_UNSIGNED_INT_10_10_10_2 0x8036
1133 #define GL_RESCALE_NORMAL 0x803A
1134 #define GL_TEXTURE_BINDING_3D 0x806A
1135 #define GL_PACK_SKIP_IMAGES 0x806B
1136 #define GL_PACK_IMAGE_HEIGHT 0x806C
1137 #define GL_UNPACK_SKIP_IMAGES 0x806D
1138 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
1139 #define GL_TEXTURE_3D 0x806F
1140 #define GL_PROXY_TEXTURE_3D 0x8070
1141 #define GL_TEXTURE_DEPTH 0x8071
1142 #define GL_TEXTURE_WRAP_R 0x8072
1143 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
1144 #define GL_BGR 0x80E0
1145 #define GL_BGRA 0x80E1
1146 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
1147 #define GL_MAX_ELEMENTS_INDICES 0x80E9
1148 #define GL_CLAMP_TO_EDGE 0x812F
1149 #define GL_TEXTURE_MIN_LOD 0x813A
1150 #define GL_TEXTURE_MAX_LOD 0x813B
1151 #define GL_TEXTURE_BASE_LEVEL 0x813C
1152 #define GL_TEXTURE_MAX_LEVEL 0x813D
1153 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
1154 #define GL_SINGLE_COLOR 0x81F9
1155 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
1156 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
1157 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
1158 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
1159 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
1160 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
1161 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
1162 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
1163 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
1164 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
1165 
1170 
1171 #define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D)
1172 #define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements)
1173 #define glTexImage3D GLEW_GET_FUN(__glewTexImage3D)
1174 #define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D)
1175 
1176 #define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2)
1177 
1178 #endif /* GL_VERSION_1_2 */
1179 
1180 /* ----------------------------- GL_VERSION_1_3 ---------------------------- */
1181 
1182 #ifndef GL_VERSION_1_3
1183 #define GL_VERSION_1_3 1
1184 
1185 #define GL_MULTISAMPLE 0x809D
1186 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
1187 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
1188 #define GL_SAMPLE_COVERAGE 0x80A0
1189 #define GL_SAMPLE_BUFFERS 0x80A8
1190 #define GL_SAMPLES 0x80A9
1191 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
1192 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
1193 #define GL_CLAMP_TO_BORDER 0x812D
1194 #define GL_TEXTURE0 0x84C0
1195 #define GL_TEXTURE1 0x84C1
1196 #define GL_TEXTURE2 0x84C2
1197 #define GL_TEXTURE3 0x84C3
1198 #define GL_TEXTURE4 0x84C4
1199 #define GL_TEXTURE5 0x84C5
1200 #define GL_TEXTURE6 0x84C6
1201 #define GL_TEXTURE7 0x84C7
1202 #define GL_TEXTURE8 0x84C8
1203 #define GL_TEXTURE9 0x84C9
1204 #define GL_TEXTURE10 0x84CA
1205 #define GL_TEXTURE11 0x84CB
1206 #define GL_TEXTURE12 0x84CC
1207 #define GL_TEXTURE13 0x84CD
1208 #define GL_TEXTURE14 0x84CE
1209 #define GL_TEXTURE15 0x84CF
1210 #define GL_TEXTURE16 0x84D0
1211 #define GL_TEXTURE17 0x84D1
1212 #define GL_TEXTURE18 0x84D2
1213 #define GL_TEXTURE19 0x84D3
1214 #define GL_TEXTURE20 0x84D4
1215 #define GL_TEXTURE21 0x84D5
1216 #define GL_TEXTURE22 0x84D6
1217 #define GL_TEXTURE23 0x84D7
1218 #define GL_TEXTURE24 0x84D8
1219 #define GL_TEXTURE25 0x84D9
1220 #define GL_TEXTURE26 0x84DA
1221 #define GL_TEXTURE27 0x84DB
1222 #define GL_TEXTURE28 0x84DC
1223 #define GL_TEXTURE29 0x84DD
1224 #define GL_TEXTURE30 0x84DE
1225 #define GL_TEXTURE31 0x84DF
1226 #define GL_ACTIVE_TEXTURE 0x84E0
1227 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
1228 #define GL_MAX_TEXTURE_UNITS 0x84E2
1229 #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
1230 #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
1231 #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
1232 #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
1233 #define GL_SUBTRACT 0x84E7
1234 #define GL_COMPRESSED_ALPHA 0x84E9
1235 #define GL_COMPRESSED_LUMINANCE 0x84EA
1236 #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
1237 #define GL_COMPRESSED_INTENSITY 0x84EC
1238 #define GL_COMPRESSED_RGB 0x84ED
1239 #define GL_COMPRESSED_RGBA 0x84EE
1240 #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
1241 #define GL_NORMAL_MAP 0x8511
1242 #define GL_REFLECTION_MAP 0x8512
1243 #define GL_TEXTURE_CUBE_MAP 0x8513
1244 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
1245 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
1246 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
1247 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
1248 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
1249 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
1250 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
1251 #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
1252 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
1253 #define GL_COMBINE 0x8570
1254 #define GL_COMBINE_RGB 0x8571
1255 #define GL_COMBINE_ALPHA 0x8572
1256 #define GL_RGB_SCALE 0x8573
1257 #define GL_ADD_SIGNED 0x8574
1258 #define GL_INTERPOLATE 0x8575
1259 #define GL_CONSTANT 0x8576
1260 #define GL_PRIMARY_COLOR 0x8577
1261 #define GL_PREVIOUS 0x8578
1262 #define GL_SOURCE0_RGB 0x8580
1263 #define GL_SOURCE1_RGB 0x8581
1264 #define GL_SOURCE2_RGB 0x8582
1265 #define GL_SOURCE0_ALPHA 0x8588
1266 #define GL_SOURCE1_ALPHA 0x8589
1267 #define GL_SOURCE2_ALPHA 0x858A
1268 #define GL_OPERAND0_RGB 0x8590
1269 #define GL_OPERAND1_RGB 0x8591
1270 #define GL_OPERAND2_RGB 0x8592
1271 #define GL_OPERAND0_ALPHA 0x8598
1272 #define GL_OPERAND1_ALPHA 0x8599
1273 #define GL_OPERAND2_ALPHA 0x859A
1274 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
1275 #define GL_TEXTURE_COMPRESSED 0x86A1
1276 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
1277 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
1278 #define GL_DOT3_RGB 0x86AE
1279 #define GL_DOT3_RGBA 0x86AF
1280 #define GL_MULTISAMPLE_BIT 0x20000000
1281 
1328 
1329 #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture)
1330 #define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture)
1331 #define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D)
1332 #define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D)
1333 #define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D)
1334 #define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D)
1335 #define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D)
1336 #define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D)
1337 #define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage)
1338 #define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd)
1339 #define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf)
1340 #define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd)
1341 #define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf)
1342 #define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d)
1343 #define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv)
1344 #define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f)
1345 #define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv)
1346 #define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i)
1347 #define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv)
1348 #define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s)
1349 #define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv)
1350 #define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d)
1351 #define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv)
1352 #define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f)
1353 #define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv)
1354 #define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i)
1355 #define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv)
1356 #define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s)
1357 #define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv)
1358 #define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d)
1359 #define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv)
1360 #define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f)
1361 #define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv)
1362 #define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i)
1363 #define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv)
1364 #define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s)
1365 #define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv)
1366 #define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d)
1367 #define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv)
1368 #define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f)
1369 #define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv)
1370 #define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i)
1371 #define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv)
1372 #define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s)
1373 #define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv)
1374 #define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage)
1375 
1376 #define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3)
1377 
1378 #endif /* GL_VERSION_1_3 */
1379 
1380 /* ----------------------------- GL_VERSION_1_4 ---------------------------- */
1381 
1382 #ifndef GL_VERSION_1_4
1383 #define GL_VERSION_1_4 1
1384 
1385 #define GL_BLEND_DST_RGB 0x80C8
1386 #define GL_BLEND_SRC_RGB 0x80C9
1387 #define GL_BLEND_DST_ALPHA 0x80CA
1388 #define GL_BLEND_SRC_ALPHA 0x80CB
1389 #define GL_POINT_SIZE_MIN 0x8126
1390 #define GL_POINT_SIZE_MAX 0x8127
1391 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
1392 #define GL_POINT_DISTANCE_ATTENUATION 0x8129
1393 #define GL_GENERATE_MIPMAP 0x8191
1394 #define GL_GENERATE_MIPMAP_HINT 0x8192
1395 #define GL_DEPTH_COMPONENT16 0x81A5
1396 #define GL_DEPTH_COMPONENT24 0x81A6
1397 #define GL_DEPTH_COMPONENT32 0x81A7
1398 #define GL_MIRRORED_REPEAT 0x8370
1399 #define GL_FOG_COORDINATE_SOURCE 0x8450
1400 #define GL_FOG_COORDINATE 0x8451
1401 #define GL_FRAGMENT_DEPTH 0x8452
1402 #define GL_CURRENT_FOG_COORDINATE 0x8453
1403 #define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
1404 #define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
1405 #define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
1406 #define GL_FOG_COORDINATE_ARRAY 0x8457
1407 #define GL_COLOR_SUM 0x8458
1408 #define GL_CURRENT_SECONDARY_COLOR 0x8459
1409 #define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
1410 #define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
1411 #define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
1412 #define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
1413 #define GL_SECONDARY_COLOR_ARRAY 0x845E
1414 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
1415 #define GL_TEXTURE_FILTER_CONTROL 0x8500
1416 #define GL_TEXTURE_LOD_BIAS 0x8501
1417 #define GL_INCR_WRAP 0x8507
1418 #define GL_DECR_WRAP 0x8508
1419 #define GL_TEXTURE_DEPTH_SIZE 0x884A
1420 #define GL_DEPTH_TEXTURE_MODE 0x884B
1421 #define GL_TEXTURE_COMPARE_MODE 0x884C
1422 #define GL_TEXTURE_COMPARE_FUNC 0x884D
1423 #define GL_COMPARE_R_TO_TEXTURE 0x884E
1424 
1472 
1473 #define glBlendColor GLEW_GET_FUN(__glewBlendColor)
1474 #define glBlendEquation GLEW_GET_FUN(__glewBlendEquation)
1475 #define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate)
1476 #define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer)
1477 #define glFogCoordd GLEW_GET_FUN(__glewFogCoordd)
1478 #define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv)
1479 #define glFogCoordf GLEW_GET_FUN(__glewFogCoordf)
1480 #define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv)
1481 #define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays)
1482 #define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements)
1483 #define glPointParameterf GLEW_GET_FUN(__glewPointParameterf)
1484 #define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv)
1485 #define glPointParameteri GLEW_GET_FUN(__glewPointParameteri)
1486 #define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv)
1487 #define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b)
1488 #define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv)
1489 #define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d)
1490 #define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv)
1491 #define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f)
1492 #define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv)
1493 #define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i)
1494 #define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv)
1495 #define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s)
1496 #define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv)
1497 #define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub)
1498 #define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv)
1499 #define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui)
1500 #define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv)
1501 #define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us)
1502 #define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv)
1503 #define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer)
1504 #define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d)
1505 #define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv)
1506 #define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f)
1507 #define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv)
1508 #define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i)
1509 #define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv)
1510 #define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s)
1511 #define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv)
1512 #define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d)
1513 #define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv)
1514 #define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f)
1515 #define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv)
1516 #define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i)
1517 #define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv)
1518 #define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s)
1519 #define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv)
1520 
1521 #define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4)
1522 
1523 #endif /* GL_VERSION_1_4 */
1524 
1525 /* ----------------------------- GL_VERSION_1_5 ---------------------------- */
1526 
1527 #ifndef GL_VERSION_1_5
1528 #define GL_VERSION_1_5 1
1529 
1530 #define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
1531 #define GL_FOG_COORD GL_FOG_COORDINATE
1532 #define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
1533 #define GL_SRC0_RGB GL_SOURCE0_RGB
1534 #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
1535 #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
1536 #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA
1537 #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
1538 #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
1539 #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA
1540 #define GL_SRC1_RGB GL_SOURCE1_RGB
1541 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
1542 #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA
1543 #define GL_SRC2_RGB GL_SOURCE2_RGB
1544 #define GL_BUFFER_SIZE 0x8764
1545 #define GL_BUFFER_USAGE 0x8765
1546 #define GL_QUERY_COUNTER_BITS 0x8864
1547 #define GL_CURRENT_QUERY 0x8865
1548 #define GL_QUERY_RESULT 0x8866
1549 #define GL_QUERY_RESULT_AVAILABLE 0x8867
1550 #define GL_ARRAY_BUFFER 0x8892
1551 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
1552 #define GL_ARRAY_BUFFER_BINDING 0x8894
1553 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
1554 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
1555 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
1556 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
1557 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
1558 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
1559 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
1560 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
1561 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
1562 #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
1563 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
1564 #define GL_READ_ONLY 0x88B8
1565 #define GL_WRITE_ONLY 0x88B9
1566 #define GL_READ_WRITE 0x88BA
1567 #define GL_BUFFER_ACCESS 0x88BB
1568 #define GL_BUFFER_MAPPED 0x88BC
1569 #define GL_BUFFER_MAP_POINTER 0x88BD
1570 #define GL_STREAM_DRAW 0x88E0
1571 #define GL_STREAM_READ 0x88E1
1572 #define GL_STREAM_COPY 0x88E2
1573 #define GL_STATIC_DRAW 0x88E4
1574 #define GL_STATIC_READ 0x88E5
1575 #define GL_STATIC_COPY 0x88E6
1576 #define GL_DYNAMIC_DRAW 0x88E8
1577 #define GL_DYNAMIC_READ 0x88E9
1578 #define GL_DYNAMIC_COPY 0x88EA
1579 #define GL_SAMPLES_PASSED 0x8914
1580 
1583 
1601 typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
1603 
1604 #define glBeginQuery GLEW_GET_FUN(__glewBeginQuery)
1605 #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer)
1606 #define glBufferData GLEW_GET_FUN(__glewBufferData)
1607 #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData)
1608 #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers)
1609 #define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries)
1610 #define glEndQuery GLEW_GET_FUN(__glewEndQuery)
1611 #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)
1612 #define glGenQueries GLEW_GET_FUN(__glewGenQueries)
1613 #define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv)
1614 #define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv)
1615 #define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData)
1616 #define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv)
1617 #define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv)
1618 #define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv)
1619 #define glIsBuffer GLEW_GET_FUN(__glewIsBuffer)
1620 #define glIsQuery GLEW_GET_FUN(__glewIsQuery)
1621 #define glMapBuffer GLEW_GET_FUN(__glewMapBuffer)
1622 #define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer)
1623 
1624 #define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5)
1625 
1626 #endif /* GL_VERSION_1_5 */
1627 
1628 /* ----------------------------- GL_VERSION_2_0 ---------------------------- */
1629 
1630 #ifndef GL_VERSION_2_0
1631 #define GL_VERSION_2_0 1
1632 
1633 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
1634 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
1635 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
1636 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
1637 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
1638 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
1639 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
1640 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
1641 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
1642 #define GL_STENCIL_BACK_FUNC 0x8800
1643 #define GL_STENCIL_BACK_FAIL 0x8801
1644 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
1645 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
1646 #define GL_MAX_DRAW_BUFFERS 0x8824
1647 #define GL_DRAW_BUFFER0 0x8825
1648 #define GL_DRAW_BUFFER1 0x8826
1649 #define GL_DRAW_BUFFER2 0x8827
1650 #define GL_DRAW_BUFFER3 0x8828
1651 #define GL_DRAW_BUFFER4 0x8829
1652 #define GL_DRAW_BUFFER5 0x882A
1653 #define GL_DRAW_BUFFER6 0x882B
1654 #define GL_DRAW_BUFFER7 0x882C
1655 #define GL_DRAW_BUFFER8 0x882D
1656 #define GL_DRAW_BUFFER9 0x882E
1657 #define GL_DRAW_BUFFER10 0x882F
1658 #define GL_DRAW_BUFFER11 0x8830
1659 #define GL_DRAW_BUFFER12 0x8831
1660 #define GL_DRAW_BUFFER13 0x8832
1661 #define GL_DRAW_BUFFER14 0x8833
1662 #define GL_DRAW_BUFFER15 0x8834
1663 #define GL_BLEND_EQUATION_ALPHA 0x883D
1664 #define GL_POINT_SPRITE 0x8861
1665 #define GL_COORD_REPLACE 0x8862
1666 #define GL_MAX_VERTEX_ATTRIBS 0x8869
1667 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
1668 #define GL_MAX_TEXTURE_COORDS 0x8871
1669 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
1670 #define GL_FRAGMENT_SHADER 0x8B30
1671 #define GL_VERTEX_SHADER 0x8B31
1672 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
1673 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
1674 #define GL_MAX_VARYING_FLOATS 0x8B4B
1675 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
1676 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
1677 #define GL_SHADER_TYPE 0x8B4F
1678 #define GL_FLOAT_VEC2 0x8B50
1679 #define GL_FLOAT_VEC3 0x8B51
1680 #define GL_FLOAT_VEC4 0x8B52
1681 #define GL_INT_VEC2 0x8B53
1682 #define GL_INT_VEC3 0x8B54
1683 #define GL_INT_VEC4 0x8B55
1684 #define GL_BOOL 0x8B56
1685 #define GL_BOOL_VEC2 0x8B57
1686 #define GL_BOOL_VEC3 0x8B58
1687 #define GL_BOOL_VEC4 0x8B59
1688 #define GL_FLOAT_MAT2 0x8B5A
1689 #define GL_FLOAT_MAT3 0x8B5B
1690 #define GL_FLOAT_MAT4 0x8B5C
1691 #define GL_SAMPLER_1D 0x8B5D
1692 #define GL_SAMPLER_2D 0x8B5E
1693 #define GL_SAMPLER_3D 0x8B5F
1694 #define GL_SAMPLER_CUBE 0x8B60
1695 #define GL_SAMPLER_1D_SHADOW 0x8B61
1696 #define GL_SAMPLER_2D_SHADOW 0x8B62
1697 #define GL_DELETE_STATUS 0x8B80
1698 #define GL_COMPILE_STATUS 0x8B81
1699 #define GL_LINK_STATUS 0x8B82
1700 #define GL_VALIDATE_STATUS 0x8B83
1701 #define GL_INFO_LOG_LENGTH 0x8B84
1702 #define GL_ATTACHED_SHADERS 0x8B85
1703 #define GL_ACTIVE_UNIFORMS 0x8B86
1704 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
1705 #define GL_SHADER_SOURCE_LENGTH 0x8B88
1706 #define GL_ACTIVE_ATTRIBUTES 0x8B89
1707 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
1708 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
1709 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
1710 #define GL_CURRENT_PROGRAM 0x8B8D
1711 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
1712 #define GL_LOWER_LEFT 0x8CA1
1713 #define GL_UPPER_LEFT 0x8CA2
1714 #define GL_STENCIL_BACK_REF 0x8CA3
1715 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
1716 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
1717 
1718 typedef char GLchar;
1719 
1751 typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths);
1813 
1814 #define glAttachShader GLEW_GET_FUN(__glewAttachShader)
1815 #define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation)
1816 #define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate)
1817 #define glCompileShader GLEW_GET_FUN(__glewCompileShader)
1818 #define glCreateProgram GLEW_GET_FUN(__glewCreateProgram)
1819 #define glCreateShader GLEW_GET_FUN(__glewCreateShader)
1820 #define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram)
1821 #define glDeleteShader GLEW_GET_FUN(__glewDeleteShader)
1822 #define glDetachShader GLEW_GET_FUN(__glewDetachShader)
1823 #define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray)
1824 #define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers)
1825 #define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray)
1826 #define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib)
1827 #define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform)
1828 #define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders)
1829 #define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation)
1830 #define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog)
1831 #define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv)
1832 #define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog)
1833 #define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource)
1834 #define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv)
1835 #define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation)
1836 #define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv)
1837 #define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv)
1838 #define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv)
1839 #define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv)
1840 #define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv)
1841 #define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv)
1842 #define glIsProgram GLEW_GET_FUN(__glewIsProgram)
1843 #define glIsShader GLEW_GET_FUN(__glewIsShader)
1844 #define glLinkProgram GLEW_GET_FUN(__glewLinkProgram)
1845 #define glShaderSource GLEW_GET_FUN(__glewShaderSource)
1846 #define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate)
1847 #define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate)
1848 #define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate)
1849 #define glUniform1f GLEW_GET_FUN(__glewUniform1f)
1850 #define glUniform1fv GLEW_GET_FUN(__glewUniform1fv)
1851 #define glUniform1i GLEW_GET_FUN(__glewUniform1i)
1852 #define glUniform1iv GLEW_GET_FUN(__glewUniform1iv)
1853 #define glUniform2f GLEW_GET_FUN(__glewUniform2f)
1854 #define glUniform2fv GLEW_GET_FUN(__glewUniform2fv)
1855 #define glUniform2i GLEW_GET_FUN(__glewUniform2i)
1856 #define glUniform2iv GLEW_GET_FUN(__glewUniform2iv)
1857 #define glUniform3f GLEW_GET_FUN(__glewUniform3f)
1858 #define glUniform3fv GLEW_GET_FUN(__glewUniform3fv)
1859 #define glUniform3i GLEW_GET_FUN(__glewUniform3i)
1860 #define glUniform3iv GLEW_GET_FUN(__glewUniform3iv)
1861 #define glUniform4f GLEW_GET_FUN(__glewUniform4f)
1862 #define glUniform4fv GLEW_GET_FUN(__glewUniform4fv)
1863 #define glUniform4i GLEW_GET_FUN(__glewUniform4i)
1864 #define glUniform4iv GLEW_GET_FUN(__glewUniform4iv)
1865 #define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv)
1866 #define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv)
1867 #define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv)
1868 #define glUseProgram GLEW_GET_FUN(__glewUseProgram)
1869 #define glValidateProgram GLEW_GET_FUN(__glewValidateProgram)
1870 #define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d)
1871 #define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv)
1872 #define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f)
1873 #define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv)
1874 #define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s)
1875 #define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv)
1876 #define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d)
1877 #define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv)
1878 #define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f)
1879 #define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv)
1880 #define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s)
1881 #define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv)
1882 #define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d)
1883 #define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv)
1884 #define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f)
1885 #define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv)
1886 #define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s)
1887 #define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv)
1888 #define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv)
1889 #define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv)
1890 #define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv)
1891 #define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub)
1892 #define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv)
1893 #define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv)
1894 #define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv)
1895 #define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv)
1896 #define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d)
1897 #define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv)
1898 #define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f)
1899 #define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv)
1900 #define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv)
1901 #define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s)
1902 #define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv)
1903 #define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv)
1904 #define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv)
1905 #define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv)
1906 #define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer)
1907 
1908 #define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0)
1909 
1910 #endif /* GL_VERSION_2_0 */
1911 
1912 /* ----------------------------- GL_VERSION_2_1 ---------------------------- */
1913 
1914 #ifndef GL_VERSION_2_1
1915 #define GL_VERSION_2_1 1
1916 
1917 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
1918 #define GL_PIXEL_PACK_BUFFER 0x88EB
1919 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
1920 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
1921 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
1922 #define GL_FLOAT_MAT2x3 0x8B65
1923 #define GL_FLOAT_MAT2x4 0x8B66
1924 #define GL_FLOAT_MAT3x2 0x8B67
1925 #define GL_FLOAT_MAT3x4 0x8B68
1926 #define GL_FLOAT_MAT4x2 0x8B69
1927 #define GL_FLOAT_MAT4x3 0x8B6A
1928 #define GL_SRGB 0x8C40
1929 #define GL_SRGB8 0x8C41
1930 #define GL_SRGB_ALPHA 0x8C42
1931 #define GL_SRGB8_ALPHA8 0x8C43
1932 #define GL_SLUMINANCE_ALPHA 0x8C44
1933 #define GL_SLUMINANCE8_ALPHA8 0x8C45
1934 #define GL_SLUMINANCE 0x8C46
1935 #define GL_SLUMINANCE8 0x8C47
1936 #define GL_COMPRESSED_SRGB 0x8C48
1937 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
1938 #define GL_COMPRESSED_SLUMINANCE 0x8C4A
1939 #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
1940 
1947 
1948 #define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv)
1949 #define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv)
1950 #define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv)
1951 #define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv)
1952 #define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv)
1953 #define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv)
1954 
1955 #define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1)
1956 
1957 #endif /* GL_VERSION_2_1 */
1958 
1959 /* ----------------------------- GL_VERSION_3_0 ---------------------------- */
1960 
1961 #ifndef GL_VERSION_3_0
1962 #define GL_VERSION_3_0 1
1963 
1964 #define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES
1965 #define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5
1966 #define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1
1967 #define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3
1968 #define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB
1969 #define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0
1970 #define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4
1971 #define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2
1972 #define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS
1973 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
1974 #define GL_MAJOR_VERSION 0x821B
1975 #define GL_MINOR_VERSION 0x821C
1976 #define GL_NUM_EXTENSIONS 0x821D
1977 #define GL_CONTEXT_FLAGS 0x821E
1978 #define GL_DEPTH_BUFFER 0x8223
1979 #define GL_STENCIL_BUFFER 0x8224
1980 #define GL_COMPRESSED_RED 0x8225
1981 #define GL_COMPRESSED_RG 0x8226
1982 #define GL_RGBA32F 0x8814
1983 #define GL_RGB32F 0x8815
1984 #define GL_RGBA16F 0x881A
1985 #define GL_RGB16F 0x881B
1986 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
1987 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
1988 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
1989 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
1990 #define GL_CLAMP_VERTEX_COLOR 0x891A
1991 #define GL_CLAMP_FRAGMENT_COLOR 0x891B
1992 #define GL_CLAMP_READ_COLOR 0x891C
1993 #define GL_FIXED_ONLY 0x891D
1994 #define GL_TEXTURE_RED_TYPE 0x8C10
1995 #define GL_TEXTURE_GREEN_TYPE 0x8C11
1996 #define GL_TEXTURE_BLUE_TYPE 0x8C12
1997 #define GL_TEXTURE_ALPHA_TYPE 0x8C13
1998 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
1999 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15
2000 #define GL_TEXTURE_DEPTH_TYPE 0x8C16
2001 #define GL_UNSIGNED_NORMALIZED 0x8C17
2002 #define GL_TEXTURE_1D_ARRAY 0x8C18
2003 #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
2004 #define GL_TEXTURE_2D_ARRAY 0x8C1A
2005 #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
2006 #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
2007 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
2008 #define GL_R11F_G11F_B10F 0x8C3A
2009 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
2010 #define GL_RGB9_E5 0x8C3D
2011 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
2012 #define GL_TEXTURE_SHARED_SIZE 0x8C3F
2013 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
2014 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
2015 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
2016 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
2017 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
2018 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
2019 #define GL_PRIMITIVES_GENERATED 0x8C87
2020 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
2021 #define GL_RASTERIZER_DISCARD 0x8C89
2022 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
2023 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
2024 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
2025 #define GL_SEPARATE_ATTRIBS 0x8C8D
2026 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
2027 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
2028 #define GL_RGBA32UI 0x8D70
2029 #define GL_RGB32UI 0x8D71
2030 #define GL_RGBA16UI 0x8D76
2031 #define GL_RGB16UI 0x8D77
2032 #define GL_RGBA8UI 0x8D7C
2033 #define GL_RGB8UI 0x8D7D
2034 #define GL_RGBA32I 0x8D82
2035 #define GL_RGB32I 0x8D83
2036 #define GL_RGBA16I 0x8D88
2037 #define GL_RGB16I 0x8D89
2038 #define GL_RGBA8I 0x8D8E
2039 #define GL_RGB8I 0x8D8F
2040 #define GL_RED_INTEGER 0x8D94
2041 #define GL_GREEN_INTEGER 0x8D95
2042 #define GL_BLUE_INTEGER 0x8D96
2043 #define GL_ALPHA_INTEGER 0x8D97
2044 #define GL_RGB_INTEGER 0x8D98
2045 #define GL_RGBA_INTEGER 0x8D99
2046 #define GL_BGR_INTEGER 0x8D9A
2047 #define GL_BGRA_INTEGER 0x8D9B
2048 #define GL_SAMPLER_1D_ARRAY 0x8DC0
2049 #define GL_SAMPLER_2D_ARRAY 0x8DC1
2050 #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
2051 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
2052 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
2053 #define GL_UNSIGNED_INT_VEC2 0x8DC6
2054 #define GL_UNSIGNED_INT_VEC3 0x8DC7
2055 #define GL_UNSIGNED_INT_VEC4 0x8DC8
2056 #define GL_INT_SAMPLER_1D 0x8DC9
2057 #define GL_INT_SAMPLER_2D 0x8DCA
2058 #define GL_INT_SAMPLER_3D 0x8DCB
2059 #define GL_INT_SAMPLER_CUBE 0x8DCC
2060 #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
2061 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
2062 #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
2063 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
2064 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
2065 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
2066 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
2067 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
2068 #define GL_QUERY_WAIT 0x8E13
2069 #define GL_QUERY_NO_WAIT 0x8E14
2070 #define GL_QUERY_BY_REGION_WAIT 0x8E15
2071 #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
2072 
2131 
2132 #define glBeginConditionalRender GLEW_GET_FUN(__glewBeginConditionalRender)
2133 #define glBeginTransformFeedback GLEW_GET_FUN(__glewBeginTransformFeedback)
2134 #define glBindBufferBase GLEW_GET_FUN(__glewBindBufferBase)
2135 #define glBindBufferRange GLEW_GET_FUN(__glewBindBufferRange)
2136 #define glBindFragDataLocation GLEW_GET_FUN(__glewBindFragDataLocation)
2137 #define glClampColor GLEW_GET_FUN(__glewClampColor)
2138 #define glClearBufferfi GLEW_GET_FUN(__glewClearBufferfi)
2139 #define glClearBufferfv GLEW_GET_FUN(__glewClearBufferfv)
2140 #define glClearBufferiv GLEW_GET_FUN(__glewClearBufferiv)
2141 #define glClearBufferuiv GLEW_GET_FUN(__glewClearBufferuiv)
2142 #define glColorMaski GLEW_GET_FUN(__glewColorMaski)
2143 #define glDisablei GLEW_GET_FUN(__glewDisablei)
2144 #define glEnablei GLEW_GET_FUN(__glewEnablei)
2145 #define glEndConditionalRender GLEW_GET_FUN(__glewEndConditionalRender)
2146 #define glEndTransformFeedback GLEW_GET_FUN(__glewEndTransformFeedback)
2147 #define glGetBooleani_v GLEW_GET_FUN(__glewGetBooleani_v)
2148 #define glGetFragDataLocation GLEW_GET_FUN(__glewGetFragDataLocation)
2149 #define glGetIntegeri_v GLEW_GET_FUN(__glewGetIntegeri_v)
2150 #define glGetStringi GLEW_GET_FUN(__glewGetStringi)
2151 #define glGetTexParameterIiv GLEW_GET_FUN(__glewGetTexParameterIiv)
2152 #define glGetTexParameterIuiv GLEW_GET_FUN(__glewGetTexParameterIuiv)
2153 #define glGetTransformFeedbackVarying GLEW_GET_FUN(__glewGetTransformFeedbackVarying)
2154 #define glGetUniformuiv GLEW_GET_FUN(__glewGetUniformuiv)
2155 #define glGetVertexAttribIiv GLEW_GET_FUN(__glewGetVertexAttribIiv)
2156 #define glGetVertexAttribIuiv GLEW_GET_FUN(__glewGetVertexAttribIuiv)
2157 #define glIsEnabledi GLEW_GET_FUN(__glewIsEnabledi)
2158 #define glTexParameterIiv GLEW_GET_FUN(__glewTexParameterIiv)
2159 #define glTexParameterIuiv GLEW_GET_FUN(__glewTexParameterIuiv)
2160 #define glTransformFeedbackVaryings GLEW_GET_FUN(__glewTransformFeedbackVaryings)
2161 #define glUniform1ui GLEW_GET_FUN(__glewUniform1ui)
2162 #define glUniform1uiv GLEW_GET_FUN(__glewUniform1uiv)
2163 #define glUniform2ui GLEW_GET_FUN(__glewUniform2ui)
2164 #define glUniform2uiv GLEW_GET_FUN(__glewUniform2uiv)
2165 #define glUniform3ui GLEW_GET_FUN(__glewUniform3ui)
2166 #define glUniform3uiv GLEW_GET_FUN(__glewUniform3uiv)
2167 #define glUniform4ui GLEW_GET_FUN(__glewUniform4ui)
2168 #define glUniform4uiv GLEW_GET_FUN(__glewUniform4uiv)
2169 #define glVertexAttribI1i GLEW_GET_FUN(__glewVertexAttribI1i)
2170 #define glVertexAttribI1iv GLEW_GET_FUN(__glewVertexAttribI1iv)
2171 #define glVertexAttribI1ui GLEW_GET_FUN(__glewVertexAttribI1ui)
2172 #define glVertexAttribI1uiv GLEW_GET_FUN(__glewVertexAttribI1uiv)
2173 #define glVertexAttribI2i GLEW_GET_FUN(__glewVertexAttribI2i)
2174 #define glVertexAttribI2iv GLEW_GET_FUN(__glewVertexAttribI2iv)
2175 #define glVertexAttribI2ui GLEW_GET_FUN(__glewVertexAttribI2ui)
2176 #define glVertexAttribI2uiv GLEW_GET_FUN(__glewVertexAttribI2uiv)
2177 #define glVertexAttribI3i GLEW_GET_FUN(__glewVertexAttribI3i)
2178 #define glVertexAttribI3iv GLEW_GET_FUN(__glewVertexAttribI3iv)
2179 #define glVertexAttribI3ui GLEW_GET_FUN(__glewVertexAttribI3ui)
2180 #define glVertexAttribI3uiv GLEW_GET_FUN(__glewVertexAttribI3uiv)
2181 #define glVertexAttribI4bv GLEW_GET_FUN(__glewVertexAttribI4bv)
2182 #define glVertexAttribI4i GLEW_GET_FUN(__glewVertexAttribI4i)
2183 #define glVertexAttribI4iv GLEW_GET_FUN(__glewVertexAttribI4iv)
2184 #define glVertexAttribI4sv GLEW_GET_FUN(__glewVertexAttribI4sv)
2185 #define glVertexAttribI4ubv GLEW_GET_FUN(__glewVertexAttribI4ubv)
2186 #define glVertexAttribI4ui GLEW_GET_FUN(__glewVertexAttribI4ui)
2187 #define glVertexAttribI4uiv GLEW_GET_FUN(__glewVertexAttribI4uiv)
2188 #define glVertexAttribI4usv GLEW_GET_FUN(__glewVertexAttribI4usv)
2189 #define glVertexAttribIPointer GLEW_GET_FUN(__glewVertexAttribIPointer)
2190 
2191 #define GLEW_VERSION_3_0 GLEW_GET_VAR(__GLEW_VERSION_3_0)
2192 
2193 #endif /* GL_VERSION_3_0 */
2194 
2195 /* -------------------------- GL_3DFX_multisample -------------------------- */
2196 
2197 #ifndef GL_3DFX_multisample
2198 #define GL_3DFX_multisample 1
2199 
2200 #define GL_MULTISAMPLE_3DFX 0x86B2
2201 #define GL_SAMPLE_BUFFERS_3DFX 0x86B3
2202 #define GL_SAMPLES_3DFX 0x86B4
2203 #define GL_MULTISAMPLE_BIT_3DFX 0x20000000
2204 
2205 #define GLEW_3DFX_multisample GLEW_GET_VAR(__GLEW_3DFX_multisample)
2206 
2207 #endif /* GL_3DFX_multisample */
2208 
2209 /* ---------------------------- GL_3DFX_tbuffer ---------------------------- */
2210 
2211 #ifndef GL_3DFX_tbuffer
2212 #define GL_3DFX_tbuffer 1
2213 
2215 
2216 #define glTbufferMask3DFX GLEW_GET_FUN(__glewTbufferMask3DFX)
2217 
2218 #define GLEW_3DFX_tbuffer GLEW_GET_VAR(__GLEW_3DFX_tbuffer)
2219 
2220 #endif /* GL_3DFX_tbuffer */
2221 
2222 /* -------------------- GL_3DFX_texture_compression_FXT1 ------------------- */
2223 
2224 #ifndef GL_3DFX_texture_compression_FXT1
2225 #define GL_3DFX_texture_compression_FXT1 1
2226 
2227 #define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
2228 #define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1
2229 
2230 #define GLEW_3DFX_texture_compression_FXT1 GLEW_GET_VAR(__GLEW_3DFX_texture_compression_FXT1)
2231 
2232 #endif /* GL_3DFX_texture_compression_FXT1 */
2233 
2234 /* ------------------------ GL_APPLE_client_storage ------------------------ */
2235 
2236 #ifndef GL_APPLE_client_storage
2237 #define GL_APPLE_client_storage 1
2238 
2239 #define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2
2240 
2241 #define GLEW_APPLE_client_storage GLEW_GET_VAR(__GLEW_APPLE_client_storage)
2242 
2243 #endif /* GL_APPLE_client_storage */
2244 
2245 /* ------------------------- GL_APPLE_element_array ------------------------ */
2246 
2247 #ifndef GL_APPLE_element_array
2248 #define GL_APPLE_element_array 1
2249 
2250 #define GL_ELEMENT_ARRAY_APPLE 0x8768
2251 #define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8769
2252 #define GL_ELEMENT_ARRAY_POINTER_APPLE 0x876A
2253 
2259 
2260 #define glDrawElementArrayAPPLE GLEW_GET_FUN(__glewDrawElementArrayAPPLE)
2261 #define glDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewDrawRangeElementArrayAPPLE)
2262 #define glElementPointerAPPLE GLEW_GET_FUN(__glewElementPointerAPPLE)
2263 #define glMultiDrawElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawElementArrayAPPLE)
2264 #define glMultiDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawRangeElementArrayAPPLE)
2265 
2266 #define GLEW_APPLE_element_array GLEW_GET_VAR(__GLEW_APPLE_element_array)
2267 
2268 #endif /* GL_APPLE_element_array */
2269 
2270 /* ----------------------------- GL_APPLE_fence ---------------------------- */
2271 
2272 #ifndef GL_APPLE_fence
2273 #define GL_APPLE_fence 1
2274 
2275 #define GL_DRAW_PIXELS_APPLE 0x8A0A
2276 #define GL_FENCE_APPLE 0x8A0B
2277 
2286 
2287 #define glDeleteFencesAPPLE GLEW_GET_FUN(__glewDeleteFencesAPPLE)
2288 #define glFinishFenceAPPLE GLEW_GET_FUN(__glewFinishFenceAPPLE)
2289 #define glFinishObjectAPPLE GLEW_GET_FUN(__glewFinishObjectAPPLE)
2290 #define glGenFencesAPPLE GLEW_GET_FUN(__glewGenFencesAPPLE)
2291 #define glIsFenceAPPLE GLEW_GET_FUN(__glewIsFenceAPPLE)
2292 #define glSetFenceAPPLE GLEW_GET_FUN(__glewSetFenceAPPLE)
2293 #define glTestFenceAPPLE GLEW_GET_FUN(__glewTestFenceAPPLE)
2294 #define glTestObjectAPPLE GLEW_GET_FUN(__glewTestObjectAPPLE)
2295 
2296 #define GLEW_APPLE_fence GLEW_GET_VAR(__GLEW_APPLE_fence)
2297 
2298 #endif /* GL_APPLE_fence */
2299 
2300 /* ------------------------- GL_APPLE_float_pixels ------------------------- */
2301 
2302 #ifndef GL_APPLE_float_pixels
2303 #define GL_APPLE_float_pixels 1
2304 
2305 #define GL_HALF_APPLE 0x140B
2306 #define GL_RGBA_FLOAT32_APPLE 0x8814
2307 #define GL_RGB_FLOAT32_APPLE 0x8815
2308 #define GL_ALPHA_FLOAT32_APPLE 0x8816
2309 #define GL_INTENSITY_FLOAT32_APPLE 0x8817
2310 #define GL_LUMINANCE_FLOAT32_APPLE 0x8818
2311 #define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
2312 #define GL_RGBA_FLOAT16_APPLE 0x881A
2313 #define GL_RGB_FLOAT16_APPLE 0x881B
2314 #define GL_ALPHA_FLOAT16_APPLE 0x881C
2315 #define GL_INTENSITY_FLOAT16_APPLE 0x881D
2316 #define GL_LUMINANCE_FLOAT16_APPLE 0x881E
2317 #define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F
2318 #define GL_COLOR_FLOAT_APPLE 0x8A0F
2319 
2320 #define GLEW_APPLE_float_pixels GLEW_GET_VAR(__GLEW_APPLE_float_pixels)
2321 
2322 #endif /* GL_APPLE_float_pixels */
2323 
2324 /* ---------------------- GL_APPLE_flush_buffer_range ---------------------- */
2325 
2326 #ifndef GL_APPLE_flush_buffer_range
2327 #define GL_APPLE_flush_buffer_range 1
2328 
2329 #define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
2330 #define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13
2331 
2334 
2335 #define glBufferParameteriAPPLE GLEW_GET_FUN(__glewBufferParameteriAPPLE)
2336 #define glFlushMappedBufferRangeAPPLE GLEW_GET_FUN(__glewFlushMappedBufferRangeAPPLE)
2337 
2338 #define GLEW_APPLE_flush_buffer_range GLEW_GET_VAR(__GLEW_APPLE_flush_buffer_range)
2339 
2340 #endif /* GL_APPLE_flush_buffer_range */
2341 
2342 /* ------------------------- GL_APPLE_pixel_buffer ------------------------- */
2343 
2344 #ifndef GL_APPLE_pixel_buffer
2345 #define GL_APPLE_pixel_buffer 1
2346 
2347 #define GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10
2348 
2349 #define GLEW_APPLE_pixel_buffer GLEW_GET_VAR(__GLEW_APPLE_pixel_buffer)
2350 
2351 #endif /* GL_APPLE_pixel_buffer */
2352 
2353 /* ------------------------ GL_APPLE_specular_vector ----------------------- */
2354 
2355 #ifndef GL_APPLE_specular_vector
2356 #define GL_APPLE_specular_vector 1
2357 
2358 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
2359 
2360 #define GLEW_APPLE_specular_vector GLEW_GET_VAR(__GLEW_APPLE_specular_vector)
2361 
2362 #endif /* GL_APPLE_specular_vector */
2363 
2364 /* ------------------------- GL_APPLE_texture_range ------------------------ */
2365 
2366 #ifndef GL_APPLE_texture_range
2367 #define GL_APPLE_texture_range 1
2368 
2369 #define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
2370 #define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
2371 #define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
2372 #define GL_STORAGE_PRIVATE_APPLE 0x85BD
2373 #define GL_STORAGE_CACHED_APPLE 0x85BE
2374 #define GL_STORAGE_SHARED_APPLE 0x85BF
2375 
2378 
2379 #define glGetTexParameterPointervAPPLE GLEW_GET_FUN(__glewGetTexParameterPointervAPPLE)
2380 #define glTextureRangeAPPLE GLEW_GET_FUN(__glewTextureRangeAPPLE)
2381 
2382 #define GLEW_APPLE_texture_range GLEW_GET_VAR(__GLEW_APPLE_texture_range)
2383 
2384 #endif /* GL_APPLE_texture_range */
2385 
2386 /* ------------------------ GL_APPLE_transform_hint ------------------------ */
2387 
2388 #ifndef GL_APPLE_transform_hint
2389 #define GL_APPLE_transform_hint 1
2390 
2391 #define GL_TRANSFORM_HINT_APPLE 0x85B1
2392 
2393 #define GLEW_APPLE_transform_hint GLEW_GET_VAR(__GLEW_APPLE_transform_hint)
2394 
2395 #endif /* GL_APPLE_transform_hint */
2396 
2397 /* ---------------------- GL_APPLE_vertex_array_object --------------------- */
2398 
2399 #ifndef GL_APPLE_vertex_array_object
2400 #define GL_APPLE_vertex_array_object 1
2401 
2402 #define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5
2403 
2408 
2409 #define glBindVertexArrayAPPLE GLEW_GET_FUN(__glewBindVertexArrayAPPLE)
2410 #define glDeleteVertexArraysAPPLE GLEW_GET_FUN(__glewDeleteVertexArraysAPPLE)
2411 #define glGenVertexArraysAPPLE GLEW_GET_FUN(__glewGenVertexArraysAPPLE)
2412 #define glIsVertexArrayAPPLE GLEW_GET_FUN(__glewIsVertexArrayAPPLE)
2413 
2414 #define GLEW_APPLE_vertex_array_object GLEW_GET_VAR(__GLEW_APPLE_vertex_array_object)
2415 
2416 #endif /* GL_APPLE_vertex_array_object */
2417 
2418 /* ---------------------- GL_APPLE_vertex_array_range ---------------------- */
2419 
2420 #ifndef GL_APPLE_vertex_array_range
2421 #define GL_APPLE_vertex_array_range 1
2422 
2423 #define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D
2424 #define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
2425 #define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
2426 #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_APPLE 0x8520
2427 #define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
2428 #define GL_STORAGE_CACHED_APPLE 0x85BE
2429 #define GL_STORAGE_SHARED_APPLE 0x85BF
2430 
2434 
2435 #define glFlushVertexArrayRangeAPPLE GLEW_GET_FUN(__glewFlushVertexArrayRangeAPPLE)
2436 #define glVertexArrayParameteriAPPLE GLEW_GET_FUN(__glewVertexArrayParameteriAPPLE)
2437 #define glVertexArrayRangeAPPLE GLEW_GET_FUN(__glewVertexArrayRangeAPPLE)
2438 
2439 #define GLEW_APPLE_vertex_array_range GLEW_GET_VAR(__GLEW_APPLE_vertex_array_range)
2440 
2441 #endif /* GL_APPLE_vertex_array_range */
2442 
2443 /* --------------------------- GL_APPLE_ycbcr_422 -------------------------- */
2444 
2445 #ifndef GL_APPLE_ycbcr_422
2446 #define GL_APPLE_ycbcr_422 1
2447 
2448 #define GL_YCBCR_422_APPLE 0x85B9
2449 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
2450 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
2451 
2452 #define GLEW_APPLE_ycbcr_422 GLEW_GET_VAR(__GLEW_APPLE_ycbcr_422)
2453 
2454 #endif /* GL_APPLE_ycbcr_422 */
2455 
2456 /* ----------------------- GL_ARB_color_buffer_float ----------------------- */
2457 
2458 #ifndef GL_ARB_color_buffer_float
2459 #define GL_ARB_color_buffer_float 1
2460 
2461 #define GL_RGBA_FLOAT_MODE_ARB 0x8820
2462 #define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
2463 #define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
2464 #define GL_CLAMP_READ_COLOR_ARB 0x891C
2465 #define GL_FIXED_ONLY_ARB 0x891D
2466 
2468 
2469 #define glClampColorARB GLEW_GET_FUN(__glewClampColorARB)
2470 
2471 #define GLEW_ARB_color_buffer_float GLEW_GET_VAR(__GLEW_ARB_color_buffer_float)
2472 
2473 #endif /* GL_ARB_color_buffer_float */
2474 
2475 /* ----------------------- GL_ARB_depth_buffer_float ----------------------- */
2476 
2477 #ifndef GL_ARB_depth_buffer_float
2478 #define GL_ARB_depth_buffer_float 1
2479 
2480 #define GL_DEPTH_COMPONENT32F 0x8CAC
2481 #define GL_DEPTH32F_STENCIL8 0x8CAD
2482 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
2483 
2484 #define GLEW_ARB_depth_buffer_float GLEW_GET_VAR(__GLEW_ARB_depth_buffer_float)
2485 
2486 #endif /* GL_ARB_depth_buffer_float */
2487 
2488 /* -------------------------- GL_ARB_depth_texture ------------------------- */
2489 
2490 #ifndef GL_ARB_depth_texture
2491 #define GL_ARB_depth_texture 1
2492 
2493 #define GL_DEPTH_COMPONENT16_ARB 0x81A5
2494 #define GL_DEPTH_COMPONENT24_ARB 0x81A6
2495 #define GL_DEPTH_COMPONENT32_ARB 0x81A7
2496 #define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
2497 #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
2498 
2499 #define GLEW_ARB_depth_texture GLEW_GET_VAR(__GLEW_ARB_depth_texture)
2500 
2501 #endif /* GL_ARB_depth_texture */
2502 
2503 /* -------------------------- GL_ARB_draw_buffers -------------------------- */
2504 
2505 #ifndef GL_ARB_draw_buffers
2506 #define GL_ARB_draw_buffers 1
2507 
2508 #define GL_MAX_DRAW_BUFFERS_ARB 0x8824
2509 #define GL_DRAW_BUFFER0_ARB 0x8825
2510 #define GL_DRAW_BUFFER1_ARB 0x8826
2511 #define GL_DRAW_BUFFER2_ARB 0x8827
2512 #define GL_DRAW_BUFFER3_ARB 0x8828
2513 #define GL_DRAW_BUFFER4_ARB 0x8829
2514 #define GL_DRAW_BUFFER5_ARB 0x882A
2515 #define GL_DRAW_BUFFER6_ARB 0x882B
2516 #define GL_DRAW_BUFFER7_ARB 0x882C
2517 #define GL_DRAW_BUFFER8_ARB 0x882D
2518 #define GL_DRAW_BUFFER9_ARB 0x882E
2519 #define GL_DRAW_BUFFER10_ARB 0x882F
2520 #define GL_DRAW_BUFFER11_ARB 0x8830
2521 #define GL_DRAW_BUFFER12_ARB 0x8831
2522 #define GL_DRAW_BUFFER13_ARB 0x8832
2523 #define GL_DRAW_BUFFER14_ARB 0x8833
2524 #define GL_DRAW_BUFFER15_ARB 0x8834
2525 
2527 
2528 #define glDrawBuffersARB GLEW_GET_FUN(__glewDrawBuffersARB)
2529 
2530 #define GLEW_ARB_draw_buffers GLEW_GET_VAR(__GLEW_ARB_draw_buffers)
2531 
2532 #endif /* GL_ARB_draw_buffers */
2533 
2534 /* ------------------------- GL_ARB_draw_instanced ------------------------- */
2535 
2536 #ifndef GL_ARB_draw_instanced
2537 #define GL_ARB_draw_instanced 1
2538 
2541 
2542 #define glDrawArraysInstancedARB GLEW_GET_FUN(__glewDrawArraysInstancedARB)
2543 #define glDrawElementsInstancedARB GLEW_GET_FUN(__glewDrawElementsInstancedARB)
2544 
2545 #define GLEW_ARB_draw_instanced GLEW_GET_VAR(__GLEW_ARB_draw_instanced)
2546 
2547 #endif /* GL_ARB_draw_instanced */
2548 
2549 /* ------------------------ GL_ARB_fragment_program ------------------------ */
2550 
2551 #ifndef GL_ARB_fragment_program
2552 #define GL_ARB_fragment_program 1
2553 
2554 #define GL_FRAGMENT_PROGRAM_ARB 0x8804
2555 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
2556 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
2557 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
2558 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
2559 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
2560 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
2561 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
2562 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
2563 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
2564 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
2565 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
2566 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
2567 #define GL_MAX_TEXTURE_COORDS_ARB 0x8871
2568 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
2569 
2570 #define GLEW_ARB_fragment_program GLEW_GET_VAR(__GLEW_ARB_fragment_program)
2571 
2572 #endif /* GL_ARB_fragment_program */
2573 
2574 /* --------------------- GL_ARB_fragment_program_shadow -------------------- */
2575 
2576 #ifndef GL_ARB_fragment_program_shadow
2577 #define GL_ARB_fragment_program_shadow 1
2578 
2579 #define GLEW_ARB_fragment_program_shadow GLEW_GET_VAR(__GLEW_ARB_fragment_program_shadow)
2580 
2581 #endif /* GL_ARB_fragment_program_shadow */
2582 
2583 /* ------------------------- GL_ARB_fragment_shader ------------------------ */
2584 
2585 #ifndef GL_ARB_fragment_shader
2586 #define GL_ARB_fragment_shader 1
2587 
2588 #define GL_FRAGMENT_SHADER_ARB 0x8B30
2589 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
2590 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
2591 
2592 #define GLEW_ARB_fragment_shader GLEW_GET_VAR(__GLEW_ARB_fragment_shader)
2593 
2594 #endif /* GL_ARB_fragment_shader */
2595 
2596 /* ----------------------- GL_ARB_framebuffer_object ----------------------- */
2597 
2598 #ifndef GL_ARB_framebuffer_object
2599 #define GL_ARB_framebuffer_object 1
2600 
2601 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
2602 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
2603 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
2604 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
2605 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
2606 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
2607 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
2608 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
2609 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
2610 #define GL_FRAMEBUFFER_DEFAULT 0x8218
2611 #define GL_FRAMEBUFFER_UNDEFINED 0x8219
2612 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
2613 #define GL_INDEX 0x8222
2614 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
2615 #define GL_DEPTH_STENCIL 0x84F9
2616 #define GL_UNSIGNED_INT_24_8 0x84FA
2617 #define GL_DEPTH24_STENCIL8 0x88F0
2618 #define GL_TEXTURE_STENCIL_SIZE 0x88F1
2619 #define GL_UNSIGNED_NORMALIZED 0x8C17
2620 #define GL_SRGB 0x8C40
2621 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
2622 #define GL_FRAMEBUFFER_BINDING 0x8CA6
2623 #define GL_RENDERBUFFER_BINDING 0x8CA7
2624 #define GL_READ_FRAMEBUFFER 0x8CA8
2625 #define GL_DRAW_FRAMEBUFFER 0x8CA9
2626 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
2627 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
2628 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
2629 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
2630 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
2631 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
2632 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
2633 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
2634 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
2635 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
2636 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
2637 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
2638 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
2639 #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
2640 #define GL_COLOR_ATTACHMENT0 0x8CE0
2641 #define GL_COLOR_ATTACHMENT1 0x8CE1
2642 #define GL_COLOR_ATTACHMENT2 0x8CE2
2643 #define GL_COLOR_ATTACHMENT3 0x8CE3
2644 #define GL_COLOR_ATTACHMENT4 0x8CE4
2645 #define GL_COLOR_ATTACHMENT5 0x8CE5
2646 #define GL_COLOR_ATTACHMENT6 0x8CE6
2647 #define GL_COLOR_ATTACHMENT7 0x8CE7
2648 #define GL_COLOR_ATTACHMENT8 0x8CE8
2649 #define GL_COLOR_ATTACHMENT9 0x8CE9
2650 #define GL_COLOR_ATTACHMENT10 0x8CEA
2651 #define GL_COLOR_ATTACHMENT11 0x8CEB
2652 #define GL_COLOR_ATTACHMENT12 0x8CEC
2653 #define GL_COLOR_ATTACHMENT13 0x8CED
2654 #define GL_COLOR_ATTACHMENT14 0x8CEE
2655 #define GL_COLOR_ATTACHMENT15 0x8CEF
2656 #define GL_DEPTH_ATTACHMENT 0x8D00
2657 #define GL_STENCIL_ATTACHMENT 0x8D20
2658 #define GL_FRAMEBUFFER 0x8D40
2659 #define GL_RENDERBUFFER 0x8D41
2660 #define GL_RENDERBUFFER_WIDTH 0x8D42
2661 #define GL_RENDERBUFFER_HEIGHT 0x8D43
2662 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
2663 #define GL_STENCIL_INDEX1 0x8D46
2664 #define GL_STENCIL_INDEX4 0x8D47
2665 #define GL_STENCIL_INDEX8 0x8D48
2666 #define GL_STENCIL_INDEX16 0x8D49
2667 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
2668 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
2669 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
2670 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
2671 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
2672 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
2673 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
2674 #define GL_MAX_SAMPLES 0x8D57
2675 
2696 
2697 #define glBindFramebuffer GLEW_GET_FUN(__glewBindFramebuffer)
2698 #define glBindRenderbuffer GLEW_GET_FUN(__glewBindRenderbuffer)
2699 #define glBlitFramebuffer GLEW_GET_FUN(__glewBlitFramebuffer)
2700 #define glCheckFramebufferStatus GLEW_GET_FUN(__glewCheckFramebufferStatus)
2701 #define glDeleteFramebuffers GLEW_GET_FUN(__glewDeleteFramebuffers)
2702 #define glDeleteRenderbuffers GLEW_GET_FUN(__glewDeleteRenderbuffers)
2703 #define glFramebufferRenderbuffer GLEW_GET_FUN(__glewFramebufferRenderbuffer)
2704 #define glFramebufferTexturLayer GLEW_GET_FUN(__glewFramebufferTexturLayer)
2705 #define glFramebufferTexture1D GLEW_GET_FUN(__glewFramebufferTexture1D)
2706 #define glFramebufferTexture2D GLEW_GET_FUN(__glewFramebufferTexture2D)
2707 #define glFramebufferTexture3D GLEW_GET_FUN(__glewFramebufferTexture3D)
2708 #define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers)
2709 #define glGenRenderbuffers GLEW_GET_FUN(__glewGenRenderbuffers)
2710 #define glGenerateMipmap GLEW_GET_FUN(__glewGenerateMipmap)
2711 #define glGetFramebufferAttachmentParameteriv GLEW_GET_FUN(__glewGetFramebufferAttachmentParameteriv)
2712 #define glGetRenderbufferParameteriv GLEW_GET_FUN(__glewGetRenderbufferParameteriv)
2713 #define glIsFramebuffer GLEW_GET_FUN(__glewIsFramebuffer)
2714 #define glIsRenderbuffer GLEW_GET_FUN(__glewIsRenderbuffer)
2715 #define glRenderbufferStorage GLEW_GET_FUN(__glewRenderbufferStorage)
2716 #define glRenderbufferStorageMultisample GLEW_GET_FUN(__glewRenderbufferStorageMultisample)
2717 
2718 #define GLEW_ARB_framebuffer_object GLEW_GET_VAR(__GLEW_ARB_framebuffer_object)
2719 
2720 #endif /* GL_ARB_framebuffer_object */
2721 
2722 /* ------------------------ GL_ARB_framebuffer_sRGB ------------------------ */
2723 
2724 #ifndef GL_ARB_framebuffer_sRGB
2725 #define GL_ARB_framebuffer_sRGB 1
2726 
2727 #define GL_FRAMEBUFFER_SRGB 0x8DB9
2728 
2729 #define GLEW_ARB_framebuffer_sRGB GLEW_GET_VAR(__GLEW_ARB_framebuffer_sRGB)
2730 
2731 #endif /* GL_ARB_framebuffer_sRGB */
2732 
2733 /* ------------------------ GL_ARB_geometry_shader4 ------------------------ */
2734 
2735 #ifndef GL_ARB_geometry_shader4
2736 #define GL_ARB_geometry_shader4 1
2737 
2738 #define GL_LINES_ADJACENCY_ARB 0xA
2739 #define GL_LINE_STRIP_ADJACENCY_ARB 0xB
2740 #define GL_TRIANGLES_ADJACENCY_ARB 0xC
2741 #define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0xD
2742 #define GL_PROGRAM_POINT_SIZE_ARB 0x8642
2743 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
2744 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
2745 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
2746 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
2747 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
2748 #define GL_GEOMETRY_SHADER_ARB 0x8DD9
2749 #define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA
2750 #define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB
2751 #define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC
2752 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
2753 #define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
2754 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
2755 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
2756 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
2757 
2762 
2763 #define glFramebufferTextureARB GLEW_GET_FUN(__glewFramebufferTextureARB)
2764 #define glFramebufferTextureFaceARB GLEW_GET_FUN(__glewFramebufferTextureFaceARB)
2765 #define glFramebufferTextureLayerARB GLEW_GET_FUN(__glewFramebufferTextureLayerARB)
2766 #define glProgramParameteriARB GLEW_GET_FUN(__glewProgramParameteriARB)
2767 
2768 #define GLEW_ARB_geometry_shader4 GLEW_GET_VAR(__GLEW_ARB_geometry_shader4)
2769 
2770 #endif /* GL_ARB_geometry_shader4 */
2771 
2772 /* ------------------------ GL_ARB_half_float_pixel ------------------------ */
2773 
2774 #ifndef GL_ARB_half_float_pixel
2775 #define GL_ARB_half_float_pixel 1
2776 
2777 #define GL_HALF_FLOAT_ARB 0x140B
2778 
2779 #define GLEW_ARB_half_float_pixel GLEW_GET_VAR(__GLEW_ARB_half_float_pixel)
2780 
2781 #endif /* GL_ARB_half_float_pixel */
2782 
2783 /* ------------------------ GL_ARB_half_float_vertex ----------------------- */
2784 
2785 #ifndef GL_ARB_half_float_vertex
2786 #define GL_ARB_half_float_vertex 1
2787 
2788 #define GL_HALF_FLOAT 0x140B
2789 
2790 #define GLEW_ARB_half_float_vertex GLEW_GET_VAR(__GLEW_ARB_half_float_vertex)
2791 
2792 #endif /* GL_ARB_half_float_vertex */
2793 
2794 /* ----------------------------- GL_ARB_imaging ---------------------------- */
2795 
2796 #ifndef GL_ARB_imaging
2797 #define GL_ARB_imaging 1
2798 
2799 #define GL_CONSTANT_COLOR 0x8001
2800 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
2801 #define GL_CONSTANT_ALPHA 0x8003
2802 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
2803 #define GL_BLEND_COLOR 0x8005
2804 #define GL_FUNC_ADD 0x8006
2805 #define GL_MIN 0x8007
2806 #define GL_MAX 0x8008
2807 #define GL_BLEND_EQUATION 0x8009
2808 #define GL_FUNC_SUBTRACT 0x800A
2809 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
2810 #define GL_CONVOLUTION_1D 0x8010
2811 #define GL_CONVOLUTION_2D 0x8011
2812 #define GL_SEPARABLE_2D 0x8012
2813 #define GL_CONVOLUTION_BORDER_MODE 0x8013
2814 #define GL_CONVOLUTION_FILTER_SCALE 0x8014
2815 #define GL_CONVOLUTION_FILTER_BIAS 0x8015
2816 #define GL_REDUCE 0x8016
2817 #define GL_CONVOLUTION_FORMAT 0x8017
2818 #define GL_CONVOLUTION_WIDTH 0x8018
2819 #define GL_CONVOLUTION_HEIGHT 0x8019
2820 #define GL_MAX_CONVOLUTION_WIDTH 0x801A
2821 #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
2822 #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
2823 #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
2824 #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
2825 #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
2826 #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
2827 #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
2828 #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
2829 #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
2830 #define GL_HISTOGRAM 0x8024
2831 #define GL_PROXY_HISTOGRAM 0x8025
2832 #define GL_HISTOGRAM_WIDTH 0x8026
2833 #define GL_HISTOGRAM_FORMAT 0x8027
2834 #define GL_HISTOGRAM_RED_SIZE 0x8028
2835 #define GL_HISTOGRAM_GREEN_SIZE 0x8029
2836 #define GL_HISTOGRAM_BLUE_SIZE 0x802A
2837 #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
2838 #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
2839 #define GL_HISTOGRAM_SINK 0x802D
2840 #define GL_MINMAX 0x802E
2841 #define GL_MINMAX_FORMAT 0x802F
2842 #define GL_MINMAX_SINK 0x8030
2843 #define GL_TABLE_TOO_LARGE 0x8031
2844 #define GL_COLOR_MATRIX 0x80B1
2845 #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
2846 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
2847 #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
2848 #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
2849 #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
2850 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
2851 #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
2852 #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
2853 #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
2854 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
2855 #define GL_COLOR_TABLE 0x80D0
2856 #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
2857 #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
2858 #define GL_PROXY_COLOR_TABLE 0x80D3
2859 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
2860 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
2861 #define GL_COLOR_TABLE_SCALE 0x80D6
2862 #define GL_COLOR_TABLE_BIAS 0x80D7
2863 #define GL_COLOR_TABLE_FORMAT 0x80D8
2864 #define GL_COLOR_TABLE_WIDTH 0x80D9
2865 #define GL_COLOR_TABLE_RED_SIZE 0x80DA
2866 #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
2867 #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
2868 #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
2869 #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
2870 #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
2871 #define GL_IGNORE_BORDER 0x8150
2872 #define GL_CONSTANT_BORDER 0x8151
2873 #define GL_WRAP_BORDER 0x8152
2874 #define GL_REPLICATE_BORDER 0x8153
2875 #define GL_CONVOLUTION_BORDER_COLOR 0x8154
2876 
2909 
2910 #define glColorSubTable GLEW_GET_FUN(__glewColorSubTable)
2911 #define glColorTable GLEW_GET_FUN(__glewColorTable)
2912 #define glColorTableParameterfv GLEW_GET_FUN(__glewColorTableParameterfv)
2913 #define glColorTableParameteriv GLEW_GET_FUN(__glewColorTableParameteriv)
2914 #define glConvolutionFilter1D GLEW_GET_FUN(__glewConvolutionFilter1D)
2915 #define glConvolutionFilter2D GLEW_GET_FUN(__glewConvolutionFilter2D)
2916 #define glConvolutionParameterf GLEW_GET_FUN(__glewConvolutionParameterf)
2917 #define glConvolutionParameterfv GLEW_GET_FUN(__glewConvolutionParameterfv)
2918 #define glConvolutionParameteri GLEW_GET_FUN(__glewConvolutionParameteri)
2919 #define glConvolutionParameteriv GLEW_GET_FUN(__glewConvolutionParameteriv)
2920 #define glCopyColorSubTable GLEW_GET_FUN(__glewCopyColorSubTable)
2921 #define glCopyColorTable GLEW_GET_FUN(__glewCopyColorTable)
2922 #define glCopyConvolutionFilter1D GLEW_GET_FUN(__glewCopyConvolutionFilter1D)
2923 #define glCopyConvolutionFilter2D GLEW_GET_FUN(__glewCopyConvolutionFilter2D)
2924 #define glGetColorTable GLEW_GET_FUN(__glewGetColorTable)
2925 #define glGetColorTableParameterfv GLEW_GET_FUN(__glewGetColorTableParameterfv)
2926 #define glGetColorTableParameteriv GLEW_GET_FUN(__glewGetColorTableParameteriv)
2927 #define glGetConvolutionFilter GLEW_GET_FUN(__glewGetConvolutionFilter)
2928 #define glGetConvolutionParameterfv GLEW_GET_FUN(__glewGetConvolutionParameterfv)
2929 #define glGetConvolutionParameteriv GLEW_GET_FUN(__glewGetConvolutionParameteriv)
2930 #define glGetHistogram GLEW_GET_FUN(__glewGetHistogram)
2931 #define glGetHistogramParameterfv GLEW_GET_FUN(__glewGetHistogramParameterfv)
2932 #define glGetHistogramParameteriv GLEW_GET_FUN(__glewGetHistogramParameteriv)
2933 #define glGetMinmax GLEW_GET_FUN(__glewGetMinmax)
2934 #define glGetMinmaxParameterfv GLEW_GET_FUN(__glewGetMinmaxParameterfv)
2935 #define glGetMinmaxParameteriv GLEW_GET_FUN(__glewGetMinmaxParameteriv)
2936 #define glGetSeparableFilter GLEW_GET_FUN(__glewGetSeparableFilter)
2937 #define glHistogram GLEW_GET_FUN(__glewHistogram)
2938 #define glMinmax GLEW_GET_FUN(__glewMinmax)
2939 #define glResetHistogram GLEW_GET_FUN(__glewResetHistogram)
2940 #define glResetMinmax GLEW_GET_FUN(__glewResetMinmax)
2941 #define glSeparableFilter2D GLEW_GET_FUN(__glewSeparableFilter2D)
2942 
2943 #define GLEW_ARB_imaging GLEW_GET_VAR(__GLEW_ARB_imaging)
2944 
2945 #endif /* GL_ARB_imaging */
2946 
2947 /* ------------------------ GL_ARB_instanced_arrays ------------------------ */
2948 
2949 #ifndef GL_ARB_instanced_arrays
2950 #define GL_ARB_instanced_arrays 1
2951 
2952 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
2953 
2955 
2956 #define glVertexAttribDivisorARB GLEW_GET_FUN(__glewVertexAttribDivisorARB)
2957 
2958 #define GLEW_ARB_instanced_arrays GLEW_GET_VAR(__GLEW_ARB_instanced_arrays)
2959 
2960 #endif /* GL_ARB_instanced_arrays */
2961 
2962 /* ------------------------ GL_ARB_map_buffer_range ------------------------ */
2963 
2964 #ifndef GL_ARB_map_buffer_range
2965 #define GL_ARB_map_buffer_range 1
2966 
2967 #define GL_MAP_READ_BIT 0x0001
2968 #define GL_MAP_WRITE_BIT 0x0002
2969 #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
2970 #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
2971 #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
2972 #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
2973 
2976 
2977 #define glFlushMappedBufferRange GLEW_GET_FUN(__glewFlushMappedBufferRange)
2978 #define glMapBufferRange GLEW_GET_FUN(__glewMapBufferRange)
2979 
2980 #define GLEW_ARB_map_buffer_range GLEW_GET_VAR(__GLEW_ARB_map_buffer_range)
2981 
2982 #endif /* GL_ARB_map_buffer_range */
2983 
2984 /* ------------------------- GL_ARB_matrix_palette ------------------------- */
2985 
2986 #ifndef GL_ARB_matrix_palette
2987 #define GL_ARB_matrix_palette 1
2988 
2989 #define GL_MATRIX_PALETTE_ARB 0x8840
2990 #de