HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glew.h
Go to the documentation of this file.
1 /*
2 ** The OpenGL Extension Wrangler Library
3 ** Copyright (C) 2008-2015, Nigel Stewart <nigels[]users sourceforge net>
4 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
5 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
6 ** Copyright (C) 2002, Lev Povalahev
7 ** All rights reserved.
8 **
9 ** Redistribution and use in source and binary forms, with or without
10 ** modification, are permitted provided that the following conditions are met:
11 **
12 ** * Redistributions of source code must retain the above copyright notice,
13 ** this list of conditions and the following disclaimer.
14 ** * Redistributions in binary form must reproduce the above copyright notice,
15 ** this list of conditions and the following disclaimer in the documentation
16 ** and/or other materials provided with the distribution.
17 ** * The name of the author may be used to endorse or promote products
18 ** derived from this software without specific prior written permission.
19 **
20 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 ** THE POSSIBILITY OF SUCH DAMAGE.
31 */
32 
33 /*
34  * Mesa 3-D graphics library
35  * Version: 7.0
36  *
37  * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
38  *
39  * Permission is hereby granted, free of charge, to any person obtaining a
40  * copy of this software and associated documentation files (the "Software"),
41  * to deal in the Software without restriction, including without limitation
42  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
43  * and/or sell copies of the Software, and to permit persons to whom the
44  * Software is furnished to do so, subject to the following conditions:
45  *
46  * The above copyright notice and this permission notice shall be included
47  * in all copies or substantial portions of the Software.
48  *
49  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
50  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
52  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
53  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55  */
56 
57 /*
58 ** Copyright (c) 2007 The Khronos Group Inc.
59 **
60 ** Permission is hereby granted, free of charge, to any person obtaining a
61 ** copy of this software and/or associated documentation files (the
62 ** "Materials"), to deal in the Materials without restriction, including
63 ** without limitation the rights to use, copy, modify, merge, publish,
64 ** distribute, sublicense, and/or sell copies of the Materials, and to
65 ** permit persons to whom the Materials are furnished to do so, subject to
66 ** the following conditions:
67 **
68 ** The above copyright notice and this permission notice shall be included
69 ** in all copies or substantial portions of the Materials.
70 **
71 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
72 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
74 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
75 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
76 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
77 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
78 */
79 
80 #ifndef __glew_h__
81 #define __glew_h__
82 #define __GLEW_H__
83 
84 #define GLEW_STATIC
85 
86 #if defined(__gl_h_) || defined(__GL_H__) || defined(_GL_H) || defined(__X_GL_H)
87 #error gl.h included before glew.h
88 #endif
89 #if defined(__gl2_h_)
90 #error gl2.h included before glew.h
91 #endif
92 #if defined(__gltypes_h_)
93 #error gltypes.h included before glew.h
94 #endif
95 #if defined(__REGAL_H__)
96 #error Regal.h included before glew.h
97 #endif
98 #if defined(__glext_h_) || defined(__GLEXT_H_)
99 #error glext.h included before glew.h
100 #endif
101 #if defined(__gl_ATI_h_)
102 #error glATI.h included before glew.h
103 #endif
104 
105 #define __gl_h_
106 #define __gl2_h_
107 #define __GL_H__
108 #define _GL_H
109 #define __gltypes_h_
110 #define __REGAL_H__
111 #define __X_GL_H
112 #define __glext_h_
113 #define __GLEXT_H_
114 #define __gl_ATI_h_
115 
116 #if defined(_WIN32)
117 
118 /*
119  * GLEW does not include <windows.h> to avoid name space pollution.
120  * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
121  * defined properly.
122  */
123 /* <windef.h> and <gl.h>*/
124 #ifdef APIENTRY
125 # ifndef GLAPIENTRY
126 # define GLAPIENTRY APIENTRY
127 # endif
128 # ifndef GLEWAPIENTRY
129 # define GLEWAPIENTRY APIENTRY
130 # endif
131 #else
132 #define GLEW_APIENTRY_DEFINED
133 # if defined(__MINGW32__) || defined(__CYGWIN__) || (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
134 # define APIENTRY __stdcall
135 # ifndef GLAPIENTRY
136 # define GLAPIENTRY __stdcall
137 # endif
138 # ifndef GLEWAPIENTRY
139 # define GLEWAPIENTRY __stdcall
140 # endif
141 # else
142 # define APIENTRY
143 # endif
144 #endif
145 #ifndef GLAPI
146 # if defined(__MINGW32__) || defined(__CYGWIN__)
147 # define GLAPI extern
148 # endif
149 #endif
150 /* <winnt.h> */
151 #ifndef CALLBACK
152 #define GLEW_CALLBACK_DEFINED
153 # if defined(__MINGW32__) || defined(__CYGWIN__)
154 # define CALLBACK __attribute__ ((__stdcall__))
155 # elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
156 # define CALLBACK __stdcall
157 # else
158 # define CALLBACK
159 # endif
160 #endif
161 /* <wingdi.h> and <winnt.h> */
162 #ifndef WINGDIAPI
163 #define GLEW_WINGDIAPI_DEFINED
164 #define WINGDIAPI __declspec(dllimport)
165 #endif
166 /* <ctype.h> */
167 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED)
168 typedef unsigned short wchar_t;
169 # define _WCHAR_T_DEFINED
170 #endif
171 /* <stddef.h> */
172 #if !defined(_W64)
173 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && defined(_MSC_VER) && _MSC_VER >= 1300
174 # define _W64 __w64
175 # else
176 # define _W64
177 # endif
178 #endif
179 #if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_) && !defined(__MINGW64__)
180 # ifdef _WIN64
181 typedef __int64 ptrdiff_t;
182 # else
183 typedef _W64 int ptrdiff_t;
184 # endif
185 # define _PTRDIFF_T_DEFINED
186 # define _PTRDIFF_T_
187 #endif
188 
189 #ifndef GLAPI
190 # if defined(__MINGW32__) || defined(__CYGWIN__)
191 # define GLAPI extern
192 # else
193 # define GLAPI WINGDIAPI
194 # endif
195 #endif
196 
197 /*
198  * GLEW_STATIC is defined for static library.
199  * GLEW_BUILD is defined for building the DLL library.
200  */
201 
202 #ifdef GLEW_STATIC
203 # define GLEWAPI extern
204 #else
205 # ifdef GLEW_BUILD
206 # define GLEWAPI extern __declspec(dllexport)
207 # else
208 # define GLEWAPI extern __declspec(dllimport)
209 # endif
210 #endif
211 
212 #else /* _UNIX */
213 
214 /*
215  * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO
216  * C. On my system, this amounts to _3 lines_ of included code, all of
217  * them pretty much harmless. If you know of a way of detecting 32 vs
218  * 64 _targets_ at compile time you are free to replace this with
219  * something that's portable. For now, _this_ is the portable solution.
220  * (mem, 2004-01-04)
221  */
222 
223 #include <stddef.h>
224 
225 /* SGI MIPSPro doesn't like stdint.h in C++ mode */
226 /* ID: 3376260 Solaris 9 has inttypes.h, but not stdint.h */
227 
228 #if (defined(__sgi) || defined(__sun)) && !defined(__GNUC__)
229 #include <inttypes.h>
230 #else
231 #include <stdint.h>
232 #endif
233 
234 #define GLEW_APIENTRY_DEFINED
235 #define APIENTRY
236 
237 /*
238  * GLEW_STATIC is defined for static library.
239  */
240 
241 #ifdef GLEW_STATIC
242 # define GLEWAPI extern
243 #else
244 # if defined(__GNUC__) && __GNUC__>=4
245 # define GLEWAPI extern __attribute__ ((visibility("default")))
246 # elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
247 # define GLEWAPI extern __global
248 # else
249 # define GLEWAPI extern
250 # endif
251 #endif
252 
253 /* <glu.h> */
254 #ifndef GLAPI
255 #define GLAPI extern
256 #endif
257 
258 #endif /* _WIN32 */
259 
260 #ifndef GLAPIENTRY
261 #define GLAPIENTRY
262 #endif
263 
264 #ifndef GLEWAPIENTRY
265 #define GLEWAPIENTRY
266 #endif
267 
268 #define GLEW_VAR_EXPORT GLEWAPI
269 #define GLEW_FUN_EXPORT GLEWAPI
270 
271 #ifdef __cplusplus
272 extern "C" {
273 #endif
274 
275 /* ----------------------------- GL_VERSION_1_1 ---------------------------- */
276 
277 #ifndef GL_VERSION_1_1
278 #define GL_VERSION_1_1 1
279 
280 typedef unsigned int GLenum;
281 typedef unsigned int GLbitfield;
282 typedef unsigned int GLuint;
283 typedef int GLint;
284 typedef int GLsizei;
285 typedef unsigned char GLboolean;
286 typedef signed char GLbyte;
287 typedef short GLshort;
288 typedef unsigned char GLubyte;
289 typedef unsigned short GLushort;
290 typedef unsigned long GLulong;
291 typedef float GLfloat;
292 typedef float GLclampf;
293 typedef double GLdouble;
294 typedef double GLclampd;
295 typedef void GLvoid;
296 #if defined(_MSC_VER) && _MSC_VER < 1400
297 typedef __int64 GLint64EXT;
298 typedef unsigned __int64 GLuint64EXT;
299 #elif defined(_MSC_VER) || defined(__BORLANDC__)
300 typedef signed long long GLint64EXT;
301 typedef unsigned long long GLuint64EXT;
302 #else
303 # if defined(__MINGW32__) || defined(__CYGWIN__)
304 #include <inttypes.h>
305 # endif
306 typedef int64_t GLint64EXT;
307 typedef uint64_t GLuint64EXT;
308 #endif
309 typedef GLint64EXT GLint64;
310 typedef GLuint64EXT GLuint64;
311 typedef struct __GLsync *GLsync;
312 
313 typedef char GLchar;
314 
315 #define GL_ZERO 0
316 #define GL_FALSE 0
317 #define GL_LOGIC_OP 0x0BF1
318 #define GL_NONE 0
319 #define GL_TEXTURE_COMPONENTS 0x1003
320 #define GL_NO_ERROR 0
321 #define GL_POINTS 0x0000
322 #define GL_CURRENT_BIT 0x00000001
323 #define GL_TRUE 1
324 #define GL_ONE 1
325 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
326 #define GL_LINES 0x0001
327 #define GL_LINE_LOOP 0x0002
328 #define GL_POINT_BIT 0x00000002
329 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
330 #define GL_LINE_STRIP 0x0003
331 #define GL_LINE_BIT 0x00000004
332 #define GL_TRIANGLES 0x0004
333 #define GL_TRIANGLE_STRIP 0x0005
334 #define GL_TRIANGLE_FAN 0x0006
335 #define GL_QUADS 0x0007
336 #define GL_QUAD_STRIP 0x0008
337 #define GL_POLYGON_BIT 0x00000008
338 #define GL_POLYGON 0x0009
339 #define GL_POLYGON_STIPPLE_BIT 0x00000010
340 #define GL_PIXEL_MODE_BIT 0x00000020
341 #define GL_LIGHTING_BIT 0x00000040
342 #define GL_FOG_BIT 0x00000080
343 #define GL_DEPTH_BUFFER_BIT 0x00000100
344 #define GL_ACCUM 0x0100
345 #define GL_LOAD 0x0101
346 #define GL_RETURN 0x0102
347 #define GL_MULT 0x0103
348 #define GL_ADD 0x0104
349 #define GL_NEVER 0x0200
350 #define GL_ACCUM_BUFFER_BIT 0x00000200
351 #define GL_LESS 0x0201
352 #define GL_EQUAL 0x0202
353 #define GL_LEQUAL 0x0203
354 #define GL_GREATER 0x0204
355 #define GL_NOTEQUAL 0x0205
356 #define GL_GEQUAL 0x0206
357 #define GL_ALWAYS 0x0207
358 #define GL_SRC_COLOR 0x0300
359 #define GL_ONE_MINUS_SRC_COLOR 0x0301
360 #define GL_SRC_ALPHA 0x0302
361 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
362 #define GL_DST_ALPHA 0x0304
363 #define GL_ONE_MINUS_DST_ALPHA 0x0305
364 #define GL_DST_COLOR 0x0306
365 #define GL_ONE_MINUS_DST_COLOR 0x0307
366 #define GL_SRC_ALPHA_SATURATE 0x0308
367 #define GL_STENCIL_BUFFER_BIT 0x00000400
368 #define GL_FRONT_LEFT 0x0400
369 #define GL_FRONT_RIGHT 0x0401
370 #define GL_BACK_LEFT 0x0402
371 #define GL_BACK_RIGHT 0x0403
372 #define GL_FRONT 0x0404
373 #define GL_BACK 0x0405
374 #define GL_LEFT 0x0406
375 #define GL_RIGHT 0x0407
376 #define GL_FRONT_AND_BACK 0x0408
377 #define GL_AUX0 0x0409
378 #define GL_AUX1 0x040A
379 #define GL_AUX2 0x040B
380 #define GL_AUX3 0x040C
381 #define GL_INVALID_ENUM 0x0500
382 #define GL_INVALID_VALUE 0x0501
383 #define GL_INVALID_OPERATION 0x0502
384 #define GL_STACK_OVERFLOW 0x0503
385 #define GL_STACK_UNDERFLOW 0x0504
386 #define GL_OUT_OF_MEMORY 0x0505
387 #define GL_2D 0x0600
388 #define GL_3D 0x0601
389 #define GL_3D_COLOR 0x0602
390 #define GL_3D_COLOR_TEXTURE 0x0603
391 #define GL_4D_COLOR_TEXTURE 0x0604
392 #define GL_PASS_THROUGH_TOKEN 0x0700
393 #define GL_POINT_TOKEN 0x0701
394 #define GL_LINE_TOKEN 0x0702
395 #define GL_POLYGON_TOKEN 0x0703
396 #define GL_BITMAP_TOKEN 0x0704
397 #define GL_DRAW_PIXEL_TOKEN 0x0705
398 #define GL_COPY_PIXEL_TOKEN 0x0706
399 #define GL_LINE_RESET_TOKEN 0x0707
400 #define GL_EXP 0x0800
401 #define GL_VIEWPORT_BIT 0x00000800
402 #define GL_EXP2 0x0801
403 #define GL_CW 0x0900
404 #define GL_CCW 0x0901
405 #define GL_COEFF 0x0A00
406 #define GL_ORDER 0x0A01
407 #define GL_DOMAIN 0x0A02
408 #define GL_CURRENT_COLOR 0x0B00
409 #define GL_CURRENT_INDEX 0x0B01
410 #define GL_CURRENT_NORMAL 0x0B02
411 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
412 #define GL_CURRENT_RASTER_COLOR 0x0B04
413 #define GL_CURRENT_RASTER_INDEX 0x0B05
414 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
415 #define GL_CURRENT_RASTER_POSITION 0x0B07
416 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
417 #define GL_CURRENT_RASTER_DISTANCE 0x0B09
418 #define GL_POINT_SMOOTH 0x0B10
419 #define GL_POINT_SIZE 0x0B11
420 #define GL_POINT_SIZE_RANGE 0x0B12
421 #define GL_POINT_SIZE_GRANULARITY 0x0B13
422 #define GL_LINE_SMOOTH 0x0B20
423 #define GL_LINE_WIDTH 0x0B21
424 #define GL_LINE_WIDTH_RANGE 0x0B22
425 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
426 #define GL_LINE_STIPPLE 0x0B24
427 #define GL_LINE_STIPPLE_PATTERN 0x0B25
428 #define GL_LINE_STIPPLE_REPEAT 0x0B26
429 #define GL_LIST_MODE 0x0B30
430 #define GL_MAX_LIST_NESTING 0x0B31
431 #define GL_LIST_BASE 0x0B32
432 #define GL_LIST_INDEX 0x0B33
433 #define GL_POLYGON_MODE 0x0B40
434 #define GL_POLYGON_SMOOTH 0x0B41
435 #define GL_POLYGON_STIPPLE 0x0B42
436 #define GL_EDGE_FLAG 0x0B43
437 #define GL_CULL_FACE 0x0B44
438 #define GL_CULL_FACE_MODE 0x0B45
439 #define GL_FRONT_FACE 0x0B46
440 #define GL_LIGHTING 0x0B50
441 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
442 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
443 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
444 #define GL_SHADE_MODEL 0x0B54
445 #define GL_COLOR_MATERIAL_FACE 0x0B55
446 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
447 #define GL_COLOR_MATERIAL 0x0B57
448 #define GL_FOG 0x0B60
449 #define GL_FOG_INDEX 0x0B61
450 #define GL_FOG_DENSITY 0x0B62
451 #define GL_FOG_START 0x0B63
452 #define GL_FOG_END 0x0B64
453 #define GL_FOG_MODE 0x0B65
454 #define GL_FOG_COLOR 0x0B66
455 #define GL_DEPTH_RANGE 0x0B70
456 #define GL_DEPTH_TEST 0x0B71
457 #define GL_DEPTH_WRITEMASK 0x0B72
458 #define GL_DEPTH_CLEAR_VALUE 0x0B73
459 #define GL_DEPTH_FUNC 0x0B74
460 #define GL_ACCUM_CLEAR_VALUE 0x0B80
461 #define GL_STENCIL_TEST 0x0B90
462 #define GL_STENCIL_CLEAR_VALUE 0x0B91
463 #define GL_STENCIL_FUNC 0x0B92
464 #define GL_STENCIL_VALUE_MASK 0x0B93
465 #define GL_STENCIL_FAIL 0x0B94
466 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
467 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
468 #define GL_STENCIL_REF 0x0B97
469 #define GL_STENCIL_WRITEMASK 0x0B98
470 #define GL_MATRIX_MODE 0x0BA0
471 #define GL_NORMALIZE 0x0BA1
472 #define GL_VIEWPORT 0x0BA2
473 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
474 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
475 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
476 #define GL_MODELVIEW_MATRIX 0x0BA6
477 #define GL_PROJECTION_MATRIX 0x0BA7
478 #define GL_TEXTURE_MATRIX 0x0BA8
479 #define GL_ATTRIB_STACK_DEPTH 0x0BB0
480 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
481 #define GL_ALPHA_TEST 0x0BC0
482 #define GL_ALPHA_TEST_FUNC 0x0BC1
483 #define GL_ALPHA_TEST_REF 0x0BC2
484 #define GL_DITHER 0x0BD0
485 #define GL_BLEND_DST 0x0BE0
486 #define GL_BLEND_SRC 0x0BE1
487 #define GL_BLEND 0x0BE2
488 #define GL_LOGIC_OP_MODE 0x0BF0
489 #define GL_INDEX_LOGIC_OP 0x0BF1
490 #define GL_COLOR_LOGIC_OP 0x0BF2
491 #define GL_AUX_BUFFERS 0x0C00
492 #define GL_DRAW_BUFFER 0x0C01
493 #define GL_READ_BUFFER 0x0C02
494 #define GL_SCISSOR_BOX 0x0C10
495 #define GL_SCISSOR_TEST 0x0C11
496 #define GL_INDEX_CLEAR_VALUE 0x0C20
497 #define GL_INDEX_WRITEMASK 0x0C21
498 #define GL_COLOR_CLEAR_VALUE 0x0C22
499 #define GL_COLOR_WRITEMASK 0x0C23
500 #define GL_INDEX_MODE 0x0C30
501 #define GL_RGBA_MODE 0x0C31
502 #define GL_DOUBLEBUFFER 0x0C32
503 #define GL_STEREO 0x0C33
504 #define GL_RENDER_MODE 0x0C40
505 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
506 #define GL_POINT_SMOOTH_HINT 0x0C51
507 #define GL_LINE_SMOOTH_HINT 0x0C52
508 #define GL_POLYGON_SMOOTH_HINT 0x0C53
509 #define GL_FOG_HINT 0x0C54
510 #define GL_TEXTURE_GEN_S 0x0C60
511 #define GL_TEXTURE_GEN_T 0x0C61
512 #define GL_TEXTURE_GEN_R 0x0C62
513 #define GL_TEXTURE_GEN_Q 0x0C63
514 #define GL_PIXEL_MAP_I_TO_I 0x0C70
515 #define GL_PIXEL_MAP_S_TO_S 0x0C71
516 #define GL_PIXEL_MAP_I_TO_R 0x0C72
517 #define GL_PIXEL_MAP_I_TO_G 0x0C73
518 #define GL_PIXEL_MAP_I_TO_B 0x0C74
519 #define GL_PIXEL_MAP_I_TO_A 0x0C75
520 #define GL_PIXEL_MAP_R_TO_R 0x0C76
521 #define GL_PIXEL_MAP_G_TO_G 0x0C77
522 #define GL_PIXEL_MAP_B_TO_B 0x0C78
523 #define GL_PIXEL_MAP_A_TO_A 0x0C79
524 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
525 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
526 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
527 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
528 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
529 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
530 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
531 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
532 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
533 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
534 #define GL_UNPACK_SWAP_BYTES 0x0CF0
535 #define GL_UNPACK_LSB_FIRST 0x0CF1
536 #define GL_UNPACK_ROW_LENGTH 0x0CF2
537 #define GL_UNPACK_SKIP_ROWS 0x0CF3
538 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
539 #define GL_UNPACK_ALIGNMENT 0x0CF5
540 #define GL_PACK_SWAP_BYTES 0x0D00
541 #define GL_PACK_LSB_FIRST 0x0D01
542 #define GL_PACK_ROW_LENGTH 0x0D02
543 #define GL_PACK_SKIP_ROWS 0x0D03
544 #define GL_PACK_SKIP_PIXELS 0x0D04
545 #define GL_PACK_ALIGNMENT 0x0D05
546 #define GL_MAP_COLOR 0x0D10
547 #define GL_MAP_STENCIL 0x0D11
548 #define GL_INDEX_SHIFT 0x0D12
549 #define GL_INDEX_OFFSET 0x0D13
550 #define GL_RED_SCALE 0x0D14
551 #define GL_RED_BIAS 0x0D15
552 #define GL_ZOOM_X 0x0D16
553 #define GL_ZOOM_Y 0x0D17
554 #define GL_GREEN_SCALE 0x0D18
555 #define GL_GREEN_BIAS 0x0D19
556 #define GL_BLUE_SCALE 0x0D1A
557 #define GL_BLUE_BIAS 0x0D1B
558 #define GL_ALPHA_SCALE 0x0D1C
559 #define GL_ALPHA_BIAS 0x0D1D
560 #define GL_DEPTH_SCALE 0x0D1E
561 #define GL_DEPTH_BIAS 0x0D1F
562 #define GL_MAX_EVAL_ORDER 0x0D30
563 #define GL_MAX_LIGHTS 0x0D31
564 #define GL_MAX_CLIP_PLANES 0x0D32
565 #define GL_MAX_TEXTURE_SIZE 0x0D33
566 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
567 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
568 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
569 #define GL_MAX_NAME_STACK_DEPTH 0x0D37
570 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
571 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
572 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
573 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
574 #define GL_SUBPIXEL_BITS 0x0D50
575 #define GL_INDEX_BITS 0x0D51
576 #define GL_RED_BITS 0x0D52
577 #define GL_GREEN_BITS 0x0D53
578 #define GL_BLUE_BITS 0x0D54
579 #define GL_ALPHA_BITS 0x0D55
580 #define GL_DEPTH_BITS 0x0D56
581 #define GL_STENCIL_BITS 0x0D57
582 #define GL_ACCUM_RED_BITS 0x0D58
583 #define GL_ACCUM_GREEN_BITS 0x0D59
584 #define GL_ACCUM_BLUE_BITS 0x0D5A
585 #define GL_ACCUM_ALPHA_BITS 0x0D5B
586 #define GL_NAME_STACK_DEPTH 0x0D70
587 #define GL_AUTO_NORMAL 0x0D80
588 #define GL_MAP1_COLOR_4 0x0D90
589 #define GL_MAP1_INDEX 0x0D91
590 #define GL_MAP1_NORMAL 0x0D92
591 #define GL_MAP1_TEXTURE_COORD_1 0x0D93
592 #define GL_MAP1_TEXTURE_COORD_2 0x0D94
593 #define GL_MAP1_TEXTURE_COORD_3 0x0D95
594 #define GL_MAP1_TEXTURE_COORD_4 0x0D96
595 #define GL_MAP1_VERTEX_3 0x0D97
596 #define GL_MAP1_VERTEX_4 0x0D98
597 #define GL_MAP2_COLOR_4 0x0DB0
598 #define GL_MAP2_INDEX 0x0DB1
599 #define GL_MAP2_NORMAL 0x0DB2
600 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
601 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
602 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
603 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
604 #define GL_MAP2_VERTEX_3 0x0DB7
605 #define GL_MAP2_VERTEX_4 0x0DB8
606 #define GL_MAP1_GRID_DOMAIN 0x0DD0
607 #define GL_MAP1_GRID_SEGMENTS 0x0DD1
608 #define GL_MAP2_GRID_DOMAIN 0x0DD2
609 #define GL_MAP2_GRID_SEGMENTS 0x0DD3
610 #define GL_TEXTURE_1D 0x0DE0
611 #define GL_TEXTURE_2D 0x0DE1
612 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
613 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
614 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
615 #define GL_SELECTION_BUFFER_POINTER 0x0DF3
616 #define GL_SELECTION_BUFFER_SIZE 0x0DF4
617 #define GL_TEXTURE_WIDTH 0x1000
618 #define GL_TRANSFORM_BIT 0x00001000
619 #define GL_TEXTURE_HEIGHT 0x1001
620 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
621 #define GL_TEXTURE_BORDER_COLOR 0x1004
622 #define GL_TEXTURE_BORDER 0x1005
623 #define GL_DONT_CARE 0x1100
624 #define GL_FASTEST 0x1101
625 #define GL_NICEST 0x1102
626 #define GL_AMBIENT 0x1200
627 #define GL_DIFFUSE 0x1201
628 #define GL_SPECULAR 0x1202
629 #define GL_POSITION 0x1203
630 #define GL_SPOT_DIRECTION 0x1204
631 #define GL_SPOT_EXPONENT 0x1205
632 #define GL_SPOT_CUTOFF 0x1206
633 #define GL_CONSTANT_ATTENUATION 0x1207
634 #define GL_LINEAR_ATTENUATION 0x1208
635 #define GL_QUADRATIC_ATTENUATION 0x1209
636 #define GL_COMPILE 0x1300
637 #define GL_COMPILE_AND_EXECUTE 0x1301
638 #define GL_BYTE 0x1400
639 #define GL_UNSIGNED_BYTE 0x1401
640 #define GL_SHORT 0x1402
641 #define GL_UNSIGNED_SHORT 0x1403
642 #define GL_INT 0x1404
643 #define GL_UNSIGNED_INT 0x1405
644 #define GL_FLOAT 0x1406
645 #define GL_2_BYTES 0x1407
646 #define GL_3_BYTES 0x1408
647 #define GL_4_BYTES 0x1409
648 #define GL_DOUBLE 0x140A
649 #define GL_CLEAR 0x1500
650 #define GL_AND 0x1501
651 #define GL_AND_REVERSE 0x1502
652 #define GL_COPY 0x1503
653 #define GL_AND_INVERTED 0x1504
654 #define GL_NOOP 0x1505
655 #define GL_XOR 0x1506
656 #define GL_OR 0x1507
657 #define GL_NOR 0x1508
658 #define GL_EQUIV 0x1509
659 #define GL_INVERT 0x150A
660 #define GL_OR_REVERSE 0x150B
661 #define GL_COPY_INVERTED 0x150C
662 #define GL_OR_INVERTED 0x150D
663 #define GL_NAND 0x150E
664 #define GL_SET 0x150F
665 #define GL_EMISSION 0x1600
666 #define GL_SHININESS 0x1601
667 #define GL_AMBIENT_AND_DIFFUSE 0x1602
668 #define GL_COLOR_INDEXES 0x1603
669 #define GL_MODELVIEW 0x1700
670 #define GL_PROJECTION 0x1701
671 #define GL_TEXTURE 0x1702
672 #define GL_COLOR 0x1800
673 #define GL_DEPTH 0x1801
674 #define GL_STENCIL 0x1802
675 #define GL_COLOR_INDEX 0x1900
676 #define GL_STENCIL_INDEX 0x1901
677 #define GL_DEPTH_COMPONENT 0x1902
678 #define GL_RED 0x1903
679 #define GL_GREEN 0x1904
680 #define GL_BLUE 0x1905
681 #define GL_ALPHA 0x1906
682 #define GL_RGB 0x1907
683 #define GL_RGBA 0x1908
684 #define GL_LUMINANCE 0x1909
685 #define GL_LUMINANCE_ALPHA 0x190A
686 #define GL_BITMAP 0x1A00
687 #define GL_POINT 0x1B00
688 #define GL_LINE 0x1B01
689 #define GL_FILL 0x1B02
690 #define GL_RENDER 0x1C00
691 #define GL_FEEDBACK 0x1C01
692 #define GL_SELECT 0x1C02
693 #define GL_FLAT 0x1D00
694 #define GL_SMOOTH 0x1D01
695 #define GL_KEEP 0x1E00
696 #define GL_REPLACE 0x1E01
697 #define GL_INCR 0x1E02
698 #define GL_DECR 0x1E03
699 #define GL_VENDOR 0x1F00
700 #define GL_RENDERER 0x1F01
701 #define GL_VERSION 0x1F02
702 #define GL_EXTENSIONS 0x1F03
703 #define GL_S 0x2000
704 #define GL_ENABLE_BIT 0x00002000
705 #define GL_T 0x2001
706 #define GL_R 0x2002
707 #define GL_Q 0x2003
708 #define GL_MODULATE 0x2100
709 #define GL_DECAL 0x2101
710 #define GL_TEXTURE_ENV_MODE 0x2200
711 #define GL_TEXTURE_ENV_COLOR 0x2201
712 #define GL_TEXTURE_ENV 0x2300
713 #define GL_EYE_LINEAR 0x2400
714 #define GL_OBJECT_LINEAR 0x2401
715 #define GL_SPHERE_MAP 0x2402
716 #define GL_TEXTURE_GEN_MODE 0x2500
717 #define GL_OBJECT_PLANE 0x2501
718 #define GL_EYE_PLANE 0x2502
719 #define GL_NEAREST 0x2600
720 #define GL_LINEAR 0x2601
721 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
722 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
723 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
724 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
725 #define GL_TEXTURE_MAG_FILTER 0x2800
726 #define GL_TEXTURE_MIN_FILTER 0x2801
727 #define GL_TEXTURE_WRAP_S 0x2802
728 #define GL_TEXTURE_WRAP_T 0x2803
729 #define GL_CLAMP 0x2900
730 #define GL_REPEAT 0x2901
731 #define GL_POLYGON_OFFSET_UNITS 0x2A00
732 #define GL_POLYGON_OFFSET_POINT 0x2A01
733 #define GL_POLYGON_OFFSET_LINE 0x2A02
734 #define GL_R3_G3_B2 0x2A10
735 #define GL_V2F 0x2A20
736 #define GL_V3F 0x2A21
737 #define GL_C4UB_V2F 0x2A22
738 #define GL_C4UB_V3F 0x2A23
739 #define GL_C3F_V3F 0x2A24
740 #define GL_N3F_V3F 0x2A25
741 #define GL_C4F_N3F_V3F 0x2A26
742 #define GL_T2F_V3F 0x2A27
743 #define GL_T4F_V4F 0x2A28
744 #define GL_T2F_C4UB_V3F 0x2A29
745 #define GL_T2F_C3F_V3F 0x2A2A
746 #define GL_T2F_N3F_V3F 0x2A2B
747 #define GL_T2F_C4F_N3F_V3F 0x2A2C
748 #define GL_T4F_C4F_N3F_V4F 0x2A2D
749 #define GL_CLIP_PLANE0 0x3000
750 #define GL_CLIP_PLANE1 0x3001
751 #define GL_CLIP_PLANE2 0x3002
752 #define GL_CLIP_PLANE3 0x3003
753 #define GL_CLIP_PLANE4 0x3004
754 #define GL_CLIP_PLANE5 0x3005
755 #define GL_LIGHT0 0x4000
756 #define GL_COLOR_BUFFER_BIT 0x00004000
757 #define GL_LIGHT1 0x4001
758 #define GL_LIGHT2 0x4002
759 #define GL_LIGHT3 0x4003
760 #define GL_LIGHT4 0x4004
761 #define GL_LIGHT5 0x4005
762 #define GL_LIGHT6 0x4006
763 #define GL_LIGHT7 0x4007
764 #define GL_HINT_BIT 0x00008000
765 #define GL_POLYGON_OFFSET_FILL 0x8037
766 #define GL_POLYGON_OFFSET_FACTOR 0x8038
767 #define GL_ALPHA4 0x803B
768 #define GL_ALPHA8 0x803C
769 #define GL_ALPHA12 0x803D
770 #define GL_ALPHA16 0x803E
771 #define GL_LUMINANCE4 0x803F
772 #define GL_LUMINANCE8 0x8040
773 #define GL_LUMINANCE12 0x8041
774 #define GL_LUMINANCE16 0x8042
775 #define GL_LUMINANCE4_ALPHA4 0x8043
776 #define GL_LUMINANCE6_ALPHA2 0x8044
777 #define GL_LUMINANCE8_ALPHA8 0x8045
778 #define GL_LUMINANCE12_ALPHA4 0x8046
779 #define GL_LUMINANCE12_ALPHA12 0x8047
780 #define GL_LUMINANCE16_ALPHA16 0x8048
781 #define GL_INTENSITY 0x8049
782 #define GL_INTENSITY4 0x804A
783 #define GL_INTENSITY8 0x804B
784 #define GL_INTENSITY12 0x804C
785 #define GL_INTENSITY16 0x804D
786 #define GL_RGB4 0x804F
787 #define GL_RGB5 0x8050
788 #define GL_RGB8 0x8051
789 #define GL_RGB10 0x8052
790 #define GL_RGB12 0x8053
791 #define GL_RGB16 0x8054
792 #define GL_RGBA2 0x8055
793 #define GL_RGBA4 0x8056
794 #define GL_RGB5_A1 0x8057
795 #define GL_RGBA8 0x8058
796 #define GL_RGB10_A2 0x8059
797 #define GL_RGBA12 0x805A
798 #define GL_RGBA16 0x805B
799 #define GL_TEXTURE_RED_SIZE 0x805C
800 #define GL_TEXTURE_GREEN_SIZE 0x805D
801 #define GL_TEXTURE_BLUE_SIZE 0x805E
802 #define GL_TEXTURE_ALPHA_SIZE 0x805F
803 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
804 #define GL_TEXTURE_INTENSITY_SIZE 0x8061
805 #define GL_PROXY_TEXTURE_1D 0x8063
806 #define GL_PROXY_TEXTURE_2D 0x8064
807 #define GL_TEXTURE_PRIORITY 0x8066
808 #define GL_TEXTURE_RESIDENT 0x8067
809 #define GL_TEXTURE_BINDING_1D 0x8068
810 #define GL_TEXTURE_BINDING_2D 0x8069
811 #define GL_VERTEX_ARRAY 0x8074
812 #define GL_NORMAL_ARRAY 0x8075
813 #define GL_COLOR_ARRAY 0x8076
814 #define GL_INDEX_ARRAY 0x8077
815 #define GL_TEXTURE_COORD_ARRAY 0x8078
816 #define GL_EDGE_FLAG_ARRAY 0x8079
817 #define GL_VERTEX_ARRAY_SIZE 0x807A
818 #define GL_VERTEX_ARRAY_TYPE 0x807B
819 #define GL_VERTEX_ARRAY_STRIDE 0x807C
820 #define GL_NORMAL_ARRAY_TYPE 0x807E
821 #define GL_NORMAL_ARRAY_STRIDE 0x807F
822 #define GL_COLOR_ARRAY_SIZE 0x8081
823 #define GL_COLOR_ARRAY_TYPE 0x8082
824 #define GL_COLOR_ARRAY_STRIDE 0x8083
825 #define GL_INDEX_ARRAY_TYPE 0x8085
826 #define GL_INDEX_ARRAY_STRIDE 0x8086
827 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
828 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
829 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
830 #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
831 #define GL_VERTEX_ARRAY_POINTER 0x808E
832 #define GL_NORMAL_ARRAY_POINTER 0x808F
833 #define GL_COLOR_ARRAY_POINTER 0x8090
834 #define GL_INDEX_ARRAY_POINTER 0x8091
835 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
836 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
837 #define GL_COLOR_INDEX1_EXT 0x80E2
838 #define GL_COLOR_INDEX2_EXT 0x80E3
839 #define GL_COLOR_INDEX4_EXT 0x80E4
840 #define GL_COLOR_INDEX8_EXT 0x80E5
841 #define GL_COLOR_INDEX12_EXT 0x80E6
842 #define GL_COLOR_INDEX16_EXT 0x80E7
843 #define GL_EVAL_BIT 0x00010000
844 #define GL_LIST_BIT 0x00020000
845 #define GL_TEXTURE_BIT 0x00040000
846 #define GL_SCISSOR_BIT 0x00080000
847 #define GL_ALL_ATTRIB_BITS 0x000fffff
848 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
849 
850 GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value);
851 GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref);
852 GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
853 GLAPI void GLAPIENTRY glArrayElement (GLint i);
854 GLAPI void GLAPIENTRY glBegin (GLenum mode);
855 GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture);
856 GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
857 GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
858 GLAPI void GLAPIENTRY glCallList (GLuint list);
859 GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const void *lists);
860 GLAPI void GLAPIENTRY glClear (GLbitfield mask);
861 GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
862 GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
863 GLAPI void GLAPIENTRY glClearDepth (GLclampd depth);
864 GLAPI void GLAPIENTRY glClearIndex (GLfloat c);
865 GLAPI void GLAPIENTRY glClearStencil (GLint s);
866 GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
867 GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);
868 GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v);
869 GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);
870 GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v);
871 GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);
872 GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v);
873 GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue);
874 GLAPI void GLAPIENTRY glColor3iv (const GLint *v);
875 GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);
876 GLAPI void GLAPIENTRY glColor3sv (const GLshort *v);
877 GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
878 GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v);
879 GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);
880 GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v);
881 GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);
882 GLAPI void GLAPIENTRY glColor3usv (const GLushort *v);
883 GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
884 GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v);
885 GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
886 GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v);
887 GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
888 GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v);
889 GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
890 GLAPI void GLAPIENTRY glColor4iv (const GLint *v);
891 GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
892 GLAPI void GLAPIENTRY glColor4sv (const GLshort *v);
893 GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
894 GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v);
895 GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
896 GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v);
897 GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
898 GLAPI void GLAPIENTRY glColor4usv (const GLushort *v);
899 GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
900 GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode);
901 GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
902 GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
903 GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
904 GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
905 GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
906 GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
907 GLAPI void GLAPIENTRY glCullFace (GLenum mode);
908 GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range);
909 GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
910 GLAPI void GLAPIENTRY glDepthFunc (GLenum func);
911 GLAPI void GLAPIENTRY glDepthMask (GLboolean flag);
912 GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);
913 GLAPI void GLAPIENTRY glDisable (GLenum cap);
915 GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
916 GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode);
917 GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
918 GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
919 GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag);
920 GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const void *pointer);
921 GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag);
922 GLAPI void GLAPIENTRY glEnable (GLenum cap);
924 GLAPI void GLAPIENTRY glEnd (void);
925 GLAPI void GLAPIENTRY glEndList (void);
926 GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u);
927 GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u);
928 GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u);
929 GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u);
930 GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v);
931 GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u);
932 GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v);
933 GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u);
934 GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
935 GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
936 GLAPI void GLAPIENTRY glEvalPoint1 (GLint i);
937 GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j);
938 GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
939 GLAPI void GLAPIENTRY glFinish (void);
940 GLAPI void GLAPIENTRY glFlush (void);
941 GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param);
942 GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params);
943 GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param);
944 GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params);
945 GLAPI void GLAPIENTRY glFrontFace (GLenum mode);
946 GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
947 GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range);
948 GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures);
949 GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
950 GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
951 GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params);
952 GLAPI GLenum GLAPIENTRY glGetError (void);
953 GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params);
954 GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params);
955 GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
956 GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);
957 GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
958 GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
959 GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
960 GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
961 GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
962 GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
963 GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
964 GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
965 GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, void* *params);
966 GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask);
967 GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name);
968 GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
969 GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
970 GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
971 GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
972 GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
973 GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
974 GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
975 GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
976 GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
977 GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
978 GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
979 GLAPI void GLAPIENTRY glIndexMask (GLuint mask);
980 GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const void *pointer);
981 GLAPI void GLAPIENTRY glIndexd (GLdouble c);
982 GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c);
983 GLAPI void GLAPIENTRY glIndexf (GLfloat c);
984 GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c);
985 GLAPI void GLAPIENTRY glIndexi (GLint c);
986 GLAPI void GLAPIENTRY glIndexiv (const GLint *c);
987 GLAPI void GLAPIENTRY glIndexs (GLshort c);
988 GLAPI void GLAPIENTRY glIndexsv (const GLshort *c);
989 GLAPI void GLAPIENTRY glIndexub (GLubyte c);
990 GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c);
991 GLAPI void GLAPIENTRY glInitNames (void);
992 GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const void *pointer);
993 GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap);
994 GLAPI GLboolean GLAPIENTRY glIsList (GLuint list);
995 GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture);
996 GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param);
997 GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
998 GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param);
999 GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params);
1000 GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
1001 GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
1002 GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param);
1003 GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
1004 GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern);
1005 GLAPI void GLAPIENTRY glLineWidth (GLfloat width);
1006 GLAPI void GLAPIENTRY glListBase (GLuint base);
1007 GLAPI void GLAPIENTRY glLoadIdentity (void);
1008 GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m);
1009 GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m);
1010 GLAPI void GLAPIENTRY glLoadName (GLuint name);
1011 GLAPI void GLAPIENTRY glLogicOp (GLenum opcode);
1012 GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
1013 GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
1014 GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
1015 GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
1016 GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
1017 GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
1018 GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
1019 GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
1020 GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
1021 GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
1022 GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param);
1023 GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);
1024 GLAPI void GLAPIENTRY glMatrixMode (GLenum mode);
1025 GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m);
1026 GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m);
1027 GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode);
1028 GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
1029 GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v);
1030 GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
1031 GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v);
1032 GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
1033 GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v);
1034 GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
1035 GLAPI void GLAPIENTRY glNormal3iv (const GLint *v);
1036 GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
1037 GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v);
1038 GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const void *pointer);
1039 GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
1040 GLAPI void GLAPIENTRY glPassThrough (GLfloat token);
1041 GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
1042 GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
1043 GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
1044 GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param);
1045 GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param);
1046 GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param);
1047 GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param);
1048 GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
1049 GLAPI void GLAPIENTRY glPointSize (GLfloat size);
1050 GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode);
1051 GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
1052 GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask);
1053 GLAPI void GLAPIENTRY glPopAttrib (void);
1054 GLAPI void GLAPIENTRY glPopClientAttrib (void);
1055 GLAPI void GLAPIENTRY glPopMatrix (void);
1056 GLAPI void GLAPIENTRY glPopName (void);
1057 GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
1058 GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask);
1059 GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask);
1060 GLAPI void GLAPIENTRY glPushMatrix (void);
1061 GLAPI void GLAPIENTRY glPushName (GLuint name);
1062 GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y);
1063 GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v);
1064 GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y);
1065 GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v);
1066 GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y);
1067 GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v);
1068 GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y);
1069 GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v);
1070 GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
1071 GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v);
1072 GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
1073 GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v);
1074 GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z);
1075 GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v);
1076 GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);
1077 GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v);
1078 GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1079 GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v);
1080 GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1081 GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v);
1082 GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
1083 GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v);
1084 GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
1085 GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v);
1086 GLAPI void GLAPIENTRY glReadBuffer (GLenum mode);
1087 GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
1088 GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
1089 GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
1090 GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
1091 GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
1092 GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
1093 GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2);
1094 GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
1095 GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
1096 GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode);
1097 GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
1098 GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
1099 GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);
1100 GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
1101 GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1102 GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);
1103 GLAPI void GLAPIENTRY glShadeModel (GLenum mode);
1104 GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
1105 GLAPI void GLAPIENTRY glStencilMask (GLuint mask);
1106 GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1107 GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s);
1108 GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v);
1109 GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s);
1110 GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v);
1111 GLAPI void GLAPIENTRY glTexCoord1i (GLint s);
1112 GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v);
1113 GLAPI void GLAPIENTRY glTexCoord1s (GLshort s);
1114 GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v);
1115 GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t);
1116 GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v);
1117 GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t);
1118 GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v);
1119 GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t);
1120 GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v);
1121 GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t);
1122 GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v);
1123 GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
1124 GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v);
1125 GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
1126 GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v);
1127 GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r);
1128 GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v);
1129 GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);
1130 GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v);
1131 GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1132 GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v);
1133 GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1134 GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v);
1135 GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
1136 GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v);
1137 GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
1138 GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v);
1139 GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
1140 GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
1141 GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
1142 GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
1143 GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
1144 GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);
1145 GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
1146 GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
1147 GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
1148 GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
1149 GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
1150 GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
1151 GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
1152 GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
1153 GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
1154 GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
1155 GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
1156 GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
1157 GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
1158 GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
1159 GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
1160 GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y);
1161 GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v);
1162 GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y);
1163 GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v);
1164 GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y);
1165 GLAPI void GLAPIENTRY glVertex2iv (const GLint *v);
1166 GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y);
1167 GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v);
1168 GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);
1169 GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v);
1170 GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);
1171 GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v);
1172 GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z);
1173 GLAPI void GLAPIENTRY glVertex3iv (const GLint *v);
1174 GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);
1175 GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v);
1176 GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1177 GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v);
1178 GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1179 GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v);
1180 GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
1181 GLAPI void GLAPIENTRY glVertex4iv (const GLint *v);
1182 GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
1183 GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v);
1184 GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
1185 GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
1186 
1187 #define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1)
1188 
1189 #endif /* GL_VERSION_1_1 */
1190 
1191 /* ---------------------------------- GLU ---------------------------------- */
1192 
1193 #ifndef GLEW_NO_GLU
1194 # ifdef __APPLE__
1195 # include <Availability.h>
1196 # if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
1197 # define GLEW_NO_GLU
1198 # endif
1199 # endif
1200 #endif
1201 
1202 #ifndef GLEW_NO_GLU
1203 /* this is where we can safely include GLU */
1204 # if defined(__APPLE__) && defined(__MACH__)
1205 # include <OpenGL/glu.h>
1206 # else
1207 # include <GL/glu.h>
1208 # endif
1209 #endif
1210 
1211 /* ----------------------------- GL_VERSION_1_2 ---------------------------- */
1212 
1213 #ifndef GL_VERSION_1_2
1214 #define GL_VERSION_1_2 1
1215 
1216 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
1217 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
1218 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
1219 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
1220 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
1221 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
1222 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
1223 #define GL_UNSIGNED_INT_8_8_8_8 0x8035
1224 #define GL_UNSIGNED_INT_10_10_10_2 0x8036
1225 #define GL_RESCALE_NORMAL 0x803A
1226 #define GL_TEXTURE_BINDING_3D 0x806A
1227 #define GL_PACK_SKIP_IMAGES 0x806B
1228 #define GL_PACK_IMAGE_HEIGHT 0x806C
1229 #define GL_UNPACK_SKIP_IMAGES 0x806D
1230 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
1231 #define GL_TEXTURE_3D 0x806F
1232 #define GL_PROXY_TEXTURE_3D 0x8070
1233 #define GL_TEXTURE_DEPTH 0x8071
1234 #define GL_TEXTURE_WRAP_R 0x8072
1235 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
1236 #define GL_BGR 0x80E0
1237 #define GL_BGRA 0x80E1
1238 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
1239 #define GL_MAX_ELEMENTS_INDICES 0x80E9
1240 #define GL_CLAMP_TO_EDGE 0x812F
1241 #define GL_TEXTURE_MIN_LOD 0x813A
1242 #define GL_TEXTURE_MAX_LOD 0x813B
1243 #define GL_TEXTURE_BASE_LEVEL 0x813C
1244 #define GL_TEXTURE_MAX_LEVEL 0x813D
1245 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
1246 #define GL_SINGLE_COLOR 0x81F9
1247 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
1248 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
1249 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
1250 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
1251 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
1252 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
1253 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
1254 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
1255 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
1256 
1257 typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
1258 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
1259 typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
1260 typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
1261 
1262 #define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D)
1263 #define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements)
1264 #define glTexImage3D GLEW_GET_FUN(__glewTexImage3D)
1265 #define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D)
1266 
1267 #define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2)
1268 
1269 #endif /* GL_VERSION_1_2 */
1270 
1271 /* ---------------------------- GL_VERSION_1_2_1 --------------------------- */
1272 
1273 #ifndef GL_VERSION_1_2_1
1274 #define GL_VERSION_1_2_1 1
1275 
1276 #define GLEW_VERSION_1_2_1 GLEW_GET_VAR(__GLEW_VERSION_1_2_1)
1277 
1278 #endif /* GL_VERSION_1_2_1 */
1279 
1280 /* ----------------------------- GL_VERSION_1_3 ---------------------------- */
1281 
1282 #ifndef GL_VERSION_1_3
1283 #define GL_VERSION_1_3 1
1284 
1285 #define GL_MULTISAMPLE 0x809D
1286 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
1287 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
1288 #define GL_SAMPLE_COVERAGE 0x80A0
1289 #define GL_SAMPLE_BUFFERS 0x80A8
1290 #define GL_SAMPLES 0x80A9
1291 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
1292 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
1293 #define GL_CLAMP_TO_BORDER 0x812D
1294 #define GL_TEXTURE0 0x84C0
1295 #define GL_TEXTURE1 0x84C1
1296 #define GL_TEXTURE2 0x84C2
1297 #define GL_TEXTURE3 0x84C3
1298 #define GL_TEXTURE4 0x84C4
1299 #define GL_TEXTURE5 0x84C5
1300 #define GL_TEXTURE6 0x84C6
1301 #define GL_TEXTURE7 0x84C7
1302 #define GL_TEXTURE8 0x84C8
1303 #define GL_TEXTURE9 0x84C9
1304 #define GL_TEXTURE10 0x84CA
1305 #define GL_TEXTURE11 0x84CB
1306 #define GL_TEXTURE12 0x84CC
1307 #define GL_TEXTURE13 0x84CD
1308 #define GL_TEXTURE14 0x84CE
1309 #define GL_TEXTURE15 0x84CF
1310 #define GL_TEXTURE16 0x84D0
1311 #define GL_TEXTURE17 0x84D1
1312 #define GL_TEXTURE18 0x84D2
1313 #define GL_TEXTURE19 0x84D3
1314 #define GL_TEXTURE20 0x84D4
1315 #define GL_TEXTURE21 0x84D5
1316 #define GL_TEXTURE22 0x84D6
1317 #define GL_TEXTURE23 0x84D7
1318 #define GL_TEXTURE24 0x84D8
1319 #define GL_TEXTURE25 0x84D9
1320 #define GL_TEXTURE26 0x84DA
1321 #define GL_TEXTURE27 0x84DB
1322 #define GL_TEXTURE28 0x84DC
1323 #define GL_TEXTURE29 0x84DD
1324 #define GL_TEXTURE30 0x84DE
1325 #define GL_TEXTURE31 0x84DF
1326 #define GL_ACTIVE_TEXTURE 0x84E0
1327 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
1328 #define GL_MAX_TEXTURE_UNITS 0x84E2
1329 #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
1330 #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
1331 #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
1332 #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
1333 #define GL_SUBTRACT 0x84E7
1334 #define GL_COMPRESSED_ALPHA 0x84E9
1335 #define GL_COMPRESSED_LUMINANCE 0x84EA
1336 #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
1337 #define GL_COMPRESSED_INTENSITY 0x84EC
1338 #define GL_COMPRESSED_RGB 0x84ED
1339 #define GL_COMPRESSED_RGBA 0x84EE
1340 #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
1341 #define GL_NORMAL_MAP 0x8511
1342 #define GL_REFLECTION_MAP 0x8512
1343 #define GL_TEXTURE_CUBE_MAP 0x8513
1344 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
1345 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
1346 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
1347 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
1348 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
1349 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
1350 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
1351 #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
1352 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
1353 #define GL_COMBINE 0x8570
1354 #define GL_COMBINE_RGB 0x8571
1355 #define GL_COMBINE_ALPHA 0x8572
1356 #define GL_RGB_SCALE 0x8573
1357 #define GL_ADD_SIGNED 0x8574
1358 #define GL_INTERPOLATE 0x8575
1359 #define GL_CONSTANT 0x8576
1360 #define GL_PRIMARY_COLOR 0x8577
1361 #define GL_PREVIOUS 0x8578
1362 #define GL_SOURCE0_RGB 0x8580
1363 #define GL_SOURCE1_RGB 0x8581
1364 #define GL_SOURCE2_RGB 0x8582
1365 #define GL_SOURCE0_ALPHA 0x8588
1366 #define GL_SOURCE1_ALPHA 0x8589
1367 #define GL_SOURCE2_ALPHA 0x858A
1368 #define GL_OPERAND0_RGB 0x8590
1369 #define GL_OPERAND1_RGB 0x8591
1370 #define GL_OPERAND2_RGB 0x8592
1371 #define GL_OPERAND0_ALPHA 0x8598
1372 #define GL_OPERAND1_ALPHA 0x8599
1373 #define GL_OPERAND2_ALPHA 0x859A
1374 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
1375 #define GL_TEXTURE_COMPRESSED 0x86A1
1376 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
1377 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
1378 #define GL_DOT3_RGB 0x86AE
1379 #define GL_DOT3_RGBA 0x86AF
1380 #define GL_MULTISAMPLE_BIT 0x20000000
1381 
1382 typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture);
1384 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
1385 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
1386 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
1387 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
1388 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
1389 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
1390 typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, void *img);
1391 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble m[16]);
1392 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat m[16]);
1393 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble m[16]);
1394 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat m[16]);
1395 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
1396 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
1397 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
1398 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
1399 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
1400 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
1401 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
1402 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
1403 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
1404 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
1405 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
1406 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
1407 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
1408 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
1409 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
1410 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
1411 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
1412 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
1413 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
1414 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
1415 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
1416 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
1417 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
1418 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
1419 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1420 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
1421 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1422 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
1423 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
1424 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
1425 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1426 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
1427 typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
1428 
1429 #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture)
1430 #define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture)
1431 #define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D)
1432 #define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D)
1433 #define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D)
1434 #define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D)
1435 #define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D)
1436 #define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D)
1437 #define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage)
1438 #define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd)
1439 #define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf)
1440 #define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd)
1441 #define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf)
1442 #define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d)
1443 #define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv)
1444 #define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f)
1445 #define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv)
1446 #define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i)
1447 #define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv)
1448 #define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s)
1449 #define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv)
1450 #define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d)
1451 #define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv)
1452 #define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f)
1453 #define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv)
1454 #define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i)
1455 #define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv)
1456 #define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s)
1457 #define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv)
1458 #define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d)
1459 #define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv)
1460 #define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f)
1461 #define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv)
1462 #define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i)
1463 #define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv)
1464 #define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s)
1465 #define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv)
1466 #define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d)
1467 #define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv)
1468 #define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f)
1469 #define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv)
1470 #define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i)
1471 #define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv)
1472 #define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s)
1473 #define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv)
1474 #define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage)
1475 
1476 #define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3)
1477 
1478 #endif /* GL_VERSION_1_3 */
1479 
1480 /* ----------------------------- GL_VERSION_1_4 ---------------------------- */
1481 
1482 #ifndef GL_VERSION_1_4
1483 #define GL_VERSION_1_4 1
1484 
1485 #define GL_BLEND_DST_RGB 0x80C8
1486 #define GL_BLEND_SRC_RGB 0x80C9
1487 #define GL_BLEND_DST_ALPHA 0x80CA
1488 #define GL_BLEND_SRC_ALPHA 0x80CB
1489 #define GL_POINT_SIZE_MIN 0x8126
1490 #define GL_POINT_SIZE_MAX 0x8127
1491 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
1492 #define GL_POINT_DISTANCE_ATTENUATION 0x8129
1493 #define GL_GENERATE_MIPMAP 0x8191
1494 #define GL_GENERATE_MIPMAP_HINT 0x8192
1495 #define GL_DEPTH_COMPONENT16 0x81A5
1496 #define GL_DEPTH_COMPONENT24 0x81A6
1497 #define GL_DEPTH_COMPONENT32 0x81A7
1498 #define GL_MIRRORED_REPEAT 0x8370
1499 #define GL_FOG_COORDINATE_SOURCE 0x8450
1500 #define GL_FOG_COORDINATE 0x8451
1501 #define GL_FRAGMENT_DEPTH 0x8452
1502 #define GL_CURRENT_FOG_COORDINATE 0x8453
1503 #define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
1504 #define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
1505 #define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
1506 #define GL_FOG_COORDINATE_ARRAY 0x8457
1507 #define GL_COLOR_SUM 0x8458
1508 #define GL_CURRENT_SECONDARY_COLOR 0x8459
1509 #define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
1510 #define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
1511 #define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
1512 #define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
1513 #define GL_SECONDARY_COLOR_ARRAY 0x845E
1514 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
1515 #define GL_TEXTURE_FILTER_CONTROL 0x8500
1516 #define GL_TEXTURE_LOD_BIAS 0x8501
1517 #define GL_INCR_WRAP 0x8507
1518 #define GL_DECR_WRAP 0x8508
1519 #define GL_TEXTURE_DEPTH_SIZE 0x884A
1520 #define GL_DEPTH_TEXTURE_MODE 0x884B
1521 #define GL_TEXTURE_COMPARE_MODE 0x884C
1522 #define GL_TEXTURE_COMPARE_FUNC 0x884D
1523 #define GL_COMPARE_R_TO_TEXTURE 0x884E
1524 
1525 typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
1526 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode);
1527 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1528 typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
1529 typedef void (GLAPIENTRY * PFNGLFOGCOORDDPROC) (GLdouble coord);
1530 typedef void (GLAPIENTRY * PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
1531 typedef void (GLAPIENTRY * PFNGLFOGCOORDFPROC) (GLfloat coord);
1532 typedef void (GLAPIENTRY * PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
1533 typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
1534 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const* indices, GLsizei drawcount);
1535 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
1536 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
1537 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
1538 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
1539 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
1540 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
1541 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
1542 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
1543 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
1544 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
1545 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
1546 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
1547 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
1548 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
1549 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
1550 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
1551 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
1552 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
1553 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
1554 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
1555 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
1556 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
1557 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVPROC) (const GLdouble *p);
1558 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
1559 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVPROC) (const GLfloat *p);
1560 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
1561 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVPROC) (const GLint *p);
1562 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
1563 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVPROC) (const GLshort *p);
1564 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
1565 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVPROC) (const GLdouble *p);
1566 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
1567 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVPROC) (const GLfloat *p);
1568 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
1569 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVPROC) (const GLint *p);
1570 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
1571 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVPROC) (const GLshort *p);
1572 
1573 #define glBlendColor GLEW_GET_FUN(__glewBlendColor)
1574 #define glBlendEquation GLEW_GET_FUN(__glewBlendEquation)
1575 #define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate)
1576 #define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer)
1577 #define glFogCoordd GLEW_GET_FUN(__glewFogCoordd)
1578 #define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv)
1579 #define glFogCoordf GLEW_GET_FUN(__glewFogCoordf)
1580 #define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv)
1581 #define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays)
1582 #define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements)
1583 #define glPointParameterf GLEW_GET_FUN(__glewPointParameterf)
1584 #define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv)
1585 #define glPointParameteri GLEW_GET_FUN(__glewPointParameteri)
1586 #define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv)
1587 #define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b)
1588 #define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv)
1589 #define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d)
1590 #define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv)
1591 #define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f)
1592 #define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv)
1593 #define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i)
1594 #define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv)
1595 #define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s)
1596 #define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv)
1597 #define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub)
1598 #define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv)
1599 #define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui)
1600 #define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv)
1601 #define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us)
1602 #define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv)
1603 #define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer)
1604 #define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d)
1605 #define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv)
1606 #define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f)
1607 #define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv)
1608 #define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i)
1609 #define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv)
1610 #define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s)
1611 #define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv)
1612 #define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d)
1613 #define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv)
1614 #define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f)
1615 #define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv)
1616 #define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i)
1617 #define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv)
1618 #define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s)
1619 #define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv)
1620 
1621 #define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4)
1622 
1623 #endif /* GL_VERSION_1_4 */
1624 
1625 /* ----------------------------- GL_VERSION_1_5 ---------------------------- */
1626 
1627 #ifndef GL_VERSION_1_5
1628 #define GL_VERSION_1_5 1
1629 
1630 #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
1631 #define GL_FOG_COORD GL_FOG_COORDINATE
1632 #define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
1633 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
1634 #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
1635 #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
1636 #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
1637 #define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
1638 #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA
1639 #define GL_SRC0_RGB GL_SOURCE0_RGB
1640 #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA
1641 #define GL_SRC1_RGB GL_SOURCE1_RGB
1642 #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA
1643 #define GL_SRC2_RGB GL_SOURCE2_RGB
1644 #define GL_BUFFER_SIZE 0x8764
1645 #define GL_BUFFER_USAGE 0x8765
1646 #define GL_QUERY_COUNTER_BITS 0x8864
1647 #define GL_CURRENT_QUERY 0x8865
1648 #define GL_QUERY_RESULT 0x8866
1649 #define GL_QUERY_RESULT_AVAILABLE 0x8867
1650 #define GL_ARRAY_BUFFER 0x8892
1651 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
1652 #define GL_ARRAY_BUFFER_BINDING 0x8894
1653 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
1654 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
1655 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
1656 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
1657 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
1658 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
1659 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
1660 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
1661 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
1662 #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
1663 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
1664 #define GL_READ_ONLY 0x88B8
1665 #define GL_WRITE_ONLY 0x88B9
1666 #define GL_READ_WRITE 0x88BA
1667 #define GL_BUFFER_ACCESS 0x88BB
1668 #define GL_BUFFER_MAPPED 0x88BC
1669 #define GL_BUFFER_MAP_POINTER 0x88BD
1670 #define GL_STREAM_DRAW 0x88E0
1671 #define GL_STREAM_READ 0x88E1
1672 #define GL_STREAM_COPY 0x88E2
1673 #define GL_STATIC_DRAW 0x88E4
1674 #define GL_STATIC_READ 0x88E5
1675 #define GL_STATIC_COPY 0x88E6
1676 #define GL_DYNAMIC_DRAW 0x88E8
1677 #define GL_DYNAMIC_READ 0x88E9
1678 #define GL_DYNAMIC_COPY 0x88EA
1679 #define GL_SAMPLES_PASSED 0x8914
1680 
1681 typedef ptrdiff_t GLintptr;
1682 typedef ptrdiff_t GLsizeiptr;
1683 
1684 typedef void (GLAPIENTRY * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
1685 typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
1686 typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void* data, GLenum usage);
1687 typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void* data);
1688 typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers);
1689 typedef void (GLAPIENTRY * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids);
1690 typedef void (GLAPIENTRY * PFNGLENDQUERYPROC) (GLenum target);
1691 typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers);
1692 typedef void (GLAPIENTRY * PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids);
1693 typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params);
1694 typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void** params);
1695 typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void* data);
1696 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params);
1697 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params);
1698 typedef void (GLAPIENTRY * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params);
1699 typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint buffer);
1700 typedef GLboolean (GLAPIENTRY * PFNGLISQUERYPROC) (GLuint id);
1701 typedef void* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
1702 typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERPROC) (GLenum target);
1703 
1704 #define glBeginQuery GLEW_GET_FUN(__glewBeginQuery)
1705 #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer)
1706 #define glBufferData GLEW_GET_FUN(__glewBufferData)
1707 #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData)
1708 #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers)
1709 #define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries)
1710 #define glEndQuery GLEW_GET_FUN(__glewEndQuery)
1711 #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)
1712 #define glGenQueries GLEW_GET_FUN(__glewGenQueries)
1713 #define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv)
1714 #define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv)
1715 #define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData)
1716 #define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv)
1717 #define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv)
1718 #define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv)
1719 #define glIsBuffer GLEW_GET_FUN(__glewIsBuffer)
1720 #define glIsQuery GLEW_GET_FUN(__glewIsQuery)
1721 #define glMapBuffer GLEW_GET_FUN(__glewMapBuffer)
1722 #define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer)
1723 
1724 #define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5)
1725 
1726 #endif /* GL_VERSION_1_5 */
1727 
1728 /* ----------------------------- GL_VERSION_2_0 ---------------------------- */
1729 
1730 #ifndef GL_VERSION_2_0
1731 #define GL_VERSION_2_0 1
1732 
1733 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
1734 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
1735 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
1736 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
1737 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
1738 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
1739 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
1740 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
1741 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
1742 #define GL_STENCIL_BACK_FUNC 0x8800
1743 #define GL_STENCIL_BACK_FAIL 0x8801
1744 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
1745 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
1746 #define GL_MAX_DRAW_BUFFERS 0x8824
1747 #define GL_DRAW_BUFFER0 0x8825
1748 #define GL_DRAW_BUFFER1 0x8826
1749 #define GL_DRAW_BUFFER2 0x8827
1750 #define GL_DRAW_BUFFER3 0x8828
1751 #define GL_DRAW_BUFFER4 0x8829
1752 #define GL_DRAW_BUFFER5 0x882A
1753 #define GL_DRAW_BUFFER6 0x882B
1754 #define GL_DRAW_BUFFER7 0x882C
1755 #define GL_DRAW_BUFFER8 0x882D
1756 #define GL_DRAW_BUFFER9 0x882E
1757 #define GL_DRAW_BUFFER10 0x882F
1758 #define GL_DRAW_BUFFER11 0x8830
1759 #define GL_DRAW_BUFFER12 0x8831
1760 #define GL_DRAW_BUFFER13 0x8832
1761 #define GL_DRAW_BUFFER14 0x8833
1762 #define GL_DRAW_BUFFER15 0x8834
1763 #define GL_BLEND_EQUATION_ALPHA 0x883D
1764 #define GL_POINT_SPRITE 0x8861
1765 #define GL_COORD_REPLACE 0x8862
1766 #define GL_MAX_VERTEX_ATTRIBS 0x8869
1767 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
1768 #define GL_MAX_TEXTURE_COORDS 0x8871
1769 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
1770 #define GL_FRAGMENT_SHADER 0x8B30
1771 #define GL_VERTEX_SHADER 0x8B31
1772 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
1773 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
1774 #define GL_MAX_VARYING_FLOATS 0x8B4B
1775 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
1776 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
1777 #define GL_SHADER_TYPE 0x8B4F
1778 #define GL_FLOAT_VEC2 0x8B50
1779 #define GL_FLOAT_VEC3 0x8B51
1780 #define GL_FLOAT_VEC4 0x8B52
1781 #define GL_INT_VEC2 0x8B53
1782 #define GL_INT_VEC3 0x8B54
1783 #define GL_INT_VEC4 0x8B55
1784 #define GL_BOOL 0x8B56
1785 #define GL_BOOL_VEC2 0x8B57
1786 #define GL_BOOL_VEC3 0x8B58
1787 #define GL_BOOL_VEC4 0x8B59
1788 #define GL_FLOAT_MAT2 0x8B5A
1789 #define GL_FLOAT_MAT3 0x8B5B
1790 #define GL_FLOAT_MAT4 0x8B5C
1791 #define GL_SAMPLER_1D 0x8B5D
1792 #define GL_SAMPLER_2D 0x8B5E
1793 #define GL_SAMPLER_3D 0x8B5F
1794 #define GL_SAMPLER_CUBE 0x8B60
1795 #define GL_SAMPLER_1D_SHADOW 0x8B61
1796 #define GL_SAMPLER_2D_SHADOW 0x8B62
1797 #define GL_DELETE_STATUS 0x8B80
1798 #define GL_COMPILE_STATUS 0x8B81
1799 #define GL_LINK_STATUS 0x8B82
1800 #define GL_VALIDATE_STATUS 0x8B83
1801 #define GL_INFO_LOG_LENGTH 0x8B84
1802 #define GL_ATTACHED_SHADERS 0x8B85
1803 #define GL_ACTIVE_UNIFORMS 0x8B86
1804 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
1805 #define GL_SHADER_SOURCE_LENGTH 0x8B88
1806 #define GL_ACTIVE_ATTRIBUTES 0x8B89
1807 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
1808 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
1809 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
1810 #define GL_CURRENT_PROGRAM 0x8B8D
1811 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
1812 #define GL_LOWER_LEFT 0x8CA1
1813 #define GL_UPPER_LEFT 0x8CA2
1814 #define GL_STENCIL_BACK_REF 0x8CA3
1815 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
1816 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
1817 
1818 typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
1819 typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name);
1821 typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader);
1823 typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type);
1824 typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program);
1825 typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader);
1826 typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
1828 typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs);
1830 typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
1831 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
1832 typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders);
1833 typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name);
1834 typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
1835 typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* param);
1836 typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
1837 typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLuint obj, GLsizei maxLength, GLsizei* length, GLchar* source);
1838 typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* param);
1839 typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name);
1840 typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params);
1841 typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params);
1842 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void** pointer);
1843 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble* params);
1844 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat* params);
1845 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint* params);
1846 typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program);
1847 typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader);
1848 typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program);
1849 typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const* string, const GLint* length);
1850 typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
1851 typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
1852 typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
1853 typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
1854 typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1855 typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
1856 typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value);
1857 typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
1858 typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1859 typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
1860 typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value);
1861 typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1862 typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1863 typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
1864 typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value);
1865 typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1866 typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1867 typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1868 typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value);
1869 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1870 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1871 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1872 typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program);
1873 typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program);
1874 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
1875 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v);
1876 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
1877 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v);
1878 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
1879 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v);
1880 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
1881 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v);
1882 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
1883 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v);
1884 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
1885 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v);
1886 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1887 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v);
1888 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
1889 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v);
1890 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
1891 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v);
1892 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v);
1893 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v);
1894 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v);
1895 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
1896 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v);
1897 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v);
1898 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v);
1899 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v);
1900 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1901 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v);
1902 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1903 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v);
1904 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v);
1905 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
1906 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v);
1907 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v);
1908 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v);
1909 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v);
1910 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer);
1911 
1912 #define glAttachShader GLEW_GET_FUN(__glewAttachShader)
1913 #define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation)
1914 #define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate)
1915 #define glCompileShader GLEW_GET_FUN(__glewCompileShader)
1916 #define glCreateProgram GLEW_GET_FUN(__glewCreateProgram)
1917 #define glCreateShader GLEW_GET_FUN(__glewCreateShader)
1918 #define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram)
1919 #define glDeleteShader GLEW_GET_FUN(__glewDeleteShader)
1920 #define glDetachShader GLEW_GET_FUN(__glewDetachShader)
1921 #define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray)
1922 #define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers)
1923 #define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray)
1924 #define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib)
1925 #define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform)
1926 #define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders)
1927 #define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation)
1928 #define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog)
1929 #define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv)
1930 #define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog)
1931 #define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource)
1932 #define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv)
1933 #define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation)
1934 #define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv)
1935 #define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv)
1936 #define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv)
1937 #define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv)
1938 #define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv)
1939 #define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv)
1940 #define glIsProgram GLEW_GET_FUN(__glewIsProgram)
1941 #define glIsShader GLEW_GET_FUN(__glewIsShader)
1942 #define glLinkProgram GLEW_GET_FUN(__glewLinkProgram)
1943 #define glShaderSource GLEW_GET_FUN(__glewShaderSource)
1944 #define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate)
1945 #define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate)
1946 #define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate)
1947 #define glUniform1f GLEW_GET_FUN(__glewUniform1f)
1948 #define glUniform1fv GLEW_GET_FUN(__glewUniform1fv)
1949 #define glUniform1i GLEW_GET_FUN(__glewUniform1i)
1950 #define glUniform1iv GLEW_GET_FUN(__glewUniform1iv)
1951 #define glUniform2f GLEW_GET_FUN(__glewUniform2f)
1952 #define glUniform2fv GLEW_GET_FUN(__glewUniform2fv)
1953 #define glUniform2i GLEW_GET_FUN(__glewUniform2i)
1954 #define glUniform2iv GLEW_GET_FUN(__glewUniform2iv)
1955 #define glUniform3f GLEW_GET_FUN(__glewUniform3f)
1956 #define glUniform3fv GLEW_GET_FUN(__glewUniform3fv)
1957 #define glUniform3i GLEW_GET_FUN(__glewUniform3i)
1958 #define glUniform3iv GLEW_GET_FUN(__glewUniform3iv)
1959 #define glUniform4f GLEW_GET_FUN(__glewUniform4f)
1960 #define glUniform4fv GLEW_GET_FUN(__glewUniform4fv)
1961 #define glUniform4i GLEW_GET_FUN(__glewUniform4i)
1962 #define glUniform4iv GLEW_GET_FUN(__glewUniform4iv)
1963 #define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv)
1964 #define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv)
1965 #define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv)
1966 #define glUseProgram GLEW_GET_FUN(__glewUseProgram)
1967 #define glValidateProgram GLEW_GET_FUN(__glewValidateProgram)
1968 #define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d)
1969 #define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv)
1970 #define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f)
1971 #define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv)
1972 #define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s)
1973 #define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv)
1974 #define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d)
1975 #define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv)
1976 #define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f)
1977 #define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv)
1978 #define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s)
1979 #define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv)
1980 #define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d)
1981 #define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv)
1982 #define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f)
1983 #define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv)
1984 #define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s)
1985 #define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv)
1986 #define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv)
1987 #define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv)
1988 #define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv)
1989 #define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub)
1990 #define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv)
1991 #define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv)
1992 #define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv)
1993 #define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv)
1994 #define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d)
1995 #define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv)
1996 #define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f)
1997 #define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv)
1998 #define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv)
1999 #define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s)
2000 #define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv)
2001 #define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv)
2002 #define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv)
2003 #define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv)
2004 #define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer)
2005 
2006 #define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0)
2007 
2008 #endif /* GL_VERSION_2_0 */
2009 
2010 /* ----------------------------- GL_VERSION_2_1 ---------------------------- */
2011 
2012 #ifndef GL_VERSION_2_1
2013 #define GL_VERSION_2_1 1
2014 
2015 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
2016 #define GL_PIXEL_PACK_BUFFER 0x88EB
2017 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
2018 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
2019 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
2020 #define GL_FLOAT_MAT2x3 0x8B65
2021 #define GL_FLOAT_MAT2x4 0x8B66
2022 #define GL_FLOAT_MAT3x2 0x8B67
2023 #define GL_FLOAT_MAT3x4 0x8B68
2024 #define GL_FLOAT_MAT4x2 0x8B69
2025 #define GL_FLOAT_MAT4x3 0x8B6A
2026 #define GL_SRGB 0x8C40
2027 #define GL_SRGB8 0x8C41
2028 #define GL_SRGB_ALPHA 0x8C42
2029 #define GL_SRGB8_ALPHA8 0x8C43
2030 #define GL_SLUMINANCE_ALPHA 0x8C44
2031 #define GL_SLUMINANCE8_ALPHA8 0x8C45
2032 #define GL_SLUMINANCE 0x8C46
2033 #define GL_SLUMINANCE8 0x8C47
2034 #define GL_COMPRESSED_SRGB 0x8C48
2035 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
2036 #define GL_COMPRESSED_SLUMINANCE 0x8C4A
2037 #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
2038 
2039 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2040 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2041 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2042 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2043 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2044 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2045 
2046 #define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv)
2047 #define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv)
2048 #define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv)
2049 #define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv)
2050 #define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv)
2051 #define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv)
2052 
2053 #define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1)
2054 
2055 #endif /* GL_VERSION_2_1 */
2056 
2057 /* ----------------------------- GL_VERSION_3_0 ---------------------------- */
2058 
2059 #ifndef GL_VERSION_3_0
2060 #define GL_VERSION_3_0 1
2061 
2062 #define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0
2063 #define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1
2064 #define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2
2065 #define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3
2066 #define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4
2067 #define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5
2068 #define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB
2069 #define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES
2070 #define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS
2071 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
2072 #define GL_MAJOR_VERSION 0x821B
2073 #define GL_MINOR_VERSION 0x821C
2074 #define GL_NUM_EXTENSIONS 0x821D
2075 #define GL_CONTEXT_FLAGS 0x821E
2076 #define GL_DEPTH_BUFFER 0x8223
2077 #define GL_STENCIL_BUFFER 0x8224
2078 #define GL_RGBA32F 0x8814
2079 #define GL_RGB32F 0x8815
2080 #define GL_RGBA16F 0x881A
2081 #define GL_RGB16F 0x881B
2082 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
2083 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
2084 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
2085 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
2086 #define GL_CLAMP_VERTEX_COLOR 0x891A
2087 #define GL_CLAMP_FRAGMENT_COLOR 0x891B
2088 #define GL_CLAMP_READ_COLOR 0x891C
2089 #define GL_FIXED_ONLY 0x891D
2090 #define GL_TEXTURE_RED_TYPE 0x8C10
2091 #define GL_TEXTURE_GREEN_TYPE 0x8C11
2092 #define GL_TEXTURE_BLUE_TYPE 0x8C12
2093 #define GL_TEXTURE_ALPHA_TYPE 0x8C13
2094 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
2095 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15
2096 #define GL_TEXTURE_DEPTH_TYPE 0x8C16
2097 #define GL_TEXTURE_1D_ARRAY 0x8C18
2098 #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
2099 #define GL_TEXTURE_2D_ARRAY 0x8C1A
2100 #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
2101 #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
2102 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
2103 #define GL_R11F_G11F_B10F 0x8C3A
2104 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
2105 #define GL_RGB9_E5 0x8C3D
2106 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
2107 #define GL_TEXTURE_SHARED_SIZE 0x8C3F
2108 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
2109 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
2110 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
2111 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
2112 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
2113 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
2114 #define GL_PRIMITIVES_GENERATED 0x8C87
2115 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
2116 #define GL_RASTERIZER_DISCARD 0x8C89
2117 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
2118 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
2119 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
2120 #define GL_SEPARATE_ATTRIBS 0x8C8D
2121 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
2122 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
2123 #define GL_RGBA32UI 0x8D70
2124 #define GL_RGB32UI 0x8D71
2125 #define GL_RGBA16UI 0x8D76
2126 #define GL_RGB16UI 0x8D77
2127 #define GL_RGBA8UI 0x8D7C
2128 #define GL_RGB8UI 0x8D7D
2129 #define GL_RGBA32I 0x8D82
2130 #define GL_RGB32I 0x8D83
2131 #define GL_RGBA16I 0x8D88
2132 #define GL_RGB16I 0x8D89
2133 #define GL_RGBA8I 0x8D8E
2134 #define GL_RGB8I 0x8D8F
2135 #define GL_RED_INTEGER 0x8D94
2136 #define GL_GREEN_INTEGER 0x8D95
2137 #define GL_BLUE_INTEGER 0x8D96
2138 #define GL_ALPHA_INTEGER 0x8D97
2139 #define GL_RGB_INTEGER 0x8D98
2140 #define GL_RGBA_INTEGER 0x8D99
2141 #define GL_BGR_INTEGER 0x8D9A
2142 #define GL_BGRA_INTEGER 0x8D9B
2143 #define GL_SAMPLER_1D_ARRAY 0x8DC0
2144 #define GL_SAMPLER_2D_ARRAY 0x8DC1
2145 #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
2146 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
2147 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
2148 #define GL_UNSIGNED_INT_VEC2 0x8DC6
2149 #define GL_UNSIGNED_INT_VEC3 0x8DC7
2150 #define GL_UNSIGNED_INT_VEC4 0x8DC8
2151 #define GL_INT_SAMPLER_1D 0x8DC9
2152 #define GL_INT_SAMPLER_2D 0x8DCA
2153 #define GL_INT_SAMPLER_3D 0x8DCB
2154 #define GL_INT_SAMPLER_CUBE 0x8DCC
2155 #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
2156 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
2157 #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
2158 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
2159 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
2160 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
2161 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
2162 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
2163 #define GL_QUERY_WAIT 0x8E13
2164 #define GL_QUERY_NO_WAIT 0x8E14
2165 #define GL_QUERY_BY_REGION_WAIT 0x8E15
2166 #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
2167 
2169 typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
2170 typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint colorNumber, const GLchar* name);
2171 typedef void (GLAPIENTRY * PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
2172 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawBuffer, GLfloat depth, GLint stencil);
2173 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawBuffer, const GLfloat* value);
2174 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawBuffer, const GLint* value);
2175 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawBuffer, const GLuint* value);
2176 typedef void (GLAPIENTRY * PFNGLCOLORMASKIPROC) (GLuint buf, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
2177 typedef void (GLAPIENTRY * PFNGLDISABLEIPROC) (GLenum cap, GLuint index);
2178 typedef void (GLAPIENTRY * PFNGLENABLEIPROC) (GLenum cap, GLuint index);
2181 typedef void (GLAPIENTRY * PFNGLGETBOOLEANI_VPROC) (GLenum pname, GLuint index, GLboolean* data);
2182 typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar* name);
2183 typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
2184 typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint* params);
2185 typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint* params);
2186 typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name);
2187 typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint* params);
2188 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint* params);
2189 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint* params);
2190 typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDIPROC) (GLenum cap, GLuint index);
2191 typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint* params);
2192 typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint* params);
2193 typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode);
2194 typedef void (GLAPIENTRY * PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
2195 typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint* value);
2196 typedef void (GLAPIENTRY * PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
2197 typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint* value);
2198 typedef void (GLAPIENTRY * PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
2199 typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint* value);
2200 typedef void (GLAPIENTRY * PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2201 typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint* value);
2202 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint v0);
2203 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint* v0);
2204 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint v0);
2205 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint* v0);
2206 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint v0, GLint v1);
2207 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint* v0);
2208 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint v0, GLuint v1);
2209 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint* v0);
2210 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint v0, GLint v1, GLint v2);
2211 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint* v0);
2212 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint v0, GLuint v1, GLuint v2);
2213 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint* v0);
2214 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte* v0);
2215 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint v0, GLint v1, GLint v2, GLint v3);
2216 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint* v0);
2217 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort* v0);
2218 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte* v0);
2219 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2220 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint* v0);
2221 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort* v0);
2222 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void*pointer);
2223 
2224 #define glBeginConditionalRender GLEW_GET_FUN(__glewBeginConditionalRender)
2225 #define glBeginTransformFeedback GLEW_GET_FUN(__glewBeginTransformFeedback)
2226 #define glBindFragDataLocation GLEW_GET_FUN(__glewBindFragDataLocation)
2227 #define glClampColor GLEW_GET_FUN(__glewClampColor)
2228 #define glClearBufferfi GLEW_GET_FUN(__glewClearBufferfi)
2229 #define glClearBufferfv GLEW_GET_FUN(__glewClearBufferfv)
2230 #define glClearBufferiv GLEW_GET_FUN(__glewClearBufferiv)
2231 #define glClearBufferuiv GLEW_GET_FUN(__glewClearBufferuiv)
2232 #define glColorMaski GLEW_GET_FUN(__glewColorMaski)
2233 #define glDisablei GLEW_GET_FUN(__glewDisablei)
2234 #define glEnablei GLEW_GET_FUN(__glewEnablei)
2235 #define glEndConditionalRender GLEW_GET_FUN(__glewEndConditionalRender)
2236 #define glEndTransformFeedback GLEW_GET_FUN(__glewEndTransformFeedback)
2237 #define glGetBooleani_v GLEW_GET_FUN(__glewGetBooleani_v)
2238 #define glGetFragDataLocation GLEW_GET_FUN(__glewGetFragDataLocation)
2239 #define glGetStringi GLEW_GET_FUN(__glewGetStringi)
2240 #define glGetTexParameterIiv GLEW_GET_FUN(__glewGetTexParameterIiv)
2241 #define glGetTexParameterIuiv GLEW_GET_FUN(__glewGetTexParameterIuiv)
2242 #define glGetTransformFeedbackVarying GLEW_GET_FUN(__glewGetTransformFeedbackVarying)
2243 #define glGetUniformuiv GLEW_GET_FUN(__glewGetUniformuiv)
2244 #define glGetVertexAttribIiv GLEW_GET_FUN(__glewGetVertexAttribIiv)
2245 #define glGetVertexAttribIuiv GLEW_GET_FUN(__glewGetVertexAttribIuiv)
2246 #define glIsEnabledi GLEW_GET_FUN(__glewIsEnabledi)
2247 #define glTexParameterIiv GLEW_GET_FUN(__glewTexParameterIiv)
2248 #define glTexParameterIuiv GLEW_GET_FUN(__glewTexParameterIuiv)
2249 #define glTransformFeedbackVaryings GLEW_GET_FUN(__glewTransformFeedbackVaryings)
2250 #define glUniform1ui GLEW_GET_FUN(__glewUniform1ui)
2251 #define glUniform1uiv GLEW_GET_FUN(__glewUniform1uiv)
2252 #define glUniform2ui GLEW_GET_FUN(__glewUniform2ui)
2253 #define glUniform2uiv GLEW_GET_FUN(__glewUniform2uiv)
2254 #define glUniform3ui GLEW_GET_FUN(__glewUniform3ui)
2255 #define glUniform3uiv GLEW_GET_FUN(__glewUniform3uiv)
2256 #define glUniform4ui GLEW_GET_FUN(__glewUniform4ui)
2257 #define glUniform4uiv GLEW_GET_FUN(__glewUniform4uiv)
2258 #define glVertexAttribI1i GLEW_GET_FUN(__glewVertexAttribI1i)
2259 #define glVertexAttribI1iv GLEW_GET_FUN(__glewVertexAttribI1iv)
2260 #define glVertexAttribI1ui GLEW_GET_FUN(__glewVertexAttribI1ui)
2261 #define glVertexAttribI1uiv GLEW_GET_FUN(__glewVertexAttribI1uiv)
2262 #define glVertexAttribI2i GLEW_GET_FUN(__glewVertexAttribI2i)
2263 #define glVertexAttribI2iv GLEW_GET_FUN(__glewVertexAttribI2iv)
2264 #define glVertexAttribI2ui GLEW_GET_FUN(__glewVertexAttribI2ui)
2265 #define glVertexAttribI2uiv GLEW_GET_FUN(__glewVertexAttribI2uiv)
2266 #define glVertexAttribI3i GLEW_GET_FUN(__glewVertexAttribI3i)
2267 #define glVertexAttribI3iv GLEW_GET_FUN(__glewVertexAttribI3iv)
2268 #define glVertexAttribI3ui GLEW_GET_FUN(__glewVertexAttribI3ui)
2269 #define glVertexAttribI3uiv GLEW_GET_FUN(__glewVertexAttribI3uiv)
2270 #define glVertexAttribI4bv GLEW_GET_FUN(__glewVertexAttribI4bv)
2271 #define glVertexAttribI4i GLEW_GET_FUN(__glewVertexAttribI4i)
2272 #define glVertexAttribI4iv GLEW_GET_FUN(__glewVertexAttribI4iv)
2273 #define glVertexAttribI4sv GLEW_GET_FUN(__glewVertexAttribI4sv)
2274 #define glVertexAttribI4ubv GLEW_GET_FUN(__glewVertexAttribI4ubv)
2275 #define glVertexAttribI4ui GLEW_GET_FUN(__glewVertexAttribI4ui)
2276 #define glVertexAttribI4uiv GLEW_GET_FUN(__glewVertexAttribI4uiv)
2277 #define glVertexAttribI4usv GLEW_GET_FUN(__glewVertexAttribI4usv)
2278 #define glVertexAttribIPointer GLEW_GET_FUN(__glewVertexAttribIPointer)
2279 
2280 #define GLEW_VERSION_3_0 GLEW_GET_VAR(__GLEW_VERSION_3_0)
2281 
2282 #endif /* GL_VERSION_3_0 */
2283 
2284 /* ----------------------------- GL_VERSION_3_1 ---------------------------- */
2285 
2286 #ifndef GL_VERSION_3_1
2287 #define GL_VERSION_3_1 1
2288 
2289 #define GL_TEXTURE_RECTANGLE 0x84F5
2290 #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
2291 #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
2292 #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
2293 #define GL_SAMPLER_2D_RECT 0x8B63
2294 #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
2295 #define GL_TEXTURE_BUFFER 0x8C2A
2296 #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
2297 #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
2298 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
2299 #define GL_TEXTURE_BUFFER_FORMAT 0x8C2E
2300 #define GL_SAMPLER_BUFFER 0x8DC2
2301 #define GL_INT_SAMPLER_2D_RECT 0x8DCD
2302 #define GL_INT_SAMPLER_BUFFER 0x8DD0
2303 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
2304 #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
2305 #define GL_RED_SNORM 0x8F90
2306 #define GL_RG_SNORM 0x8F91
2307 #define GL_RGB_SNORM 0x8F92
2308 #define GL_RGBA_SNORM 0x8F93
2309 #define GL_R8_SNORM 0x8F94
2310 #define GL_RG8_SNORM 0x8F95
2311 #define GL_RGB8_SNORM 0x8F96
2312 #define GL_RGBA8_SNORM 0x8F97
2313 #define GL_R16_SNORM 0x8F98
2314 #define GL_RG16_SNORM 0x8F99
2315 #define GL_RGB16_SNORM 0x8F9A
2316 #define GL_RGBA16_SNORM 0x8F9B
2317 #define GL_SIGNED_NORMALIZED 0x8F9C
2318 #define GL_PRIMITIVE_RESTART 0x8F9D
2319 #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
2320 #define GL_BUFFER_ACCESS_FLAGS 0x911F
2321 #define GL_BUFFER_MAP_LENGTH 0x9120
2322 #define GL_BUFFER_MAP_OFFSET 0x9121
2323 
2324 typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
2325 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount);
2327 typedef void (GLAPIENTRY * PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalFormat, GLuint buffer);
2328 
2329 #define glDrawArraysInstanced GLEW_GET_FUN(__glewDrawArraysInstanced)
2330 #define glDrawElementsInstanced GLEW_GET_FUN(__glewDrawElementsInstanced)
2331 #define glPrimitiveRestartIndex GLEW_GET_FUN(__glewPrimitiveRestartIndex)
2332 #define glTexBuffer GLEW_GET_FUN(__glewTexBuffer)
2333 
2334 #define GLEW_VERSION_3_1 GLEW_GET_VAR(__GLEW_VERSION_3_1)
2335 
2336 #endif /* GL_VERSION_3_1 */
2337 
2338 /* ----------------------------- GL_VERSION_3_2 ---------------------------- */
2339 
2340 #ifndef GL_VERSION_3_2
2341 #define GL_VERSION_3_2 1
2342 
2343 #define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
2344 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
2345 #define GL_LINES_ADJACENCY 0x000A
2346 #define GL_LINE_STRIP_ADJACENCY 0x000B
2347 #define GL_TRIANGLES_ADJACENCY 0x000C
2348 #define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
2349 #define GL_PROGRAM_POINT_SIZE 0x8642
2350 #define GL_GEOMETRY_VERTICES_OUT 0x8916
2351 #define GL_GEOMETRY_INPUT_TYPE 0x8917
2352 #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
2353 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
2354 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
2355 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
2356 #define GL_GEOMETRY_SHADER 0x8DD9
2357 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
2358 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
2359 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
2360 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
2361 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
2362 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
2363 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
2364 #define GL_CONTEXT_PROFILE_MASK 0x9126
2365 
2366 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
2367 typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum value, GLint64 * data);
2368 typedef void (GLAPIENTRY * PFNGLGETINTEGER64I_VPROC) (GLenum pname, GLuint index, GLint64 * data);
2369 
2370 #define glFramebufferTexture GLEW_GET_FUN(__glewFramebufferTexture)
2371 #define glGetBufferParameteri64v GLEW_GET_FUN(__glewGetBufferParameteri64v)
2372 #define glGetInteger64i_v GLEW_GET_FUN(__glewGetInteger64i_v)
2373 
2374 #define GLEW_VERSION_3_2 GLEW_GET_VAR(__GLEW_VERSION_3_2)
2375 
2376 #endif /* GL_VERSION_3_2 */
2377 
2378 /* ----------------------------- GL_VERSION_3_3 ---------------------------- */
2379 
2380 #ifndef GL_VERSION_3_3
2381 #define GL_VERSION_3_3 1
2382 
2383 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
2384 #define GL_RGB10_A2UI 0x906F
2385 
2387 
2388 #define glVertexAttribDivisor GLEW_GET_FUN(__glewVertexAttribDivisor)
2389 
2390 #define GLEW_VERSION_3_3 GLEW_GET_VAR(__GLEW_VERSION_3_3)
2391 
2392 #endif /* GL_VERSION_3_3 */
2393 
2394 /* ----------------------------- GL_VERSION_4_0 ---------------------------- */
2395 
2396 #ifndef GL_VERSION_4_0
2397 #define GL_VERSION_4_0 1
2398 
2399 #define GL_SAMPLE_SHADING 0x8C36
2400 #define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
2401 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
2402 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
2403 #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F
2404 #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
2405 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
2406 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
2407 #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
2408 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
2409 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
2410 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
2411 
2413 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
2414 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2415 typedef void (GLAPIENTRY * PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
2416 typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGPROC) (GLclampf value);
2417 
2418 #define glBlendEquationSeparatei GLEW_GET_FUN(__glewBlendEquationSeparatei)
2419 #define glBlendEquationi GLEW_GET_FUN(__glewBlendEquationi)
2420 #define glBlendFuncSeparatei GLEW_GET_FUN(__glewBlendFuncSeparatei)
2421 #define glBlendFunci GLEW_GET_FUN(__glewBlendFunci)
2422 #define glMinSampleShading GLEW_GET_FUN(__glewMinSampleShading)
2423 
2424 #define GLEW_VERSION_4_0 GLEW_GET_VAR(__GLEW_VERSION_4_0)
2425 
2426 #endif /* GL_VERSION_4_0 */
2427 
2428 /* ----------------------------- GL_VERSION_4_1 ---------------------------- */
2429 
2430 #ifndef GL_VERSION_4_1
2431 #define GL_VERSION_4_1 1
2432 
2433 #define GLEW_VERSION_4_1 GLEW_GET_VAR(__GLEW_VERSION_4_1)
2434 
2435 #endif /* GL_VERSION_4_1 */
2436 
2437 /* ----------------------------- GL_VERSION_4_2 ---------------------------- */
2438 
2439 #ifndef GL_VERSION_4_2
2440 #define GL_VERSION_4_2 1
2441 
2442 #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
2443 #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
2444 #define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
2445 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
2446 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
2447 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
2448 #define GL_COPY_READ_BUFFER_BINDING 0x8F36
2449 #define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
2450 
2451 #define GLEW_VERSION_4_2 GLEW_GET_VAR(__GLEW_VERSION_4_2)
2452 
2453 #endif /* GL_VERSION_4_2 */
2454 
2455 /* ----------------------------- GL_VERSION_4_3 ---------------------------- */
2456 
2457 #ifndef GL_VERSION_4_3
2458 #define GL_VERSION_4_3 1
2459 
2460 #define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
2461 #define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
2462 
2463 #define GLEW_VERSION_4_3 GLEW_GET_VAR(__GLEW_VERSION_4_3)
2464 
2465 #endif /* GL_VERSION_4_3 */
2466 
2467 /* ----------------------------- GL_VERSION_4_4 ---------------------------- */
2468 
2469 #ifndef GL_VERSION_4_4
2470 #define GL_VERSION_4_4 1
2471 
2472 #define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
2473 #define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
2474 #define GL_TEXTURE_BUFFER_BINDING 0x8C2A
2475 
2476 #define GLEW_VERSION_4_4 GLEW_GET_VAR(__GLEW_VERSION_4_4)
2477 
2478 #endif /* GL_VERSION_4_4 */
2479 
2480 /* ----------------------------- GL_VERSION_4_5 ---------------------------- */
2481 
2482 #ifndef GL_VERSION_4_5
2483 #define GL_VERSION_4_5 1
2484 
2485 #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
2486 
2488 typedef void (GLAPIENTRY * PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *pixels);
2489 typedef void (GLAPIENTRY * PFNGLGETNTEXIMAGEPROC) (GLenum tex, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *pixels);
2490 typedef void (GLAPIENTRY * PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
2491 
2492 #define glGetGraphicsResetStatus GLEW_GET_FUN(__glewGetGraphicsResetStatus)
2493 #define glGetnCompressedTexImage GLEW_GET_FUN(__glewGetnCompressedTexImage)
2494 #define glGetnTexImage GLEW_GET_FUN(__glewGetnTexImage)
2495 #define glGetnUniformdv GLEW_GET_FUN(__glewGetnUniformdv)
2496 
2497 #define GLEW_VERSION_4_5 GLEW_GET_VAR(__GLEW_VERSION_4_5)
2498 
2499 #endif /* GL_VERSION_4_5 */
2500 
2501 /* -------------------------- GL_3DFX_multisample -------------------------- */
2502 
2503 #ifndef GL_3DFX_multisample
2504 #define GL_3DFX_multisample 1
2505 
2506 #define GL_MULTISAMPLE_3DFX 0x86B2
2507 #define GL_SAMPLE_BUFFERS_3DFX 0x86B3
2508 #define GL_SAMPLES_3DFX 0x86B4
2509 #define GL_MULTISAMPLE_BIT_3DFX 0x20000000
2510 
2511 #define GLEW_3DFX_multisample GLEW_GET_VAR(__GLEW_3DFX_multisample)
2512 
2513 #endif /* GL_3DFX_multisample */
2514 
2515 /* ---------------------------- GL_3DFX_tbuffer ---------------------------- */
2516 
2517 #ifndef GL_3DFX_tbuffer
2518 #define GL_3DFX_tbuffer 1
2519 
2520 typedef void (GLAPIENTRY * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
2521 
2522 #define glTbufferMask3DFX GLEW_GET_FUN(__glewTbufferMask3DFX)
2523 
2524 #define GLEW_3DFX_tbuffer GLEW_GET_VAR(__GLEW_3DFX_tbuffer)
2525 
2526 #endif /* GL_3DFX_tbuffer */
2527 
2528 /* -------------------- GL_3DFX_texture_compression_FXT1 ------------------- */
2529 
2530 #ifndef GL_3DFX_texture_compression_FXT1
2531 #define GL_3DFX_texture_compression_FXT1 1
2532 
2533 #define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
2534 #define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1
2535 
2536 #define GLEW_3DFX_texture_compression_FXT1 GLEW_GET_VAR(__GLEW_3DFX_texture_compression_FXT1)
2537 
2538 #endif /* GL_3DFX_texture_compression_FXT1 */
2539 
2540 /* ----------------------- GL_AMD_blend_minmax_factor ---------------------- */
2541 
2542 #ifndef GL_AMD_blend_minmax_factor
2543 #define GL_AMD_blend_minmax_factor 1
2544 
2545 #define GL_FACTOR_MIN_AMD 0x901C
2546 #define GL_FACTOR_MAX_AMD 0x901D
2547 
2548 #define GLEW_AMD_blend_minmax_factor GLEW_GET_VAR(__GLEW_AMD_blend_minmax_factor)
2549 
2550 #endif /* GL_AMD_blend_minmax_factor */
2551 
2552 /* ----------------------- GL_AMD_conservative_depth ----------------------- */
2553 
2554 #ifndef GL_AMD_conservative_depth
2555 #define GL_AMD_conservative_depth 1
2556 
2557 #define GLEW_AMD_conservative_depth GLEW_GET_VAR(__GLEW_AMD_conservative_depth)
2558 
2559 #endif /* GL_AMD_conservative_depth */
2560 
2561 /* -------------------------- GL_AMD_debug_output -------------------------- */
2562 
2563 #ifndef GL_AMD_debug_output
2564 #define GL_AMD_debug_output 1
2565 
2566 #define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD 0x9143
2567 #define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD 0x9144
2568 #define GL_DEBUG_LOGGED_MESSAGES_AMD 0x9145
2569 #define GL_DEBUG_SEVERITY_HIGH_AMD 0x9146
2570 #define GL_DEBUG_SEVERITY_MEDIUM_AMD 0x9147
2571 #define GL_DEBUG_SEVERITY_LOW_AMD 0x9148
2572 #define GL_DEBUG_CATEGORY_API_ERROR_AMD 0x9149
2573 #define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
2574 #define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
2575 #define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
2576 #define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
2577 #define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
2578 #define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
2579 #define GL_DEBUG_CATEGORY_OTHER_AMD 0x9150
2580 
2581 typedef void (GLAPIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, void* userParam);
2582 
2584 typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
2585 typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar* buf);
2586 typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum* categories, GLuint* severities, GLuint* ids, GLsizei* lengths, GLchar* message);
2587 
2588 #define glDebugMessageCallbackAMD GLEW_GET_FUN(__glewDebugMessageCallbackAMD)
2589 #define glDebugMessageEnableAMD GLEW_GET_FUN(__glewDebugMessageEnableAMD)
2590 #define glDebugMessageInsertAMD GLEW_GET_FUN(__glewDebugMessageInsertAMD)
2591 #define glGetDebugMessageLogAMD GLEW_GET_FUN(__glewGetDebugMessageLogAMD)
2592 
2593 #define GLEW_AMD_debug_output GLEW_GET_VAR(__GLEW_AMD_debug_output)
2594 
2595 #endif /* GL_AMD_debug_output */
2596 
2597 /* ---------------------- GL_AMD_depth_clamp_separate ---------------------- */
2598 
2599 #ifndef GL_AMD_depth_clamp_separate
2600 #define GL_AMD_depth_clamp_separate 1
2601 
2602 #define GL_DEPTH_CLAMP_NEAR_AMD 0x901E
2603 #define GL_DEPTH_CLAMP_FAR_AMD 0x901F
2604 
2605 #define GLEW_AMD_depth_clamp_separate GLEW_GET_VAR(__GLEW_AMD_depth_clamp_separate)
2606 
2607 #endif /* GL_AMD_depth_clamp_separate */
2608 
2609 /* ----------------------- GL_AMD_draw_buffers_blend ----------------------- */
2610 
2611 #ifndef GL_AMD_draw_buffers_blend
2612 #define GL_AMD_draw_buffers_blend 1
2613 
2614 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
2615 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2616 typedef void (GLAPIENTRY * PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
2617 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2618 
2619 #define glBlendEquationIndexedAMD GLEW_GET_FUN(__glewBlendEquationIndexedAMD)
2620 #define glBlendEquationSeparateIndexedAMD GLEW_GET_FUN(__glewBlendEquationSeparateIndexedAMD)
2621 #define glBlendFuncIndexedAMD GLEW_GET_FUN(__glewBlendFuncIndexedAMD)
2622 #define glBlendFuncSeparateIndexedAMD GLEW_GET_FUN(__glewBlendFuncSeparateIndexedAMD)
2623 
2624 #define GLEW_AMD_draw_buffers_blend GLEW_GET_VAR(__GLEW_AMD_draw_buffers_blend)
2625 
2626 #endif /* GL_AMD_draw_buffers_blend */
2627 
2628 /* --------------------------- GL_AMD_gcn_shader --------------------------- */
2629 
2630 #ifndef GL_AMD_gcn_shader
2631 #define GL_AMD_gcn_shader 1
2632 
2633 #define GLEW_AMD_gcn_shader GLEW_GET_VAR(__GLEW_AMD_gcn_shader)
2634 
2635 #endif /* GL_AMD_gcn_shader */
2636 
2637 /* ------------------------ GL_AMD_gpu_shader_int64 ------------------------ */
2638 
2639 #ifndef GL_AMD_gpu_shader_int64
2640 #define GL_AMD_gpu_shader_int64 1
2641 
2642 #define GLEW_AMD_gpu_shader_int64 GLEW_GET_VAR(__GLEW_AMD_gpu_shader_int64)
2643 
2644 #endif /* GL_AMD_gpu_shader_int64 */
2645 
2646 /* ---------------------- GL_AMD_interleaved_elements ---------------------- */
2647 
2648 #ifndef GL_AMD_interleaved_elements
2649 #define GL_AMD_interleaved_elements 1
2650 
2651 #define GL_RED 0x1903
2652 #define GL_GREEN 0x1904
2653 #define GL_BLUE 0x1905
2654 #define GL_ALPHA 0x1906
2655 #define GL_RG8UI 0x8238
2656 #define GL_RG16UI 0x823A
2657 #define GL_RGBA8UI 0x8D7C
2658 #define GL_VERTEX_ELEMENT_SWIZZLE_AMD 0x91A4
2659 #define GL_VERTEX_ID_SWIZZLE_AMD 0x91A5
2660 
2661 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param);
2662 
2663 #define glVertexAttribParameteriAMD GLEW_GET_FUN(__glewVertexAttribParameteriAMD)
2664 
2665 #define GLEW_AMD_interleaved_elements GLEW_GET_VAR(__GLEW_AMD_interleaved_elements)
2666 
2667 #endif /* GL_AMD_interleaved_elements */
2668 
2669 /* ----------------------- GL_AMD_multi_draw_indirect ---------------------- */
2670 
2671 #ifndef GL_AMD_multi_draw_indirect
2672 #define GL_AMD_multi_draw_indirect 1
2673 
2674 typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
2675 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
2676 
2677 #define glMultiDrawArraysIndirectAMD GLEW_GET_FUN(__glewMultiDrawArraysIndirectAMD)
2678 #define glMultiDrawElementsIndirectAMD GLEW_GET_FUN(__glewMultiDrawElementsIndirectAMD)
2679 
2680 #define GLEW_AMD_multi_draw_indirect GLEW_GET_VAR(__GLEW_AMD_multi_draw_indirect)
2681 
2682 #endif /* GL_AMD_multi_draw_indirect */
2683 
2684 /* ------------------------- GL_AMD_name_gen_delete ------------------------ */
2685 
2686 #ifndef GL_AMD_name_gen_delete
2687 #define GL_AMD_name_gen_delete 1
2688 
2689 #define GL_DATA_BUFFER_AMD 0x9151
2690 #define GL_PERFORMANCE_MONITOR_AMD 0x9152
2691 #define GL_QUERY_OBJECT_AMD 0x9153
2692 #define GL_VERTEX_ARRAY_OBJECT_AMD 0x9154
2693 #define GL_SAMPLER_OBJECT_AMD 0x9155
2694 
2695 typedef void (GLAPIENTRY * PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint* names);
2696 typedef void (GLAPIENTRY * PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint* names);
2697 typedef GLboolean (GLAPIENTRY * PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
2698 
2699 #define glDeleteNamesAMD GLEW_GET_FUN(__glewDeleteNamesAMD)
2700 #define glGenNamesAMD GLEW_GET_FUN(__glewGenNamesAMD)
2701 #define glIsNameAMD GLEW_GET_FUN(__glewIsNameAMD)
2702 
2703 #define GLEW_AMD_name_gen_delete GLEW_GET_VAR(__GLEW_AMD_name_gen_delete)
2704 
2705 #endif /* GL_AMD_name_gen_delete */
2706 
2707 /* ---------------------- GL_AMD_occlusion_query_event --------------------- */
2708 
2709 #ifndef GL_AMD_occlusion_query_event
2710 #define GL_AMD_occlusion_query_event 1
2711 
2712 #define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001
2713 #define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002
2714 #define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004
2715 #define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008
2716 #define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F
2717 #define GL_QUERY_ALL_EVENT_BITS_AMD 0xFFFFFFFF
2718 
2719 typedef void (GLAPIENTRY * PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param);
2720 
2721 #define glQueryObjectParameteruiAMD GLEW_GET_FUN(__glewQueryObjectParameteruiAMD)
2722 
2723 #define GLEW_AMD_occlusion_query_event GLEW_GET_VAR(__GLEW_AMD_occlusion_query_event)
2724 
2725 #endif /* GL_AMD_occlusion_query_event */
2726 
2727 /* ----------------------- GL_AMD_performance_monitor ---------------------- */
2728 
2729 #ifndef GL_AMD_performance_monitor
2730 #define GL_AMD_performance_monitor 1
2731 
2732 #define GL_COUNTER_TYPE_AMD 0x8BC0
2733 #define GL_COUNTER_RANGE_AMD 0x8BC1
2734 #define GL_UNSIGNED_INT64_AMD 0x8BC2
2735 #define GL_PERCENTAGE_AMD 0x8BC3
2736 #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
2737 #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
2738 #define GL_PERFMON_RESULT_AMD 0x8BC6
2739 
2740 typedef void (GLAPIENTRY * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
2742 typedef void (GLAPIENTRY * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
2743 typedef void (GLAPIENTRY * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors);
2744 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint *bytesWritten);
2745 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
2746 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, GLchar *counterString);
2748 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, GLchar *groupString);
2749 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint *groups);
2750 typedef void (GLAPIENTRY * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList);
2751 
2752 #define glBeginPerfMonitorAMD GLEW_GET_FUN(__glewBeginPerfMonitorAMD)
2753 #define glDeletePerfMonitorsAMD GLEW_GET_FUN(__glewDeletePerfMonitorsAMD)
2754 #define glEndPerfMonitorAMD GLEW_GET_FUN(__glewEndPerfMonitorAMD)
2755 #define glGenPerfMonitorsAMD GLEW_GET_FUN(__glewGenPerfMonitorsAMD)
2756 #define glGetPerfMonitorCounterDataAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterDataAMD)
2757 #define glGetPerfMonitorCounterInfoAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterInfoAMD)
2758 #define glGetPerfMonitorCounterStringAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterStringAMD)
2759 #define glGetPerfMonitorCountersAMD GLEW_GET_FUN(__glewGetPerfMonitorCountersAMD)
2760 #define glGetPerfMonitorGroupStringAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupStringAMD)
2761 #define glGetPerfMonitorGroupsAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupsAMD)
2762 #define glSelectPerfMonitorCountersAMD GLEW_GET_FUN(__glewSelectPerfMonitorCountersAMD)
2763 
2764 #define GLEW_AMD_performance_monitor GLEW_GET_VAR(__GLEW_AMD_performance_monitor)
2765 
2766 #endif /* GL_AMD_performance_monitor */
2767 
2768 /* -------------------------- GL_AMD_pinned_memory ------------------------- */
2769 
2770 #ifndef GL_AMD_pinned_memory
2771 #define GL_AMD_pinned_memory 1
2772 
2773 #define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
2774 
2775 #define GLEW_AMD_pinned_memory GLEW_GET_VAR(__GLEW_AMD_pinned_memory)
2776 
2777 #endif /* GL_AMD_pinned_memory */
2778 
2779 /* ----------------------- GL_AMD_query_buffer_object ---------------------- */
2780 
2781 #ifndef GL_AMD_query_buffer_object
2782 #define GL_AMD_query_buffer_object 1
2783 
2784 #define GL_QUERY_BUFFER_AMD 0x9192
2785 #define GL_QUERY_BUFFER_BINDING_AMD 0x9193
2786 #define GL_QUERY_RESULT_NO_WAIT_AMD 0x9194
2787 
2788 #define GLEW_AMD_query_buffer_object GLEW_GET_VAR(__GLEW_AMD_query_buffer_object)
2789 
2790 #endif /* GL_AMD_query_buffer_object */
2791 
2792 /* ------------------------ GL_AMD_sample_positions ------------------------ */
2793 
2794 #ifndef GL_AMD_sample_positions
2795 #define GL_AMD_sample_positions 1
2796 
2797 #define GL_SUBSAMPLE_DISTANCE_AMD 0x883F
2798 
2799 typedef void (GLAPIENTRY * PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat* val);
2800 
2801 #define glSetMultisamplefvAMD GLEW_GET_FUN(__glewSetMultisamplefvAMD)
2802 
2803 #define GLEW_AMD_sample_positions GLEW_GET_VAR(__GLEW_AMD_sample_positions)
2804 
2805 #endif /* GL_AMD_sample_positions */
2806 
2807 /* ------------------ GL_AMD_seamless_cubemap_per_texture ------------------ */
2808 
2809 #ifndef GL_AMD_seamless_cubemap_per_texture
2810 #define GL_AMD_seamless_cubemap_per_texture 1
2811 
2812 #define GL_TEXTURE_CUBE_MAP_SEAMLESS_ARB 0x884F
2813 
2814 #define GLEW_AMD_seamless_cubemap_per_texture GLEW_GET_VAR(__GLEW_AMD_seamless_cubemap_per_texture)
2815 
2816 #endif /* GL_AMD_seamless_cubemap_per_texture */
2817 
2818 /* -------------------- GL_AMD_shader_atomic_counter_ops ------------------- */
2819 
2820 #ifndef GL_AMD_shader_atomic_counter_ops
2821 #define GL_AMD_shader_atomic_counter_ops 1
2822 
2823 #define GLEW_AMD_shader_atomic_counter_ops GLEW_GET_VAR(__GLEW_AMD_shader_atomic_counter_ops)
2824 
2825 #endif /* GL_AMD_shader_atomic_counter_ops */
2826 
2827 /* ---------------- GL_AMD_shader_explicit_vertex_parameter ---------------- */
2828 
2829 #ifndef GL_AMD_shader_explicit_vertex_parameter
2830 #define GL_AMD_shader_explicit_vertex_parameter 1
2831 
2832 #define GLEW_AMD_shader_explicit_vertex_parameter GLEW_GET_VAR(__GLEW_AMD_shader_explicit_vertex_parameter)
2833 
2834 #endif /* GL_AMD_shader_explicit_vertex_parameter */
2835 
2836 /* ---------------------- GL_AMD_shader_stencil_export --------------------- */
2837 
2838 #ifndef GL_AMD_shader_stencil_export
2839 #define GL_AMD_shader_stencil_export 1
2840 
2841 #define GLEW_AMD_shader_stencil_export GLEW_GET_VAR(__GLEW_AMD_shader_stencil_export)
2842 
2843 #endif /* GL_AMD_shader_stencil_export */
2844 
2845 /* ------------------- GL_AMD_shader_stencil_value_export ------------------ */
2846 
2847 #ifndef GL_AMD_shader_stencil_value_export
2848 #define GL_AMD_shader_stencil_value_export 1
2849 
2850 #define GLEW_AMD_shader_stencil_value_export GLEW_GET_VAR(__GLEW_AMD_shader_stencil_value_export)
2851 
2852 #endif /* GL_AMD_shader_stencil_value_export */
2853 
2854 /* ---------------------- GL_AMD_shader_trinary_minmax --------------------- */
2855 
2856 #ifndef GL_AMD_shader_trinary_minmax
2857 #define GL_AMD_shader_trinary_minmax 1
2858 
2859 #define GLEW_AMD_shader_trinary_minmax GLEW_GET_VAR(__GLEW_AMD_shader_trinary_minmax)
2860 
2861 #endif /* GL_AMD_shader_trinary_minmax */
2862 
2863 /* ------------------------- GL_AMD_sparse_texture ------------------------- */
2864 
2865 #ifndef GL_AMD_sparse_texture
2866 #define GL_AMD_sparse_texture 1
2867 
2868 #define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
2869 #define GL_VIRTUAL_PAGE_SIZE_X_AMD 0x9195
2870 #define GL_VIRTUAL_PAGE_SIZE_Y_AMD 0x9196
2871 #define GL_VIRTUAL_PAGE_SIZE_Z_AMD 0x9197
2872 #define GL_MAX_SPARSE_TEXTURE_SIZE_AMD 0x9198
2873 #define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
2874 #define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
2875 #define GL_MIN_SPARSE_LEVEL_AMD 0x919B
2876 #define GL_MIN_LOD_WARNING_AMD 0x919C
2877 
2878 typedef void (GLAPIENTRY * PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
2879 typedef void (GLAPIENTRY * PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
2880 
2881 #define glTexStorageSparseAMD GLEW_GET_FUN(__glewTexStorageSparseAMD)
2882 #define glTextureStorageSparseAMD GLEW_GET_FUN(__glewTextureStorageSparseAMD)
2883 
2884 #define GLEW_AMD_sparse_texture GLEW_GET_VAR(__GLEW_AMD_sparse_texture)
2885 
2886 #endif /* GL_AMD_sparse_texture */
2887 
2888 /* ------------------- GL_AMD_stencil_operation_extended ------------------- */
2889 
2890 #ifndef GL_AMD_stencil_operation_extended
2891 #define GL_AMD_stencil_operation_extended 1
2892 
2893 #define GL_SET_AMD 0x874A
2894 #define GL_REPLACE_VALUE_AMD 0x874B
2895 #define GL_STENCIL_OP_VALUE_AMD 0x874C
2896 #define GL_STENCIL_BACK_OP_VALUE_AMD 0x874D
2897 
2898 typedef void (GLAPIENTRY * PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value);
2899 
2900 #define glStencilOpValueAMD GLEW_GET_FUN(__glewStencilOpValueAMD)
2901 
2902 #define GLEW_AMD_stencil_operation_extended GLEW_GET_VAR(__GLEW_AMD_stencil_operation_extended)
2903 
2904 #endif /* GL_AMD_stencil_operation_extended */
2905 
2906 /* ------------------------ GL_AMD_texture_texture4 ------------------------ */
2907 
2908 #ifndef GL_AMD_texture_texture4
2909 #define GL_AMD_texture_texture4 1
2910 
2911 #define GLEW_AMD_texture_texture4 GLEW_GET_VAR(__GLEW_AMD_texture_texture4)
2912 
2913 #endif /* GL_AMD_texture_texture4 */
2914 
2915 /* --------------- GL_AMD_transform_feedback3_lines_triangles -------------- */
2916 
2917 #ifndef GL_AMD_transform_feedback3_lines_triangles
2918 #define GL_AMD_transform_feedback3_lines_triangles 1
2919 
2920 #define GLEW_AMD_transform_feedback3_lines_triangles GLEW_GET_VAR(__GLEW_AMD_transform_feedback3_lines_triangles)
2921 
2922 #endif /* GL_AMD_transform_feedback3_lines_triangles */
2923 
2924 /* ----------------------- GL_AMD_transform_feedback4 ---------------------- */
2925 
2926 #ifndef GL_AMD_transform_feedback4
2927 #define GL_AMD_transform_feedback4 1
2928 
2929 #define GL_STREAM_RASTERIZATION_AMD 0x91A0
2930 
2931 #define GLEW_AMD_transform_feedback4 GLEW_GET_VAR(__GLEW_AMD_transform_feedback4)
2932 
2933 #endif /* GL_AMD_transform_feedback4 */
2934 
2935 /* ----------------------- GL_AMD_vertex_shader_layer ---------------------- */
2936 
2937 #ifndef GL_AMD_vertex_shader_layer
2938 #define GL_AMD_vertex_shader_layer 1
2939 
2940 #define GLEW_AMD_vertex_shader_layer GLEW_GET_VAR(__GLEW_AMD_vertex_shader_layer)
2941 
2942 #endif /* GL_AMD_vertex_shader_layer */
2943 
2944 /* -------------------- GL_AMD_vertex_shader_tessellator ------------------- */
2945 
2946 #ifndef GL_AMD_vertex_shader_tessellator
2947 #define GL_AMD_vertex_shader_tessellator 1
2948 
2949 #define GL_SAMPLER_BUFFER_AMD 0x9001
2950 #define GL_INT_SAMPLER_BUFFER_AMD 0x9002
2951 #define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
2952 #define GL_TESSELLATION_MODE_AMD 0x9004
2953 #define GL_TESSELLATION_FACTOR_AMD 0x9005
2954 #define GL_DISCRETE_AMD 0x9006
2955 #define GL_CONTINUOUS_AMD 0x9007
2956 
2957 typedef void (GLAPIENTRY * PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
2958 typedef void (GLAPIENTRY * PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
2959 
2960 #define glTessellationFactorAMD GLEW_GET_FUN(__glewTessellationFactorAMD)
2961 #define glTessellationModeAMD GLEW_GET_FUN(__glewTessellationModeAMD)
2962 
2963 #define GLEW_AMD_vertex_shader_tessellator GLEW_GET_VAR(__GLEW_AMD_vertex_shader_tessellator)
2964 
2965 #endif /* GL_AMD_vertex_shader_tessellator */
2966 
2967 /* ------------------ GL_AMD_vertex_shader_viewport_index ------------------ */
2968 
2969 #ifndef GL_AMD_vertex_shader_viewport_index
2970 #define GL_AMD_vertex_shader_viewport_index 1
2971 
2972 #define GLEW_AMD_vertex_shader_viewport_index GLEW_GET_VAR(__GLEW_AMD_vertex_shader_viewport_index)
2973 
2974 #endif /* GL_AMD_vertex_shader_viewport_index */
2975 
2976 /* ------------------------- GL_ANGLE_depth_texture ------------------------ */
2977 
2978 #ifndef GL_ANGLE_depth_texture
2979 #define GL_ANGLE_depth_texture 1
2980 
2981 #define GLEW_ANGLE_depth_texture GLEW_GET_VAR(__GLEW_ANGLE_depth_texture)
2982 
2983 #endif /* GL_ANGLE_depth_texture */
2984 
2985 /* ----------------------- GL_ANGLE_framebuffer_blit ----------------------- */
2986 
2987 #ifndef GL_ANGLE_framebuffer_blit
2988 #define GL_ANGLE_framebuffer_blit 1
2989 
2990 #define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
2991 #define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8
2992 #define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9
2993 #define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
2994 
2995 typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2996 
2997 #define glBlitFramebufferANGLE GLEW_GET_FUN(__glewBlitFramebufferANGLE)
2998 
2999 #define GLEW_ANGLE_framebuffer_blit GLEW_GET_VAR(__GLEW_ANGLE_framebuffer_blit)
3000 
3001 #endif /* GL_ANGLE_framebuffer_blit */
3002 
3003 /* -------------------- GL_ANGLE_framebuffer_multisample ------------------- */
3004 
3005 #ifndef GL_ANGLE_framebuffer_multisample
3006 #define GL_ANGLE_framebuffer_multisample 1
3007 
3008 #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
3009 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
3010 #define GL_MAX_SAMPLES_ANGLE 0x8D57
3011 
3012 typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
3013 
3014 #define glRenderbufferStorageMultisampleANGLE GLEW_GET_FUN(__glewRenderbufferStorageMultisampleANGLE)
3015 
3016 #define GLEW_ANGLE_framebuffer_multisample GLEW_GET_VAR(__GLEW_ANGLE_framebuffer_multisample)
3017 
3018 #endif /* GL_ANGLE_framebuffer_multisample */
3019 
3020 /* ----------------------- GL_ANGLE_instanced_arrays ----------------------- */
3021 
3022 #ifndef GL_ANGLE_instanced_arrays
3023 #define GL_ANGLE_instanced_arrays 1
3024 
3025 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
3026 
3027 typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
3028 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
3029 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
3030 
3031 #define glDrawArraysInstancedANGLE GLEW_GET_FUN(__glewDrawArraysInstancedANGLE)
3032 #define glDrawElementsInstancedANGLE GLEW_GET_FUN(__glewDrawElementsInstancedANGLE)
3033 #define glVertexAttribDivisorANGLE GLEW_GET_FUN(__glewVertexAttribDivisorANGLE)
3034 
3035 #define GLEW_ANGLE_instanced_arrays GLEW_GET_VAR(__GLEW_ANGLE_instanced_arrays)
3036 
3037 #endif /* GL_ANGLE_instanced_arrays */
3038 
3039 /* -------------------- GL_ANGLE_pack_reverse_row_order -------------------- */
3040 
3041 #ifndef GL_ANGLE_pack_reverse_row_order
3042 #define GL_ANGLE_pack_reverse_row_order 1
3043 
3044 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
3045 
3046 #define GLEW_ANGLE_pack_reverse_row_order GLEW_GET_VAR(__GLEW_ANGLE_pack_reverse_row_order)
3047 
3048 #endif /* GL_ANGLE_pack_reverse_row_order */
3049 
3050 /* ------------------------ GL_ANGLE_program_binary ------------------------ */
3051 
3052 #ifndef GL_ANGLE_program_binary
3053 #define GL_ANGLE_program_binary 1
3054 
3055 #define GL_PROGRAM_BINARY_ANGLE 0x93A6
3056 
3057 #define GLEW_ANGLE_program_binary GLEW_GET_VAR(__GLEW_ANGLE_program_binary)
3058 
3059 #endif /* GL_ANGLE_program_binary */
3060 
3061 /* ------------------- GL_ANGLE_texture_compression_dxt1 ------------------- */
3062 
3063 #ifndef GL_ANGLE_texture_compression_dxt1
3064 #define GL_ANGLE_texture_compression_dxt1 1
3065 
3066 #define GL_COMPRESSED_RGB_S3TC_DXT1_ANGLE 0x83F0
3067 #define GL_COMPRESSED_RGBA_S3TC_DXT1_ANGLE 0x83F1
3068 #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
3069 #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
3070 
3071 #define GLEW_ANGLE_texture_compression_dxt1 GLEW_GET_VAR(__GLEW_ANGLE_texture_compression_dxt1)
3072 
3073 #endif /* GL_ANGLE_texture_compression_dxt1 */
3074 
3075 /* ------------------- GL_ANGLE_texture_compression_dxt3 ------------------- */
3076 
3077 #ifndef GL_ANGLE_texture_compression_dxt3
3078 #define GL_ANGLE_texture_compression_dxt3 1
3079 
3080 #define GL_COMPRESSED_RGB_S3TC_DXT1_ANGLE 0x83F0
3081 #define GL_COMPRESSED_RGBA_S3TC_DXT1_ANGLE 0x83F1
3082 #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
3083 #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
3084 
3085 #define GLEW_ANGLE_texture_compression_dxt3 GLEW_GET_VAR(__GLEW_ANGLE_texture_compression_dxt3)
3086 
3087 #endif /* GL_ANGLE_texture_compression_dxt3 */
3088 
3089 /* ------------------- GL_ANGLE_texture_compression_dxt5 ------------------- */
3090 
3091 #ifndef GL_ANGLE_texture_compression_dxt5
3092 #define GL_ANGLE_texture_compression_dxt5 1
3093 
3094 #define GL_COMPRESSED_RGB_S3TC_DXT1_ANGLE 0x83F0
3095 #define GL_COMPRESSED_RGBA_S3TC_DXT1_ANGLE 0x83F1
3096 #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
3097 #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
3098 
3099 #define GLEW_ANGLE_texture_compression_dxt5 GLEW_GET_VAR(__GLEW_ANGLE_texture_compression_dxt5)
3100 
3101 #endif /* GL_ANGLE_texture_compression_dxt5 */
3102 
3103 /* ------------------------- GL_ANGLE_texture_usage ------------------------ */
3104 
3105 #ifndef GL_ANGLE_texture_usage
3106 #define GL_ANGLE_texture_usage 1
3107 
3108 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
3109 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
3110 
3111 #define GLEW_ANGLE_texture_usage GLEW_GET_VAR(__GLEW_ANGLE_texture_usage)
3112 
3113 #endif /* GL_ANGLE_texture_usage */
3114 
3115 /* -------------------------- GL_ANGLE_timer_query ------------------------- */
3116 
3117 #ifndef GL_ANGLE_timer_query
3118 #define GL_ANGLE_timer_query 1
3119 
3120 #define GL_QUERY_COUNTER_BITS_ANGLE 0x8864
3121 #define GL_CURRENT_QUERY_ANGLE 0x8865
3122 #define GL_QUERY_RESULT_ANGLE 0x8866
3123 #define GL_QUERY_RESULT_AVAILABLE_ANGLE 0x8867
3124 #define GL_TIME_ELAPSED_ANGLE 0x88BF
3125 #define GL_TIMESTAMP_ANGLE 0x8E28
3126 
3127 typedef void (GLAPIENTRY * PFNGLBEGINQUERYANGLEPROC) (GLenum target, GLuint id);
3128 typedef void (GLAPIENTRY * PFNGLDELETEQUERIESANGLEPROC) (GLsizei n, const GLuint* ids);
3129 typedef void (GLAPIENTRY * PFNGLENDQUERYANGLEPROC) (GLenum target);
3130 typedef void (GLAPIENTRY * PFNGLGENQUERIESANGLEPROC) (GLsizei n, GLuint* ids);
3131 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VANGLEPROC) (GLuint id, GLenum pname, GLint64* params);
3132 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVANGLEPROC) (GLuint id, GLenum pname, GLint* params);
3133 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VANGLEPROC) (GLuint id, GLenum pname, GLuint64* params);
3134 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVANGLEPROC) (GLuint id, GLenum pname, GLuint* params);
3135 typedef void (GLAPIENTRY * PFNGLGETQUERYIVANGLEPROC) (GLenum target, GLenum pname, GLint* params);
3136 typedef GLboolean (GLAPIENTRY * PFNGLISQUERYANGLEPROC) (GLuint id);
3137 typedef void (GLAPIENTRY * PFNGLQUERYCOUNTERANGLEPROC) (GLuint id, GLenum target);
3138 
3139 #define glBeginQueryANGLE GLEW_GET_FUN(__glewBeginQueryANGLE)
3140 #define glDeleteQueriesANGLE GLEW_GET_FUN(__glewDeleteQueriesANGLE)
3141 #define glEndQueryANGLE GLEW_GET_FUN(__glewEndQueryANGLE)
3142 #define glGenQueriesANGLE GLEW_GET_FUN(__glewGenQueriesANGLE)
3143 #define glGetQueryObjecti64vANGLE GLEW_GET_FUN(__glewGetQueryObjecti64vANGLE)
3144 #define glGetQueryObjectivANGLE GLEW_GET_FUN(__glewGetQueryObjectivANGLE)
3145 #define glGetQueryObjectui64vANGLE GLEW_GET_FUN(__glewGetQueryObjectui64vANGLE)
3146 #define glGetQueryObjectuivANGLE GLEW_GET_FUN(__glewGetQueryObjectuivANGLE)
3147 #define glGetQueryivANGLE GLEW_GET_FUN(__glewGetQueryivANGLE)
3148 #define glIsQueryANGLE GLEW_GET_FUN(__glewIsQueryANGLE)
3149 #define glQueryCounterANGLE GLEW_GET_FUN(__glewQueryCounterANGLE)
3150 
3151 #define GLEW_ANGLE_timer_query GLEW_GET_VAR(__GLEW_ANGLE_timer_query)
3152 
3153 #endif /* GL_ANGLE_timer_query */
3154 
3155 /* ------------------- GL_ANGLE_translated_shader_source ------------------- */
3156 
3157 #ifndef GL_ANGLE_translated_shader_source
3158 #define GL_ANGLE_translated_shader_source 1
3159 
3160 #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
3161 
3162 typedef void (GLAPIENTRY * PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
3163 
3164 #define glGetTranslatedShaderSourceANGLE GLEW_GET_FUN(__glewGetTranslatedShaderSourceANGLE)
3165 
3166 #define GLEW_ANGLE_translated_shader_source GLEW_GET_VAR(__GLEW_ANGLE_translated_shader_source)
3167 
3168 #endif /* GL_ANGLE_translated_shader_source */
3169 
3170 /* ----------------------- GL_APPLE_aux_depth_stencil ---------------------- */
3171 
3172 #ifndef GL_APPLE_aux_depth_stencil
3173 #define GL_APPLE_aux_depth_stencil 1
3174 
3175 #define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14
3176 
3177 #define GLEW_APPLE_aux_depth_stencil GLEW_GET_VAR(__GLEW_APPLE_aux_depth_stencil)
3178 
3179 #endif /* GL_APPLE_aux_depth_stencil */
3180 
3181 /* ------------------------ GL_APPLE_client_storage ------------------------ */
3182 
3183 #ifndef GL_APPLE_client_storage
3184 #define GL_APPLE_client_storage 1
3185 
3186 #define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2
3187 
3188 #define GLEW_APPLE_client_storage GLEW_GET_VAR(__GLEW_APPLE_client_storage)
3189 
3190 #endif /* GL_APPLE_client_storage */
3191 
3192 /* ------------------------- GL_APPLE_element_array ------------------------ */
3193 
3194 #ifndef GL_APPLE_element_array
3195 #define GL_APPLE_element_array 1
3196 
3197 #define GL_ELEMENT_ARRAY_APPLE 0x8A0C
3198 #define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D
3199 #define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E
3200 
3201 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
3202 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
3203 typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void *pointer);
3204 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount);
3205 typedef void (GLAPIENTRY * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei *count, GLsizei primcount);
3206 
3207 #define glDrawElementArrayAPPLE GLEW_GET_FUN(__glewDrawElementArrayAPPLE)
3208 #define glDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewDrawRangeElementArrayAPPLE)
3209 #define glElementPointerAPPLE GLEW_GET_FUN(__glewElementPointerAPPLE)
3210 #define glMultiDrawElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawElementArrayAPPLE)
3211 #define glMultiDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawRangeElementArrayAPPLE)
3212 
3213 #define GLEW_APPLE_element_array GLEW_GET_VAR(__GLEW_APPLE_element_array)
3214 
3215 #endif /* GL_APPLE_element_array */
3216 
3217 /* ----------------------------- GL_APPLE_fence ---------------------------- */
3218 
3219 #ifndef GL_APPLE_fence
3220 #define GL_APPLE_fence 1
3221 
3222 #define GL_DRAW_PIXELS_APPLE 0x8A0A
3223 #define GL_FENCE_APPLE 0x8A0B
3224 
3225 typedef void (GLAPIENTRY * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint* fences);
3226 typedef void (GLAPIENTRY * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
3227 typedef void (GLAPIENTRY * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
3228 typedef void (GLAPIENTRY * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint* fences);
3229 typedef GLboolean (GLAPIENTRY * PFNGLISFENCEAPPLEPROC) (GLuint fence);
3230 typedef void (GLAPIENTRY * PFNGLSETFENCEAPPLEPROC) (GLuint fence);
3231 typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
3232 typedef GLboolean (GLAPIENTRY * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
3233 
3234 #define glDeleteFencesAPPLE GLEW_GET_FUN(__glewDeleteFencesAPPLE)
3235 #define glFinishFenceAPPLE GLEW_GET_FUN(__glewFinishFenceAPPLE)
3236 #define glFinishObjectAPPLE GLEW_GET_FUN(__glewFinishObjectAPPLE)
3237 #define glGenFencesAPPLE GLEW_GET_FUN(__glewGenFencesAPPLE)
3238 #define glIsFenceAPPLE GLEW_GET_FUN(__glewIsFenceAPPLE)
3239 #define glSetFenceAPPLE GLEW_GET_FUN(__glewSetFenceAPPLE)
3240 #define glTestFenceAPPLE GLEW_GET_FUN(__glewTestFenceAPPLE)
3241 #define glTestObjectAPPLE GLEW_GET_FUN(__glewTestObjectAPPLE)
3242 
3243 #define GLEW_APPLE_fence GLEW_GET_VAR(__GLEW_APPLE_fence)
3244 
3245 #endif /* GL_APPLE_fence */
3246 
3247 /* ------------------------- GL_APPLE_float_pixels ------------------------- */
3248 
3249 #ifndef GL_APPLE_float_pixels
3250 #define GL_APPLE_float_pixels 1
3251 
3252 #define GL_HALF_APPLE 0x140B
3253 #define GL_RGBA_FLOAT32_APPLE 0x8814
3254 #define GL_RGB_FLOAT32_APPLE 0x8815
3255 #define GL_ALPHA_FLOAT32_APPLE 0x8816
3256 #define GL_INTENSITY_FLOAT32_APPLE 0x8817
3257 #define GL_LUMINANCE_FLOAT32_APPLE 0x8818
3258 #define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
3259 #define GL_RGBA_FLOAT16_APPLE 0x881A
3260 #define GL_RGB_FLOAT16_APPLE 0x881B
3261 #define GL_ALPHA_FLOAT16_APPLE 0x881C
3262 #define GL_INTENSITY_FLOAT16_APPLE 0x881D
3263 #define GL_LUMINANCE_FLOAT16_APPLE 0x881E
3264 #define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F
3265 #define GL_COLOR_FLOAT_APPLE 0x8A0F
3266 
3267 #define GLEW_APPLE_float_pixels GLEW_GET_VAR(__GLEW_APPLE_float_pixels)
3268 
3269 #endif /* GL_APPLE_float_pixels */
3270 
3271 /* ---------------------- GL_APPLE_flush_buffer_range ---------------------- */
3272 
3273 #ifndef GL_APPLE_flush_buffer_range
3274 #define GL_APPLE_flush_buffer_range 1
3275 
3276 #define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
3277 #define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13
3278 
3279 typedef void (GLAPIENTRY * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
3280 typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
3281 
3282 #define glBufferParameteriAPPLE GLEW_GET_FUN(__glewBufferParameteriAPPLE)
3283 #define glFlushMappedBufferRangeAPPLE GLEW_GET_FUN(__glewFlushMappedBufferRangeAPPLE)
3284 
3285 #define GLEW_APPLE_flush_buffer_range GLEW_GET_VAR(__GLEW_APPLE_flush_buffer_range)
3286 
3287 #endif /* GL_APPLE_flush_buffer_range */
3288 
3289 /* ----------------------- GL_APPLE_object_purgeable ----------------------- */
3290 
3291 #ifndef GL_APPLE_object_purgeable
3292 #define GL_APPLE_object_purgeable 1
3293 
3294 #define GL_BUFFER_OBJECT_APPLE 0x85B3
3295 #define GL_RELEASED_APPLE 0x8A19
3296 #define GL_VOLATILE_APPLE 0x8A1A
3297 #define GL_RETAINED_APPLE 0x8A1B
3298 #define GL_UNDEFINED_APPLE 0x8A1C
3299 #define GL_PURGEABLE_APPLE 0x8A1D
3300 
3301 typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint* params);
3302 typedef GLenum (GLAPIENTRY * PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
3303 typedef GLenum (GLAPIENTRY * PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
3304 
3305 #define glGetObjectParameterivAPPLE GLEW_GET_FUN(__glewGetObjectParameterivAPPLE)
3306 #define glObjectPurgeableAPPLE GLEW_GET_FUN(__glewObjectPurgeableAPPLE)
3307 #define glObjectUnpurgeableAPPLE GLEW_GET_FUN(__glewObjectUnpurgeableAPPLE)
3308 
3309 #define GLEW_APPLE_object_purgeable GLEW_GET_VAR(__GLEW_APPLE_object_purgeable)
3310 
3311 #endif /* GL_APPLE_object_purgeable */
3312 
3313 /* ------------------------- GL_APPLE_pixel_buffer ------------------------- */
3314 
3315 #ifndef GL_APPLE_pixel_buffer
3316 #define GL_APPLE_pixel_buffer 1
3317 
3318 #define GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10
3319 
3320 #define GLEW_APPLE_pixel_buffer GLEW_GET_VAR(__GLEW_APPLE_pixel_buffer)
3321 
3322 #endif /* GL_APPLE_pixel_buffer */
3323 
3324 /* ---------------------------- GL_APPLE_rgb_422 --------------------------- */
3325 
3326 #ifndef GL_APPLE_rgb_422
3327 #define GL_APPLE_rgb_422 1
3328 
3329 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
3330 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
3331 #define GL_RGB_422_APPLE 0x8A1F
3332 #define GL_RGB_RAW_422_APPLE 0x8A51
3333 
3334 #define GLEW_APPLE_rgb_422 GLEW_GET_VAR(__GLEW_APPLE_rgb_422)
3335 
3336 #endif /* GL_APPLE_rgb_422 */
3337 
3338 /* --------------------------- GL_APPLE_row_bytes -------------------------- */
3339 
3340 #ifndef GL_APPLE_row_bytes
3341 #define GL_APPLE_row_bytes 1
3342 
3343 #define GL_PACK_ROW_BYTES_APPLE 0x8A15
3344 #define GL_UNPACK_ROW_BYTES_APPLE 0x8A16
3345 
3346 #define GLEW_APPLE_row_bytes GLEW_GET_VAR(__GLEW_APPLE_row_bytes)
3347 
3348 #endif /* GL_APPLE_row_bytes */
3349 
3350 /* ------------------------ GL_APPLE_specular_vector ----------------------- */
3351 
3352 #ifndef GL_APPLE_specular_vector
3353 #define GL_APPLE_specular_vector 1
3354 
3355 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
3356 
3357 #define GLEW_APPLE_specular_vector GLEW_GET_VAR(__GLEW_APPLE_specular_vector)
3358 
3359 #endif /* GL_APPLE_specular_vector */
3360 
3361 /* ------------------------- GL_APPLE_texture_range ------------------------ */
3362 
3363 #ifndef GL_APPLE_texture_range
3364 #define GL_APPLE_texture_range 1
3365 
3366 #define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
3367 #define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
3368 #define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
3369 #define GL_STORAGE_PRIVATE_APPLE 0x85BD
3370 #define GL_STORAGE_CACHED_APPLE 0x85BE
3371 #define GL_STORAGE_SHARED_APPLE 0x85BF