/[pcsx2_0.9.7]/trunk/3rdparty/GL/glew.h
ViewVC logotype

Contents of /trunk/3rdparty/GL/glew.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (show annotations) (download)
Mon Sep 6 11:19:43 2010 UTC (9 years, 4 months ago) by william
File MIME type: text/plain
File size: 752647 byte(s)
Exported ./upsream/trunk @r3730 from http://pcsx2.googlecode.com/svn/trunk/
1 /*
2 ** The OpenGL Extension Wrangler Library
3 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
4 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
5 ** Copyright (C) 2002, Lev Povalahev
6 ** All rights reserved.
7 **
8 ** Redistribution and use in source and binary forms, with or without
9 ** modification, are permitted provided that the following conditions are met:
10 **
11 ** * Redistributions of source code must retain the above copyright notice,
12 ** this list of conditions and the following disclaimer.
13 ** * Redistributions in binary form must reproduce the above copyright notice,
14 ** this list of conditions and the following disclaimer in the documentation
15 ** and/or other materials provided with the distribution.
16 ** * The name of the author may be used to endorse or promote products
17 ** derived from this software without specific prior written permission.
18 **
19 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 ** THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32 /*
33 * Mesa 3-D graphics library
34 * Version: 7.0
35 *
36 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
37 *
38 * Permission is hereby granted, free of charge, to any person obtaining a
39 * copy of this software and associated documentation files (the "Software"),
40 * to deal in the Software without restriction, including without limitation
41 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
42 * and/or sell copies of the Software, and to permit persons to whom the
43 * Software is furnished to do so, subject to the following conditions:
44 *
45 * The above copyright notice and this permission notice shall be included
46 * in all copies or substantial portions of the Software.
47 *
48 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
49 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
50 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
51 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
52 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
53 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54 */
55
56 /*
57 ** Copyright (c) 2007 The Khronos Group Inc.
58 **
59 ** Permission is hereby granted, free of charge, to any person obtaining a
60 ** copy of this software and/or associated documentation files (the
61 ** "Materials"), to deal in the Materials without restriction, including
62 ** without limitation the rights to use, copy, modify, merge, publish,
63 ** distribute, sublicense, and/or sell copies of the Materials, and to
64 ** permit persons to whom the Materials are furnished to do so, subject to
65 ** the following conditions:
66 **
67 ** The above copyright notice and this permission notice shall be included
68 ** in all copies or substantial portions of the Materials.
69 **
70 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
71 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
72 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
73 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
74 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
75 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
76 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
77 */
78
79 #ifndef __glew_h__
80 #define __glew_h__
81 #define __GLEW_H__
82
83 #if defined(__gl_h_) || defined(__GL_H__) || defined(__X_GL_H)
84 #error gl.h included before glew.h
85 #endif
86 #if defined(__glext_h_) || defined(__GLEXT_H_)
87 #error glext.h included before glew.h
88 #endif
89 #if defined(__gl_ATI_h_)
90 #error glATI.h included before glew.h
91 #endif
92
93 #define __gl_h_
94 #define __GL_H__
95 #define __X_GL_H
96 #define __glext_h_
97 #define __GLEXT_H_
98 #define __gl_ATI_h_
99
100 #if defined(_WIN32)
101
102 /*
103 * GLEW does not include <windows.h> to avoid name space pollution.
104 * GL needs GLAPI and GLAPIENTRY, GLU needs APIENTRY, CALLBACK, and wchar_t
105 * defined properly.
106 */
107 /* <windef.h> */
108 #ifndef APIENTRY
109 #define GLEW_APIENTRY_DEFINED
110 # if defined(__MINGW32__) || defined(__CYGWIN__)
111 # define APIENTRY __stdcall
112 # elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
113 # define APIENTRY __stdcall
114 # else
115 # define APIENTRY
116 # endif
117 #endif
118 #ifndef GLAPI
119 # if defined(__MINGW32__) || defined(__CYGWIN__)
120 # define GLAPI extern
121 # endif
122 #endif
123 /* <winnt.h> */
124 #ifndef CALLBACK
125 #define GLEW_CALLBACK_DEFINED
126 # if defined(__MINGW32__) || defined(__CYGWIN__)
127 # define CALLBACK __attribute__ ((__stdcall__))
128 # elif (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
129 # define CALLBACK __stdcall
130 # else
131 # define CALLBACK
132 # endif
133 #endif
134 /* <wingdi.h> and <winnt.h> */
135 #ifndef WINGDIAPI
136 #define GLEW_WINGDIAPI_DEFINED
137 #define WINGDIAPI __declspec(dllimport)
138 #endif
139 /* <ctype.h> */
140 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(_WCHAR_T_DEFINED)
141 typedef unsigned short wchar_t;
142 # define _WCHAR_T_DEFINED
143 #endif
144 /* <stddef.h> */
145 #if !defined(_W64)
146 # if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && defined(_MSC_VER) && _MSC_VER >= 1300
147 # define _W64 __w64
148 # else
149 # define _W64
150 # endif
151 #endif
152 #if !defined(_PTRDIFF_T_DEFINED) && !defined(_PTRDIFF_T_)
153 # ifdef _WIN64
154 typedef __int64 ptrdiff_t;
155 # else
156 typedef _W64 int ptrdiff_t;
157 # endif
158 # define _PTRDIFF_T_DEFINED
159 # define _PTRDIFF_T_
160 #endif
161
162 #ifndef GLAPI
163 # if defined(__MINGW32__) || defined(__CYGWIN__)
164 # define GLAPI extern
165 # else
166 # define GLAPI WINGDIAPI
167 # endif
168 #endif
169
170 #ifndef GLAPIENTRY
171 #define GLAPIENTRY APIENTRY
172 #endif
173
174 /*
175 * GLEW_STATIC needs to be set when using the static version.
176 * GLEW_BUILD is set when building the DLL version.
177 */
178 #ifdef GLEW_STATIC
179 # define GLEWAPI extern
180 #else
181 # ifdef GLEW_BUILD
182 # define GLEWAPI extern __declspec(dllexport)
183 # else
184 # define GLEWAPI extern __declspec(dllimport)
185 # endif
186 #endif
187
188 #else /* _UNIX */
189
190 /*
191 * Needed for ptrdiff_t in turn needed by VBO. This is defined by ISO
192 * C. On my system, this amounts to _3 lines_ of included code, all of
193 * them pretty much harmless. If you know of a way of detecting 32 vs
194 * 64 _targets_ at compile time you are free to replace this with
195 * something that's portable. For now, _this_ is the portable solution.
196 * (mem, 2004-01-04)
197 */
198
199 #include <stddef.h>
200
201 /* SGI MIPSPro doesn't like stdint.h in C++ mode */
202
203 #if defined(__sgi) && !defined(__GNUC__)
204 #include <inttypes.h>
205 #else
206 #include <stdint.h>
207 #endif
208
209 #define GLEW_APIENTRY_DEFINED
210 #define APIENTRY
211 #define GLEWAPI extern
212
213 /* <glu.h> */
214 #ifndef GLAPI
215 #define GLAPI extern
216 #endif
217 #ifndef GLAPIENTRY
218 #define GLAPIENTRY
219 #endif
220
221 #endif /* _WIN32 */
222
223 #ifdef __cplusplus
224 extern "C" {
225 #endif
226
227 /* ----------------------------- GL_VERSION_1_1 ---------------------------- */
228
229 #ifndef GL_VERSION_1_1
230 #define GL_VERSION_1_1 1
231
232 typedef unsigned int GLenum;
233 typedef unsigned int GLbitfield;
234 typedef unsigned int GLuint;
235 typedef int GLint;
236 typedef int GLsizei;
237 typedef unsigned char GLboolean;
238 typedef signed char GLbyte;
239 typedef short GLshort;
240 typedef unsigned char GLubyte;
241 typedef unsigned short GLushort;
242 typedef unsigned long GLulong;
243 typedef float GLfloat;
244 typedef float GLclampf;
245 typedef double GLdouble;
246 typedef double GLclampd;
247 typedef void GLvoid;
248 #if defined(_MSC_VER)
249 # if _MSC_VER < 1400
250 typedef __int64 GLint64EXT;
251 typedef unsigned __int64 GLuint64EXT;
252 # else
253 typedef signed long long GLint64EXT;
254 typedef unsigned long long GLuint64EXT;
255 # endif
256 #else
257 # if defined(__MINGW32__) || defined(__CYGWIN__)
258 #include <inttypes.h>
259 # endif
260 typedef int64_t GLint64EXT;
261 typedef uint64_t GLuint64EXT;
262 #endif
263 typedef GLint64EXT GLint64;
264 typedef GLuint64EXT GLuint64;
265 typedef struct __GLsync *GLsync;
266
267 #define GL_ACCUM 0x0100
268 #define GL_LOAD 0x0101
269 #define GL_RETURN 0x0102
270 #define GL_MULT 0x0103
271 #define GL_ADD 0x0104
272 #define GL_NEVER 0x0200
273 #define GL_LESS 0x0201
274 #define GL_EQUAL 0x0202
275 #define GL_LEQUAL 0x0203
276 #define GL_GREATER 0x0204
277 #define GL_NOTEQUAL 0x0205
278 #define GL_GEQUAL 0x0206
279 #define GL_ALWAYS 0x0207
280 #define GL_CURRENT_BIT 0x00000001
281 #define GL_POINT_BIT 0x00000002
282 #define GL_LINE_BIT 0x00000004
283 #define GL_POLYGON_BIT 0x00000008
284 #define GL_POLYGON_STIPPLE_BIT 0x00000010
285 #define GL_PIXEL_MODE_BIT 0x00000020
286 #define GL_LIGHTING_BIT 0x00000040
287 #define GL_FOG_BIT 0x00000080
288 #define GL_DEPTH_BUFFER_BIT 0x00000100
289 #define GL_ACCUM_BUFFER_BIT 0x00000200
290 #define GL_STENCIL_BUFFER_BIT 0x00000400
291 #define GL_VIEWPORT_BIT 0x00000800
292 #define GL_TRANSFORM_BIT 0x00001000
293 #define GL_ENABLE_BIT 0x00002000
294 #define GL_COLOR_BUFFER_BIT 0x00004000
295 #define GL_HINT_BIT 0x00008000
296 #define GL_EVAL_BIT 0x00010000
297 #define GL_LIST_BIT 0x00020000
298 #define GL_TEXTURE_BIT 0x00040000
299 #define GL_SCISSOR_BIT 0x00080000
300 #define GL_ALL_ATTRIB_BITS 0x000fffff
301 #define GL_POINTS 0x0000
302 #define GL_LINES 0x0001
303 #define GL_LINE_LOOP 0x0002
304 #define GL_LINE_STRIP 0x0003
305 #define GL_TRIANGLES 0x0004
306 #define GL_TRIANGLE_STRIP 0x0005
307 #define GL_TRIANGLE_FAN 0x0006
308 #define GL_QUADS 0x0007
309 #define GL_QUAD_STRIP 0x0008
310 #define GL_POLYGON 0x0009
311 #define GL_ZERO 0
312 #define GL_ONE 1
313 #define GL_SRC_COLOR 0x0300
314 #define GL_ONE_MINUS_SRC_COLOR 0x0301
315 #define GL_SRC_ALPHA 0x0302
316 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
317 #define GL_DST_ALPHA 0x0304
318 #define GL_ONE_MINUS_DST_ALPHA 0x0305
319 #define GL_DST_COLOR 0x0306
320 #define GL_ONE_MINUS_DST_COLOR 0x0307
321 #define GL_SRC_ALPHA_SATURATE 0x0308
322 #define GL_TRUE 1
323 #define GL_FALSE 0
324 #define GL_CLIP_PLANE0 0x3000
325 #define GL_CLIP_PLANE1 0x3001
326 #define GL_CLIP_PLANE2 0x3002
327 #define GL_CLIP_PLANE3 0x3003
328 #define GL_CLIP_PLANE4 0x3004
329 #define GL_CLIP_PLANE5 0x3005
330 #define GL_BYTE 0x1400
331 #define GL_UNSIGNED_BYTE 0x1401
332 #define GL_SHORT 0x1402
333 #define GL_UNSIGNED_SHORT 0x1403
334 #define GL_INT 0x1404
335 #define GL_UNSIGNED_INT 0x1405
336 #define GL_FLOAT 0x1406
337 #define GL_2_BYTES 0x1407
338 #define GL_3_BYTES 0x1408
339 #define GL_4_BYTES 0x1409
340 #define GL_DOUBLE 0x140A
341 #define GL_NONE 0
342 #define GL_FRONT_LEFT 0x0400
343 #define GL_FRONT_RIGHT 0x0401
344 #define GL_BACK_LEFT 0x0402
345 #define GL_BACK_RIGHT 0x0403
346 #define GL_FRONT 0x0404
347 #define GL_BACK 0x0405
348 #define GL_LEFT 0x0406
349 #define GL_RIGHT 0x0407
350 #define GL_FRONT_AND_BACK 0x0408
351 #define GL_AUX0 0x0409
352 #define GL_AUX1 0x040A
353 #define GL_AUX2 0x040B
354 #define GL_AUX3 0x040C
355 #define GL_NO_ERROR 0
356 #define GL_INVALID_ENUM 0x0500
357 #define GL_INVALID_VALUE 0x0501
358 #define GL_INVALID_OPERATION 0x0502
359 #define GL_STACK_OVERFLOW 0x0503
360 #define GL_STACK_UNDERFLOW 0x0504
361 #define GL_OUT_OF_MEMORY 0x0505
362 #define GL_2D 0x0600
363 #define GL_3D 0x0601
364 #define GL_3D_COLOR 0x0602
365 #define GL_3D_COLOR_TEXTURE 0x0603
366 #define GL_4D_COLOR_TEXTURE 0x0604
367 #define GL_PASS_THROUGH_TOKEN 0x0700
368 #define GL_POINT_TOKEN 0x0701
369 #define GL_LINE_TOKEN 0x0702
370 #define GL_POLYGON_TOKEN 0x0703
371 #define GL_BITMAP_TOKEN 0x0704
372 #define GL_DRAW_PIXEL_TOKEN 0x0705
373 #define GL_COPY_PIXEL_TOKEN 0x0706
374 #define GL_LINE_RESET_TOKEN 0x0707
375 #define GL_EXP 0x0800
376 #define GL_EXP2 0x0801
377 #define GL_CW 0x0900
378 #define GL_CCW 0x0901
379 #define GL_COEFF 0x0A00
380 #define GL_ORDER 0x0A01
381 #define GL_DOMAIN 0x0A02
382 #define GL_CURRENT_COLOR 0x0B00
383 #define GL_CURRENT_INDEX 0x0B01
384 #define GL_CURRENT_NORMAL 0x0B02
385 #define GL_CURRENT_TEXTURE_COORDS 0x0B03
386 #define GL_CURRENT_RASTER_COLOR 0x0B04
387 #define GL_CURRENT_RASTER_INDEX 0x0B05
388 #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
389 #define GL_CURRENT_RASTER_POSITION 0x0B07
390 #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
391 #define GL_CURRENT_RASTER_DISTANCE 0x0B09
392 #define GL_POINT_SMOOTH 0x0B10
393 #define GL_POINT_SIZE 0x0B11
394 #define GL_POINT_SIZE_RANGE 0x0B12
395 #define GL_POINT_SIZE_GRANULARITY 0x0B13
396 #define GL_LINE_SMOOTH 0x0B20
397 #define GL_LINE_WIDTH 0x0B21
398 #define GL_LINE_WIDTH_RANGE 0x0B22
399 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
400 #define GL_LINE_STIPPLE 0x0B24
401 #define GL_LINE_STIPPLE_PATTERN 0x0B25
402 #define GL_LINE_STIPPLE_REPEAT 0x0B26
403 #define GL_LIST_MODE 0x0B30
404 #define GL_MAX_LIST_NESTING 0x0B31
405 #define GL_LIST_BASE 0x0B32
406 #define GL_LIST_INDEX 0x0B33
407 #define GL_POLYGON_MODE 0x0B40
408 #define GL_POLYGON_SMOOTH 0x0B41
409 #define GL_POLYGON_STIPPLE 0x0B42
410 #define GL_EDGE_FLAG 0x0B43
411 #define GL_CULL_FACE 0x0B44
412 #define GL_CULL_FACE_MODE 0x0B45
413 #define GL_FRONT_FACE 0x0B46
414 #define GL_LIGHTING 0x0B50
415 #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
416 #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
417 #define GL_LIGHT_MODEL_AMBIENT 0x0B53
418 #define GL_SHADE_MODEL 0x0B54
419 #define GL_COLOR_MATERIAL_FACE 0x0B55
420 #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
421 #define GL_COLOR_MATERIAL 0x0B57
422 #define GL_FOG 0x0B60
423 #define GL_FOG_INDEX 0x0B61
424 #define GL_FOG_DENSITY 0x0B62
425 #define GL_FOG_START 0x0B63
426 #define GL_FOG_END 0x0B64
427 #define GL_FOG_MODE 0x0B65
428 #define GL_FOG_COLOR 0x0B66
429 #define GL_DEPTH_RANGE 0x0B70
430 #define GL_DEPTH_TEST 0x0B71
431 #define GL_DEPTH_WRITEMASK 0x0B72
432 #define GL_DEPTH_CLEAR_VALUE 0x0B73
433 #define GL_DEPTH_FUNC 0x0B74
434 #define GL_ACCUM_CLEAR_VALUE 0x0B80
435 #define GL_STENCIL_TEST 0x0B90
436 #define GL_STENCIL_CLEAR_VALUE 0x0B91
437 #define GL_STENCIL_FUNC 0x0B92
438 #define GL_STENCIL_VALUE_MASK 0x0B93
439 #define GL_STENCIL_FAIL 0x0B94
440 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
441 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
442 #define GL_STENCIL_REF 0x0B97
443 #define GL_STENCIL_WRITEMASK 0x0B98
444 #define GL_MATRIX_MODE 0x0BA0
445 #define GL_NORMALIZE 0x0BA1
446 #define GL_VIEWPORT 0x0BA2
447 #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
448 #define GL_PROJECTION_STACK_DEPTH 0x0BA4
449 #define GL_TEXTURE_STACK_DEPTH 0x0BA5
450 #define GL_MODELVIEW_MATRIX 0x0BA6
451 #define GL_PROJECTION_MATRIX 0x0BA7
452 #define GL_TEXTURE_MATRIX 0x0BA8
453 #define GL_ATTRIB_STACK_DEPTH 0x0BB0
454 #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
455 #define GL_ALPHA_TEST 0x0BC0
456 #define GL_ALPHA_TEST_FUNC 0x0BC1
457 #define GL_ALPHA_TEST_REF 0x0BC2
458 #define GL_DITHER 0x0BD0
459 #define GL_BLEND_DST 0x0BE0
460 #define GL_BLEND_SRC 0x0BE1
461 #define GL_BLEND 0x0BE2
462 #define GL_LOGIC_OP_MODE 0x0BF0
463 #define GL_INDEX_LOGIC_OP 0x0BF1
464 #define GL_COLOR_LOGIC_OP 0x0BF2
465 #define GL_AUX_BUFFERS 0x0C00
466 #define GL_DRAW_BUFFER 0x0C01
467 #define GL_READ_BUFFER 0x0C02
468 #define GL_SCISSOR_BOX 0x0C10
469 #define GL_SCISSOR_TEST 0x0C11
470 #define GL_INDEX_CLEAR_VALUE 0x0C20
471 #define GL_INDEX_WRITEMASK 0x0C21
472 #define GL_COLOR_CLEAR_VALUE 0x0C22
473 #define GL_COLOR_WRITEMASK 0x0C23
474 #define GL_INDEX_MODE 0x0C30
475 #define GL_RGBA_MODE 0x0C31
476 #define GL_DOUBLEBUFFER 0x0C32
477 #define GL_STEREO 0x0C33
478 #define GL_RENDER_MODE 0x0C40
479 #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
480 #define GL_POINT_SMOOTH_HINT 0x0C51
481 #define GL_LINE_SMOOTH_HINT 0x0C52
482 #define GL_POLYGON_SMOOTH_HINT 0x0C53
483 #define GL_FOG_HINT 0x0C54
484 #define GL_TEXTURE_GEN_S 0x0C60
485 #define GL_TEXTURE_GEN_T 0x0C61
486 #define GL_TEXTURE_GEN_R 0x0C62
487 #define GL_TEXTURE_GEN_Q 0x0C63
488 #define GL_PIXEL_MAP_I_TO_I 0x0C70
489 #define GL_PIXEL_MAP_S_TO_S 0x0C71
490 #define GL_PIXEL_MAP_I_TO_R 0x0C72
491 #define GL_PIXEL_MAP_I_TO_G 0x0C73
492 #define GL_PIXEL_MAP_I_TO_B 0x0C74
493 #define GL_PIXEL_MAP_I_TO_A 0x0C75
494 #define GL_PIXEL_MAP_R_TO_R 0x0C76
495 #define GL_PIXEL_MAP_G_TO_G 0x0C77
496 #define GL_PIXEL_MAP_B_TO_B 0x0C78
497 #define GL_PIXEL_MAP_A_TO_A 0x0C79
498 #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
499 #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
500 #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
501 #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
502 #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
503 #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
504 #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
505 #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
506 #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
507 #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
508 #define GL_UNPACK_SWAP_BYTES 0x0CF0
509 #define GL_UNPACK_LSB_FIRST 0x0CF1
510 #define GL_UNPACK_ROW_LENGTH 0x0CF2
511 #define GL_UNPACK_SKIP_ROWS 0x0CF3
512 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
513 #define GL_UNPACK_ALIGNMENT 0x0CF5
514 #define GL_PACK_SWAP_BYTES 0x0D00
515 #define GL_PACK_LSB_FIRST 0x0D01
516 #define GL_PACK_ROW_LENGTH 0x0D02
517 #define GL_PACK_SKIP_ROWS 0x0D03
518 #define GL_PACK_SKIP_PIXELS 0x0D04
519 #define GL_PACK_ALIGNMENT 0x0D05
520 #define GL_MAP_COLOR 0x0D10
521 #define GL_MAP_STENCIL 0x0D11
522 #define GL_INDEX_SHIFT 0x0D12
523 #define GL_INDEX_OFFSET 0x0D13
524 #define GL_RED_SCALE 0x0D14
525 #define GL_RED_BIAS 0x0D15
526 #define GL_ZOOM_X 0x0D16
527 #define GL_ZOOM_Y 0x0D17
528 #define GL_GREEN_SCALE 0x0D18
529 #define GL_GREEN_BIAS 0x0D19
530 #define GL_BLUE_SCALE 0x0D1A
531 #define GL_BLUE_BIAS 0x0D1B
532 #define GL_ALPHA_SCALE 0x0D1C
533 #define GL_ALPHA_BIAS 0x0D1D
534 #define GL_DEPTH_SCALE 0x0D1E
535 #define GL_DEPTH_BIAS 0x0D1F
536 #define GL_MAX_EVAL_ORDER 0x0D30
537 #define GL_MAX_LIGHTS 0x0D31
538 #define GL_MAX_CLIP_PLANES 0x0D32
539 #define GL_MAX_TEXTURE_SIZE 0x0D33
540 #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
541 #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
542 #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
543 #define GL_MAX_NAME_STACK_DEPTH 0x0D37
544 #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
545 #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
546 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
547 #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
548 #define GL_SUBPIXEL_BITS 0x0D50
549 #define GL_INDEX_BITS 0x0D51
550 #define GL_RED_BITS 0x0D52
551 #define GL_GREEN_BITS 0x0D53
552 #define GL_BLUE_BITS 0x0D54
553 #define GL_ALPHA_BITS 0x0D55
554 #define GL_DEPTH_BITS 0x0D56
555 #define GL_STENCIL_BITS 0x0D57
556 #define GL_ACCUM_RED_BITS 0x0D58
557 #define GL_ACCUM_GREEN_BITS 0x0D59
558 #define GL_ACCUM_BLUE_BITS 0x0D5A
559 #define GL_ACCUM_ALPHA_BITS 0x0D5B
560 #define GL_NAME_STACK_DEPTH 0x0D70
561 #define GL_AUTO_NORMAL 0x0D80
562 #define GL_MAP1_COLOR_4 0x0D90
563 #define GL_MAP1_INDEX 0x0D91
564 #define GL_MAP1_NORMAL 0x0D92
565 #define GL_MAP1_TEXTURE_COORD_1 0x0D93
566 #define GL_MAP1_TEXTURE_COORD_2 0x0D94
567 #define GL_MAP1_TEXTURE_COORD_3 0x0D95
568 #define GL_MAP1_TEXTURE_COORD_4 0x0D96
569 #define GL_MAP1_VERTEX_3 0x0D97
570 #define GL_MAP1_VERTEX_4 0x0D98
571 #define GL_MAP2_COLOR_4 0x0DB0
572 #define GL_MAP2_INDEX 0x0DB1
573 #define GL_MAP2_NORMAL 0x0DB2
574 #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
575 #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
576 #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
577 #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
578 #define GL_MAP2_VERTEX_3 0x0DB7
579 #define GL_MAP2_VERTEX_4 0x0DB8
580 #define GL_MAP1_GRID_DOMAIN 0x0DD0
581 #define GL_MAP1_GRID_SEGMENTS 0x0DD1
582 #define GL_MAP2_GRID_DOMAIN 0x0DD2
583 #define GL_MAP2_GRID_SEGMENTS 0x0DD3
584 #define GL_TEXTURE_1D 0x0DE0
585 #define GL_TEXTURE_2D 0x0DE1
586 #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
587 #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
588 #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
589 #define GL_SELECTION_BUFFER_POINTER 0x0DF3
590 #define GL_SELECTION_BUFFER_SIZE 0x0DF4
591 #define GL_TEXTURE_WIDTH 0x1000
592 #define GL_TEXTURE_HEIGHT 0x1001
593 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
594 #define GL_TEXTURE_BORDER_COLOR 0x1004
595 #define GL_TEXTURE_BORDER 0x1005
596 #define GL_DONT_CARE 0x1100
597 #define GL_FASTEST 0x1101
598 #define GL_NICEST 0x1102
599 #define GL_LIGHT0 0x4000
600 #define GL_LIGHT1 0x4001
601 #define GL_LIGHT2 0x4002
602 #define GL_LIGHT3 0x4003
603 #define GL_LIGHT4 0x4004
604 #define GL_LIGHT5 0x4005
605 #define GL_LIGHT6 0x4006
606 #define GL_LIGHT7 0x4007
607 #define GL_AMBIENT 0x1200
608 #define GL_DIFFUSE 0x1201
609 #define GL_SPECULAR 0x1202
610 #define GL_POSITION 0x1203
611 #define GL_SPOT_DIRECTION 0x1204
612 #define GL_SPOT_EXPONENT 0x1205
613 #define GL_SPOT_CUTOFF 0x1206
614 #define GL_CONSTANT_ATTENUATION 0x1207
615 #define GL_LINEAR_ATTENUATION 0x1208
616 #define GL_QUADRATIC_ATTENUATION 0x1209
617 #define GL_COMPILE 0x1300
618 #define GL_COMPILE_AND_EXECUTE 0x1301
619 #define GL_CLEAR 0x1500
620 #define GL_AND 0x1501
621 #define GL_AND_REVERSE 0x1502
622 #define GL_COPY 0x1503
623 #define GL_AND_INVERTED 0x1504
624 #define GL_NOOP 0x1505
625 #define GL_XOR 0x1506
626 #define GL_OR 0x1507
627 #define GL_NOR 0x1508
628 #define GL_EQUIV 0x1509
629 #define GL_INVERT 0x150A
630 #define GL_OR_REVERSE 0x150B
631 #define GL_COPY_INVERTED 0x150C
632 #define GL_OR_INVERTED 0x150D
633 #define GL_NAND 0x150E
634 #define GL_SET 0x150F
635 #define GL_EMISSION 0x1600
636 #define GL_SHININESS 0x1601
637 #define GL_AMBIENT_AND_DIFFUSE 0x1602
638 #define GL_COLOR_INDEXES 0x1603
639 #define GL_MODELVIEW 0x1700
640 #define GL_PROJECTION 0x1701
641 #define GL_TEXTURE 0x1702
642 #define GL_COLOR 0x1800
643 #define GL_DEPTH 0x1801
644 #define GL_STENCIL 0x1802
645 #define GL_COLOR_INDEX 0x1900
646 #define GL_STENCIL_INDEX 0x1901
647 #define GL_DEPTH_COMPONENT 0x1902
648 #define GL_RED 0x1903
649 #define GL_GREEN 0x1904
650 #define GL_BLUE 0x1905
651 #define GL_ALPHA 0x1906
652 #define GL_RGB 0x1907
653 #define GL_RGBA 0x1908
654 #define GL_LUMINANCE 0x1909
655 #define GL_LUMINANCE_ALPHA 0x190A
656 #define GL_BITMAP 0x1A00
657 #define GL_POINT 0x1B00
658 #define GL_LINE 0x1B01
659 #define GL_FILL 0x1B02
660 #define GL_RENDER 0x1C00
661 #define GL_FEEDBACK 0x1C01
662 #define GL_SELECT 0x1C02
663 #define GL_FLAT 0x1D00
664 #define GL_SMOOTH 0x1D01
665 #define GL_KEEP 0x1E00
666 #define GL_REPLACE 0x1E01
667 #define GL_INCR 0x1E02
668 #define GL_DECR 0x1E03
669 #define GL_VENDOR 0x1F00
670 #define GL_RENDERER 0x1F01
671 #define GL_VERSION 0x1F02
672 #define GL_EXTENSIONS 0x1F03
673 #define GL_S 0x2000
674 #define GL_T 0x2001
675 #define GL_R 0x2002
676 #define GL_Q 0x2003
677 #define GL_MODULATE 0x2100
678 #define GL_DECAL 0x2101
679 #define GL_TEXTURE_ENV_MODE 0x2200
680 #define GL_TEXTURE_ENV_COLOR 0x2201
681 #define GL_TEXTURE_ENV 0x2300
682 #define GL_EYE_LINEAR 0x2400
683 #define GL_OBJECT_LINEAR 0x2401
684 #define GL_SPHERE_MAP 0x2402
685 #define GL_TEXTURE_GEN_MODE 0x2500
686 #define GL_OBJECT_PLANE 0x2501
687 #define GL_EYE_PLANE 0x2502
688 #define GL_NEAREST 0x2600
689 #define GL_LINEAR 0x2601
690 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
691 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
692 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
693 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
694 #define GL_TEXTURE_MAG_FILTER 0x2800
695 #define GL_TEXTURE_MIN_FILTER 0x2801
696 #define GL_TEXTURE_WRAP_S 0x2802
697 #define GL_TEXTURE_WRAP_T 0x2803
698 #define GL_CLAMP 0x2900
699 #define GL_REPEAT 0x2901
700 #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
701 #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
702 #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
703 #define GL_POLYGON_OFFSET_FACTOR 0x8038
704 #define GL_POLYGON_OFFSET_UNITS 0x2A00
705 #define GL_POLYGON_OFFSET_POINT 0x2A01
706 #define GL_POLYGON_OFFSET_LINE 0x2A02
707 #define GL_POLYGON_OFFSET_FILL 0x8037
708 #define GL_ALPHA4 0x803B
709 #define GL_ALPHA8 0x803C
710 #define GL_ALPHA12 0x803D
711 #define GL_ALPHA16 0x803E
712 #define GL_LUMINANCE4 0x803F
713 #define GL_LUMINANCE8 0x8040
714 #define GL_LUMINANCE12 0x8041
715 #define GL_LUMINANCE16 0x8042
716 #define GL_LUMINANCE4_ALPHA4 0x8043
717 #define GL_LUMINANCE6_ALPHA2 0x8044
718 #define GL_LUMINANCE8_ALPHA8 0x8045
719 #define GL_LUMINANCE12_ALPHA4 0x8046
720 #define GL_LUMINANCE12_ALPHA12 0x8047
721 #define GL_LUMINANCE16_ALPHA16 0x8048
722 #define GL_INTENSITY 0x8049
723 #define GL_INTENSITY4 0x804A
724 #define GL_INTENSITY8 0x804B
725 #define GL_INTENSITY12 0x804C
726 #define GL_INTENSITY16 0x804D
727 #define GL_R3_G3_B2 0x2A10
728 #define GL_RGB4 0x804F
729 #define GL_RGB5 0x8050
730 #define GL_RGB8 0x8051
731 #define GL_RGB10 0x8052
732 #define GL_RGB12 0x8053
733 #define GL_RGB16 0x8054
734 #define GL_RGBA2 0x8055
735 #define GL_RGBA4 0x8056
736 #define GL_RGB5_A1 0x8057
737 #define GL_RGBA8 0x8058
738 #define GL_RGB10_A2 0x8059
739 #define GL_RGBA12 0x805A
740 #define GL_RGBA16 0x805B
741 #define GL_TEXTURE_RED_SIZE 0x805C
742 #define GL_TEXTURE_GREEN_SIZE 0x805D
743 #define GL_TEXTURE_BLUE_SIZE 0x805E
744 #define GL_TEXTURE_ALPHA_SIZE 0x805F
745 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
746 #define GL_TEXTURE_INTENSITY_SIZE 0x8061
747 #define GL_PROXY_TEXTURE_1D 0x8063
748 #define GL_PROXY_TEXTURE_2D 0x8064
749 #define GL_TEXTURE_PRIORITY 0x8066
750 #define GL_TEXTURE_RESIDENT 0x8067
751 #define GL_TEXTURE_BINDING_1D 0x8068
752 #define GL_TEXTURE_BINDING_2D 0x8069
753 #define GL_VERTEX_ARRAY 0x8074
754 #define GL_NORMAL_ARRAY 0x8075
755 #define GL_COLOR_ARRAY 0x8076
756 #define GL_INDEX_ARRAY 0x8077
757 #define GL_TEXTURE_COORD_ARRAY 0x8078
758 #define GL_EDGE_FLAG_ARRAY 0x8079
759 #define GL_VERTEX_ARRAY_SIZE 0x807A
760 #define GL_VERTEX_ARRAY_TYPE 0x807B
761 #define GL_VERTEX_ARRAY_STRIDE 0x807C
762 #define GL_NORMAL_ARRAY_TYPE 0x807E
763 #define GL_NORMAL_ARRAY_STRIDE 0x807F
764 #define GL_COLOR_ARRAY_SIZE 0x8081
765 #define GL_COLOR_ARRAY_TYPE 0x8082
766 #define GL_COLOR_ARRAY_STRIDE 0x8083
767 #define GL_INDEX_ARRAY_TYPE 0x8085
768 #define GL_INDEX_ARRAY_STRIDE 0x8086
769 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
770 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
771 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
772 #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
773 #define GL_VERTEX_ARRAY_POINTER 0x808E
774 #define GL_NORMAL_ARRAY_POINTER 0x808F
775 #define GL_COLOR_ARRAY_POINTER 0x8090
776 #define GL_INDEX_ARRAY_POINTER 0x8091
777 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
778 #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
779 #define GL_V2F 0x2A20
780 #define GL_V3F 0x2A21
781 #define GL_C4UB_V2F 0x2A22
782 #define GL_C4UB_V3F 0x2A23
783 #define GL_C3F_V3F 0x2A24
784 #define GL_N3F_V3F 0x2A25
785 #define GL_C4F_N3F_V3F 0x2A26
786 #define GL_T2F_V3F 0x2A27
787 #define GL_T4F_V4F 0x2A28
788 #define GL_T2F_C4UB_V3F 0x2A29
789 #define GL_T2F_C3F_V3F 0x2A2A
790 #define GL_T2F_N3F_V3F 0x2A2B
791 #define GL_T2F_C4F_N3F_V3F 0x2A2C
792 #define GL_T4F_C4F_N3F_V4F 0x2A2D
793 #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
794 #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
795 #define GL_COLOR_INDEX1_EXT 0x80E2
796 #define GL_COLOR_INDEX2_EXT 0x80E3
797 #define GL_COLOR_INDEX4_EXT 0x80E4
798 #define GL_COLOR_INDEX8_EXT 0x80E5
799 #define GL_COLOR_INDEX12_EXT 0x80E6
800 #define GL_COLOR_INDEX16_EXT 0x80E7
801
802 GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value);
803 GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref);
804 GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
805 GLAPI void GLAPIENTRY glArrayElement (GLint i);
806 GLAPI void GLAPIENTRY glBegin (GLenum mode);
807 GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture);
808 GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
809 GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
810 GLAPI void GLAPIENTRY glCallList (GLuint list);
811 GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
812 GLAPI void GLAPIENTRY glClear (GLbitfield mask);
813 GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
814 GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
815 GLAPI void GLAPIENTRY glClearDepth (GLclampd depth);
816 GLAPI void GLAPIENTRY glClearIndex (GLfloat c);
817 GLAPI void GLAPIENTRY glClearStencil (GLint s);
818 GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
819 GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);
820 GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v);
821 GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);
822 GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v);
823 GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);
824 GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v);
825 GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue);
826 GLAPI void GLAPIENTRY glColor3iv (const GLint *v);
827 GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);
828 GLAPI void GLAPIENTRY glColor3sv (const GLshort *v);
829 GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
830 GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v);
831 GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);
832 GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v);
833 GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);
834 GLAPI void GLAPIENTRY glColor3usv (const GLushort *v);
835 GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
836 GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v);
837 GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
838 GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v);
839 GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
840 GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v);
841 GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
842 GLAPI void GLAPIENTRY glColor4iv (const GLint *v);
843 GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
844 GLAPI void GLAPIENTRY glColor4sv (const GLshort *v);
845 GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
846 GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v);
847 GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
848 GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v);
849 GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
850 GLAPI void GLAPIENTRY glColor4usv (const GLushort *v);
851 GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
852 GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode);
853 GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
854 GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
855 GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
856 GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
857 GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
858 GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
859 GLAPI void GLAPIENTRY glCullFace (GLenum mode);
860 GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range);
861 GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
862 GLAPI void GLAPIENTRY glDepthFunc (GLenum func);
863 GLAPI void GLAPIENTRY glDepthMask (GLboolean flag);
864 GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);
865 GLAPI void GLAPIENTRY glDisable (GLenum cap);
866 GLAPI void GLAPIENTRY glDisableClientState (GLenum array);
867 GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
868 GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode);
869 GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
870 GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
871 GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag);
872 GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
873 GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag);
874 GLAPI void GLAPIENTRY glEnable (GLenum cap);
875 GLAPI void GLAPIENTRY glEnableClientState (GLenum array);
876 GLAPI void GLAPIENTRY glEnd (void);
877 GLAPI void GLAPIENTRY glEndList (void);
878 GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u);
879 GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u);
880 GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u);
881 GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u);
882 GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v);
883 GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u);
884 GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v);
885 GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u);
886 GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
887 GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
888 GLAPI void GLAPIENTRY glEvalPoint1 (GLint i);
889 GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j);
890 GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
891 GLAPI void GLAPIENTRY glFinish (void);
892 GLAPI void GLAPIENTRY glFlush (void);
893 GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param);
894 GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params);
895 GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param);
896 GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params);
897 GLAPI void GLAPIENTRY glFrontFace (GLenum mode);
898 GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
899 GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range);
900 GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures);
901 GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
902 GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
903 GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params);
904 GLAPI GLenum GLAPIENTRY glGetError (void);
905 GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params);
906 GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params);
907 GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
908 GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);
909 GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
910 GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
911 GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
912 GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
913 GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
914 GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
915 GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
916 GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
917 GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
918 GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask);
919 GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name);
920 GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
921 GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
922 GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
923 GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
924 GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
925 GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
926 GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
927 GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
928 GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
929 GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
930 GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
931 GLAPI void GLAPIENTRY glIndexMask (GLuint mask);
932 GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
933 GLAPI void GLAPIENTRY glIndexd (GLdouble c);
934 GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c);
935 GLAPI void GLAPIENTRY glIndexf (GLfloat c);
936 GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c);
937 GLAPI void GLAPIENTRY glIndexi (GLint c);
938 GLAPI void GLAPIENTRY glIndexiv (const GLint *c);
939 GLAPI void GLAPIENTRY glIndexs (GLshort c);
940 GLAPI void GLAPIENTRY glIndexsv (const GLshort *c);
941 GLAPI void GLAPIENTRY glIndexub (GLubyte c);
942 GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c);
943 GLAPI void GLAPIENTRY glInitNames (void);
944 GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
945 GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap);
946 GLAPI GLboolean GLAPIENTRY glIsList (GLuint list);
947 GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture);
948 GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param);
949 GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
950 GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param);
951 GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params);
952 GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
953 GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
954 GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param);
955 GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
956 GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern);
957 GLAPI void GLAPIENTRY glLineWidth (GLfloat width);
958 GLAPI void GLAPIENTRY glListBase (GLuint base);
959 GLAPI void GLAPIENTRY glLoadIdentity (void);
960 GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m);
961 GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m);
962 GLAPI void GLAPIENTRY glLoadName (GLuint name);
963 GLAPI void GLAPIENTRY glLogicOp (GLenum opcode);
964 GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
965 GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
966 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);
967 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);
968 GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
969 GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
970 GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
971 GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
972 GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
973 GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
974 GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param);
975 GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);
976 GLAPI void GLAPIENTRY glMatrixMode (GLenum mode);
977 GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m);
978 GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m);
979 GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode);
980 GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
981 GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v);
982 GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
983 GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v);
984 GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
985 GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v);
986 GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
987 GLAPI void GLAPIENTRY glNormal3iv (const GLint *v);
988 GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
989 GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v);
990 GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
991 GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
992 GLAPI void GLAPIENTRY glPassThrough (GLfloat token);
993 GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
994 GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
995 GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
996 GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param);
997 GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param);
998 GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param);
999 GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param);
1000 GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
1001 GLAPI void GLAPIENTRY glPointSize (GLfloat size);
1002 GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode);
1003 GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
1004 GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask);
1005 GLAPI void GLAPIENTRY glPopAttrib (void);
1006 GLAPI void GLAPIENTRY glPopClientAttrib (void);
1007 GLAPI void GLAPIENTRY glPopMatrix (void);
1008 GLAPI void GLAPIENTRY glPopName (void);
1009 GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
1010 GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask);
1011 GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask);
1012 GLAPI void GLAPIENTRY glPushMatrix (void);
1013 GLAPI void GLAPIENTRY glPushName (GLuint name);
1014 GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y);
1015 GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v);
1016 GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y);
1017 GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v);
1018 GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y);
1019 GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v);
1020 GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y);
1021 GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v);
1022 GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
1023 GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v);
1024 GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
1025 GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v);
1026 GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z);
1027 GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v);
1028 GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);
1029 GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v);
1030 GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1031 GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v);
1032 GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1033 GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v);
1034 GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
1035 GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v);
1036 GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
1037 GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v);
1038 GLAPI void GLAPIENTRY glReadBuffer (GLenum mode);
1039 GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
1040 GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
1041 GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
1042 GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
1043 GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
1044 GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
1045 GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2);
1046 GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
1047 GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
1048 GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode);
1049 GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
1050 GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
1051 GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);
1052 GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
1053 GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
1054 GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);
1055 GLAPI void GLAPIENTRY glShadeModel (GLenum mode);
1056 GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
1057 GLAPI void GLAPIENTRY glStencilMask (GLuint mask);
1058 GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
1059 GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s);
1060 GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v);
1061 GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s);
1062 GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v);
1063 GLAPI void GLAPIENTRY glTexCoord1i (GLint s);
1064 GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v);
1065 GLAPI void GLAPIENTRY glTexCoord1s (GLshort s);
1066 GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v);
1067 GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t);
1068 GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v);
1069 GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t);
1070 GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v);
1071 GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t);
1072 GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v);
1073 GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t);
1074 GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v);
1075 GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
1076 GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v);
1077 GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
1078 GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v);
1079 GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r);
1080 GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v);
1081 GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);
1082 GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v);
1083 GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1084 GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v);
1085 GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1086 GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v);
1087 GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
1088 GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v);
1089 GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
1090 GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v);
1091 GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1092 GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
1093 GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
1094 GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
1095 GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
1096 GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);
1097 GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
1098 GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
1099 GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
1100 GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
1101 GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
1102 GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
1103 GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
1104 GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
1105 GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
1106 GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
1107 GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
1108 GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
1109 GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
1110 GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
1111 GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
1112 GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y);
1113 GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v);
1114 GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y);
1115 GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v);
1116 GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y);
1117 GLAPI void GLAPIENTRY glVertex2iv (const GLint *v);
1118 GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y);
1119 GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v);
1120 GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);
1121 GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v);
1122 GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);
1123 GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v);
1124 GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z);
1125 GLAPI void GLAPIENTRY glVertex3iv (const GLint *v);
1126 GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);
1127 GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v);
1128 GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1129 GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v);
1130 GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1131 GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v);
1132 GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
1133 GLAPI void GLAPIENTRY glVertex4iv (const GLint *v);
1134 GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
1135 GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v);
1136 GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
1137 GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
1138
1139 #define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1)
1140
1141 #endif /* GL_VERSION_1_1 */
1142
1143 /* ---------------------------------- GLU ---------------------------------- */
1144
1145 /* this is where we can safely include GLU */
1146 #if defined(__APPLE__) && defined(__MACH__)
1147 #include <OpenGL/glu.h>
1148 #else
1149 #include <GL/glu.h>
1150 #endif
1151
1152 /* ----------------------------- GL_VERSION_1_2 ---------------------------- */
1153
1154 #ifndef GL_VERSION_1_2
1155 #define GL_VERSION_1_2 1
1156
1157 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
1158 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
1159 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
1160 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
1161 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
1162 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
1163 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
1164 #define GL_UNSIGNED_INT_8_8_8_8 0x8035
1165 #define GL_UNSIGNED_INT_10_10_10_2 0x8036
1166 #define GL_RESCALE_NORMAL 0x803A
1167 #define GL_TEXTURE_BINDING_3D 0x806A
1168 #define GL_PACK_SKIP_IMAGES 0x806B
1169 #define GL_PACK_IMAGE_HEIGHT 0x806C
1170 #define GL_UNPACK_SKIP_IMAGES 0x806D
1171 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
1172 #define GL_TEXTURE_3D 0x806F
1173 #define GL_PROXY_TEXTURE_3D 0x8070
1174 #define GL_TEXTURE_DEPTH 0x8071
1175 #define GL_TEXTURE_WRAP_R 0x8072
1176 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
1177 #define GL_BGR 0x80E0
1178 #define GL_BGRA 0x80E1
1179 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
1180 #define GL_MAX_ELEMENTS_INDICES 0x80E9
1181 #define GL_CLAMP_TO_EDGE 0x812F
1182 #define GL_TEXTURE_MIN_LOD 0x813A
1183 #define GL_TEXTURE_MAX_LOD 0x813B
1184 #define GL_TEXTURE_BASE_LEVEL 0x813C
1185 #define GL_TEXTURE_MAX_LEVEL 0x813D
1186 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
1187 #define GL_SINGLE_COLOR 0x81F9
1188 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
1189 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
1190 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
1191 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
1192 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
1193 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
1194 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
1195 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
1196 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
1197 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
1198
1199 typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
1200 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
1201 typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
1202 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 GLvoid *pixels);
1203
1204 #define glCopyTexSubImage3D GLEW_GET_FUN(__glewCopyTexSubImage3D)
1205 #define glDrawRangeElements GLEW_GET_FUN(__glewDrawRangeElements)
1206 #define glTexImage3D GLEW_GET_FUN(__glewTexImage3D)
1207 #define glTexSubImage3D GLEW_GET_FUN(__glewTexSubImage3D)
1208
1209 #define GLEW_VERSION_1_2 GLEW_GET_VAR(__GLEW_VERSION_1_2)
1210
1211 #endif /* GL_VERSION_1_2 */
1212
1213 /* ----------------------------- GL_VERSION_1_3 ---------------------------- */
1214
1215 #ifndef GL_VERSION_1_3
1216 #define GL_VERSION_1_3 1
1217
1218 #define GL_MULTISAMPLE 0x809D
1219 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
1220 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
1221 #define GL_SAMPLE_COVERAGE 0x80A0
1222 #define GL_SAMPLE_BUFFERS 0x80A8
1223 #define GL_SAMPLES 0x80A9
1224 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
1225 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
1226 #define GL_CLAMP_TO_BORDER 0x812D
1227 #define GL_TEXTURE0 0x84C0
1228 #define GL_TEXTURE1 0x84C1
1229 #define GL_TEXTURE2 0x84C2
1230 #define GL_TEXTURE3 0x84C3
1231 #define GL_TEXTURE4 0x84C4
1232 #define GL_TEXTURE5 0x84C5
1233 #define GL_TEXTURE6 0x84C6
1234 #define GL_TEXTURE7 0x84C7
1235 #define GL_TEXTURE8 0x84C8
1236 #define GL_TEXTURE9 0x84C9
1237 #define GL_TEXTURE10 0x84CA
1238 #define GL_TEXTURE11 0x84CB
1239 #define GL_TEXTURE12 0x84CC
1240 #define GL_TEXTURE13 0x84CD
1241 #define GL_TEXTURE14 0x84CE
1242 #define GL_TEXTURE15 0x84CF
1243 #define GL_TEXTURE16 0x84D0
1244 #define GL_TEXTURE17 0x84D1
1245 #define GL_TEXTURE18 0x84D2
1246 #define GL_TEXTURE19 0x84D3
1247 #define GL_TEXTURE20 0x84D4
1248 #define GL_TEXTURE21 0x84D5
1249 #define GL_TEXTURE22 0x84D6
1250 #define GL_TEXTURE23 0x84D7
1251 #define GL_TEXTURE24 0x84D8
1252 #define GL_TEXTURE25 0x84D9
1253 #define GL_TEXTURE26 0x84DA
1254 #define GL_TEXTURE27 0x84DB
1255 #define GL_TEXTURE28 0x84DC
1256 #define GL_TEXTURE29 0x84DD
1257 #define GL_TEXTURE30 0x84DE
1258 #define GL_TEXTURE31 0x84DF
1259 #define GL_ACTIVE_TEXTURE 0x84E0
1260 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
1261 #define GL_MAX_TEXTURE_UNITS 0x84E2
1262 #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
1263 #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
1264 #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
1265 #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
1266 #define GL_SUBTRACT 0x84E7
1267 #define GL_COMPRESSED_ALPHA 0x84E9
1268 #define GL_COMPRESSED_LUMINANCE 0x84EA
1269 #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
1270 #define GL_COMPRESSED_INTENSITY 0x84EC
1271 #define GL_COMPRESSED_RGB 0x84ED
1272 #define GL_COMPRESSED_RGBA 0x84EE
1273 #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
1274 #define GL_NORMAL_MAP 0x8511
1275 #define GL_REFLECTION_MAP 0x8512
1276 #define GL_TEXTURE_CUBE_MAP 0x8513
1277 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
1278 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
1279 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
1280 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
1281 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
1282 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
1283 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
1284 #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
1285 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
1286 #define GL_COMBINE 0x8570
1287 #define GL_COMBINE_RGB 0x8571
1288 #define GL_COMBINE_ALPHA 0x8572
1289 #define GL_RGB_SCALE 0x8573
1290 #define GL_ADD_SIGNED 0x8574
1291 #define GL_INTERPOLATE 0x8575
1292 #define GL_CONSTANT 0x8576
1293 #define GL_PRIMARY_COLOR 0x8577
1294 #define GL_PREVIOUS 0x8578
1295 #define GL_SOURCE0_RGB 0x8580
1296 #define GL_SOURCE1_RGB 0x8581
1297 #define GL_SOURCE2_RGB 0x8582
1298 #define GL_SOURCE0_ALPHA 0x8588
1299 #define GL_SOURCE1_ALPHA 0x8589
1300 #define GL_SOURCE2_ALPHA 0x858A
1301 #define GL_OPERAND0_RGB 0x8590
1302 #define GL_OPERAND1_RGB 0x8591
1303 #define GL_OPERAND2_RGB 0x8592
1304 #define GL_OPERAND0_ALPHA 0x8598
1305 #define GL_OPERAND1_ALPHA 0x8599
1306 #define GL_OPERAND2_ALPHA 0x859A
1307 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
1308 #define GL_TEXTURE_COMPRESSED 0x86A1
1309 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
1310 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
1311 #define GL_DOT3_RGB 0x86AE
1312 #define GL_DOT3_RGBA 0x86AF
1313 #define GL_MULTISAMPLE_BIT 0x20000000
1314
1315 typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture);
1316 typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
1317 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
1318 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
1319 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
1320 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
1321 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
1322 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 GLvoid *data);
1323 typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLvoid *img);
1324 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble m[16]);
1325 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat m[16]);
1326 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble m[16]);
1327 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat m[16]);
1328 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
1329 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
1330 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
1331 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
1332 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
1333 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
1334 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
1335 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
1336 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
1337 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
1338 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
1339 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
1340 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
1341 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
1342 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
1343 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
1344 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
1345 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
1346 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
1347 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
1348 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
1349 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
1350 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
1351 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
1352 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
1353 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
1354 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
1355 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
1356 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
1357 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
1358 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
1359 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
1360 typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
1361
1362 #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture)
1363 #define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture)
1364 #define glCompressedTexImage1D GLEW_GET_FUN(__glewCompressedTexImage1D)
1365 #define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D)
1366 #define glCompressedTexImage3D GLEW_GET_FUN(__glewCompressedTexImage3D)
1367 #define glCompressedTexSubImage1D GLEW_GET_FUN(__glewCompressedTexSubImage1D)
1368 #define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D)
1369 #define glCompressedTexSubImage3D GLEW_GET_FUN(__glewCompressedTexSubImage3D)
1370 #define glGetCompressedTexImage GLEW_GET_FUN(__glewGetCompressedTexImage)
1371 #define glLoadTransposeMatrixd GLEW_GET_FUN(__glewLoadTransposeMatrixd)
1372 #define glLoadTransposeMatrixf GLEW_GET_FUN(__glewLoadTransposeMatrixf)
1373 #define glMultTransposeMatrixd GLEW_GET_FUN(__glewMultTransposeMatrixd)
1374 #define glMultTransposeMatrixf GLEW_GET_FUN(__glewMultTransposeMatrixf)
1375 #define glMultiTexCoord1d GLEW_GET_FUN(__glewMultiTexCoord1d)
1376 #define glMultiTexCoord1dv GLEW_GET_FUN(__glewMultiTexCoord1dv)
1377 #define glMultiTexCoord1f GLEW_GET_FUN(__glewMultiTexCoord1f)
1378 #define glMultiTexCoord1fv GLEW_GET_FUN(__glewMultiTexCoord1fv)
1379 #define glMultiTexCoord1i GLEW_GET_FUN(__glewMultiTexCoord1i)
1380 #define glMultiTexCoord1iv GLEW_GET_FUN(__glewMultiTexCoord1iv)
1381 #define glMultiTexCoord1s GLEW_GET_FUN(__glewMultiTexCoord1s)
1382 #define glMultiTexCoord1sv GLEW_GET_FUN(__glewMultiTexCoord1sv)
1383 #define glMultiTexCoord2d GLEW_GET_FUN(__glewMultiTexCoord2d)
1384 #define glMultiTexCoord2dv GLEW_GET_FUN(__glewMultiTexCoord2dv)
1385 #define glMultiTexCoord2f GLEW_GET_FUN(__glewMultiTexCoord2f)
1386 #define glMultiTexCoord2fv GLEW_GET_FUN(__glewMultiTexCoord2fv)
1387 #define glMultiTexCoord2i GLEW_GET_FUN(__glewMultiTexCoord2i)
1388 #define glMultiTexCoord2iv GLEW_GET_FUN(__glewMultiTexCoord2iv)
1389 #define glMultiTexCoord2s GLEW_GET_FUN(__glewMultiTexCoord2s)
1390 #define glMultiTexCoord2sv GLEW_GET_FUN(__glewMultiTexCoord2sv)
1391 #define glMultiTexCoord3d GLEW_GET_FUN(__glewMultiTexCoord3d)
1392 #define glMultiTexCoord3dv GLEW_GET_FUN(__glewMultiTexCoord3dv)
1393 #define glMultiTexCoord3f GLEW_GET_FUN(__glewMultiTexCoord3f)
1394 #define glMultiTexCoord3fv GLEW_GET_FUN(__glewMultiTexCoord3fv)
1395 #define glMultiTexCoord3i GLEW_GET_FUN(__glewMultiTexCoord3i)
1396 #define glMultiTexCoord3iv GLEW_GET_FUN(__glewMultiTexCoord3iv)
1397 #define glMultiTexCoord3s GLEW_GET_FUN(__glewMultiTexCoord3s)
1398 #define glMultiTexCoord3sv GLEW_GET_FUN(__glewMultiTexCoord3sv)
1399 #define glMultiTexCoord4d GLEW_GET_FUN(__glewMultiTexCoord4d)
1400 #define glMultiTexCoord4dv GLEW_GET_FUN(__glewMultiTexCoord4dv)
1401 #define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f)
1402 #define glMultiTexCoord4fv GLEW_GET_FUN(__glewMultiTexCoord4fv)
1403 #define glMultiTexCoord4i GLEW_GET_FUN(__glewMultiTexCoord4i)
1404 #define glMultiTexCoord4iv GLEW_GET_FUN(__glewMultiTexCoord4iv)
1405 #define glMultiTexCoord4s GLEW_GET_FUN(__glewMultiTexCoord4s)
1406 #define glMultiTexCoord4sv GLEW_GET_FUN(__glewMultiTexCoord4sv)
1407 #define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage)
1408
1409 #define GLEW_VERSION_1_3 GLEW_GET_VAR(__GLEW_VERSION_1_3)
1410
1411 #endif /* GL_VERSION_1_3 */
1412
1413 /* ----------------------------- GL_VERSION_1_4 ---------------------------- */
1414
1415 #ifndef GL_VERSION_1_4
1416 #define GL_VERSION_1_4 1
1417
1418 #define GL_BLEND_DST_RGB 0x80C8
1419 #define GL_BLEND_SRC_RGB 0x80C9
1420 #define GL_BLEND_DST_ALPHA 0x80CA
1421 #define GL_BLEND_SRC_ALPHA 0x80CB
1422 #define GL_POINT_SIZE_MIN 0x8126
1423 #define GL_POINT_SIZE_MAX 0x8127
1424 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
1425 #define GL_POINT_DISTANCE_ATTENUATION 0x8129
1426 #define GL_GENERATE_MIPMAP 0x8191
1427 #define GL_GENERATE_MIPMAP_HINT 0x8192
1428 #define GL_DEPTH_COMPONENT16 0x81A5
1429 #define GL_DEPTH_COMPONENT24 0x81A6
1430 #define GL_DEPTH_COMPONENT32 0x81A7
1431 #define GL_MIRRORED_REPEAT 0x8370
1432 #define GL_FOG_COORDINATE_SOURCE 0x8450
1433 #define GL_FOG_COORDINATE 0x8451
1434 #define GL_FRAGMENT_DEPTH 0x8452
1435 #define GL_CURRENT_FOG_COORDINATE 0x8453
1436 #define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
1437 #define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
1438 #define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
1439 #define GL_FOG_COORDINATE_ARRAY 0x8457
1440 #define GL_COLOR_SUM 0x8458
1441 #define GL_CURRENT_SECONDARY_COLOR 0x8459
1442 #define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
1443 #define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
1444 #define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
1445 #define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
1446 #define GL_SECONDARY_COLOR_ARRAY 0x845E
1447 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
1448 #define GL_TEXTURE_FILTER_CONTROL 0x8500
1449 #define GL_TEXTURE_LOD_BIAS 0x8501
1450 #define GL_INCR_WRAP 0x8507
1451 #define GL_DECR_WRAP 0x8508
1452 #define GL_TEXTURE_DEPTH_SIZE 0x884A
1453 #define GL_DEPTH_TEXTURE_MODE 0x884B
1454 #define GL_TEXTURE_COMPARE_MODE 0x884C
1455 #define GL_TEXTURE_COMPARE_FUNC 0x884D
1456 #define GL_COMPARE_R_TO_TEXTURE 0x884E
1457
1458 typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
1459 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) (GLenum mode);
1460 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
1461 typedef void (GLAPIENTRY * PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
1462 typedef void (GLAPIENTRY * PFNGLFOGCOORDDPROC) (GLdouble coord);
1463 typedef void (GLAPIENTRY * PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
1464 typedef void (GLAPIENTRY * PFNGLFOGCOORDFPROC) (GLfloat coord);
1465 typedef void (GLAPIENTRY * PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
1466 typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
1467 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount);
1468 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
1469 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
1470 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
1471 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
1472 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
1473 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
1474 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
1475 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
1476 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
1477 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
1478 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
1479 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
1480 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
1481 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
1482 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
1483 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
1484 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
1485 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
1486 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
1487 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
1488 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
1489 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
1490 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVPROC) (const GLdouble *p);
1491 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
1492 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVPROC) (const GLfloat *p);
1493 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
1494 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVPROC) (const GLint *p);
1495 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
1496 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVPROC) (const GLshort *p);
1497 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
1498 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVPROC) (const GLdouble *p);
1499 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
1500 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVPROC) (const GLfloat *p);
1501 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
1502 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVPROC) (const GLint *p);
1503 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
1504 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVPROC) (const GLshort *p);
1505
1506 #define glBlendColor GLEW_GET_FUN(__glewBlendColor)
1507 #define glBlendEquation GLEW_GET_FUN(__glewBlendEquation)
1508 #define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate)
1509 #define glFogCoordPointer GLEW_GET_FUN(__glewFogCoordPointer)
1510 #define glFogCoordd GLEW_GET_FUN(__glewFogCoordd)
1511 #define glFogCoorddv GLEW_GET_FUN(__glewFogCoorddv)
1512 #define glFogCoordf GLEW_GET_FUN(__glewFogCoordf)
1513 #define glFogCoordfv GLEW_GET_FUN(__glewFogCoordfv)
1514 #define glMultiDrawArrays GLEW_GET_FUN(__glewMultiDrawArrays)
1515 #define glMultiDrawElements GLEW_GET_FUN(__glewMultiDrawElements)
1516 #define glPointParameterf GLEW_GET_FUN(__glewPointParameterf)
1517 #define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv)
1518 #define glPointParameteri GLEW_GET_FUN(__glewPointParameteri)
1519 #define glPointParameteriv GLEW_GET_FUN(__glewPointParameteriv)
1520 #define glSecondaryColor3b GLEW_GET_FUN(__glewSecondaryColor3b)
1521 #define glSecondaryColor3bv GLEW_GET_FUN(__glewSecondaryColor3bv)
1522 #define glSecondaryColor3d GLEW_GET_FUN(__glewSecondaryColor3d)
1523 #define glSecondaryColor3dv GLEW_GET_FUN(__glewSecondaryColor3dv)
1524 #define glSecondaryColor3f GLEW_GET_FUN(__glewSecondaryColor3f)
1525 #define glSecondaryColor3fv GLEW_GET_FUN(__glewSecondaryColor3fv)
1526 #define glSecondaryColor3i GLEW_GET_FUN(__glewSecondaryColor3i)
1527 #define glSecondaryColor3iv GLEW_GET_FUN(__glewSecondaryColor3iv)
1528 #define glSecondaryColor3s GLEW_GET_FUN(__glewSecondaryColor3s)
1529 #define glSecondaryColor3sv GLEW_GET_FUN(__glewSecondaryColor3sv)
1530 #define glSecondaryColor3ub GLEW_GET_FUN(__glewSecondaryColor3ub)
1531 #define glSecondaryColor3ubv GLEW_GET_FUN(__glewSecondaryColor3ubv)
1532 #define glSecondaryColor3ui GLEW_GET_FUN(__glewSecondaryColor3ui)
1533 #define glSecondaryColor3uiv GLEW_GET_FUN(__glewSecondaryColor3uiv)
1534 #define glSecondaryColor3us GLEW_GET_FUN(__glewSecondaryColor3us)
1535 #define glSecondaryColor3usv GLEW_GET_FUN(__glewSecondaryColor3usv)
1536 #define glSecondaryColorPointer GLEW_GET_FUN(__glewSecondaryColorPointer)
1537 #define glWindowPos2d GLEW_GET_FUN(__glewWindowPos2d)
1538 #define glWindowPos2dv GLEW_GET_FUN(__glewWindowPos2dv)
1539 #define glWindowPos2f GLEW_GET_FUN(__glewWindowPos2f)
1540 #define glWindowPos2fv GLEW_GET_FUN(__glewWindowPos2fv)
1541 #define glWindowPos2i GLEW_GET_FUN(__glewWindowPos2i)
1542 #define glWindowPos2iv GLEW_GET_FUN(__glewWindowPos2iv)
1543 #define glWindowPos2s GLEW_GET_FUN(__glewWindowPos2s)
1544 #define glWindowPos2sv GLEW_GET_FUN(__glewWindowPos2sv)
1545 #define glWindowPos3d GLEW_GET_FUN(__glewWindowPos3d)
1546 #define glWindowPos3dv GLEW_GET_FUN(__glewWindowPos3dv)
1547 #define glWindowPos3f GLEW_GET_FUN(__glewWindowPos3f)
1548 #define glWindowPos3fv GLEW_GET_FUN(__glewWindowPos3fv)
1549 #define glWindowPos3i GLEW_GET_FUN(__glewWindowPos3i)
1550 #define glWindowPos3iv GLEW_GET_FUN(__glewWindowPos3iv)
1551 #define glWindowPos3s GLEW_GET_FUN(__glewWindowPos3s)
1552 #define glWindowPos3sv GLEW_GET_FUN(__glewWindowPos3sv)
1553
1554 #define GLEW_VERSION_1_4 GLEW_GET_VAR(__GLEW_VERSION_1_4)
1555
1556 #endif /* GL_VERSION_1_4 */
1557
1558 /* ----------------------------- GL_VERSION_1_5 ---------------------------- */
1559
1560 #ifndef GL_VERSION_1_5
1561 #define GL_VERSION_1_5 1
1562
1563 #define GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
1564 #define GL_FOG_COORD GL_FOG_COORDINATE
1565 #define GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
1566 #define GL_SRC0_RGB GL_SOURCE0_RGB
1567 #define GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
1568 #define GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
1569 #define GL_SRC1_ALPHA GL_SOURCE1_ALPHA
1570 #define GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
1571 #define GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
1572 #define GL_SRC0_ALPHA GL_SOURCE0_ALPHA
1573 #define GL_SRC1_RGB GL_SOURCE1_RGB
1574 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
1575 #define GL_SRC2_ALPHA GL_SOURCE2_ALPHA
1576 #define GL_SRC2_RGB GL_SOURCE2_RGB
1577 #define GL_BUFFER_SIZE 0x8764
1578 #define GL_BUFFER_USAGE 0x8765
1579 #define GL_QUERY_COUNTER_BITS 0x8864
1580 #define GL_CURRENT_QUERY 0x8865
1581 #define GL_QUERY_RESULT 0x8866
1582 #define GL_QUERY_RESULT_AVAILABLE 0x8867
1583 #define GL_ARRAY_BUFFER 0x8892
1584 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
1585 #define GL_ARRAY_BUFFER_BINDING 0x8894
1586 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
1587 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
1588 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
1589 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
1590 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
1591 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
1592 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
1593 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
1594 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
1595 #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
1596 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
1597 #define GL_READ_ONLY 0x88B8
1598 #define GL_WRITE_ONLY 0x88B9
1599 #define GL_READ_WRITE 0x88BA
1600 #define GL_BUFFER_ACCESS 0x88BB
1601 #define GL_BUFFER_MAPPED 0x88BC
1602 #define GL_BUFFER_MAP_POINTER 0x88BD
1603 #define GL_STREAM_DRAW 0x88E0
1604 #define GL_STREAM_READ 0x88E1
1605 #define GL_STREAM_COPY 0x88E2
1606 #define GL_STATIC_DRAW 0x88E4
1607 #define GL_STATIC_READ 0x88E5
1608 #define GL_STATIC_COPY 0x88E6
1609 #define GL_DYNAMIC_DRAW 0x88E8
1610 #define GL_DYNAMIC_READ 0x88E9
1611 #define GL_DYNAMIC_COPY 0x88EA
1612 #define GL_SAMPLES_PASSED 0x8914
1613
1614 typedef ptrdiff_t GLsizeiptr;
1615 typedef ptrdiff_t GLintptr;
1616
1617 typedef void (GLAPIENTRY * PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
1618 typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
1619 typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
1620 typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
1621 typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint* buffers);
1622 typedef void (GLAPIENTRY * PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint* ids);
1623 typedef void (GLAPIENTRY * PFNGLENDQUERYPROC) (GLenum target);
1624 typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei n, GLuint* buffers);
1625 typedef void (GLAPIENTRY * PFNGLGENQUERIESPROC) (GLsizei n, GLuint* ids);
1626 typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params);
1627 typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid** params);
1628 typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid* data);
1629 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint* params);
1630 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint* params);
1631 typedef void (GLAPIENTRY * PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint* params);
1632 typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint buffer);
1633 typedef GLboolean (GLAPIENTRY * PFNGLISQUERYPROC) (GLuint id);
1634 typedef GLvoid* (GLAPIENTRY * PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
1635 typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERPROC) (GLenum target);
1636
1637 #define glBeginQuery GLEW_GET_FUN(__glewBeginQuery)
1638 #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer)
1639 #define glBufferData GLEW_GET_FUN(__glewBufferData)
1640 #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData)
1641 #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers)
1642 #define glDeleteQueries GLEW_GET_FUN(__glewDeleteQueries)
1643 #define glEndQuery GLEW_GET_FUN(__glewEndQuery)
1644 #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)
1645 #define glGenQueries GLEW_GET_FUN(__glewGenQueries)
1646 #define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv)
1647 #define glGetBufferPointerv GLEW_GET_FUN(__glewGetBufferPointerv)
1648 #define glGetBufferSubData GLEW_GET_FUN(__glewGetBufferSubData)
1649 #define glGetQueryObjectiv GLEW_GET_FUN(__glewGetQueryObjectiv)
1650 #define glGetQueryObjectuiv GLEW_GET_FUN(__glewGetQueryObjectuiv)
1651 #define glGetQueryiv GLEW_GET_FUN(__glewGetQueryiv)
1652 #define glIsBuffer GLEW_GET_FUN(__glewIsBuffer)
1653 #define glIsQuery GLEW_GET_FUN(__glewIsQuery)
1654 #define glMapBuffer GLEW_GET_FUN(__glewMapBuffer)
1655 #define glUnmapBuffer GLEW_GET_FUN(__glewUnmapBuffer)
1656
1657 #define GLEW_VERSION_1_5 GLEW_GET_VAR(__GLEW_VERSION_1_5)
1658
1659 #endif /* GL_VERSION_1_5 */
1660
1661 /* ----------------------------- GL_VERSION_2_0 ---------------------------- */
1662
1663 #ifndef GL_VERSION_2_0
1664 #define GL_VERSION_2_0 1
1665
1666 #define GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
1667 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
1668 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
1669 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
1670 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
1671 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
1672 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
1673 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
1674 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
1675 #define GL_STENCIL_BACK_FUNC 0x8800
1676 #define GL_STENCIL_BACK_FAIL 0x8801
1677 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
1678 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
1679 #define GL_MAX_DRAW_BUFFERS 0x8824
1680 #define GL_DRAW_BUFFER0 0x8825
1681 #define GL_DRAW_BUFFER1 0x8826
1682 #define GL_DRAW_BUFFER2 0x8827
1683 #define GL_DRAW_BUFFER3 0x8828
1684 #define GL_DRAW_BUFFER4 0x8829
1685 #define GL_DRAW_BUFFER5 0x882A
1686 #define GL_DRAW_BUFFER6 0x882B
1687 #define GL_DRAW_BUFFER7 0x882C
1688 #define GL_DRAW_BUFFER8 0x882D
1689 #define GL_DRAW_BUFFER9 0x882E
1690 #define GL_DRAW_BUFFER10 0x882F
1691 #define GL_DRAW_BUFFER11 0x8830
1692 #define GL_DRAW_BUFFER12 0x8831
1693 #define GL_DRAW_BUFFER13 0x8832
1694 #define GL_DRAW_BUFFER14 0x8833
1695 #define GL_DRAW_BUFFER15 0x8834
1696 #define GL_BLEND_EQUATION_ALPHA 0x883D
1697 #define GL_POINT_SPRITE 0x8861
1698 #define GL_COORD_REPLACE 0x8862
1699 #define GL_MAX_VERTEX_ATTRIBS 0x8869
1700 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
1701 #define GL_MAX_TEXTURE_COORDS 0x8871
1702 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
1703 #define GL_FRAGMENT_SHADER 0x8B30
1704 #define GL_VERTEX_SHADER 0x8B31
1705 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
1706 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
1707 #define GL_MAX_VARYING_FLOATS 0x8B4B
1708 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
1709 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
1710 #define GL_SHADER_TYPE 0x8B4F
1711 #define GL_FLOAT_VEC2 0x8B50
1712 #define GL_FLOAT_VEC3 0x8B51
1713 #define GL_FLOAT_VEC4 0x8B52
1714 #define GL_INT_VEC2 0x8B53
1715 #define GL_INT_VEC3 0x8B54
1716 #define GL_INT_VEC4 0x8B55
1717 #define GL_BOOL 0x8B56
1718 #define GL_BOOL_VEC2 0x8B57
1719 #define GL_BOOL_VEC3 0x8B58
1720 #define GL_BOOL_VEC4 0x8B59
1721 #define GL_FLOAT_MAT2 0x8B5A
1722 #define GL_FLOAT_MAT3 0x8B5B
1723 #define GL_FLOAT_MAT4 0x8B5C
1724 #define GL_SAMPLER_1D 0x8B5D
1725 #define GL_SAMPLER_2D 0x8B5E
1726 #define GL_SAMPLER_3D 0x8B5F
1727 #define GL_SAMPLER_CUBE 0x8B60
1728 #define GL_SAMPLER_1D_SHADOW 0x8B61
1729 #define GL_SAMPLER_2D_SHADOW 0x8B62
1730 #define GL_DELETE_STATUS 0x8B80
1731 #define GL_COMPILE_STATUS 0x8B81
1732 #define GL_LINK_STATUS 0x8B82
1733 #define GL_VALIDATE_STATUS 0x8B83
1734 #define GL_INFO_LOG_LENGTH 0x8B84
1735 #define GL_ATTACHED_SHADERS 0x8B85
1736 #define GL_ACTIVE_UNIFORMS 0x8B86
1737 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
1738 #define GL_SHADER_SOURCE_LENGTH 0x8B88
1739 #define GL_ACTIVE_ATTRIBUTES 0x8B89
1740 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
1741 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
1742 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
1743 #define GL_CURRENT_PROGRAM 0x8B8D
1744 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
1745 #define GL_LOWER_LEFT 0x8CA1
1746 #define GL_UPPER_LEFT 0x8CA2
1747 #define GL_STENCIL_BACK_REF 0x8CA3
1748 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
1749 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
1750
1751 typedef char GLchar;
1752
1753 typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
1754 typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name);
1755 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum, GLenum);
1756 typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader);
1757 typedef GLuint (GLAPIENTRY * PFNGLCREATEPROGRAMPROC) (void);
1758 typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type);
1759 typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program);
1760 typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader);
1761 typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
1762 typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint);
1763 typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum* bufs);
1764 typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint);
1765 typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
1766 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
1767 typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders);
1768 typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name);
1769 typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
1770 typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* param);
1771 typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei* length, GLchar* infoLog);
1772 typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLint obj, GLsizei maxLength, GLsizei* length, GLchar* source);
1773 typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* param);
1774 typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name);
1775 typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params);
1776 typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params);
1777 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint, GLenum, GLvoid*);
1778 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVPROC) (GLuint, GLenum, GLdouble*);
1779 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint, GLenum, GLfloat*);
1780 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint, GLenum, GLint*);
1781 typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program);
1782 typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader);
1783 typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program);
1784 typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** strings, const GLint* lengths);
1785 typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
1786 typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum, GLuint);
1787 typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
1788 typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
1789 typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1790 typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
1791 typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* value);
1792 typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
1793 typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1794 typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
1795 typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* value);
1796 typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1797 typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1798 typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
1799 typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* value);
1800 typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1801 typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* value);
1802 typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1803 typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* value);
1804 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1805 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1806 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
1807 typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program);
1808 typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program);
1809 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
1810 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble* v);
1811 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
1812 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat* v);
1813 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
1814 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort* v);
1815 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
1816 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble* v);
1817 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
1818 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat* v);
1819 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
1820 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort* v);
1821 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1822 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble* v);
1823 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
1824 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat* v);
1825 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
1826 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort* v);
1827 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte* v);
1828 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint* v);
1829 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort* v);
1830 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
1831 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte* v);
1832 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint* v);
1833 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort* v);
1834 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte* v);
1835 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1836 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble* v);
1837 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
1838 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat* v);
1839 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint* v);
1840 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
1841 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort* v);
1842 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte* v);
1843 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint* v);
1844 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort* v);
1845 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* pointer);
1846
1847 #define glAttachShader GLEW_GET_FUN(__glewAttachShader)
1848 #define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation)
1849 #define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate)
1850 #define glCompileShader GLEW_GET_FUN(__glewCompileShader)
1851 #define glCreateProgram GLEW_GET_FUN(__glewCreateProgram)
1852 #define glCreateShader GLEW_GET_FUN(__glewCreateShader)
1853 #define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram)
1854 #define glDeleteShader GLEW_GET_FUN(__glewDeleteShader)
1855 #define glDetachShader GLEW_GET_FUN(__glewDetachShader)
1856 #define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray)
1857 #define glDrawBuffers GLEW_GET_FUN(__glewDrawBuffers)
1858 #define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray)
1859 #define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib)
1860 #define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform)
1861 #define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders)
1862 #define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation)
1863 #define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog)
1864 #define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv)
1865 #define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog)
1866 #define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource)
1867 #define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv)
1868 #define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation)
1869 #define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv)
1870 #define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv)
1871 #define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv)
1872 #define glGetVertexAttribdv GLEW_GET_FUN(__glewGetVertexAttribdv)
1873 #define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv)
1874 #define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv)
1875 #define glIsProgram GLEW_GET_FUN(__glewIsProgram)
1876 #define glIsShader GLEW_GET_FUN(__glewIsShader)
1877 #define glLinkProgram GLEW_GET_FUN(__glewLinkProgram)
1878 #define glShaderSource GLEW_GET_FUN(__glewShaderSource)
1879 #define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate)
1880 #define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate)
1881 #define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate)
1882 #define glUniform1f GLEW_GET_FUN(__glewUniform1f)
1883 #define glUniform1fv GLEW_GET_FUN(__glewUniform1fv)
1884 #define glUniform1i GLEW_GET_FUN(__glewUniform1i)
1885 #define glUniform1iv GLEW_GET_FUN(__glewUniform1iv)
1886 #define glUniform2f GLEW_GET_FUN(__glewUniform2f)
1887 #define glUniform2fv GLEW_GET_FUN(__glewUniform2fv)
1888 #define glUniform2i GLEW_GET_FUN(__glewUniform2i)
1889 #define glUniform2iv GLEW_GET_FUN(__glewUniform2iv)
1890 #define glUniform3f GLEW_GET_FUN(__glewUniform3f)
1891 #define glUniform3fv GLEW_GET_FUN(__glewUniform3fv)
1892 #define glUniform3i GLEW_GET_FUN(__glewUniform3i)
1893 #define glUniform3iv GLEW_GET_FUN(__glewUniform3iv)
1894 #define glUniform4f GLEW_GET_FUN(__glewUniform4f)
1895 #define glUniform4fv GLEW_GET_FUN(__glewUniform4fv)
1896 #define glUniform4i GLEW_GET_FUN(__glewUniform4i)
1897 #define glUniform4iv GLEW_GET_FUN(__glewUniform4iv)
1898 #define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv)
1899 #define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv)
1900 #define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv)
1901 #define glUseProgram GLEW_GET_FUN(__glewUseProgram)
1902 #define glValidateProgram GLEW_GET_FUN(__glewValidateProgram)
1903 #define glVertexAttrib1d GLEW_GET_FUN(__glewVertexAttrib1d)
1904 #define glVertexAttrib1dv GLEW_GET_FUN(__glewVertexAttrib1dv)
1905 #define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f)
1906 #define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv)
1907 #define glVertexAttrib1s GLEW_GET_FUN(__glewVertexAttrib1s)
1908 #define glVertexAttrib1sv GLEW_GET_FUN(__glewVertexAttrib1sv)
1909 #define glVertexAttrib2d GLEW_GET_FUN(__glewVertexAttrib2d)
1910 #define glVertexAttrib2dv GLEW_GET_FUN(__glewVertexAttrib2dv)
1911 #define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f)
1912 #define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv)
1913 #define glVertexAttrib2s GLEW_GET_FUN(__glewVertexAttrib2s)
1914 #define glVertexAttrib2sv GLEW_GET_FUN(__glewVertexAttrib2sv)
1915 #define glVertexAttrib3d GLEW_GET_FUN(__glewVertexAttrib3d)
1916 #define glVertexAttrib3dv GLEW_GET_FUN(__glewVertexAttrib3dv)
1917 #define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f)
1918 #define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv)
1919 #define glVertexAttrib3s GLEW_GET_FUN(__glewVertexAttrib3s)
1920 #define glVertexAttrib3sv GLEW_GET_FUN(__glewVertexAttrib3sv)
1921 #define glVertexAttrib4Nbv GLEW_GET_FUN(__glewVertexAttrib4Nbv)
1922 #define glVertexAttrib4Niv GLEW_GET_FUN(__glewVertexAttrib4Niv)
1923 #define glVertexAttrib4Nsv GLEW_GET_FUN(__glewVertexAttrib4Nsv)
1924 #define glVertexAttrib4Nub GLEW_GET_FUN(__glewVertexAttrib4Nub)
1925 #define glVertexAttrib4Nubv GLEW_GET_FUN(__glewVertexAttrib4Nubv)
1926 #define glVertexAttrib4Nuiv GLEW_GET_FUN(__glewVertexAttrib4Nuiv)
1927 #define glVertexAttrib4Nusv GLEW_GET_FUN(__glewVertexAttrib4Nusv)
1928 #define glVertexAttrib4bv GLEW_GET_FUN(__glewVertexAttrib4bv)
1929 #define glVertexAttrib4d GLEW_GET_FUN(__glewVertexAttrib4d)
1930 #define glVertexAttrib4dv GLEW_GET_FUN(__glewVertexAttrib4dv)
1931 #define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f)
1932 #define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv)
1933 #define glVertexAttrib4iv GLEW_GET_FUN(__glewVertexAttrib4iv)
1934 #define glVertexAttrib4s GLEW_GET_FUN(__glewVertexAttrib4s)
1935 #define glVertexAttrib4sv GLEW_GET_FUN(__glewVertexAttrib4sv)
1936 #define glVertexAttrib4ubv GLEW_GET_FUN(__glewVertexAttrib4ubv)
1937 #define glVertexAttrib4uiv GLEW_GET_FUN(__glewVertexAttrib4uiv)
1938 #define glVertexAttrib4usv GLEW_GET_FUN(__glewVertexAttrib4usv)
1939 #define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer)
1940
1941 #define GLEW_VERSION_2_0 GLEW_GET_VAR(__GLEW_VERSION_2_0)
1942
1943 #endif /* GL_VERSION_2_0 */
1944
1945 /* ----------------------------- GL_VERSION_2_1 ---------------------------- */
1946
1947 #ifndef GL_VERSION_2_1
1948 #define GL_VERSION_2_1 1
1949
1950 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
1951 #define GL_PIXEL_PACK_BUFFER 0x88EB
1952 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
1953 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
1954 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
1955 #define GL_FLOAT_MAT2x3 0x8B65
1956 #define GL_FLOAT_MAT2x4 0x8B66
1957 #define GL_FLOAT_MAT3x2 0x8B67
1958 #define GL_FLOAT_MAT3x4 0x8B68
1959 #define GL_FLOAT_MAT4x2 0x8B69
1960 #define GL_FLOAT_MAT4x3 0x8B6A
1961 #define GL_SRGB 0x8C40
1962 #define GL_SRGB8 0x8C41
1963 #define GL_SRGB_ALPHA 0x8C42
1964 #define GL_SRGB8_ALPHA8 0x8C43
1965 #define GL_SLUMINANCE_ALPHA 0x8C44
1966 #define GL_SLUMINANCE8_ALPHA8 0x8C45
1967 #define GL_SLUMINANCE 0x8C46
1968 #define GL_SLUMINANCE8 0x8C47
1969 #define GL_COMPRESSED_SRGB 0x8C48
1970 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
1971 #define GL_COMPRESSED_SLUMINANCE 0x8C4A
1972 #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
1973
1974 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1975 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1976 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1977 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1978 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1979 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1980
1981 #define glUniformMatrix2x3fv GLEW_GET_FUN(__glewUniformMatrix2x3fv)
1982 #define glUniformMatrix2x4fv GLEW_GET_FUN(__glewUniformMatrix2x4fv)
1983 #define glUniformMatrix3x2fv GLEW_GET_FUN(__glewUniformMatrix3x2fv)
1984 #define glUniformMatrix3x4fv GLEW_GET_FUN(__glewUniformMatrix3x4fv)
1985 #define glUniformMatrix4x2fv GLEW_GET_FUN(__glewUniformMatrix4x2fv)
1986 #define glUniformMatrix4x3fv GLEW_GET_FUN(__glewUniformMatrix4x3fv)
1987
1988 #define GLEW_VERSION_2_1 GLEW_GET_VAR(__GLEW_VERSION_2_1)
1989
1990 #endif /* GL_VERSION_2_1 */
1991
1992 /* ----------------------------- GL_VERSION_3_0 ---------------------------- */
1993
1994 #ifndef GL_VERSION_3_0
1995 #define GL_VERSION_3_0 1
1996
1997 #define GL_MAX_CLIP_DISTANCES GL_MAX_CLIP_PLANES
1998 #define GL_CLIP_DISTANCE5 GL_CLIP_PLANE5
1999 #define GL_CLIP_DISTANCE1 GL_CLIP_PLANE1
2000 #define GL_CLIP_DISTANCE3 GL_CLIP_PLANE3
2001 #define GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB
2002 #define GL_CLIP_DISTANCE0 GL_CLIP_PLANE0
2003 #define GL_CLIP_DISTANCE4 GL_CLIP_PLANE4
2004 #define GL_CLIP_DISTANCE2 GL_CLIP_PLANE2
2005 #define GL_MAX_VARYING_COMPONENTS GL_MAX_VARYING_FLOATS
2006 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
2007 #define GL_MAJOR_VERSION 0x821B
2008 #define GL_MINOR_VERSION 0x821C
2009 #define GL_NUM_EXTENSIONS 0x821D
2010 #define GL_CONTEXT_FLAGS 0x821E
2011 #define GL_DEPTH_BUFFER 0x8223
2012 #define GL_STENCIL_BUFFER 0x8224
2013 #define GL_COMPRESSED_RED 0x8225
2014 #define GL_COMPRESSED_RG 0x8226
2015 #define GL_RGBA32F 0x8814
2016 #define GL_RGB32F 0x8815
2017 #define GL_RGBA16F 0x881A
2018 #define GL_RGB16F 0x881B
2019 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
2020 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
2021 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
2022 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
2023 #define GL_CLAMP_VERTEX_COLOR 0x891A
2024 #define GL_CLAMP_FRAGMENT_COLOR 0x891B
2025 #define GL_CLAMP_READ_COLOR 0x891C
2026 #define GL_FIXED_ONLY 0x891D
2027 #define GL_TEXTURE_RED_TYPE 0x8C10
2028 #define GL_TEXTURE_GREEN_TYPE 0x8C11
2029 #define GL_TEXTURE_BLUE_TYPE 0x8C12
2030 #define GL_TEXTURE_ALPHA_TYPE 0x8C13
2031 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
2032 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15
2033 #define GL_TEXTURE_DEPTH_TYPE 0x8C16
2034 #define GL_UNSIGNED_NORMALIZED 0x8C17
2035 #define GL_TEXTURE_1D_ARRAY 0x8C18
2036 #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
2037 #define GL_TEXTURE_2D_ARRAY 0x8C1A
2038 #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
2039 #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
2040 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
2041 #define GL_R11F_G11F_B10F 0x8C3A
2042 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
2043 #define GL_RGB9_E5 0x8C3D
2044 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
2045 #define GL_TEXTURE_SHARED_SIZE 0x8C3F
2046 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
2047 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
2048 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
2049 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
2050 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
2051 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
2052 #define GL_PRIMITIVES_GENERATED 0x8C87
2053 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
2054 #define GL_RASTERIZER_DISCARD 0x8C89
2055 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
2056 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
2057 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
2058 #define GL_SEPARATE_ATTRIBS 0x8C8D
2059 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
2060 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
2061 #define GL_RGBA32UI 0x8D70
2062 #define GL_RGB32UI 0x8D71
2063 #define GL_RGBA16UI 0x8D76
2064 #define GL_RGB16UI 0x8D77
2065 #define GL_RGBA8UI 0x8D7C
2066 #define GL_RGB8UI 0x8D7D
2067 #define GL_RGBA32I 0x8D82
2068 #define GL_RGB32I 0x8D83
2069 #define GL_RGBA16I 0x8D88
2070 #define GL_RGB16I 0x8D89
2071 #define GL_RGBA8I 0x8D8E
2072 #define GL_RGB8I 0x8D8F
2073 #define GL_RED_INTEGER 0x8D94
2074 #define GL_GREEN_INTEGER 0x8D95
2075 #define GL_BLUE_INTEGER 0x8D96
2076 #define GL_ALPHA_INTEGER 0x8D97
2077 #define GL_RGB_INTEGER 0x8D98
2078 #define GL_RGBA_INTEGER 0x8D99
2079 #define GL_BGR_INTEGER 0x8D9A
2080 #define GL_BGRA_INTEGER 0x8D9B
2081 #define GL_SAMPLER_1D_ARRAY 0x8DC0
2082 #define GL_SAMPLER_2D_ARRAY 0x8DC1
2083 #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
2084 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
2085 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
2086 #define GL_UNSIGNED_INT_VEC2 0x8DC6
2087 #define GL_UNSIGNED_INT_VEC3 0x8DC7
2088 #define GL_UNSIGNED_INT_VEC4 0x8DC8
2089 #define GL_INT_SAMPLER_1D 0x8DC9
2090 #define GL_INT_SAMPLER_2D 0x8DCA
2091 #define GL_INT_SAMPLER_3D 0x8DCB
2092 #define GL_INT_SAMPLER_CUBE 0x8DCC
2093 #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
2094 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
2095 #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
2096 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
2097 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
2098 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
2099 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
2100 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
2101 #define GL_QUERY_WAIT 0x8E13
2102 #define GL_QUERY_NO_WAIT 0x8E14
2103 #define GL_QUERY_BY_REGION_WAIT 0x8E15
2104 #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
2105
2106 typedef void (GLAPIENTRY * PFNGLBEGINCONDITIONALRENDERPROC) (GLuint, GLenum);
2107 typedef void (GLAPIENTRY * PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum);
2108 typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONPROC) (GLuint, GLuint, const GLchar*);
2109 typedef void (GLAPIENTRY * PFNGLCLAMPCOLORPROC) (GLenum, GLenum);
2110 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFIPROC) (GLenum, GLint, GLfloat, GLint);
2111 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERFVPROC) (GLenum, GLint, const GLfloat*);
2112 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERIVPROC) (GLenum, GLint, const GLint*);
2113 typedef void (GLAPIENTRY * PFNGLCLEARBUFFERUIVPROC) (GLenum, GLint, const GLuint*);
2114 typedef void (GLAPIENTRY * PFNGLCOLORMASKIPROC) (GLuint, GLboolean, GLboolean, GLboolean, GLboolean);
2115 typedef void (GLAPIENTRY * PFNGLDISABLEIPROC) (GLenum, GLuint);
2116 typedef void (GLAPIENTRY * PFNGLENABLEIPROC) (GLenum, GLuint);
2117 typedef void (GLAPIENTRY * PFNGLENDCONDITIONALRENDERPROC) (void);
2118 typedef void (GLAPIENTRY * PFNGLENDTRANSFORMFEEDBACKPROC) (void);
2119 typedef void (GLAPIENTRY * PFNGLGETBOOLEANI_VPROC) (GLenum, GLuint, GLboolean*);
2120 typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATALOCATIONPROC) (GLuint, const GLchar*);
2121 typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGIPROC) (GLenum, GLuint);
2122 typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIIVPROC) (GLenum, GLenum, GLint*);
2123 typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIUIVPROC) (GLenum, GLenum, GLuint*);
2124 typedef void (GLAPIENTRY * PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint, GLuint, GLint*);
2125 typedef void (GLAPIENTRY * PFNGLGETUNIFORMUIVPROC) (GLuint, GLint, GLuint*);
2126 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIIVPROC) (GLuint, GLenum, GLint*);
2127 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint, GLenum, GLuint*);
2128 typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDIPROC) (GLenum, GLuint);
2129 typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIIVPROC) (GLenum, GLenum, const GLint*);
2130 typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIUIVPROC) (GLenum, GLenum, const GLuint*);
2131 typedef void (GLAPIENTRY * PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint, GLsizei, const GLchar **, GLenum);
2132 typedef void (GLAPIENTRY * PFNGLUNIFORM1UIPROC) (GLint, GLuint);
2133 typedef void (GLAPIENTRY * PFNGLUNIFORM1UIVPROC) (GLint, GLsizei, const GLuint*);
2134 typedef void (GLAPIENTRY * PFNGLUNIFORM2UIPROC) (GLint, GLuint, GLuint);
2135 typedef void (GLAPIENTRY * PFNGLUNIFORM2UIVPROC) (GLint, GLsizei, const GLuint*);
2136 typedef void (GLAPIENTRY * PFNGLUNIFORM3UIPROC) (GLint, GLuint, GLuint, GLuint);
2137 typedef void (GLAPIENTRY * PFNGLUNIFORM3UIVPROC) (GLint, GLsizei, const GLuint*);
2138 typedef void (GLAPIENTRY * PFNGLUNIFORM4UIPROC) (GLint, GLuint, GLuint, GLuint, GLuint);
2139 typedef void (GLAPIENTRY * PFNGLUNIFORM4UIVPROC) (GLint, GLsizei, const GLuint*);
2140 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IPROC) (GLuint, GLint);
2141 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1IVPROC) (GLuint, const GLint*);
2142 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIPROC) (GLuint, GLuint);
2143 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI1UIVPROC) (GLuint, const GLuint*);
2144 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IPROC) (GLuint, GLint, GLint);
2145 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2IVPROC) (GLuint, const GLint*);
2146 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIPROC) (GLuint, GLuint, GLuint);
2147 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI2UIVPROC) (GLuint, const GLuint*);
2148 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IPROC) (GLuint, GLint, GLint, GLint);
2149 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3IVPROC) (GLuint, const GLint*);
2150 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIPROC) (GLuint, GLuint, GLuint, GLuint);
2151 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI3UIVPROC) (GLuint, const GLuint*);
2152 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4BVPROC) (GLuint, const GLbyte*);
2153 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IPROC) (GLuint, GLint, GLint, GLint, GLint);
2154 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4IVPROC) (GLuint, const GLint*);
2155 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4SVPROC) (GLuint, const GLshort*);
2156 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UBVPROC) (GLuint, const GLubyte*);
2157 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIPROC) (GLuint, GLuint, GLuint, GLuint, GLuint);
2158 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4UIVPROC) (GLuint, const GLuint*);
2159 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBI4USVPROC) (GLuint, const GLushort*);
2160 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint, GLint, GLenum, GLsizei, const GLvoid*);
2161
2162 #define glBeginConditionalRender GLEW_GET_FUN(__glewBeginConditionalRender)
2163 #define glBeginTransformFeedback GLEW_GET_FUN(__glewBeginTransformFeedback)
2164 #define glBindFragDataLocation GLEW_GET_FUN(__glewBindFragDataLocation)
2165 #define glClampColor GLEW_GET_FUN(__glewClampColor)
2166 #define glClearBufferfi GLEW_GET_FUN(__glewClearBufferfi)
2167 #define glClearBufferfv GLEW_GET_FUN(__glewClearBufferfv)
2168 #define glClearBufferiv GLEW_GET_FUN(__glewClearBufferiv)
2169 #define glClearBufferuiv GLEW_GET_FUN(__glewClearBufferuiv)
2170 #define glColorMaski GLEW_GET_FUN(__glewColorMaski)
2171 #define glDisablei GLEW_GET_FUN(__glewDisablei)
2172 #define glEnablei GLEW_GET_FUN(__glewEnablei)
2173 #define glEndConditionalRender GLEW_GET_FUN(__glewEndConditionalRender)
2174 #define glEndTransformFeedback GLEW_GET_FUN(__glewEndTransformFeedback)
2175 #define glGetBooleani_v GLEW_GET_FUN(__glewGetBooleani_v)
2176 #define glGetFragDataLocation GLEW_GET_FUN(__glewGetFragDataLocation)
2177 #define glGetStringi GLEW_GET_FUN(__glewGetStringi)
2178 #define glGetTexParameterIiv GLEW_GET_FUN(__glewGetTexParameterIiv)
2179 #define glGetTexParameterIuiv GLEW_GET_FUN(__glewGetTexParameterIuiv)
2180 #define glGetTransformFeedbackVarying GLEW_GET_FUN(__glewGetTransformFeedbackVarying)
2181 #define glGetUniformuiv GLEW_GET_FUN(__glewGetUniformuiv)
2182 #define glGetVertexAttribIiv GLEW_GET_FUN(__glewGetVertexAttribIiv)
2183 #define glGetVertexAttribIuiv GLEW_GET_FUN(__glewGetVertexAttribIuiv)
2184 #define glIsEnabledi GLEW_GET_FUN(__glewIsEnabledi)
2185 #define glTexParameterIiv GLEW_GET_FUN(__glewTexParameterIiv)
2186 #define glTexParameterIuiv GLEW_GET_FUN(__glewTexParameterIuiv)
2187 #define glTransformFeedbackVaryings GLEW_GET_FUN(__glewTransformFeedbackVaryings)
2188 #define glUniform1ui GLEW_GET_FUN(__glewUniform1ui)
2189 #define glUniform1uiv GLEW_GET_FUN(__glewUniform1uiv)
2190 #define glUniform2ui GLEW_GET_FUN(__glewUniform2ui)
2191 #define glUniform2uiv GLEW_GET_FUN(__glewUniform2uiv)
2192 #define glUniform3ui GLEW_GET_FUN(__glewUniform3ui)
2193 #define glUniform3uiv GLEW_GET_FUN(__glewUniform3uiv)
2194 #define glUniform4ui GLEW_GET_FUN(__glewUniform4ui)
2195 #define glUniform4uiv GLEW_GET_FUN(__glewUniform4uiv)
2196 #define glVertexAttribI1i GLEW_GET_FUN(__glewVertexAttribI1i)
2197 #define glVertexAttribI1iv GLEW_GET_FUN(__glewVertexAttribI1iv)
2198 #define glVertexAttribI1ui GLEW_GET_FUN(__glewVertexAttribI1ui)
2199 #define glVertexAttribI1uiv GLEW_GET_FUN(__glewVertexAttribI1uiv)
2200 #define glVertexAttribI2i GLEW_GET_FUN(__glewVertexAttribI2i)
2201 #define glVertexAttribI2iv GLEW_GET_FUN(__glewVertexAttribI2iv)
2202 #define glVertexAttribI2ui GLEW_GET_FUN(__glewVertexAttribI2ui)
2203 #define glVertexAttribI2uiv GLEW_GET_FUN(__glewVertexAttribI2uiv)
2204 #define glVertexAttribI3i GLEW_GET_FUN(__glewVertexAttribI3i)
2205 #define glVertexAttribI3iv GLEW_GET_FUN(__glewVertexAttribI3iv)
2206 #define glVertexAttribI3ui GLEW_GET_FUN(__glewVertexAttribI3ui)
2207 #define glVertexAttribI3uiv GLEW_GET_FUN(__glewVertexAttribI3uiv)
2208 #define glVertexAttribI4bv GLEW_GET_FUN(__glewVertexAttribI4bv)
2209 #define glVertexAttribI4i GLEW_GET_FUN(__glewVertexAttribI4i)
2210 #define glVertexAttribI4iv GLEW_GET_FUN(__glewVertexAttribI4iv)
2211 #define glVertexAttribI4sv GLEW_GET_FUN(__glewVertexAttribI4sv)
2212 #define glVertexAttribI4ubv GLEW_GET_FUN(__glewVertexAttribI4ubv)
2213 #define glVertexAttribI4ui GLEW_GET_FUN(__glewVertexAttribI4ui)
2214 #define glVertexAttribI4uiv GLEW_GET_FUN(__glewVertexAttribI4uiv)
2215 #define glVertexAttribI4usv GLEW_GET_FUN(__glewVertexAttribI4usv)
2216 #define glVertexAttribIPointer GLEW_GET_FUN(__glewVertexAttribIPointer)
2217
2218 #define GLEW_VERSION_3_0 GLEW_GET_VAR(__GLEW_VERSION_3_0)
2219
2220 #endif /* GL_VERSION_3_0 */
2221
2222 /* ----------------------------- GL_VERSION_3_1 ---------------------------- */
2223
2224 #ifndef GL_VERSION_3_1
2225 #define GL_VERSION_3_1 1
2226
2227 #define GL_TEXTURE_RECTANGLE 0x84F5
2228 #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
2229 #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
2230 #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
2231 #define GL_SAMPLER_2D_RECT 0x8B63
2232 #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
2233 #define GL_TEXTURE_BUFFER 0x8C2A
2234 #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
2235 #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
2236 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
2237 #define GL_TEXTURE_BUFFER_FORMAT 0x8C2E
2238 #define GL_SAMPLER_BUFFER 0x8DC2
2239 #define GL_INT_SAMPLER_2D_RECT 0x8DCD
2240 #define GL_INT_SAMPLER_BUFFER 0x8DD0
2241 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
2242 #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
2243 #define GL_RED_SNORM 0x8F90
2244 #define GL_RG_SNORM 0x8F91
2245 #define GL_RGB_SNORM 0x8F92
2246 #define GL_RGBA_SNORM 0x8F93
2247 #define GL_R8_SNORM 0x8F94
2248 #define GL_RG8_SNORM 0x8F95
2249 #define GL_RGB8_SNORM 0x8F96
2250 #define GL_RGBA8_SNORM 0x8F97
2251 #define GL_R16_SNORM 0x8F98
2252 #define GL_RG16_SNORM 0x8F99
2253 #define GL_RGB16_SNORM 0x8F9A
2254 #define GL_RGBA16_SNORM 0x8F9B
2255 #define GL_SIGNED_NORMALIZED 0x8F9C
2256 #define GL_PRIMITIVE_RESTART 0x8F9D
2257 #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
2258 #define GL_BUFFER_ACCESS_FLAGS 0x911F
2259 #define GL_BUFFER_MAP_LENGTH 0x9120
2260 #define GL_BUFFER_MAP_OFFSET 0x9121
2261
2262 typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum, GLint, GLsizei, GLsizei);
2263 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum, GLsizei, GLenum, const GLvoid*, GLsizei);
2264 typedef void (GLAPIENTRY * PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint);
2265 typedef void (GLAPIENTRY * PFNGLTEXBUFFERPROC) (GLenum, GLenum, GLuint);
2266
2267 #define glDrawArraysInstanced GLEW_GET_FUN(__glewDrawArraysInstanced)
2268 #define glDrawElementsInstanced GLEW_GET_FUN(__glewDrawElementsInstanced)
2269 #define glPrimitiveRestartIndex GLEW_GET_FUN(__glewPrimitiveRestartIndex)
2270 #define glTexBuffer GLEW_GET_FUN(__glewTexBuffer)
2271
2272 #define GLEW_VERSION_3_1 GLEW_GET_VAR(__GLEW_VERSION_3_1)
2273
2274 #endif /* GL_VERSION_3_1 */
2275
2276 /* ----------------------------- GL_VERSION_3_2 ---------------------------- */
2277
2278 #ifndef GL_VERSION_3_2
2279 #define GL_VERSION_3_2 1
2280
2281 #define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
2282 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
2283 #define GL_LINES_ADJACENCY 0x000A
2284 #define GL_LINE_STRIP_ADJACENCY 0x000B
2285 #define GL_TRIANGLES_ADJACENCY 0x000C
2286 #define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
2287 #define GL_PROGRAM_POINT_SIZE 0x8642
2288 #define GL_GEOMETRY_VERTICES_OUT 0x8916
2289 #define GL_GEOMETRY_INPUT_TYPE 0x8917
2290 #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
2291 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
2292 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
2293 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
2294 #define GL_GEOMETRY_SHADER 0x8DD9
2295 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
2296 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
2297 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
2298 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
2299 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
2300 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
2301 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
2302 #define GL_CONTEXT_PROFILE_MASK 0x9126
2303
2304 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum, GLenum, GLuint, GLint);
2305 typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum, GLenum, GLint64 *);
2306 typedef void (GLAPIENTRY * PFNGLGETINTEGER64I_VPROC) (GLenum, GLuint, GLint64 *);
2307
2308 #define glFramebufferTexture GLEW_GET_FUN(__glewFramebufferTexture)
2309 #define glGetBufferParameteri64v GLEW_GET_FUN(__glewGetBufferParameteri64v)
2310 #define glGetInteger64i_v GLEW_GET_FUN(__glewGetInteger64i_v)
2311
2312 #define GLEW_VERSION_3_2 GLEW_GET_VAR(__GLEW_VERSION_3_2)
2313
2314 #endif /* GL_VERSION_3_2 */
2315
2316 /* ----------------------------- GL_VERSION_3_3 ---------------------------- */
2317
2318 #ifndef GL_VERSION_3_3
2319 #define GL_VERSION_3_3 1
2320
2321 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
2322 #define GL_ANY_SAMPLES_PASSED 0x8C2F
2323 #define GL_TEXTURE_SWIZZLE_R 0x8E42
2324 #define GL_TEXTURE_SWIZZLE_G 0x8E43
2325 #define GL_TEXTURE_SWIZZLE_B 0x8E44
2326 #define GL_TEXTURE_SWIZZLE_A 0x8E45
2327 #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
2328 #define GL_RGB10_A2UI 0x906F
2329
2330 #define GLEW_VERSION_3_3 GLEW_GET_VAR(__GLEW_VERSION_3_3)
2331
2332 #endif /* GL_VERSION_3_3 */
2333
2334 /* ----------------------------- GL_VERSION_4_0 ---------------------------- */
2335
2336 #ifndef GL_VERSION_4_0
2337 #define GL_VERSION_4_0 1
2338
2339 #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
2340 #define GL_SAMPLE_SHADING 0x8C36
2341 #define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
2342 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
2343 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
2344 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
2345 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
2346 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
2347 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
2348 #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F
2349 #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
2350 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
2351 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
2352 #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
2353 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
2354 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
2355 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
2356
2357 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2358 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
2359 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2360 typedef void (GLAPIENTRY * PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
2361 typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGPROC) (GLclampf value);
2362
2363 #define glBlendEquationSeparatei GLEW_GET_FUN(__glewBlendEquationSeparatei)
2364 #define glBlendEquationi GLEW_GET_FUN(__glewBlendEquationi)
2365 #define glBlendFuncSeparatei GLEW_GET_FUN(__glewBlendFuncSeparatei)
2366 #define glBlendFunci GLEW_GET_FUN(__glewBlendFunci)
2367 #define glMinSampleShading GLEW_GET_FUN(__glewMinSampleShading)
2368
2369 #define GLEW_VERSION_4_0 GLEW_GET_VAR(__GLEW_VERSION_4_0)
2370
2371 #endif /* GL_VERSION_4_0 */
2372
2373 /* -------------------------- GL_3DFX_multisample -------------------------- */
2374
2375 #ifndef GL_3DFX_multisample
2376 #define GL_3DFX_multisample 1
2377
2378 #define GL_MULTISAMPLE_3DFX 0x86B2
2379 #define GL_SAMPLE_BUFFERS_3DFX 0x86B3
2380 #define GL_SAMPLES_3DFX 0x86B4
2381 #define GL_MULTISAMPLE_BIT_3DFX 0x20000000
2382
2383 #define GLEW_3DFX_multisample GLEW_GET_VAR(__GLEW_3DFX_multisample)
2384
2385 #endif /* GL_3DFX_multisample */
2386
2387 /* ---------------------------- GL_3DFX_tbuffer ---------------------------- */
2388
2389 #ifndef GL_3DFX_tbuffer
2390 #define GL_3DFX_tbuffer 1
2391
2392 typedef void (GLAPIENTRY * PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
2393
2394 #define glTbufferMask3DFX GLEW_GET_FUN(__glewTbufferMask3DFX)
2395
2396 #define GLEW_3DFX_tbuffer GLEW_GET_VAR(__GLEW_3DFX_tbuffer)
2397
2398 #endif /* GL_3DFX_tbuffer */
2399
2400 /* -------------------- GL_3DFX_texture_compression_FXT1 ------------------- */
2401
2402 #ifndef GL_3DFX_texture_compression_FXT1
2403 #define GL_3DFX_texture_compression_FXT1 1
2404
2405 #define GL_COMPRESSED_RGB_FXT1_3DFX 0x86B0
2406 #define GL_COMPRESSED_RGBA_FXT1_3DFX 0x86B1
2407
2408 #define GLEW_3DFX_texture_compression_FXT1 GLEW_GET_VAR(__GLEW_3DFX_texture_compression_FXT1)
2409
2410 #endif /* GL_3DFX_texture_compression_FXT1 */
2411
2412 /* ----------------------- GL_AMD_conservative_depth ----------------------- */
2413
2414 #ifndef GL_AMD_conservative_depth
2415 #define GL_AMD_conservative_depth 1
2416
2417 #define GLEW_AMD_conservative_depth GLEW_GET_VAR(__GLEW_AMD_conservative_depth)
2418
2419 #endif /* GL_AMD_conservative_depth */
2420
2421 /* ----------------------- GL_AMD_draw_buffers_blend ----------------------- */
2422
2423 #ifndef GL_AMD_draw_buffers_blend
2424 #define GL_AMD_draw_buffers_blend 1
2425
2426 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
2427 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2428 typedef void (GLAPIENTRY * PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
2429 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2430
2431 #define glBlendEquationIndexedAMD GLEW_GET_FUN(__glewBlendEquationIndexedAMD)
2432 #define glBlendEquationSeparateIndexedAMD GLEW_GET_FUN(__glewBlendEquationSeparateIndexedAMD)
2433 #define glBlendFuncIndexedAMD GLEW_GET_FUN(__glewBlendFuncIndexedAMD)
2434 #define glBlendFuncSeparateIndexedAMD GLEW_GET_FUN(__glewBlendFuncSeparateIndexedAMD)
2435
2436 #define GLEW_AMD_draw_buffers_blend GLEW_GET_VAR(__GLEW_AMD_draw_buffers_blend)
2437
2438 #endif /* GL_AMD_draw_buffers_blend */
2439
2440 /* ----------------------- GL_AMD_performance_monitor ---------------------- */
2441
2442 #ifndef GL_AMD_performance_monitor
2443 #define GL_AMD_performance_monitor 1
2444
2445 #define GL_UNSIGNED_INT 0x1405
2446 #define GL_FLOAT 0x1406
2447 #define GL_COUNTER_TYPE_AMD 0x8BC0
2448 #define GL_COUNTER_RANGE_AMD 0x8BC1
2449 #define GL_UNSIGNED_INT64_AMD 0x8BC2
2450 #define GL_PERCENTAGE_AMD 0x8BC3
2451 #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
2452 #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
2453 #define GL_PERFMON_RESULT_AMD 0x8BC6
2454
2455 typedef void (GLAPIENTRY * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
2456 typedef void (GLAPIENTRY * PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors);
2457 typedef void (GLAPIENTRY * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
2458 typedef void (GLAPIENTRY * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors);
2459 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint *bytesWritten);
2460 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void* data);
2461 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, char *counterString);
2462 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint* numCounters, GLint *maxActiveCounters, GLsizei countersSize, GLuint *counters);
2463 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, char *groupString);
2464 typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint *groups);
2465 typedef void (GLAPIENTRY * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList);
2466
2467 #define glBeginPerfMonitorAMD GLEW_GET_FUN(__glewBeginPerfMonitorAMD)
2468 #define glDeletePerfMonitorsAMD GLEW_GET_FUN(__glewDeletePerfMonitorsAMD)
2469 #define glEndPerfMonitorAMD GLEW_GET_FUN(__glewEndPerfMonitorAMD)
2470 #define glGenPerfMonitorsAMD GLEW_GET_FUN(__glewGenPerfMonitorsAMD)
2471 #define glGetPerfMonitorCounterDataAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterDataAMD)
2472 #define glGetPerfMonitorCounterInfoAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterInfoAMD)
2473 #define glGetPerfMonitorCounterStringAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterStringAMD)
2474 #define glGetPerfMonitorCountersAMD GLEW_GET_FUN(__glewGetPerfMonitorCountersAMD)
2475 #define glGetPerfMonitorGroupStringAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupStringAMD)
2476 #define glGetPerfMonitorGroupsAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupsAMD)
2477 #define glSelectPerfMonitorCountersAMD GLEW_GET_FUN(__glewSelectPerfMonitorCountersAMD)
2478
2479 #define GLEW_AMD_performance_monitor GLEW_GET_VAR(__GLEW_AMD_performance_monitor)
2480
2481 #endif /* GL_AMD_performance_monitor */
2482
2483 /* ------------------ GL_AMD_seamless_cubemap_per_texture ------------------ */
2484
2485 #ifndef GL_AMD_seamless_cubemap_per_texture
2486 #define GL_AMD_seamless_cubemap_per_texture 1
2487
2488 #define GL_TEXTURE_CUBE_MAP_SEAMLESS_ARB 0x884F
2489
2490 #define GLEW_AMD_seamless_cubemap_per_texture GLEW_GET_VAR(__GLEW_AMD_seamless_cubemap_per_texture)
2491
2492 #endif /* GL_AMD_seamless_cubemap_per_texture */
2493
2494 /* ---------------------- GL_AMD_shader_stencil_export --------------------- */
2495
2496 #ifndef GL_AMD_shader_stencil_export
2497 #define GL_AMD_shader_stencil_export 1
2498
2499 #define GLEW_AMD_shader_stencil_export GLEW_GET_VAR(__GLEW_AMD_shader_stencil_export)
2500
2501 #endif /* GL_AMD_shader_stencil_export */
2502
2503 /* ------------------------ GL_AMD_texture_texture4 ------------------------ */
2504
2505 #ifndef GL_AMD_texture_texture4
2506 #define GL_AMD_texture_texture4 1
2507
2508 #define GLEW_AMD_texture_texture4 GLEW_GET_VAR(__GLEW_AMD_texture_texture4)
2509
2510 #endif /* GL_AMD_texture_texture4 */
2511
2512 /* -------------------- GL_AMD_vertex_shader_tessellator ------------------- */
2513
2514 #ifndef GL_AMD_vertex_shader_tessellator
2515 #define GL_AMD_vertex_shader_tessellator 1
2516
2517 #define GL_SAMPLER_BUFFER_AMD 0x9001
2518 #define GL_INT_SAMPLER_BUFFER_AMD 0x9002
2519 #define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
2520 #define GL_TESSELLATION_MODE_AMD 0x9004
2521 #define GL_TESSELLATION_FACTOR_AMD 0x9005
2522 #define GL_DISCRETE_AMD 0x9006
2523 #define GL_CONTINUOUS_AMD 0x9007
2524
2525 typedef void (GLAPIENTRY * PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
2526 typedef void (GLAPIENTRY * PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
2527
2528 #define glTessellationFactorAMD GLEW_GET_FUN(__glewTessellationFactorAMD)
2529 #define glTessellationModeAMD GLEW_GET_FUN(__glewTessellationModeAMD)
2530
2531 #define GLEW_AMD_vertex_shader_tessellator GLEW_GET_VAR(__GLEW_AMD_vertex_shader_tessellator)
2532
2533 #endif /* GL_AMD_vertex_shader_tessellator */
2534
2535 /* ----------------------- GL_APPLE_aux_depth_stencil ---------------------- */
2536
2537 #ifndef GL_APPLE_aux_depth_stencil
2538 #define GL_APPLE_aux_depth_stencil 1
2539
2540 #define GL_AUX_DEPTH_STENCIL_APPLE 0x8A14
2541
2542 #define GLEW_APPLE_aux_depth_stencil GLEW_GET_VAR(__GLEW_APPLE_aux_depth_stencil)
2543
2544 #endif /* GL_APPLE_aux_depth_stencil */
2545
2546 /* ------------------------ GL_APPLE_client_storage ------------------------ */
2547
2548 #ifndef GL_APPLE_client_storage
2549 #define GL_APPLE_client_storage 1
2550
2551 #define GL_UNPACK_CLIENT_STORAGE_APPLE 0x85B2
2552
2553 #define GLEW_APPLE_client_storage GLEW_GET_VAR(__GLEW_APPLE_client_storage)
2554
2555 #endif /* GL_APPLE_client_storage */
2556
2557 /* ------------------------- GL_APPLE_element_array ------------------------ */
2558
2559 #ifndef GL_APPLE_element_array
2560 #define GL_APPLE_element_array 1
2561
2562 #define GL_ELEMENT_ARRAY_APPLE 0x8A0C
2563 #define GL_ELEMENT_ARRAY_TYPE_APPLE 0x8A0D
2564 #define GL_ELEMENT_ARRAY_POINTER_APPLE 0x8A0E
2565
2566 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
2567 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
2568 typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void* pointer);
2569 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount);
2570 typedef void (GLAPIENTRY * PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint* first, const GLsizei *count, GLsizei primcount);
2571
2572 #define glDrawElementArrayAPPLE GLEW_GET_FUN(__glewDrawElementArrayAPPLE)
2573 #define glDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewDrawRangeElementArrayAPPLE)
2574 #define glElementPointerAPPLE GLEW_GET_FUN(__glewElementPointerAPPLE)
2575 #define glMultiDrawElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawElementArrayAPPLE)
2576 #define glMultiDrawRangeElementArrayAPPLE GLEW_GET_FUN(__glewMultiDrawRangeElementArrayAPPLE)
2577
2578 #define GLEW_APPLE_element_array GLEW_GET_VAR(__GLEW_APPLE_element_array)
2579
2580 #endif /* GL_APPLE_element_array */
2581
2582 /* ----------------------------- GL_APPLE_fence ---------------------------- */
2583
2584 #ifndef GL_APPLE_fence
2585 #define GL_APPLE_fence 1
2586
2587 #define GL_DRAW_PIXELS_APPLE 0x8A0A
2588 #define GL_FENCE_APPLE 0x8A0B
2589
2590 typedef void (GLAPIENTRY * PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint* fences);
2591 typedef void (GLAPIENTRY * PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
2592 typedef void (GLAPIENTRY * PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
2593 typedef void (GLAPIENTRY * PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint* fences);
2594 typedef GLboolean (GLAPIENTRY * PFNGLISFENCEAPPLEPROC) (GLuint fence);
2595 typedef void (GLAPIENTRY * PFNGLSETFENCEAPPLEPROC) (GLuint fence);
2596 typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
2597 typedef GLboolean (GLAPIENTRY * PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
2598
2599 #define glDeleteFencesAPPLE GLEW_GET_FUN(__glewDeleteFencesAPPLE)
2600 #define glFinishFenceAPPLE GLEW_GET_FUN(__glewFinishFenceAPPLE)
2601 #define glFinishObjectAPPLE GLEW_GET_FUN(__glewFinishObjectAPPLE)
2602 #define glGenFencesAPPLE GLEW_GET_FUN(__glewGenFencesAPPLE)
2603 #define glIsFenceAPPLE GLEW_GET_FUN(__glewIsFenceAPPLE)
2604 #define glSetFenceAPPLE GLEW_GET_FUN(__glewSetFenceAPPLE)
2605 #define glTestFenceAPPLE GLEW_GET_FUN(__glewTestFenceAPPLE)
2606 #define glTestObjectAPPLE GLEW_GET_FUN(__glewTestObjectAPPLE)
2607
2608 #define GLEW_APPLE_fence GLEW_GET_VAR(__GLEW_APPLE_fence)
2609
2610 #endif /* GL_APPLE_fence */
2611
2612 /* ------------------------- GL_APPLE_float_pixels ------------------------- */
2613
2614 #ifndef GL_APPLE_float_pixels
2615 #define GL_APPLE_float_pixels 1
2616
2617 #define GL_HALF_APPLE 0x140B
2618 #define GL_RGBA_FLOAT32_APPLE 0x8814
2619 #define GL_RGB_FLOAT32_APPLE 0x8815
2620 #define GL_ALPHA_FLOAT32_APPLE 0x8816
2621 #define GL_INTENSITY_FLOAT32_APPLE 0x8817
2622 #define GL_LUMINANCE_FLOAT32_APPLE 0x8818
2623 #define GL_LUMINANCE_ALPHA_FLOAT32_APPLE 0x8819
2624 #define GL_RGBA_FLOAT16_APPLE 0x881A
2625 #define GL_RGB_FLOAT16_APPLE 0x881B
2626 #define GL_ALPHA_FLOAT16_APPLE 0x881C
2627 #define GL_INTENSITY_FLOAT16_APPLE 0x881D
2628 #define GL_LUMINANCE_FLOAT16_APPLE 0x881E
2629 #define GL_LUMINANCE_ALPHA_FLOAT16_APPLE 0x881F
2630 #define GL_COLOR_FLOAT_APPLE 0x8A0F
2631
2632 #define GLEW_APPLE_float_pixels GLEW_GET_VAR(__GLEW_APPLE_float_pixels)
2633
2634 #endif /* GL_APPLE_float_pixels */
2635
2636 /* ---------------------- GL_APPLE_flush_buffer_range ---------------------- */
2637
2638 #ifndef GL_APPLE_flush_buffer_range
2639 #define GL_APPLE_flush_buffer_range 1
2640
2641 #define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
2642 #define GL_BUFFER_FLUSHING_UNMAP_APPLE 0x8A13
2643
2644 typedef void (GLAPIENTRY * PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
2645 typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
2646
2647 #define glBufferParameteriAPPLE GLEW_GET_FUN(__glewBufferParameteriAPPLE)
2648 #define glFlushMappedBufferRangeAPPLE GLEW_GET_FUN(__glewFlushMappedBufferRangeAPPLE)
2649
2650 #define GLEW_APPLE_flush_buffer_range GLEW_GET_VAR(__GLEW_APPLE_flush_buffer_range)
2651
2652 #endif /* GL_APPLE_flush_buffer_range */
2653
2654 /* ----------------------- GL_APPLE_object_purgeable ----------------------- */
2655
2656 #ifndef GL_APPLE_object_purgeable
2657 #define GL_APPLE_object_purgeable 1
2658
2659 #define GL_BUFFER_OBJECT_APPLE 0x85B3
2660 #define GL_RELEASED_APPLE 0x8A19
2661 #define GL_VOLATILE_APPLE 0x8A1A
2662 #define GL_RETAINED_APPLE 0x8A1B
2663 #define GL_UNDEFINED_APPLE 0x8A1C
2664 #define GL_PURGEABLE_APPLE 0x8A1D
2665
2666 typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint* params);
2667 typedef GLenum (GLAPIENTRY * PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
2668 typedef GLenum (GLAPIENTRY * PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
2669
2670 #define glGetObjectParameterivAPPLE GLEW_GET_FUN(__glewGetObjectParameterivAPPLE)
2671 #define glObjectPurgeableAPPLE GLEW_GET_FUN(__glewObjectPurgeableAPPLE)
2672 #define glObjectUnpurgeableAPPLE GLEW_GET_FUN(__glewObjectUnpurgeableAPPLE)
2673
2674 #define GLEW_APPLE_object_purgeable GLEW_GET_VAR(__GLEW_APPLE_object_purgeable)
2675
2676 #endif /* GL_APPLE_object_purgeable */
2677
2678 /* ------------------------- GL_APPLE_pixel_buffer ------------------------- */
2679
2680 #ifndef GL_APPLE_pixel_buffer
2681 #define GL_APPLE_pixel_buffer 1
2682
2683 #define GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10
2684
2685 #define GLEW_APPLE_pixel_buffer GLEW_GET_VAR(__GLEW_APPLE_pixel_buffer)
2686
2687 #endif /* GL_APPLE_pixel_buffer */
2688
2689 /* ---------------------------- GL_APPLE_rgb_422 --------------------------- */
2690
2691 #ifndef GL_APPLE_rgb_422
2692 #define GL_APPLE_rgb_422 1
2693
2694 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
2695 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
2696 #define GL_RGB_422_APPLE 0x8A1F
2697
2698 #define GLEW_APPLE_rgb_422 GLEW_GET_VAR(__GLEW_APPLE_rgb_422)
2699
2700 #endif /* GL_APPLE_rgb_422 */
2701
2702 /* --------------------------- GL_APPLE_row_bytes -------------------------- */
2703
2704 #ifndef GL_APPLE_row_bytes
2705 #define GL_APPLE_row_bytes 1
2706
2707 #define GL_PACK_ROW_BYTES_APPLE 0x8A15
2708 #define GL_UNPACK_ROW_BYTES_APPLE 0x8A16
2709
2710 #define GLEW_APPLE_row_bytes GLEW_GET_VAR(__GLEW_APPLE_row_bytes)
2711
2712 #endif /* GL_APPLE_row_bytes */
2713
2714 /* ------------------------ GL_APPLE_specular_vector ----------------------- */
2715
2716 #ifndef GL_APPLE_specular_vector
2717 #define GL_APPLE_specular_vector 1
2718
2719 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
2720
2721 #define GLEW_APPLE_specular_vector GLEW_GET_VAR(__GLEW_APPLE_specular_vector)
2722
2723 #endif /* GL_APPLE_specular_vector */
2724
2725 /* ------------------------- GL_APPLE_texture_range ------------------------ */
2726
2727 #ifndef GL_APPLE_texture_range
2728 #define GL_APPLE_texture_range 1
2729
2730 #define GL_TEXTURE_RANGE_LENGTH_APPLE 0x85B7
2731 #define GL_TEXTURE_RANGE_POINTER_APPLE 0x85B8
2732 #define GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
2733 #define GL_STORAGE_PRIVATE_APPLE 0x85BD
2734 #define GL_STORAGE_CACHED_APPLE 0x85BE
2735 #define GL_STORAGE_SHARED_APPLE 0x85BF
2736
2737 typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid **params);
2738 typedef void (GLAPIENTRY * PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, GLvoid *pointer);
2739
2740 #define glGetTexParameterPointervAPPLE GLEW_GET_FUN(__glewGetTexParameterPointervAPPLE)
2741 #define glTextureRangeAPPLE GLEW_GET_FUN(__glewTextureRangeAPPLE)
2742
2743 #define GLEW_APPLE_texture_range GLEW_GET_VAR(__GLEW_APPLE_texture_range)
2744
2745 #endif /* GL_APPLE_texture_range */
2746
2747 /* ------------------------ GL_APPLE_transform_hint ------------------------ */
2748
2749 #ifndef GL_APPLE_transform_hint
2750 #define GL_APPLE_transform_hint 1
2751
2752 #define GL_TRANSFORM_HINT_APPLE 0x85B1
2753
2754 #define GLEW_APPLE_transform_hint GLEW_GET_VAR(__GLEW_APPLE_transform_hint)
2755
2756 #endif /* GL_APPLE_transform_hint */
2757
2758 /* ---------------------- GL_APPLE_vertex_array_object --------------------- */
2759
2760 #ifndef GL_APPLE_vertex_array_object
2761 #define GL_APPLE_vertex_array_object 1
2762
2763 #define GL_VERTEX_ARRAY_BINDING_APPLE 0x85B5
2764
2765 typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
2766 typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays);
2767 typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint* arrays);
2768 typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
2769
2770 #define glBindVertexArrayAPPLE GLEW_GET_FUN(__glewBindVertexArrayAPPLE)
2771 #define glDeleteVertexArraysAPPLE GLEW_GET_FUN(__glewDeleteVertexArraysAPPLE)
2772 #define glGenVertexArraysAPPLE GLEW_GET_FUN(__glewGenVertexArraysAPPLE)
2773 #define glIsVertexArrayAPPLE GLEW_GET_FUN(__glewIsVertexArrayAPPLE)
2774
2775 #define GLEW_APPLE_vertex_array_object GLEW_GET_VAR(__GLEW_APPLE_vertex_array_object)
2776
2777 #endif /* GL_APPLE_vertex_array_object */
2778
2779 /* ---------------------- GL_APPLE_vertex_array_range ---------------------- */
2780
2781 #ifndef GL_APPLE_vertex_array_range
2782 #define GL_APPLE_vertex_array_range 1
2783
2784 #define GL_VERTEX_ARRAY_RANGE_APPLE 0x851D
2785 #define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
2786 #define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
2787 #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_APPLE 0x8520
2788 #define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
2789 #define GL_STORAGE_CLIENT_APPLE 0x85B4
2790 #define GL_STORAGE_CACHED_APPLE 0x85BE
2791 #define GL_STORAGE_SHARED_APPLE 0x85BF
2792
2793 typedef void (GLAPIENTRY * PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer);
2794 typedef void (GLAPIENTRY * PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
2795 typedef void (GLAPIENTRY * PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void* pointer);
2796
2797 #define glFlushVertexArrayRangeAPPLE GLEW_GET_FUN(__glewFlushVertexArrayRangeAPPLE)
2798 #define glVertexArrayParameteriAPPLE GLEW_GET_FUN(__glewVertexArrayParameteriAPPLE)
2799 #define glVertexArrayRangeAPPLE GLEW_GET_FUN(__glewVertexArrayRangeAPPLE)
2800
2801 #define GLEW_APPLE_vertex_array_range GLEW_GET_VAR(__GLEW_APPLE_vertex_array_range)
2802
2803 #endif /* GL_APPLE_vertex_array_range */
2804
2805 /* ------------------- GL_APPLE_vertex_program_evaluators ------------------ */
2806
2807 #ifndef GL_APPLE_vertex_program_evaluators
2808 #define GL_APPLE_vertex_program_evaluators 1
2809
2810 #define GL_VERTEX_ATTRIB_MAP1_APPLE 0x8A00
2811 #define GL_VERTEX_ATTRIB_MAP2_APPLE 0x8A01
2812 #define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE 0x8A02
2813 #define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
2814 #define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
2815 #define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
2816 #define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE 0x8A06
2817 #define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
2818 #define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
2819 #define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
2820
2821 typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
2822 typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
2823 typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
2824 typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble* points);
2825 typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat* points);
2826 typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble* points);
2827 typedef void (GLAPIENTRY * PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat* points);
2828
2829 #define glDisableVertexAttribAPPLE GLEW_GET_FUN(__glewDisableVertexAttribAPPLE)
2830 #define glEnableVertexAttribAPPLE GLEW_GET_FUN(__glewEnableVertexAttribAPPLE)
2831 #define glIsVertexAttribEnabledAPPLE GLEW_GET_FUN(__glewIsVertexAttribEnabledAPPLE)
2832 #define glMapVertexAttrib1dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1dAPPLE)
2833 #define glMapVertexAttrib1fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib1fAPPLE)
2834 #define glMapVertexAttrib2dAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2dAPPLE)
2835 #define glMapVertexAttrib2fAPPLE GLEW_GET_FUN(__glewMapVertexAttrib2fAPPLE)
2836
2837 #define GLEW_APPLE_vertex_program_evaluators GLEW_GET_VAR(__GLEW_APPLE_vertex_program_evaluators)
2838
2839 #endif /* GL_APPLE_vertex_program_evaluators */
2840
2841 /* --------------------------- GL_APPLE_ycbcr_422 -------------------------- */
2842
2843 #ifndef GL_APPLE_ycbcr_422
2844 #define GL_APPLE_ycbcr_422 1
2845
2846 #define GL_YCBCR_422_APPLE 0x85B9
2847 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
2848 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
2849
2850 #define GLEW_APPLE_ycbcr_422 GLEW_GET_VAR(__GLEW_APPLE_ycbcr_422)
2851
2852 #endif /* GL_APPLE_ycbcr_422 */
2853
2854 /* ----------------------- GL_ARB_blend_func_extended ---------------------- */
2855
2856 #ifndef GL_ARB_blend_func_extended
2857 #define GL_ARB_blend_func_extended 1
2858
2859 #define GL_SRC1_COLOR 0x88F9
2860 #define GL_ONE_MINUS_SRC1_COLOR 0x88FA
2861 #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
2862 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
2863
2864 typedef void (GLAPIENTRY * PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const char * name);
2865 typedef GLint (GLAPIENTRY * PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const char * name);
2866
2867 #define glBindFragDataLocationIndexed GLEW_GET_FUN(__glewBindFragDataLocationIndexed)
2868 #define glGetFragDataIndex GLEW_GET_FUN(__glewGetFragDataIndex)
2869
2870 #define GLEW_ARB_blend_func_extended GLEW_GET_VAR(__GLEW_ARB_blend_func_extended)
2871
2872 #endif /* GL_ARB_blend_func_extended */
2873
2874 /* ----------------------- GL_ARB_color_buffer_float ----------------------- */
2875
2876 #ifndef GL_ARB_color_buffer_float
2877 #define GL_ARB_color_buffer_float 1
2878
2879 #define GL_RGBA_FLOAT_MODE_ARB 0x8820
2880 #define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
2881 #define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
2882 #define GL_CLAMP_READ_COLOR_ARB 0x891C
2883 #define GL_FIXED_ONLY_ARB 0x891D
2884
2885 typedef void (GLAPIENTRY * PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
2886
2887 #define glClampColorARB GLEW_GET_FUN(__glewClampColorARB)
2888
2889 #define GLEW_ARB_color_buffer_float GLEW_GET_VAR(__GLEW_ARB_color_buffer_float)
2890
2891 #endif /* GL_ARB_color_buffer_float */
2892
2893 /* -------------------------- GL_ARB_compatibility ------------------------- */
2894
2895 #ifndef GL_ARB_compatibility
2896 #define GL_ARB_compatibility 1
2897
2898 #define GLEW_ARB_compatibility GLEW_GET_VAR(__GLEW_ARB_compatibility)
2899
2900 #endif /* GL_ARB_compatibility */
2901
2902 /* --------------------------- GL_ARB_copy_buffer -------------------------- */
2903
2904 #ifndef GL_ARB_copy_buffer
2905 #define GL_ARB_copy_buffer 1
2906
2907 #define GL_COPY_READ_BUFFER 0x8F36
2908 #define GL_COPY_WRITE_BUFFER 0x8F37
2909
2910 typedef void (GLAPIENTRY * PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readtarget, GLenum writetarget, GLintptr readoffset, GLintptr writeoffset, GLsizeiptr size);
2911
2912 #define glCopyBufferSubData GLEW_GET_FUN(__glewCopyBufferSubData)
2913
2914 #define GLEW_ARB_copy_buffer GLEW_GET_VAR(__GLEW_ARB_copy_buffer)
2915
2916 #endif /* GL_ARB_copy_buffer */
2917
2918 /* ----------------------- GL_ARB_depth_buffer_float ----------------------- */
2919
2920 #ifndef GL_ARB_depth_buffer_float
2921 #define GL_ARB_depth_buffer_float 1
2922
2923 #define GL_DEPTH_COMPONENT32F 0x8CAC
2924 #define GL_DEPTH32F_STENCIL8 0x8CAD
2925 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
2926
2927 #define GLEW_ARB_depth_buffer_float GLEW_GET_VAR(__GLEW_ARB_depth_buffer_float)
2928
2929 #endif /* GL_ARB_depth_buffer_float */
2930
2931 /* --------------------------- GL_ARB_depth_clamp -------------------------- */
2932
2933 #ifndef GL_ARB_depth_clamp
2934 #define GL_ARB_depth_clamp 1
2935
2936 #define GL_DEPTH_CLAMP 0x864F
2937
2938 #define GLEW_ARB_depth_clamp GLEW_GET_VAR(__GLEW_ARB_depth_clamp)
2939
2940 #endif /* GL_ARB_depth_clamp */
2941
2942 /* -------------------------- GL_ARB_depth_texture ------------------------- */
2943
2944 #ifndef GL_ARB_depth_texture
2945 #define GL_ARB_depth_texture 1
2946
2947 #define GL_DEPTH_COMPONENT16_ARB 0x81A5
2948 #define GL_DEPTH_COMPONENT24_ARB 0x81A6
2949 #define GL_DEPTH_COMPONENT32_ARB 0x81A7
2950 #define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
2951 #define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
2952
2953 #define GLEW_ARB_depth_texture GLEW_GET_VAR(__GLEW_ARB_depth_texture)
2954
2955 #endif /* GL_ARB_depth_texture */
2956
2957 /* -------------------------- GL_ARB_draw_buffers -------------------------- */
2958
2959 #ifndef GL_ARB_draw_buffers
2960 #define GL_ARB_draw_buffers 1
2961
2962 #define GL_MAX_DRAW_BUFFERS_ARB 0x8824
2963 #define GL_DRAW_BUFFER0_ARB 0x8825
2964 #define GL_DRAW_BUFFER1_ARB 0x8826
2965 #define GL_DRAW_BUFFER2_ARB 0x8827
2966 #define GL_DRAW_BUFFER3_ARB 0x8828
2967 #define GL_DRAW_BUFFER4_ARB 0x8829
2968 #define GL_DRAW_BUFFER5_ARB 0x882A
2969 #define GL_DRAW_BUFFER6_ARB 0x882B
2970 #define GL_DRAW_BUFFER7_ARB 0x882C
2971 #define GL_DRAW_BUFFER8_ARB 0x882D
2972 #define GL_DRAW_BUFFER9_ARB 0x882E
2973 #define GL_DRAW_BUFFER10_ARB 0x882F
2974 #define GL_DRAW_BUFFER11_ARB 0x8830
2975 #define GL_DRAW_BUFFER12_ARB 0x8831
2976 #define GL_DRAW_BUFFER13_ARB 0x8832
2977 #define GL_DRAW_BUFFER14_ARB 0x8833
2978 #define GL_DRAW_BUFFER15_ARB 0x8834
2979
2980 typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum* bufs);
2981
2982 #define glDrawBuffersARB GLEW_GET_FUN(__glewDrawBuffersARB)
2983
2984 #define GLEW_ARB_draw_buffers GLEW_GET_VAR(__GLEW_ARB_draw_buffers)
2985
2986 #endif /* GL_ARB_draw_buffers */
2987
2988 /* ----------------------- GL_ARB_draw_buffers_blend ----------------------- */
2989
2990 #ifndef GL_ARB_draw_buffers_blend
2991 #define GL_ARB_draw_buffers_blend 1
2992
2993 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
2994 typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
2995 typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
2996 typedef void (GLAPIENTRY * PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
2997
2998 #define glBlendEquationSeparateiARB GLEW_GET_FUN(__glewBlendEquationSeparateiARB)
2999 #define glBlendEquationiARB GLEW_GET_FUN(__glewBlendEquationiARB)
3000 #define glBlendFuncSeparateiARB GLEW_GET_FUN(__glewBlendFuncSeparateiARB)
3001 #define glBlendFunciARB GLEW_GET_FUN(__glewBlendFunciARB)
3002
3003 #define GLEW_ARB_draw_buffers_blend GLEW_GET_VAR(__GLEW_ARB_draw_buffers_blend)
3004
3005 #endif /* GL_ARB_draw_buffers_blend */
3006
3007 /* -------------------- GL_ARB_draw_elements_base_vertex ------------------- */
3008
3009 #ifndef GL_ARB_draw_elements_base_vertex
3010 #define GL_ARB_draw_elements_base_vertex 1
3011
3012 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, void* indices, GLint basevertex);
3013 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount, GLint basevertex);
3014 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, void* indices, GLint basevertex);
3015 typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei* count, GLenum type, GLvoid**indices, GLsizei primcount, GLint *basevertex);
3016
3017 #define glDrawElementsBaseVertex GLEW_GET_FUN(__glewDrawElementsBaseVertex)
3018 #define glDrawElementsInstancedBaseVertex GLEW_GET_FUN(__glewDrawElementsInstancedBaseVertex)
3019 #define glDrawRangeElementsBaseVertex GLEW_GET_FUN(__glewDrawRangeElementsBaseVertex)
3020 #define glMultiDrawElementsBaseVertex GLEW_GET_FUN(__glewMultiDrawElementsBaseVertex)
3021
3022 #define GLEW_ARB_draw_elements_base_vertex GLEW_GET_VAR(__GLEW_ARB_draw_elements_base_vertex)
3023
3024 #endif /* GL_ARB_draw_elements_base_vertex */
3025
3026 /* -------------------------- GL_ARB_draw_indirect ------------------------- */
3027
3028 #ifndef GL_ARB_draw_indirect
3029 #define GL_ARB_draw_indirect 1
3030
3031 #define GL_DRAW_INDIRECT_BUFFER 0x8F3F
3032 #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
3033
3034 typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void* indirect);
3035 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void* indirect);
3036
3037 #define glDrawArraysIndirect GLEW_GET_FUN(__glewDrawArraysIndirect)
3038 #define glDrawElementsIndirect GLEW_GET_FUN(__glewDrawElementsIndirect)
3039
3040 #define GLEW_ARB_draw_indirect GLEW_GET_VAR(__GLEW_ARB_draw_indirect)
3041
3042 #endif /* GL_ARB_draw_indirect */
3043
3044 /* ------------------------- GL_ARB_draw_instanced ------------------------- */
3045
3046 #ifndef GL_ARB_draw_instanced
3047 #define GL_ARB_draw_instanced 1
3048
3049 typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
3050 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount);
3051
3052 #define glDrawArraysInstancedARB GLEW_GET_FUN(__glewDrawArraysInstancedARB)
3053 #define glDrawElementsInstancedARB GLEW_GET_FUN(__glewDrawElementsInstancedARB)
3054
3055 #define GLEW_ARB_draw_instanced GLEW_GET_VAR(__GLEW_ARB_draw_instanced)
3056
3057 #endif /* GL_ARB_draw_instanced */
3058
3059 /* -------------------- GL_ARB_explicit_attrib_location -------------------- */
3060
3061 #ifndef GL_ARB_explicit_attrib_location
3062 #define GL_ARB_explicit_attrib_location 1
3063
3064 #define GLEW_ARB_explicit_attrib_location GLEW_GET_VAR(__GLEW_ARB_explicit_attrib_location)
3065
3066 #endif /* GL_ARB_explicit_attrib_location */
3067
3068 /* ------------------- GL_ARB_fragment_coord_conventions ------------------- */
3069
3070 #ifndef GL_ARB_fragment_coord_conventions
3071 #define GL_ARB_fragment_coord_conventions 1
3072
3073 #define GLEW_ARB_fragment_coord_conventions GLEW_GET_VAR(__GLEW_ARB_fragment_coord_conventions)
3074
3075 #endif /* GL_ARB_fragment_coord_conventions */
3076
3077 /* ------------------------ GL_ARB_fragment_program ------------------------ */
3078
3079 #ifndef GL_ARB_fragment_program
3080 #define GL_ARB_fragment_program 1
3081
3082 #define GL_FRAGMENT_PROGRAM_ARB 0x8804
3083 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
3084 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
3085 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
3086 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
3087 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
3088 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
3089 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
3090 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
3091 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
3092 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
3093 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
3094 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
3095 #define GL_MAX_TEXTURE_COORDS_ARB 0x8871
3096 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
3097
3098 #define GLEW_ARB_fragment_program GLEW_GET_VAR(__GLEW_ARB_fragment_program)
3099
3100 #endif /* GL_ARB_fragment_program */
3101
3102 /* --------------------- GL_ARB_fragment_program_shadow -------------------- */
3103
3104 #ifndef GL_ARB_fragment_program_shadow
3105 #define GL_ARB_fragment_program_shadow 1
3106
3107 #define GLEW_ARB_fragment_program_shadow GLEW_GET_VAR(__GLEW_ARB_fragment_program_shadow)
3108
3109 #endif /* GL_ARB_fragment_program_shadow */
3110
3111 /* ------------------------- GL_ARB_fragment_shader ------------------------ */
3112
3113 #ifndef GL_ARB_fragment_shader
3114 #define GL_ARB_fragment_shader 1
3115
3116 #define GL_FRAGMENT_SHADER_ARB 0x8B30
3117 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
3118 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
3119
3120 #define GLEW_ARB_fragment_shader GLEW_GET_VAR(__GLEW_ARB_fragment_shader)
3121
3122 #endif /* GL_ARB_fragment_shader */
3123
3124 /* ----------------------- GL_ARB_framebuffer_object ----------------------- */
3125
3126 #ifndef GL_ARB_framebuffer_object
3127 #define GL_ARB_framebuffer_object 1
3128
3129 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
3130 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
3131 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
3132 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
3133 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
3134 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
3135 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
3136 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
3137 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
3138 #define GL_FRAMEBUFFER_DEFAULT 0x8218
3139 #define GL_FRAMEBUFFER_UNDEFINED 0x8219
3140 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
3141 #define GL_INDEX 0x8222
3142 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
3143 #define GL_DEPTH_STENCIL 0x84F9
3144 #define GL_UNSIGNED_INT_24_8 0x84FA
3145 #define GL_DEPTH24_STENCIL8 0x88F0
3146 #define GL_TEXTURE_STENCIL_SIZE 0x88F1
3147 #define GL_UNSIGNED_NORMALIZED 0x8C17
3148 #define GL_SRGB 0x8C40
3149 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
3150 #define GL_FRAMEBUFFER_BINDING 0x8CA6
3151 #define GL_RENDERBUFFER_BINDING 0x8CA7
3152 #define GL_READ_FRAMEBUFFER 0x8CA8
3153 #define GL_DRAW_FRAMEBUFFER 0x8CA9
3154 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
3155 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
3156 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
3157 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
3158 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
3159 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
3160 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
3161 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
3162 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
3163 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
3164 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
3165 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
3166 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
3167 #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
3168 #define GL_COLOR_ATTACHMENT0 0x8CE0
3169 #define GL_COLOR_ATTACHMENT1 0x8CE1
3170 #define GL_COLOR_ATTACHMENT2 0x8CE2
3171 #define GL_COLOR_ATTACHMENT3 0x8CE3
3172 #define GL_COLOR_ATTACHMENT4 0x8CE4
3173 #define GL_COLOR_ATTACHMENT5 0x8CE5
3174 #define GL_COLOR_ATTACHMENT6 0x8CE6
3175 #define GL_COLOR_ATTACHMENT7 0x8CE7
3176 #define GL_COLOR_ATTACHMENT8 0x8CE8
3177 #define GL_COLOR_ATTACHMENT9 0x8CE9
3178 #define GL_COLOR_ATTACHMENT10 0x8CEA
3179 #define GL_COLOR_ATTACHMENT11 0x8CEB
3180 #define GL_COLOR_ATTACHMENT12 0x8CEC
3181 #define GL_COLOR_ATTACHMENT13 0x8CED
3182 #define GL_COLOR_ATTACHMENT14 0x8CEE
3183 #define GL_COLOR_ATTACHMENT15 0x8CEF
3184 #define GL_DEPTH_ATTACHMENT 0x8D00
3185 #define GL_STENCIL_ATTACHMENT 0x8D20
3186 #define GL_FRAMEBUFFER 0x8D40
3187 #define GL_RENDERBUFFER 0x8D41
3188 #define GL_RENDERBUFFER_WIDTH 0x8D42
3189 #define GL_RENDERBUFFER_HEIGHT 0x8D43
3190 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
3191 #define GL_STENCIL_INDEX1 0x8D46
3192 #define GL_STENCIL_INDEX4 0x8D47
3193 #define GL_STENCIL_INDEX8 0x8D48
3194 #define GL_STENCIL_INDEX16 0x8D49
3195 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
3196 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
3197 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
3198 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
3199 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
3200 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
3201 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
3202 #define GL_MAX_SAMPLES 0x8D57
3203
3204 typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
3205 typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
3206 typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
3207 typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
3208 typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint* framebuffers);
3209 typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint* renderbuffers);
3210 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
3211 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3212 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3213 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint layer);
3214 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target,GLenum attachment, GLuint texture,GLint level,GLint layer);
3215 typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers);
3216 typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers);
3217 typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPPROC) (GLenum target);
3218 typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
3219 typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params);
3220 typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
3221 typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
3222 typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
3223 typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
3224
3225 #define glBindFramebuffer GLEW_GET_FUN(__glewBindFramebuffer)
3226 #define glBindRenderbuffer GLEW_GET_FUN(__glewBindRenderbuffer)
3227 #define glBlitFramebuffer GLEW_GET_FUN(__glewBlitFramebuffer)
3228 #define glCheckFramebufferStatus GLEW_GET_FUN(__glewCheckFramebufferStatus)
3229 #define glDeleteFramebuffers GLEW_GET_FUN(__glewDeleteFramebuffers)
3230 #define glDeleteRenderbuffers GLEW_GET_FUN(__glewDeleteRenderbuffers)
3231 #define glFramebufferRenderbuffer GLEW_GET_FUN(__glewFramebufferRenderbuffer)
3232 #define glFramebufferTexture1D GLEW_GET_FUN(__glewFramebufferTexture1D)
3233 #define glFramebufferTexture2D GLEW_GET_FUN(__glewFramebufferTexture2D)
3234 #define glFramebufferTexture3D GLEW_GET_FUN(__glewFramebufferTexture3D)
3235 #define glFramebufferTextureLayer GLEW_GET_FUN(__glewFramebufferTextureLayer)
3236 #define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers)
3237 #define glGenRenderbuffers GLEW_GET_FUN(__glewGenRenderbuffers)
3238 #define glGenerateMipmap GLEW_GET_FUN(__glewGenerateMipmap)
3239 #define glGetFramebufferAttachmentParameteriv GLEW_GET_FUN(__glewGetFramebufferAttachmentParameteriv)
3240 #define glGetRenderbufferParameteriv GLEW_GET_FUN(__glewGetRenderbufferParameteriv)
3241 #define glIsFramebuffer GLEW_GET_FUN(__glewIsFramebuffer)
3242 #define glIsRenderbuffer GLEW_GET_FUN(__glewIsRenderbuffer)
3243 #define glRenderbufferStorage GLEW_GET_FUN(__glewRenderbufferStorage)
3244 #define glRenderbufferStorageMultisample GLEW_GET_FUN(__glewRenderbufferStorageMultisample)
3245
3246 #define GLEW_ARB_framebuffer_object GLEW_GET_VAR(__GLEW_ARB_framebuffer_object)
3247
3248 #endif /* GL_ARB_framebuffer_object */
3249
3250 /* ------------------------ GL_ARB_framebuffer_sRGB ------------------------ */
3251
3252 #ifndef GL_ARB_framebuffer_sRGB
3253 #define GL_ARB_framebuffer_sRGB 1
3254
3255 #define GL_FRAMEBUFFER_SRGB 0x8DB9
3256
3257 #define GLEW_ARB_framebuffer_sRGB GLEW_GET_VAR(__GLEW_ARB_framebuffer_sRGB)
3258
3259 #endif /* GL_ARB_framebuffer_sRGB */
3260
3261 /* ------------------------ GL_ARB_geometry_shader4 ------------------------ */
3262
3263 #ifndef GL_ARB_geometry_shader4
3264 #define GL_ARB_geometry_shader4 1
3265
3266 #define GL_LINES_ADJACENCY_ARB 0xA
3267 #define GL_LINE_STRIP_ADJACENCY_ARB 0xB
3268 #define GL_TRIANGLES_ADJACENCY_ARB 0xC
3269 #define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0xD
3270 #define GL_PROGRAM_POINT_SIZE_ARB 0x8642
3271 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
3272 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
3273 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
3274 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
3275 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
3276 #define GL_GEOMETRY_SHADER_ARB 0x8DD9
3277 #define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA
3278 #define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB
3279 #define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC
3280 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
3281 #define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
3282 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
3283 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
3284 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
3285
3286 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
3287 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
3288 typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3289 typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
3290
3291 #define glFramebufferTextureARB GLEW_GET_FUN(__glewFramebufferTextureARB)
3292 #define glFramebufferTextureFaceARB GLEW_GET_FUN(__glewFramebufferTextureFaceARB)
3293 #define glFramebufferTextureLayerARB GLEW_GET_FUN(__glewFramebufferTextureLayerARB)
3294 #define glProgramParameteriARB GLEW_GET_FUN(__glewProgramParameteriARB)
3295
3296 #define GLEW_ARB_geometry_shader4 GLEW_GET_VAR(__GLEW_ARB_geometry_shader4)
3297
3298 #endif /* GL_ARB_geometry_shader4 */
3299
3300 /* --------------------------- GL_ARB_gpu_shader5 -------------------------- */
3301
3302 #ifndef GL_ARB_gpu_shader5
3303 #define GL_ARB_gpu_shader5 1
3304
3305 #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
3306 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
3307 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
3308 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
3309 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
3310 #define GL_MAX_VERTEX_STREAMS 0x8E71
3311
3312 #define GLEW_ARB_gpu_shader5 GLEW_GET_VAR(__GLEW_ARB_gpu_shader5)
3313
3314 #endif /* GL_ARB_gpu_shader5 */
3315
3316 /* ------------------------- GL_ARB_gpu_shader_fp64 ------------------------ */
3317
3318 #ifndef GL_ARB_gpu_shader_fp64
3319 #define GL_ARB_gpu_shader_fp64 1
3320
3321 #define GLEW_ARB_gpu_shader_fp64 GLEW_GET_VAR(__GLEW_ARB_gpu_shader_fp64)
3322
3323 #endif /* GL_ARB_gpu_shader_fp64 */
3324
3325 /* ------------------------ GL_ARB_half_float_pixel ------------------------ */
3326
3327 #ifndef GL_ARB_half_float_pixel
3328 #define GL_ARB_half_float_pixel 1
3329
3330 #define GL_HALF_FLOAT_ARB 0x140B
3331
3332 #define GLEW_ARB_half_float_pixel GLEW_GET_VAR(__GLEW_ARB_half_float_pixel)
3333
3334 #endif /* GL_ARB_half_float_pixel */
3335
3336 /* ------------------------ GL_ARB_half_float_vertex ----------------------- */
3337
3338 #ifndef GL_ARB_half_float_vertex
3339 #define GL_ARB_half_float_vertex 1
3340
3341 #define GL_HALF_FLOAT 0x140B
3342
3343 #define GLEW_ARB_half_float_vertex GLEW_GET_VAR(__GLEW_ARB_half_float_vertex)
3344
3345 #endif /* GL_ARB_half_float_vertex */
3346
3347 /* ----------------------------- GL_ARB_imaging ---------------------------- */
3348
3349 #ifndef GL_ARB_imaging
3350 #define GL_ARB_imaging 1
3351
3352 #define GL_CONSTANT_COLOR 0x8001
3353 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
3354 #define GL_CONSTANT_ALPHA 0x8003
3355 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
3356 #define GL_BLEND_COLOR 0x8005
3357 #define GL_FUNC_ADD 0x8006
3358 #define GL_MIN 0x8007
3359 #define GL_MAX 0x8008
3360 #define GL_BLEND_EQUATION 0x8009
3361 #define GL_FUNC_SUBTRACT 0x800A
3362 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
3363 #define GL_CONVOLUTION_1D 0x8010
3364 #define GL_CONVOLUTION_2D 0x8011
3365 #define GL_SEPARABLE_2D 0x8012
3366 #define GL_CONVOLUTION_BORDER_MODE 0x8013
3367 #define GL_CONVOLUTION_FILTER_SCALE 0x8014
3368 #define GL_CONVOLUTION_FILTER_BIAS 0x8015
3369 #define GL_REDUCE 0x8016
3370 #define GL_CONVOLUTION_FORMAT 0x8017
3371 #define GL_CONVOLUTION_WIDTH 0x8018
3372 #define GL_CONVOLUTION_HEIGHT 0x8019
3373 #define GL_MAX_CONVOLUTION_WIDTH 0x801A
3374 #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
3375 #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
3376 #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
3377 #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
3378 #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
3379 #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
3380 #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
3381 #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
3382 #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
3383 #define GL_HISTOGRAM 0x8024
3384 #define GL_PROXY_HISTOGRAM 0x8025
3385 #define GL_HISTOGRAM_WIDTH 0x8026
3386 #define GL_HISTOGRAM_FORMAT 0x8027
3387 #define GL_HISTOGRAM_RED_SIZE 0x8028
3388 #define GL_HISTOGRAM_GREEN_SIZE 0x8029
3389 #define GL_HISTOGRAM_BLUE_SIZE 0x802A
3390 #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
3391 #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
3392 #define GL_HISTOGRAM_SINK 0x802D
3393 #define GL_MINMAX 0x802E
3394 #define GL_MINMAX_FORMAT 0x802F
3395 #define GL_MINMAX_SINK 0x8030
3396 #define GL_TABLE_TOO_LARGE 0x8031
3397 #define GL_COLOR_MATRIX 0x80B1
3398 #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
3399 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
3400 #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
3401 #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
3402 #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
3403 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
3404 #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
3405 #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
3406 #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
3407 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
3408 #define GL_COLOR_TABLE 0x80D0
3409 #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
3410 #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
3411 #define GL_PROXY_COLOR_TABLE 0x80D3
3412 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
3413 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
3414 #define GL_COLOR_TABLE_SCALE 0x80D6
3415 #define GL_COLOR_TABLE_BIAS 0x80D7
3416 #define GL_COLOR_TABLE_FORMAT 0x80D8
3417 #define GL_COLOR_TABLE_WIDTH 0x80D9
3418 #define GL_COLOR_TABLE_RED_SIZE 0x80DA
3419 #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
3420 #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
3421 #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
3422 #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
3423 #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
3424 #define GL_IGNORE_BORDER 0x8150
3425 #define GL_CONSTANT_BORDER 0x8151
3426 #define GL_WRAP_BORDER 0x8152
3427 #define GL_REPLICATE_BORDER 0x8153
3428 #define GL_CONVOLUTION_BORDER_COLOR 0x8154
3429
3430 typedef void (GLAPIENTRY * PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
3431 typedef void (GLAPIENTRY * PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
3432 typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
3433 typedef void (GLAPIENTRY * PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
3434 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
3435 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
3436 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
3437 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
3438 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
3439 typedef void (GLAPIENTRY * PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
3440 typedef void (GLAPIENTRY * PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
3441 typedef void (GLAPIENTRY * PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3442 typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3443 typedef void (GLAPIENTRY * PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
3444 typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
3445 typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3446 typedef void (GLAPIENTRY * PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3447 typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
3448 typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3449 typedef void (GLAPIENTRY * PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3450 typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
3451 typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3452 typedef void (GLAPIENTRY * PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3453 typedef void (GLAPIENTRY * PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values);
3454 typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3455 typedef void (GLAPIENTRY * PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3456 typedef void (GLAPIENTRY * PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
3457 typedef void (GLAPIENTRY * PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
3458 typedef void (GLAPIENTRY * PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
3459 typedef void (GLAPIENTRY * PFNGLRESETHISTOGRAMPROC) (GLenum target);
3460 typedef void (GLAPIENTRY * PFNGLRESETMINMAXPROC) (GLenum target);
3461 typedef void (GLAPIENTRY * PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
3462
3463 #define glColorSubTable GLEW_GET_FUN(__glewColorSubTable)
3464 #define glColorTable GLEW_GET_FUN(__glewColorTable)
3465 #define glColorTableParameterfv GLEW_GET_FUN(__glewColorTableParameterfv)
3466 #define glColorTableParameteriv GLEW_GET_FUN(__glewColorTableParameteriv)
3467 #define glConvolutionFilter1D GLEW_GET_FUN(__glewConvolutionFilter1D)
3468 #define glConvolutionFilter2D GLEW_GET_FUN(__glewConvolutionFilter2D)
3469 #define glConvolutionParameterf GLEW_GET_FUN(__glewConvolutionParameterf)
3470 #define glConvolutionParameterfv GLEW_GET_FUN(__glewConvolutionParameterfv)
3471 #define glConvolutionParameteri GLEW_GET_FUN(__glewConvolutionParameteri)
3472 #define glConvolutionParameteriv GLEW_GET_FUN(__glewConvolutionParameteriv)
3473 #define glCopyColorSubTable GLEW_GET_FUN(__glewCopyColorSubTable)
3474 #define glCopyColorTable GLEW_GET_FUN(__glewCopyColorTable)
3475 #define glCopyConvolutionFilter1D GLEW_GET_FUN(__glewCopyConvolutionFilter1D)
3476 #define glCopyConvolutionFilter2D GLEW_GET_FUN(__glewCopyConvolutionFilter2D)
3477 #define glGetColorTable GLEW_GET_FUN(__glewGetColorTable)
3478 #define glGetColorTableParameterfv GLEW_GET_FUN(__glewGetColorTableParameterfv)
3479 #define glGetColorTableParameteriv GLEW_GET_FUN(__glewGetColorTableParameteriv)
3480 #define glGetConvolutionFilter GLEW_GET_FUN(__glewGetConvolutionFilter)
3481 #define glGetConvolutionParameterfv GLEW_GET_FUN(__glewGetConvolutionParameterfv)
3482 #define glGetConvolutionParameteriv GLEW_GET_FUN(__glewGetConvolutionParameteriv)
3483 #define glGetHistogram GLEW_GET_FUN(__glewGetHistogram)
3484 #define glGetHistogramParameterfv GLEW_GET_FUN(__glewGetHistogramParameterfv)
3485 #define glGetHistogramParameteriv GLEW_GET_FUN(__glewGetHistogramParameteriv)
3486 #define glGetMinmax GLEW_GET_FUN(__glewGetMinmax)
3487 #define glGetMinmaxParameterfv GLEW_GET_FUN(__glewGetMinmaxParameterfv)
3488 #define glGetMinmaxParameteriv GLEW_GET_FUN(__glewGetMinmaxParameteriv)
3489 #define glGetSeparableFilter GLEW_GET_FUN(__glewGetSeparableFilter)
3490 #define glHistogram GLEW_GET_FUN(__glewHistogram)
3491 #define glMinmax GLEW_GET_FUN(__glewMinmax)
3492 #define glResetHistogram GLEW_GET_FUN(__glewResetHistogram)
3493 #define glResetMinmax GLEW_GET_FUN(__glewResetMinmax)
3494 #define glSeparableFilter2D GLEW_GET_FUN(__glewSeparableFilter2D)
3495
3496 #define GLEW_ARB_imaging GLEW_GET_VAR(__GLEW_ARB_imaging)
3497
3498 #endif /* GL_ARB_imaging */
3499
3500 /* ------------------------ GL_ARB_instanced_arrays ------------------------ */
3501
3502 #ifndef GL_ARB_instanced_arrays
3503 #define GL_ARB_instanced_arrays 1
3504
3505 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
3506
3507 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
3508
3509 #define glVertexAttribDivisorARB GLEW_GET_FUN(__glewVertexAttribDivisorARB)
3510
3511 #define GLEW_ARB_instanced_arrays GLEW_GET_VAR(__GLEW_ARB_instanced_arrays)
3512
3513 #endif /* GL_ARB_instanced_arrays */
3514
3515 /* ------------------------ GL_ARB_map_buffer_range ------------------------ */
3516
3517 #ifndef GL_ARB_map_buffer_range
3518 #define GL_ARB_map_buffer_range 1
3519
3520 #define GL_MAP_READ_BIT 0x0001
3521 #define GL_MAP_WRITE_BIT 0x0002
3522 #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
3523 #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
3524 #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
3525 #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
3526
3527 typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
3528 typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
3529
3530 #define glFlushMappedBufferRange GLEW_GET_FUN(__glewFlushMappedBufferRange)
3531 #define glMapBufferRange GLEW_GET_FUN(__glewMapBufferRange)
3532
3533 #define GLEW_ARB_map_buffer_range GLEW_GET_VAR(__GLEW_ARB_map_buffer_range)
3534
3535 #endif /* GL_ARB_map_buffer_range */
3536
3537 /* ------------------------- GL_ARB_matrix_palette ------------------------- */
3538
3539 #ifndef GL_ARB_matrix_palette
3540 #define GL_ARB_matrix_palette 1
3541
3542 #define GL_MATRIX_PALETTE_ARB 0x8840
3543 #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
3544 #define GL_MAX_PALETTE_MATRICES_ARB 0x8842
3545 #define GL_CURRENT_PALETTE_MATRIX_ARB 0x8843
3546 #define GL_MATRIX_INDEX_ARRAY_ARB 0x8844
3547 #define GL_CURRENT_MATRIX_INDEX_ARB 0x8845
3548 #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB 0x8846
3549 #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB 0x8847
3550 #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB 0x8848
3551 #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
3552
3553 typedef void (GLAPIENTRY * PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
3554 typedef void (GLAPIENTRY * PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
3555 typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUBVARBPROC) (GLint size, GLubyte *indices);
3556 typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUIVARBPROC) (GLint size, GLuint *indices);
3557 typedef void (GLAPIENTRY * PFNGLMATRIXINDEXUSVARBPROC) (GLint size, GLushort *indices);
3558
3559 #define glCurrentPaletteMatrixARB GLEW_GET_FUN(__glewCurrentPaletteMatrixARB)
3560 #define glMatrixIndexPointerARB GLEW_GET_FUN(__glewMatrixIndexPointerARB)
3561 #define glMatrixIndexubvARB GLEW_GET_FUN(__glewMatrixIndexubvARB)
3562 #define glMatrixIndexuivARB GLEW_GET_FUN(__glewMatrixIndexuivARB)
3563 #define glMatrixIndexusvARB GLEW_GET_FUN(__glewMatrixIndexusvARB)
3564
3565 #define GLEW_ARB_matrix_palette GLEW_GET_VAR(__GLEW_ARB_matrix_palette)
3566
3567 #endif /* GL_ARB_matrix_palette */
3568
3569 /* --------------------------- GL_ARB_multisample -------------------------- */
3570
3571 #ifndef GL_ARB_multisample
3572 #define GL_ARB_multisample 1
3573
3574 #define GL_MULTISAMPLE_ARB 0x809D
3575 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB 0x809E
3576 #define GL_SAMPLE_ALPHA_TO_ONE_ARB 0x809F
3577 #define GL_SAMPLE_COVERAGE_ARB 0x80A0
3578 #define GL_SAMPLE_BUFFERS_ARB 0x80A8
3579 #define GL_SAMPLES_ARB 0x80A9
3580 #define GL_SAMPLE_COVERAGE_VALUE_ARB 0x80AA
3581 #define GL_SAMPLE_COVERAGE_INVERT_ARB 0x80AB
3582 #define GL_MULTISAMPLE_BIT_ARB 0x20000000
3583
3584 typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert);
3585
3586 #define glSampleCoverageARB GLEW_GET_FUN(__glewSampleCoverageARB)
3587
3588 #define GLEW_ARB_multisample GLEW_GET_VAR(__GLEW_ARB_multisample)
3589
3590 #endif /* GL_ARB_multisample */
3591
3592 /* -------------------------- GL_ARB_multitexture -------------------------- */
3593
3594 #ifndef GL_ARB_multitexture
3595 #define GL_ARB_multitexture 1
3596
3597 #define GL_TEXTURE0_ARB 0x84C0
3598 #define GL_TEXTURE1_ARB 0x84C1
3599 #define GL_TEXTURE2_ARB 0x84C2
3600 #define GL_TEXTURE3_ARB 0x84C3
3601 #define GL_TEXTURE4_ARB 0x84C4
3602 #define GL_TEXTURE5_ARB 0x84C5
3603 #define GL_TEXTURE6_ARB 0x84C6
3604 #define GL_TEXTURE7_ARB 0x84C7
3605 #define GL_TEXTURE8_ARB 0x84C8
3606 #define GL_TEXTURE9_ARB 0x84C9
3607 #define GL_TEXTURE10_ARB 0x84CA
3608 #define GL_TEXTURE11_ARB 0x84CB
3609 #define GL_TEXTURE12_ARB 0x84CC
3610 #define GL_TEXTURE13_ARB 0x84CD
3611 #define GL_TEXTURE14_ARB 0x84CE
3612 #define GL_TEXTURE15_ARB 0x84CF
3613 #define GL_TEXTURE16_ARB 0x84D0
3614 #define GL_TEXTURE17_ARB 0x84D1
3615 #define GL_TEXTURE18_ARB 0x84D2
3616 #define GL_TEXTURE19_ARB 0x84D3
3617 #define GL_TEXTURE20_ARB 0x84D4
3618 #define GL_TEXTURE21_ARB 0x84D5
3619 #define GL_TEXTURE22_ARB 0x84D6
3620 #define GL_TEXTURE23_ARB 0x84D7
3621 #define GL_TEXTURE24_ARB 0x84D8
3622 #define GL_TEXTURE25_ARB 0x84D9
3623 #define GL_TEXTURE26_ARB 0x84DA
3624 #define GL_TEXTURE27_ARB 0x84DB
3625 #define GL_TEXTURE28_ARB 0x84DC
3626 #define GL_TEXTURE29_ARB 0x84DD
3627 #define GL_TEXTURE30_ARB 0x84DE
3628 #define GL_TEXTURE31_ARB 0x84DF
3629 #define GL_ACTIVE_TEXTURE_ARB 0x84E0
3630 #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
3631 #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
3632
3633 typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
3634 typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
3635 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
3636 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
3637 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
3638 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
3639 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
3640 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
3641 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
3642 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
3643 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
3644 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
3645 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
3646 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
3647 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
3648 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
3649 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
3650 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
3651 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
3652 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
3653 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
3654 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
3655 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
3656 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
3657 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
3658 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
3659 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
3660 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
3661 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
3662 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
3663 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
3664 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
3665 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
3666 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
3667
3668 #define glActiveTextureARB GLEW_GET_FUN(__glewActiveTextureARB)
3669 #define glClientActiveTextureARB GLEW_GET_FUN(__glewClientActiveTextureARB)
3670 #define glMultiTexCoord1dARB GLEW_GET_FUN(__glewMultiTexCoord1dARB)
3671 #define glMultiTexCoord1dvARB GLEW_GET_FUN(__glewMultiTexCoord1dvARB)
3672 #define glMultiTexCoord1fARB GLEW_GET_FUN(__glewMultiTexCoord1fARB)
3673 #define glMultiTexCoord1fvARB GLEW_GET_FUN(__glewMultiTexCoord1fvARB)
3674 #define glMultiTexCoord1iARB GLEW_GET_FUN(__glewMultiTexCoord1iARB)
3675 #define glMultiTexCoord1ivARB GLEW_GET_FUN(__glewMultiTexCoord1ivARB)
3676 #define glMultiTexCoord1sARB GLEW_GET_FUN(__glewMultiTexCoord1sARB)
3677 #define glMultiTexCoord1svARB GLEW_GET_FUN(__glewMultiTexCoord1svARB)
3678 #define glMultiTexCoord2dARB GLEW_GET_FUN(__glewMultiTexCoord2dARB)
3679 #define glMultiTexCoord2dvARB GLEW_GET_FUN(__glewMultiTexCoord2dvARB)
3680 #define glMultiTexCoord2fARB GLEW_GET_FUN(__glewMultiTexCoord2fARB)
3681 #define glMultiTexCoord2fvARB GLEW_GET_FUN(__glewMultiTexCoord2fvARB)
3682 #define glMultiTexCoord2iARB GLEW_GET_FUN(__glewMultiTexCoord2iARB)
3683 #define glMultiTexCoord2ivARB GLEW_GET_FUN(__glewMultiTexCoord2ivARB)
3684 #define glMultiTexCoord2sARB GLEW_GET_FUN(__glewMultiTexCoord2sARB)
3685 #define glMultiTexCoord2svARB GLEW_GET_FUN(__glewMultiTexCoord2svARB)
3686 #define glMultiTexCoord3dARB GLEW_GET_FUN(__glewMultiTexCoord3dARB)
3687 #define glMultiTexCoord3dvARB GLEW_GET_FUN(__glewMultiTexCoord3dvARB)
3688 #define glMultiTexCoord3fARB GLEW_GET_FUN(__glewMultiTexCoord3fARB)
3689 #define glMultiTexCoord3fvARB GLEW_GET_FUN(__glewMultiTexCoord3fvARB)
3690 #define glMultiTexCoord3iARB GLEW_GET_FUN(__glewMultiTexCoord3iARB)
3691 #define glMultiTexCoord3ivARB GLEW_GET_FUN(__glewMultiTexCoord3ivARB)
3692 #define glMultiTexCoord3sARB GLEW_GET_FUN(__glewMultiTexCoord3sARB)
3693 #define glMultiTexCoord3svARB GLEW_GET_FUN(__glewMultiTexCoord3svARB)
3694 #define glMultiTexCoord4dARB GLEW_GET_FUN(__glewMultiTexCoord4dARB)
3695 #define glMultiTexCoord4dvARB GLEW_GET_FUN(__glewMultiTexCoord4dvARB)
3696 #define glMultiTexCoord4fARB GLEW_GET_FUN(__glewMultiTexCoord4fARB)
3697 #define glMultiTexCoord4fvARB GLEW_GET_FUN(__glewMultiTexCoord4fvARB)
3698 #define glMultiTexCoord4iARB GLEW_GET_FUN(__glewMultiTexCoord4iARB)
3699 #define glMultiTexCoord4ivARB GLEW_GET_FUN(__glewMultiTexCoord4ivARB)
3700 #define glMultiTexCoord4sARB GLEW_GET_FUN(__glewMultiTexCoord4sARB)
3701 #define glMultiTexCoord4svARB GLEW_GET_FUN(__glewMultiTexCoord4svARB)
3702
3703 #define GLEW_ARB_multitexture GLEW_GET_VAR(__GLEW_ARB_multitexture)
3704
3705 #endif /* GL_ARB_multitexture */
3706
3707 /* ------------------------- GL_ARB_occlusion_query ------------------------ */
3708
3709 #ifndef GL_ARB_occlusion_query
3710 #define GL_ARB_occlusion_query 1
3711
3712 #define GL_QUERY_COUNTER_BITS_ARB 0x8864
3713 #define GL_CURRENT_QUERY_ARB 0x8865
3714 #define GL_QUERY_RESULT_ARB 0x8866
3715 #define GL_QUERY_RESULT_AVAILABLE_ARB 0x8867
3716 #define GL_SAMPLES_PASSED_ARB 0x8914
3717
3718 typedef void (GLAPIENTRY * PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
3719 typedef void (GLAPIENTRY * PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint* ids);
3720 typedef void (GLAPIENTRY * PFNGLENDQUERYARBPROC) (GLenum target);
3721 typedef void (GLAPIENTRY * PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint* ids);
3722 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint* params);
3723 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint* params);
3724 typedef void (GLAPIENTRY * PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint* params);
3725 typedef GLboolean (GLAPIENTRY * PFNGLISQUERYARBPROC) (GLuint id);
3726
3727 #define glBeginQueryARB GLEW_GET_FUN(__glewBeginQueryARB)
3728 #define glDeleteQueriesARB GLEW_GET_FUN(__glewDeleteQueriesARB)
3729 #define glEndQueryARB GLEW_GET_FUN(__glewEndQueryARB)
3730 #define glGenQueriesARB GLEW_GET_FUN(__glewGenQueriesARB)
3731 #define glGetQueryObjectivARB GLEW_GET_FUN(__glewGetQueryObjectivARB)
3732 #define glGetQueryObjectuivARB GLEW_GET_FUN(__glewGetQueryObjectuivARB)
3733 #define glGetQueryivARB GLEW_GET_FUN(__glewGetQueryivARB)
3734 #define glIsQueryARB GLEW_GET_FUN(__glewIsQueryARB)
3735
3736 #define GLEW_ARB_occlusion_query GLEW_GET_VAR(__GLEW_ARB_occlusion_query)
3737
3738 #endif /* GL_ARB_occlusion_query */
3739
3740 /* ------------------------ GL_ARB_occlusion_query2 ------------------------ */
3741
3742 #ifndef GL_ARB_occlusion_query2
3743 #define GL_ARB_occlusion_query2 1
3744
3745 #define GL_ANY_SAMPLES_PASSED 0x8C2F
3746
3747 #define GLEW_ARB_occlusion_query2 GLEW_GET_VAR(__GLEW_ARB_occlusion_query2)
3748
3749 #endif /* GL_ARB_occlusion_query2 */
3750
3751 /* ----------------------- GL_ARB_pixel_buffer_object ---------------------- */
3752
3753 #ifndef GL_ARB_pixel_buffer_object
3754 #define GL_ARB_pixel_buffer_object 1
3755
3756 #define GL_PIXEL_PACK_BUFFER_ARB 0x88EB
3757 #define GL_PIXEL_UNPACK_BUFFER_ARB 0x88EC
3758 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB 0x88ED
3759 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
3760
3761 #define GLEW_ARB_pixel_buffer_object GLEW_GET_VAR(__GLEW_ARB_pixel_buffer_object)
3762
3763 #endif /* GL_ARB_pixel_buffer_object */
3764
3765 /* ------------------------ GL_ARB_point_parameters ------------------------ */
3766
3767 #ifndef GL_ARB_point_parameters
3768 #define GL_ARB_point_parameters 1
3769
3770 #define GL_POINT_SIZE_MIN_ARB 0x8126
3771 #define GL_POINT_SIZE_MAX_ARB 0x8127
3772 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128
3773 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
3774
3775 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
3776 typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, GLfloat* params);
3777
3778 #define glPointParameterfARB GLEW_GET_FUN(__glewPointParameterfARB)
3779 #define glPointParameterfvARB GLEW_GET_FUN(__glewPointParameterfvARB)
3780
3781 #define GLEW_ARB_point_parameters GLEW_GET_VAR(__GLEW_ARB_point_parameters)
3782
3783 #endif /* GL_ARB_point_parameters */
3784
3785 /* -------------------------- GL_ARB_point_sprite -------------------------- */
3786
3787 #ifndef GL_ARB_point_sprite
3788 #define GL_ARB_point_sprite 1
3789
3790 #define GL_POINT_SPRITE_ARB 0x8861
3791 #define GL_COORD_REPLACE_ARB 0x8862
3792
3793 #define GLEW_ARB_point_sprite GLEW_GET_VAR(__GLEW_ARB_point_sprite)
3794
3795 #endif /* GL_ARB_point_sprite */
3796
3797 /* ------------------------ GL_ARB_provoking_vertex ------------------------ */
3798
3799 #ifndef GL_ARB_provoking_vertex
3800 #define GL_ARB_provoking_vertex 1
3801
3802 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
3803 #define GL_FIRST_VERTEX_CONVENTION 0x8E4D
3804 #define GL_LAST_VERTEX_CONVENTION 0x8E4E
3805 #define GL_PROVOKING_VERTEX 0x8E4F
3806
3807 typedef void (GLAPIENTRY * PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
3808
3809 #define glProvokingVertex GLEW_GET_FUN(__glewProvokingVertex)
3810
3811 #define GLEW_ARB_provoking_vertex GLEW_GET_VAR(__GLEW_ARB_provoking_vertex)
3812
3813 #endif /* GL_ARB_provoking_vertex */
3814
3815 /* ------------------------- GL_ARB_sample_shading ------------------------- */
3816
3817 #ifndef GL_ARB_sample_shading
3818 #define GL_ARB_sample_shading 1
3819
3820 #define GL_SAMPLE_SHADING_ARB 0x8C36
3821 #define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37
3822
3823 typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGARBPROC) (GLclampf value);
3824
3825 #define glMinSampleShadingARB GLEW_GET_FUN(__glewMinSampleShadingARB)
3826
3827 #define GLEW_ARB_sample_shading GLEW_GET_VAR(__GLEW_ARB_sample_shading)
3828
3829 #endif /* GL_ARB_sample_shading */
3830
3831 /* ------------------------- GL_ARB_sampler_objects ------------------------ */
3832
3833 #ifndef GL_ARB_sampler_objects
3834 #define GL_ARB_sampler_objects 1
3835
3836 #define GL_SAMPLER_BINDING 0x8919
3837
3838 typedef void (GLAPIENTRY * PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
3839 typedef void (GLAPIENTRY * PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint * samplers);
3840 typedef void (GLAPIENTRY * PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint* samplers);
3841 typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint* params);
3842 typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint* params);
3843 typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat* params);
3844 typedef void (GLAPIENTRY * PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint* params);
3845 typedef GLboolean (GLAPIENTRY * PFNGLISSAMPLERPROC) (GLuint sampler);
3846 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint* params);
3847 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint* params);
3848 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
3849 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat* params);
3850 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
3851 typedef void (GLAPIENTRY * PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint* params);
3852
3853 #define glBindSampler GLEW_GET_FUN(__glewBindSampler)
3854 #define glDeleteSamplers GLEW_GET_FUN(__glewDeleteSamplers)
3855 #define glGenSamplers GLEW_GET_FUN(__glewGenSamplers)
3856 #define glGetSamplerParameterIiv GLEW_GET_FUN(__glewGetSamplerParameterIiv)
3857 #define glGetSamplerParameterIuiv GLEW_GET_FUN(__glewGetSamplerParameterIuiv)
3858 #define glGetSamplerParameterfv GLEW_GET_FUN(__glewGetSamplerParameterfv)
3859 #define glGetSamplerParameteriv GLEW_GET_FUN(__glewGetSamplerParameteriv)
3860 #define glIsSampler GLEW_GET_FUN(__glewIsSampler)
3861 #define glSamplerParameterIiv GLEW_GET_FUN(__glewSamplerParameterIiv)
3862 #define glSamplerParameterIuiv GLEW_GET_FUN(__glewSamplerParameterIuiv)
3863 #define glSamplerParameterf GLEW_GET_FUN(__glewSamplerParameterf)
3864 #define glSamplerParameterfv GLEW_GET_FUN(__glewSamplerParameterfv)
3865 #define glSamplerParameteri GLEW_GET_FUN(__glewSamplerParameteri)
3866 #define glSamplerParameteriv GLEW_GET_FUN(__glewSamplerParameteriv)
3867
3868 #define GLEW_ARB_sampler_objects GLEW_GET_VAR(__GLEW_ARB_sampler_objects)
3869
3870 #endif /* GL_ARB_sampler_objects */
3871
3872 /* ------------------------ GL_ARB_seamless_cube_map ----------------------- */
3873
3874 #ifndef GL_ARB_seamless_cube_map
3875 #define GL_ARB_seamless_cube_map 1
3876
3877 #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
3878
3879 #define GLEW_ARB_seamless_cube_map GLEW_GET_VAR(__GLEW_ARB_seamless_cube_map)
3880
3881 #endif /* GL_ARB_seamless_cube_map */
3882
3883 /* ----------------------- GL_ARB_shader_bit_encoding ---------------------- */
3884
3885 #ifndef GL_ARB_shader_bit_encoding
3886 #define GL_ARB_shader_bit_encoding 1
3887
3888 #define GLEW_ARB_shader_bit_encoding GLEW_GET_VAR(__GLEW_ARB_shader_bit_encoding)
3889
3890 #endif /* GL_ARB_shader_bit_encoding */
3891
3892 /* ------------------------- GL_ARB_shader_objects ------------------------- */
3893
3894 #ifndef GL_ARB_shader_objects
3895 #define GL_ARB_shader_objects 1
3896
3897 #define GL_PROGRAM_OBJECT_ARB 0x8B40
3898 #define GL_SHADER_OBJECT_ARB 0x8B48
3899 #define GL_OBJECT_TYPE_ARB 0x8B4E
3900 #define GL_OBJECT_SUBTYPE_ARB 0x8B4F
3901 #define GL_FLOAT_VEC2_ARB 0x8B50
3902 #define GL_FLOAT_VEC3_ARB 0x8B51
3903 #define GL_FLOAT_VEC4_ARB 0x8B52
3904 #define GL_INT_VEC2_ARB 0x8B53
3905 #define GL_INT_VEC3_ARB 0x8B54
3906 #define GL_INT_VEC4_ARB 0x8B55
3907 #define GL_BOOL_ARB 0x8B56
3908 #define GL_BOOL_VEC2_ARB 0x8B57
3909 #define GL_BOOL_VEC3_ARB 0x8B58
3910 #define GL_BOOL_VEC4_ARB 0x8B59
3911 #define GL_FLOAT_MAT2_ARB 0x8B5A
3912 #define GL_FLOAT_MAT3_ARB 0x8B5B
3913 #define GL_FLOAT_MAT4_ARB 0x8B5C
3914 #define GL_SAMPLER_1D_ARB 0x8B5D
3915 #define GL_SAMPLER_2D_ARB 0x8B5E
3916 #define GL_SAMPLER_3D_ARB 0x8B5F
3917 #define GL_SAMPLER_CUBE_ARB 0x8B60
3918 #define GL_SAMPLER_1D_SHADOW_ARB 0x8B61
3919 #define GL_SAMPLER_2D_SHADOW_ARB 0x8B62
3920 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
3921 #define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
3922 #define GL_OBJECT_DELETE_STATUS_ARB 0x8B80
3923 #define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
3924 #define GL_OBJECT_LINK_STATUS_ARB 0x8B82
3925 #define GL_OBJECT_VALIDATE_STATUS_ARB 0x8B83
3926 #define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
3927 #define GL_OBJECT_ATTACHED_OBJECTS_ARB 0x8B85
3928 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB 0x8B86
3929 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
3930 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
3931
3932 typedef char GLcharARB;
3933 typedef unsigned int GLhandleARB;
3934
3935 typedef void (GLAPIENTRY * PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
3936 typedef void (GLAPIENTRY * PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
3937 typedef GLhandleARB (GLAPIENTRY * PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
3938 typedef GLhandleARB (GLAPIENTRY * PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
3939 typedef void (GLAPIENTRY * PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
3940 typedef void (GLAPIENTRY * PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
3941 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name);
3942 typedef void (GLAPIENTRY * PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei* count, GLhandleARB *obj);
3943 typedef GLhandleARB (GLAPIENTRY * PFNGLGETHANDLEARBPROC) (GLenum pname);
3944 typedef void (GLAPIENTRY * PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *infoLog);
3945 typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat* params);
3946 typedef void (GLAPIENTRY * PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint* params);
3947 typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei* length, GLcharARB *source);
3948 typedef GLint (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name);
3949 typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat* params);
3950 typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint* params);
3951 typedef void (GLAPIENTRY * PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
3952 typedef void (GLAPIENTRY * PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB ** string, const GLint *length);
3953 typedef void (GLAPIENTRY * PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
3954 typedef void (GLAPIENTRY * PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat* value);
3955 typedef void (GLAPIENTRY * PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
3956 typedef void (GLAPIENTRY * PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint* value);
3957 typedef void (GLAPIENTRY * PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
3958 typedef void (GLAPIENTRY * PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat* value);
3959 typedef void (GLAPIENTRY * PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
3960 typedef void (GLAPIENTRY * PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint* value);
3961 typedef void (GLAPIENTRY * PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
3962 typedef void (GLAPIENTRY * PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat* value);
3963 typedef void (GLAPIENTRY * PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
3964 typedef void (GLAPIENTRY * PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint* value);
3965 typedef void (GLAPIENTRY * PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
3966 typedef void (GLAPIENTRY * PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat* value);
3967 typedef void (GLAPIENTRY * PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
3968 typedef void (GLAPIENTRY * PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint* value);
3969 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
3970 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
3971 typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
3972 typedef void (GLAPIENTRY * PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
3973 typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
3974
3975 #define glAttachObjectARB GLEW_GET_FUN(__glewAttachObjectARB)
3976 #define glCompileShaderARB GLEW_GET_FUN(__glewCompileShaderARB)
3977 #define glCreateProgramObjectARB GLEW_GET_FUN(__glewCreateProgramObjectARB)
3978 #define glCreateShaderObjectARB GLEW_GET_FUN(__glewCreateShaderObjectARB)
3979 #define glDeleteObjectARB GLEW_GET_FUN(__glewDeleteObjectARB)
3980 #define glDetachObjectARB GLEW_GET_FUN(__glewDetachObjectARB)
3981 #define glGetActiveUniformARB GLEW_GET_FUN(__glewGetActiveUniformARB)
3982 #define glGetAttachedObjectsARB GLEW_GET_FUN(__glewGetAttachedObjectsARB)
3983 #define glGetHandleARB GLEW_GET_FUN(__glewGetHandleARB)
3984 #define glGetInfoLogARB GLEW_GET_FUN(__glewGetInfoLogARB)
3985 #define glGetObjectParameterfvARB GLEW_GET_FUN(__glewGetObjectParameterfvARB)
3986 #define glGetObjectParameterivARB GLEW_GET_FUN(__glewGetObjectParameterivARB)
3987 #define glGetShaderSourceARB GLEW_GET_FUN(__glewGetShaderSourceARB)
3988 #define glGetUniformLocationARB GLEW_GET_FUN(__glewGetUniformLocationARB)
3989 #define glGetUniformfvARB GLEW_GET_FUN(__glewGetUniformfvARB)
3990 #define glGetUniformivARB GLEW_GET_FUN(__glewGetUniformivARB)
3991 #define glLinkProgramARB GLEW_GET_FUN(__glewLinkProgramARB)
3992 #define glShaderSourceARB GLEW_GET_FUN(__glewShaderSourceARB)
3993 #define glUniform1fARB GLEW_GET_FUN(__glewUniform1fARB)
3994 #define glUniform1fvARB GLEW_GET_FUN(__glewUniform1fvARB)
3995 #define glUniform1iARB GLEW_GET_FUN(__glewUniform1iARB)
3996 #define glUniform1ivARB GLEW_GET_FUN(__glewUniform1ivARB)
3997 #define glUniform2fARB GLEW_GET_FUN(__glewUniform2fARB)
3998 #define glUniform2fvARB GLEW_GET_FUN(__glewUniform2fvARB)
3999 #define glUniform2iARB GLEW_GET_FUN(__glewUniform2iARB)
4000 #define glUniform2ivARB GLEW_GET_FUN(__glewUniform2ivARB)
4001 #define glUniform3fARB GLEW_GET_FUN(__glewUniform3fARB)
4002 #define glUniform3fvARB GLEW_GET_FUN(__glewUniform3fvARB)
4003 #define glUniform3iARB GLEW_GET_FUN(__glewUniform3iARB)
4004 #define glUniform3ivARB GLEW_GET_FUN(__glewUniform3ivARB)
4005 #define glUniform4fARB GLEW_GET_FUN(__glewUniform4fARB)
4006 #define glUniform4fvARB GLEW_GET_FUN(__glewUniform4fvARB)
4007 #define glUniform4iARB GLEW_GET_FUN(__glewUniform4iARB)
4008 #define glUniform4ivARB GLEW_GET_FUN(__glewUniform4ivARB)
4009 #define glUniformMatrix2fvARB GLEW_GET_FUN(__glewUniformMatrix2fvARB)
4010 #define glUniformMatrix3fvARB GLEW_GET_FUN(__glewUniformMatrix3fvARB)
4011 #define glUniformMatrix4fvARB GLEW_GET_FUN(__glewUniformMatrix4fvARB)
4012 #define glUseProgramObjectARB GLEW_GET_FUN(__glewUseProgramObjectARB)
4013 #define glValidateProgramARB GLEW_GET_FUN(__glewValidateProgramARB)
4014
4015 #define GLEW_ARB_shader_objects GLEW_GET_VAR(__GLEW_ARB_shader_objects)
4016
4017 #endif /* GL_ARB_shader_objects */
4018
4019 /* ------------------------ GL_ARB_shader_subroutine ----------------------- */
4020
4021 #ifndef GL_ARB_shader_subroutine
4022 #define GL_ARB_shader_subroutine 1
4023
4024 #define GL_ACTIVE_SUBROUTINES 0x8DE5
4025 #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
4026 #define GL_MAX_SUBROUTINES 0x8DE7
4027 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
4028 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
4029 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
4030 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
4031 #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
4032 #define GL_COMPATIBLE_SUBROUTINES 0x8E4B
4033
4034 typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name);
4035 typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei* length, char *name);
4036 typedef void (GLAPIENTRY * PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint* values);
4037 typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint* values);
4038 typedef GLuint (GLAPIENTRY * PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const char* name);
4039 typedef GLint (GLAPIENTRY * PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const char* name);
4040 typedef void (GLAPIENTRY * PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint* params);
4041 typedef void (GLAPIENTRY * PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint* indices);
4042
4043 #define glGetActiveSubroutineName GLEW_GET_FUN(__glewGetActiveSubroutineName)
4044 #define glGetActiveSubroutineUniformName GLEW_GET_FUN(__glewGetActiveSubroutineUniformName)
4045 #define glGetActiveSubroutineUniformiv GLEW_GET_FUN(__glewGetActiveSubroutineUniformiv)
4046 #define glGetProgramStageiv GLEW_GET_FUN(__glewGetProgramStageiv)
4047 #define glGetSubroutineIndex GLEW_GET_FUN(__glewGetSubroutineIndex)
4048 #define glGetSubroutineUniformLocation GLEW_GET_FUN(__glewGetSubroutineUniformLocation)
4049 #define glGetUniformSubroutineuiv GLEW_GET_FUN(__glewGetUniformSubroutineuiv)
4050 #define glUniformSubroutinesuiv GLEW_GET_FUN(__glewUniformSubroutinesuiv)
4051
4052 #define GLEW_ARB_shader_subroutine GLEW_GET_VAR(__GLEW_ARB_shader_subroutine)
4053
4054 #endif /* GL_ARB_shader_subroutine */
4055
4056 /* ----------------------- GL_ARB_shader_texture_lod ----------------------- */
4057
4058 #ifndef GL_ARB_shader_texture_lod
4059 #define GL_ARB_shader_texture_lod 1
4060
4061 #define GLEW_ARB_shader_texture_lod GLEW_GET_VAR(__GLEW_ARB_shader_texture_lod)
4062
4063 #endif /* GL_ARB_shader_texture_lod */
4064
4065 /* ---------------------- GL_ARB_shading_language_100 ---------------------- */
4066
4067 #ifndef GL_ARB_shading_language_100
4068 #define GL_ARB_shading_language_100 1
4069
4070 #define GL_SHADING_LANGUAGE_VERSION_ARB 0x8B8C
4071
4072 #define GLEW_ARB_shading_language_100 GLEW_GET_VAR(__GLEW_ARB_shading_language_100)
4073
4074 #endif /* GL_ARB_shading_language_100 */
4075
4076 /* -------------------- GL_ARB_shading_language_include -------------------- */
4077
4078 #ifndef GL_ARB_shading_language_include
4079 #define GL_ARB_shading_language_include 1
4080
4081 #define GL_SHADER_INCLUDE_ARB 0x8DAE
4082 #define GL_NAMED_STRING_LENGTH_ARB 0x8DE9
4083 #define GL_NAMED_STRING_TYPE_ARB 0x8DEA
4084
4085 typedef void (GLAPIENTRY * PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const char ** path, const GLint *length);
4086 typedef void (GLAPIENTRY * PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const char* name);
4087 typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const char* name, GLsizei bufSize, GLint *stringlen, char *string);
4088 typedef void (GLAPIENTRY * PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const char* name, GLenum pname, GLint *params);
4089 typedef GLboolean (GLAPIENTRY * PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const char* name);
4090 typedef void (GLAPIENTRY * PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const char* name, GLint stringlen, const char *string);
4091
4092 #define glCompileShaderIncludeARB GLEW_GET_FUN(__glewCompileShaderIncludeARB)
4093 #define glDeleteNamedStringARB GLEW_GET_FUN(__glewDeleteNamedStringARB)
4094 #define glGetNamedStringARB GLEW_GET_FUN(__glewGetNamedStringARB)
4095 #define glGetNamedStringivARB GLEW_GET_FUN(__glewGetNamedStringivARB)
4096 #define glIsNamedStringARB GLEW_GET_FUN(__glewIsNamedStringARB)
4097 #define glNamedStringARB GLEW_GET_FUN(__glewNamedStringARB)
4098
4099 #define GLEW_ARB_shading_language_include GLEW_GET_VAR(__GLEW_ARB_shading_language_include)
4100
4101 #endif /* GL_ARB_shading_language_include */
4102
4103 /* ----------------------------- GL_ARB_shadow ----------------------------- */
4104
4105 #ifndef GL_ARB_shadow
4106 #define GL_ARB_shadow 1
4107
4108 #define GL_TEXTURE_COMPARE_MODE_ARB 0x884C
4109 #define GL_TEXTURE_COMPARE_FUNC_ARB 0x884D
4110 #define GL_COMPARE_R_TO_TEXTURE_ARB 0x884E
4111
4112 #define GLEW_ARB_shadow GLEW_GET_VAR(__GLEW_ARB_shadow)
4113
4114 #endif /* GL_ARB_shadow */
4115
4116 /* ------------------------- GL_ARB_shadow_ambient ------------------------- */
4117
4118 #ifndef GL_ARB_shadow_ambient
4119 #define GL_ARB_shadow_ambient 1
4120
4121 #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
4122
4123 #define GLEW_ARB_shadow_ambient GLEW_GET_VAR(__GLEW_ARB_shadow_ambient)
4124
4125 #endif /* GL_ARB_shadow_ambient */
4126
4127 /* ------------------------------ GL_ARB_sync ------------------------------ */
4128
4129 #ifndef GL_ARB_sync
4130 #define GL_ARB_sync 1
4131
4132 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
4133 #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
4134 #define GL_OBJECT_TYPE 0x9112
4135 #define GL_SYNC_CONDITION 0x9113
4136 #define GL_SYNC_STATUS 0x9114
4137 #define GL_SYNC_FLAGS 0x9115
4138 #define GL_SYNC_FENCE 0x9116
4139 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
4140 #define GL_UNSIGNALED 0x9118
4141 #define GL_SIGNALED 0x9119
4142 #define GL_ALREADY_SIGNALED 0x911A
4143 #define GL_TIMEOUT_EXPIRED 0x911B
4144 #define GL_CONDITION_SATISFIED 0x911C
4145 #define GL_WAIT_FAILED 0x911D
4146 #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFF
4147
4148 typedef GLenum (GLAPIENTRY * PFNGLCLIENTWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout);
4149 typedef void (GLAPIENTRY * PFNGLDELETESYNCPROC) (GLsync GLsync);
4150 typedef GLsync (GLAPIENTRY * PFNGLFENCESYNCPROC) (GLenum condition,GLbitfield flags);
4151 typedef void (GLAPIENTRY * PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64* params);
4152 typedef void (GLAPIENTRY * PFNGLGETSYNCIVPROC) (GLsync GLsync,GLenum pname,GLsizei bufSize,GLsizei* length, GLint *values);
4153 typedef GLboolean (GLAPIENTRY * PFNGLISSYNCPROC) (GLsync GLsync);
4154 typedef void (GLAPIENTRY * PFNGLWAITSYNCPROC) (GLsync GLsync,GLbitfield flags,GLuint64 timeout);
4155
4156 #define glClientWaitSync GLEW_GET_FUN(__glewClientWaitSync)
4157 #define glDeleteSync GLEW_GET_FUN(__glewDeleteSync)
4158 #define glFenceSync GLEW_GET_FUN(__glewFenceSync)
4159 #define glGetInteger64v GLEW_GET_FUN(__glewGetInteger64v)
4160 #define glGetSynciv GLEW_GET_FUN(__glewGetSynciv)
4161 #define glIsSync GLEW_GET_FUN(__glewIsSync)
4162 #define glWaitSync GLEW_GET_FUN(__glewWaitSync)
4163
4164 #define GLEW_ARB_sync GLEW_GET_VAR(__GLEW_ARB_sync)
4165
4166 #endif /* GL_ARB_sync */
4167
4168 /* ----------------------- GL_ARB_tessellation_shader ---------------------- */
4169
4170 #ifndef GL_ARB_tessellation_shader
4171 #define GL_ARB_tessellation_shader 1
4172
4173 #define GL_PATCHES 0xE
4174 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
4175 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
4176 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
4177 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
4178 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
4179 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
4180 #define GL_PATCH_VERTICES 0x8E72
4181 #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
4182 #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
4183 #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
4184 #define GL_TESS_GEN_MODE 0x8E76
4185 #define GL_TESS_GEN_SPACING 0x8E77
4186 #define GL_TESS_GEN_VERTEX_ORDER 0x8E78
4187 #define GL_TESS_GEN_POINT_MODE 0x8E79
4188 #define GL_ISOLINES 0x8E7A
4189 #define GL_FRACTIONAL_ODD 0x8E7B
4190 #define GL_FRACTIONAL_EVEN 0x8E7C
4191 #define GL_MAX_PATCH_VERTICES 0x8E7D
4192 #define GL_MAX_TESS_GEN_LEVEL 0x8E7E
4193 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
4194 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
4195 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
4196 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
4197 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
4198 #define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
4199 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
4200 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
4201 #define GL_TESS_EVALUATION_SHADER 0x8E87
4202 #define GL_TESS_CONTROL_SHADER 0x8E88
4203 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
4204 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
4205
4206 typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat* values);
4207 typedef void (GLAPIENTRY * PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
4208
4209 #define glPatchParameterfv GLEW_GET_FUN(__glewPatchParameterfv)
4210 #define glPatchParameteri GLEW_GET_FUN(__glewPatchParameteri)
4211
4212 #define GLEW_ARB_tessellation_shader GLEW_GET_VAR(__GLEW_ARB_tessellation_shader)
4213
4214 #endif /* GL_ARB_tessellation_shader */
4215
4216 /* ---------------------- GL_ARB_texture_border_clamp ---------------------- */
4217
4218 #ifndef GL_ARB_texture_border_clamp
4219 #define GL_ARB_texture_border_clamp 1
4220
4221 #define GL_CLAMP_TO_BORDER_ARB 0x812D
4222
4223 #define GLEW_ARB_texture_border_clamp GLEW_GET_VAR(__GLEW_ARB_texture_border_clamp)
4224
4225 #endif /* GL_ARB_texture_border_clamp */
4226
4227 /* ---------------------- GL_ARB_texture_buffer_object --------------------- */
4228
4229 #ifndef GL_ARB_texture_buffer_object
4230 #define GL_ARB_texture_buffer_object 1
4231
4232 #define GL_TEXTURE_BUFFER_ARB 0x8C2A
4233 #define GL_MAX_TEXTURE_BUFFER_SIZE_ARB 0x8C2B
4234 #define GL_TEXTURE_BINDING_BUFFER_ARB 0x8C2C
4235 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
4236 #define GL_TEXTURE_BUFFER_FORMAT_ARB 0x8C2E
4237
4238 typedef void (GLAPIENTRY * PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
4239
4240 #define glTexBufferARB GLEW_GET_FUN(__glewTexBufferARB)
4241
4242 #define GLEW_ARB_texture_buffer_object GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object)
4243
4244 #endif /* GL_ARB_texture_buffer_object */
4245
4246 /* ------------------- GL_ARB_texture_buffer_object_rgb32 ------------------ */
4247
4248 #ifndef GL_ARB_texture_buffer_object_rgb32
4249 #define GL_ARB_texture_buffer_object_rgb32 1
4250
4251 #define GLEW_ARB_texture_buffer_object_rgb32 GLEW_GET_VAR(__GLEW_ARB_texture_buffer_object_rgb32)
4252
4253 #endif /* GL_ARB_texture_buffer_object_rgb32 */
4254
4255 /* ----------------------- GL_ARB_texture_compression ---------------------- */
4256
4257 #ifndef GL_ARB_texture_compression
4258 #define GL_ARB_texture_compression 1
4259
4260 #define GL_COMPRESSED_ALPHA_ARB 0x84E9
4261 #define GL_COMPRESSED_LUMINANCE_ARB 0x84EA
4262 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
4263 #define GL_COMPRESSED_INTENSITY_ARB 0x84EC
4264 #define GL_COMPRESSED_RGB_ARB 0x84ED
4265 #define GL_COMPRESSED_RGBA_ARB 0x84EE
4266 #define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF
4267 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
4268 #define GL_TEXTURE_COMPRESSED_ARB 0x86A1
4269 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
4270 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
4271
4272 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void* data);
4273 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data);
4274 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
4275 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void* data);
4276 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data);
4277 typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
4278 typedef void (GLAPIENTRY * PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, void* img);
4279
4280 #define glCompressedTexImage1DARB GLEW_GET_FUN(__glewCompressedTexImage1DARB)
4281 #define glCompressedTexImage2DARB GLEW_GET_FUN(__glewCompressedTexImage2DARB)
4282 #define glCompressedTexImage3DARB GLEW_GET_FUN(__glewCompressedTexImage3DARB)
4283 #define glCompressedTexSubImage1DARB GLEW_GET_FUN(__glewCompressedTexSubImage1DARB)
4284 #define glCompressedTexSubImage2DARB GLEW_GET_FUN(__glewCompressedTexSubImage2DARB)
4285 #define glCompressedTexSubImage3DARB GLEW_GET_FUN(__glewCompressedTexSubImage3DARB)
4286 #define glGetCompressedTexImageARB GLEW_GET_FUN(__glewGetCompressedTexImageARB)
4287
4288 #define GLEW_ARB_texture_compression GLEW_GET_VAR(__GLEW_ARB_texture_compression)
4289
4290 #endif /* GL_ARB_texture_compression */
4291
4292 /* -------------------- GL_ARB_texture_compression_bptc -------------------- */
4293
4294 #ifndef GL_ARB_texture_compression_bptc
4295 #define GL_ARB_texture_compression_bptc 1
4296
4297 #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
4298 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
4299 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
4300 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
4301
4302 #define GLEW_ARB_texture_compression_bptc GLEW_GET_VAR(__GLEW_ARB_texture_compression_bptc)
4303
4304 #endif /* GL_ARB_texture_compression_bptc */
4305
4306 /* -------------------- GL_ARB_texture_compression_rgtc -------------------- */
4307
4308 #ifndef GL_ARB_texture_compression_rgtc
4309 #define GL_ARB_texture_compression_rgtc 1
4310
4311 #define GL_COMPRESSED_RED_RGTC1 0x8DBB
4312 #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
4313 #define GL_COMPRESSED_RG_RGTC2 0x8DBD
4314 #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
4315
4316 #define GLEW_ARB_texture_compression_rgtc GLEW_GET_VAR(__GLEW_ARB_texture_compression_rgtc)
4317
4318 #endif /* GL_ARB_texture_compression_rgtc */
4319
4320 /* ------------------------ GL_ARB_texture_cube_map ------------------------ */
4321
4322 #ifndef GL_ARB_texture_cube_map
4323 #define GL_ARB_texture_cube_map 1
4324
4325 #define GL_NORMAL_MAP_ARB 0x8511
4326 #define GL_REFLECTION_MAP_ARB 0x8512
4327 #define GL_TEXTURE_CUBE_MAP_ARB 0x8513
4328 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB 0x8514
4329 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
4330 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
4331 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
4332 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
4333 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
4334 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
4335 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB 0x851B
4336 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB 0x851C
4337
4338 #define GLEW_ARB_texture_cube_map GLEW_GET_VAR(__GLEW_ARB_texture_cube_map)
4339
4340 #endif /* GL_ARB_texture_cube_map */
4341
4342 /* --------------------- GL_ARB_texture_cube_map_array --------------------- */
4343
4344 #ifndef GL_ARB_texture_cube_map_array
4345 #define GL_ARB_texture_cube_map_array 1
4346
4347 #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
4348 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
4349 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
4350 #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C
4351 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
4352 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
4353 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
4354
4355 #define GLEW_ARB_texture_cube_map_array GLEW_GET_VAR(__GLEW_ARB_texture_cube_map_array)
4356
4357 #endif /* GL_ARB_texture_cube_map_array */
4358
4359 /* ------------------------- GL_ARB_texture_env_add ------------------------ */
4360
4361 #ifndef GL_ARB_texture_env_add
4362 #define GL_ARB_texture_env_add 1
4363
4364 #define GLEW_ARB_texture_env_add GLEW_GET_VAR(__GLEW_ARB_texture_env_add)
4365
4366 #endif /* GL_ARB_texture_env_add */
4367
4368 /* ----------------------- GL_ARB_texture_env_combine ---------------------- */
4369
4370 #ifndef GL_ARB_texture_env_combine
4371 #define GL_ARB_texture_env_combine 1
4372
4373 #define GL_SUBTRACT_ARB 0x84E7
4374 #define GL_COMBINE_ARB 0x8570
4375 #define GL_COMBINE_RGB_ARB 0x8571
4376 #define GL_COMBINE_ALPHA_ARB 0x8572
4377 #define GL_RGB_SCALE_ARB 0x8573
4378 #define GL_ADD_SIGNED_ARB 0x8574
4379 #define GL_INTERPOLATE_ARB 0x8575
4380 #define GL_CONSTANT_ARB 0x8576
4381 #define GL_PRIMARY_COLOR_ARB 0x8577
4382 #define GL_PREVIOUS_ARB 0x8578
4383 #define GL_SOURCE0_RGB_ARB 0x8580
4384 #define GL_SOURCE1_RGB_ARB 0x8581
4385 #define GL_SOURCE2_RGB_ARB 0x8582
4386 #define GL_SOURCE0_ALPHA_ARB 0x8588
4387 #define GL_SOURCE1_ALPHA_ARB 0x8589
4388 #define GL_SOURCE2_ALPHA_ARB 0x858A
4389 #define GL_OPERAND0_RGB_ARB 0x8590
4390 #define GL_OPERAND1_RGB_ARB 0x8591
4391 #define GL_OPERAND2_RGB_ARB 0x8592
4392 #define GL_OPERAND0_ALPHA_ARB 0x8598
4393 #define GL_OPERAND1_ALPHA_ARB 0x8599
4394 #define GL_OPERAND2_ALPHA_ARB 0x859A
4395
4396 #define GLEW_ARB_texture_env_combine GLEW_GET_VAR(__GLEW_ARB_texture_env_combine)
4397
4398 #endif /* GL_ARB_texture_env_combine */
4399
4400 /* ---------------------- GL_ARB_texture_env_crossbar ---------------------- */
4401
4402 #ifndef GL_ARB_texture_env_crossbar
4403 #define GL_ARB_texture_env_crossbar 1
4404
4405 #define GLEW_ARB_texture_env_crossbar GLEW_GET_VAR(__GLEW_ARB_texture_env_crossbar)
4406
4407 #endif /* GL_ARB_texture_env_crossbar */
4408
4409 /* ------------------------ GL_ARB_texture_env_dot3 ------------------------ */
4410
4411 #ifndef GL_ARB_texture_env_dot3
4412 #define GL_ARB_texture_env_dot3 1
4413
4414 #define GL_DOT3_RGB_ARB 0x86AE
4415 #define GL_DOT3_RGBA_ARB 0x86AF
4416
4417 #define GLEW_ARB_texture_env_dot3 GLEW_GET_VAR(__GLEW_ARB_texture_env_dot3)
4418
4419 #endif /* GL_ARB_texture_env_dot3 */
4420
4421 /* -------------------------- GL_ARB_texture_float ------------------------- */
4422
4423 #ifndef GL_ARB_texture_float
4424 #define GL_ARB_texture_float 1
4425
4426 #define GL_RGBA32F_ARB 0x8814
4427 #define GL_RGB32F_ARB 0x8815
4428 #define GL_ALPHA32F_ARB 0x8816
4429 #define GL_INTENSITY32F_ARB 0x8817
4430 #define GL_LUMINANCE32F_ARB 0x8818
4431 #define GL_LUMINANCE_ALPHA32F_ARB 0x8819
4432 #define GL_RGBA16F_ARB 0x881A
4433 #define GL_RGB16F_ARB 0x881B
4434 #define GL_ALPHA16F_ARB 0x881C
4435 #define GL_INTENSITY16F_ARB 0x881D
4436 #define GL_LUMINANCE16F_ARB 0x881E
4437 #define GL_LUMINANCE_ALPHA16F_ARB 0x881F
4438 #define GL_TEXTURE_RED_TYPE_ARB 0x8C10
4439 #define GL_TEXTURE_GREEN_TYPE_ARB 0x8C11
4440 #define GL_TEXTURE_BLUE_TYPE_ARB 0x8C12
4441 #define GL_TEXTURE_ALPHA_TYPE_ARB 0x8C13
4442 #define GL_TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
4443 #define GL_TEXTURE_INTENSITY_TYPE_ARB 0x8C15
4444 #define GL_TEXTURE_DEPTH_TYPE_ARB 0x8C16
4445 #define GL_UNSIGNED_NORMALIZED_ARB 0x8C17
4446
4447 #define GLEW_ARB_texture_float GLEW_GET_VAR(__GLEW_ARB_texture_float)
4448
4449 #endif /* GL_ARB_texture_float */
4450
4451 /* ------------------------- GL_ARB_texture_gather ------------------------- */
4452
4453 #ifndef GL_ARB_texture_gather
4454 #define GL_ARB_texture_gather 1
4455
4456 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
4457 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
4458 #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
4459
4460 #define GLEW_ARB_texture_gather GLEW_GET_VAR(__GLEW_ARB_texture_gather)
4461
4462 #endif /* GL_ARB_texture_gather */
4463
4464 /* --------------------- GL_ARB_texture_mirrored_repeat -------------------- */
4465
4466 #ifndef GL_ARB_texture_mirrored_repeat
4467 #define GL_ARB_texture_mirrored_repeat 1
4468
4469 #define GL_MIRRORED_REPEAT_ARB 0x8370
4470
4471 #define GLEW_ARB_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_ARB_texture_mirrored_repeat)
4472
4473 #endif /* GL_ARB_texture_mirrored_repeat */
4474
4475 /* ----------------------- GL_ARB_texture_multisample ---------------------- */
4476
4477 #ifndef GL_ARB_texture_multisample
4478 #define GL_ARB_texture_multisample 1
4479
4480 #define GL_SAMPLE_POSITION 0x8E50
4481 #define GL_SAMPLE_MASK 0x8E51
4482 #define GL_SAMPLE_MASK_VALUE 0x8E52
4483 #define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
4484 #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
4485 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
4486 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
4487 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
4488 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
4489 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
4490 #define GL_TEXTURE_SAMPLES 0x9106
4491 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
4492 #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
4493 #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
4494 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
4495 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
4496 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
4497 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
4498 #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
4499 #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
4500 #define GL_MAX_INTEGER_SAMPLES 0x9110
4501
4502 typedef void (GLAPIENTRY * PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat* val);
4503 typedef void (GLAPIENTRY * PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
4504 typedef void (GLAPIENTRY * PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4505 typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4506
4507 #define glGetMultisamplefv GLEW_GET_FUN(__glewGetMultisamplefv)
4508 #define glSampleMaski GLEW_GET_FUN(__glewSampleMaski)
4509 #define glTexImage2DMultisample GLEW_GET_FUN(__glewTexImage2DMultisample)
4510 #define glTexImage3DMultisample GLEW_GET_FUN(__glewTexImage3DMultisample)
4511
4512 #define GLEW_ARB_texture_multisample GLEW_GET_VAR(__GLEW_ARB_texture_multisample)
4513
4514 #endif /* GL_ARB_texture_multisample */
4515
4516 /* -------------------- GL_ARB_texture_non_power_of_two -------------------- */
4517
4518 #ifndef GL_ARB_texture_non_power_of_two
4519 #define GL_ARB_texture_non_power_of_two 1
4520
4521 #define GLEW_ARB_texture_non_power_of_two GLEW_GET_VAR(__GLEW_ARB_texture_non_power_of_two)
4522
4523 #endif /* GL_ARB_texture_non_power_of_two */
4524
4525 /* ------------------------ GL_ARB_texture_query_lod ----------------------- */
4526
4527 #ifndef GL_ARB_texture_query_lod
4528 #define GL_ARB_texture_query_lod 1
4529
4530 #define GLEW_ARB_texture_query_lod GLEW_GET_VAR(__GLEW_ARB_texture_query_lod)
4531
4532 #endif /* GL_ARB_texture_query_lod */
4533
4534 /* ------------------------ GL_ARB_texture_rectangle ----------------------- */
4535
4536 #ifndef GL_ARB_texture_rectangle
4537 #define GL_ARB_texture_rectangle 1
4538
4539 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
4540 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6
4541 #define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7
4542 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
4543 #define GL_SAMPLER_2D_RECT_ARB 0x8B63
4544 #define GL_SAMPLER_2D_RECT_SHADOW_ARB 0x8B64
4545
4546 #define GLEW_ARB_texture_rectangle GLEW_GET_VAR(__GLEW_ARB_texture_rectangle)
4547
4548 #endif /* GL_ARB_texture_rectangle */
4549
4550 /* --------------------------- GL_ARB_texture_rg --------------------------- */
4551
4552 #ifndef GL_ARB_texture_rg
4553 #define GL_ARB_texture_rg 1
4554
4555 #define GL_RED 0x1903
4556 #define GL_COMPRESSED_RED 0x8225
4557 #define GL_COMPRESSED_RG 0x8226
4558 #define GL_RG 0x8227
4559 #define GL_RG_INTEGER 0x8228
4560 #define GL_R8 0x8229
4561 #define GL_R16 0x822A
4562 #define GL_RG8 0x822B
4563 #define GL_RG16 0x822C
4564 #define GL_R16F 0x822D
4565 #define GL_R32F 0x822E
4566 #define GL_RG16F 0x822F
4567 #define GL_RG32F 0x8230
4568 #define GL_R8I 0x8231
4569 #define GL_R8UI 0x8232
4570 #define GL_R16I 0x8233
4571 #define GL_R16UI 0x8234
4572 #define GL_R32I 0x8235
4573 #define GL_R32UI 0x8236
4574 #define GL_RG8I 0x8237
4575 #define GL_RG8UI 0x8238
4576 #define GL_RG16I 0x8239
4577 #define GL_RG16UI 0x823A
4578 #define GL_RG32I 0x823B
4579 #define GL_RG32UI 0x823C
4580
4581 #define GLEW_ARB_texture_rg GLEW_GET_VAR(__GLEW_ARB_texture_rg)
4582
4583 #endif /* GL_ARB_texture_rg */
4584
4585 /* ----------------------- GL_ARB_texture_rgb10_a2ui ----------------------- */
4586
4587 #ifndef GL_ARB_texture_rgb10_a2ui
4588 #define GL_ARB_texture_rgb10_a2ui 1
4589
4590 #define GL_RGB10_A2UI 0x906F
4591
4592 #define GLEW_ARB_texture_rgb10_a2ui GLEW_GET_VAR(__GLEW_ARB_texture_rgb10_a2ui)
4593
4594 #endif /* GL_ARB_texture_rgb10_a2ui */
4595
4596 /* ------------------------- GL_ARB_texture_swizzle ------------------------ */
4597
4598 #ifndef GL_ARB_texture_swizzle
4599 #define GL_ARB_texture_swizzle 1
4600
4601 #define GL_TEXTURE_SWIZZLE_R 0x8E42
4602 #define GL_TEXTURE_SWIZZLE_G 0x8E43
4603 #define GL_TEXTURE_SWIZZLE_B 0x8E44
4604 #define GL_TEXTURE_SWIZZLE_A 0x8E45
4605 #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
4606
4607 #define GLEW_ARB_texture_swizzle GLEW_GET_VAR(__GLEW_ARB_texture_swizzle)
4608
4609 #endif /* GL_ARB_texture_swizzle */
4610
4611 /* --------------------------- GL_ARB_timer_query -------------------------- */
4612
4613 #ifndef GL_ARB_timer_query
4614 #define GL_ARB_timer_query 1
4615
4616 #define GL_TIME_ELAPSED 0x88BF
4617 #define GL_TIMESTAMP 0x8E28
4618
4619 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64* params);
4620 typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64* params);
4621 typedef void (GLAPIENTRY * PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
4622
4623 #define glGetQueryObjecti64v GLEW_GET_FUN(__glewGetQueryObjecti64v)
4624 #define glGetQueryObjectui64v GLEW_GET_FUN(__glewGetQueryObjectui64v)
4625 #define glQueryCounter GLEW_GET_FUN(__glewQueryCounter)
4626
4627 #define GLEW_ARB_timer_query GLEW_GET_VAR(__GLEW_ARB_timer_query)
4628
4629 #endif /* GL_ARB_timer_query */
4630
4631 /* ----------------------- GL_ARB_transform_feedback2 ---------------------- */
4632
4633 #ifndef GL_ARB_transform_feedback2
4634 #define GL_ARB_transform_feedback2 1
4635
4636 #define GL_TRANSFORM_FEEDBACK 0x8E22
4637 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
4638 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
4639 #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
4640
4641 typedef void (GLAPIENTRY * PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
4642 typedef void (GLAPIENTRY * PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint* ids);
4643 typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
4644 typedef void (GLAPIENTRY * PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint* ids);
4645 typedef GLboolean (GLAPIENTRY * PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
4646 typedef void (GLAPIENTRY * PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
4647 typedef void (GLAPIENTRY * PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
4648
4649 #define glBindTransformFeedback GLEW_GET_FUN(__glewBindTransformFeedback)
4650 #define glDeleteTransformFeedbacks GLEW_GET_FUN(__glewDeleteTransformFeedbacks)
4651 #define glDrawTransformFeedback GLEW_GET_FUN(__glewDrawTransformFeedback)
4652 #define glGenTransformFeedbacks GLEW_GET_FUN(__glewGenTransformFeedbacks)
4653 #define glIsTransformFeedback GLEW_GET_FUN(__glewIsTransformFeedback)
4654 #define glPauseTransformFeedback GLEW_GET_FUN(__glewPauseTransformFeedback)
4655 #define glResumeTransformFeedback GLEW_GET_FUN(__glewResumeTransformFeedback)
4656
4657 #define GLEW_ARB_transform_feedback2 GLEW_GET_VAR(__GLEW_ARB_transform_feedback2)
4658
4659 #endif /* GL_ARB_transform_feedback2 */
4660
4661 /* ----------------------- GL_ARB_transform_feedback3 ---------------------- */
4662
4663 #ifndef GL_ARB_transform_feedback3
4664 #define GL_ARB_transform_feedback3 1
4665
4666 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
4667 #define GL_MAX_VERTEX_STREAMS 0x8E71
4668
4669 typedef void (GLAPIENTRY * PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
4670 typedef void (GLAPIENTRY * PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
4671 typedef void (GLAPIENTRY * PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
4672 typedef void (GLAPIENTRY * PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint* params);
4673
4674 #define glBeginQueryIndexed GLEW_GET_FUN(__glewBeginQueryIndexed)
4675 #define glDrawTransformFeedbackStream GLEW_GET_FUN(__glewDrawTransformFeedbackStream)
4676 #define glEndQueryIndexed GLEW_GET_FUN(__glewEndQueryIndexed)
4677 #define glGetQueryIndexediv GLEW_GET_FUN(__glewGetQueryIndexediv)
4678
4679 #define GLEW_ARB_transform_feedback3 GLEW_GET_VAR(__GLEW_ARB_transform_feedback3)
4680
4681 #endif /* GL_ARB_transform_feedback3 */
4682
4683 /* ------------------------ GL_ARB_transpose_matrix ------------------------ */
4684
4685 #ifndef GL_ARB_transpose_matrix
4686 #define GL_ARB_transpose_matrix 1
4687
4688 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
4689 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
4690 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB 0x84E5
4691 #define GL_TRANSPOSE_COLOR_MATRIX_ARB 0x84E6
4692
4693 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]);
4694 typedef void (GLAPIENTRY * PFNGLLOADTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]);
4695 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXDARBPROC) (GLdouble m[16]);
4696 typedef void (GLAPIENTRY * PFNGLMULTTRANSPOSEMATRIXFARBPROC) (GLfloat m[16]);
4697
4698 #define glLoadTransposeMatrixdARB GLEW_GET_FUN(__glewLoadTransposeMatrixdARB)
4699 #define glLoadTransposeMatrixfARB GLEW_GET_FUN(__glewLoadTransposeMatrixfARB)
4700 #define glMultTransposeMatrixdARB GLEW_GET_FUN(__glewMultTransposeMatrixdARB)
4701 #define glMultTransposeMatrixfARB GLEW_GET_FUN(__glewMultTransposeMatrixfARB)
4702
4703 #define GLEW_ARB_transpose_matrix GLEW_GET_VAR(__GLEW_ARB_transpose_matrix)
4704
4705 #endif /* GL_ARB_transpose_matrix */
4706
4707 /* ---------------------- GL_ARB_uniform_buffer_object --------------------- */
4708
4709 #ifndef GL_ARB_uniform_buffer_object
4710 #define GL_ARB_uniform_buffer_object 1
4711
4712 #define GL_UNIFORM_BUFFER 0x8A11
4713 #define GL_UNIFORM_BUFFER_BINDING 0x8A28
4714 #define GL_UNIFORM_BUFFER_START 0x8A29
4715 #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
4716 #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
4717 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
4718 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
4719 #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
4720 #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
4721 #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
4722 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
4723 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
4724 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
4725 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
4726 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
4727 #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
4728 #define GL_UNIFORM_TYPE 0x8A37
4729 #define GL_UNIFORM_SIZE 0x8A38
4730 #define GL_UNIFORM_NAME_LENGTH 0x8A39
4731 #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
4732 #define GL_UNIFORM_OFFSET 0x8A3B
4733 #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
4734 #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
4735 #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
4736 #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
4737 #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
4738 #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
4739 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
4740 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
4741 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
4742 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
4743 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
4744 #define GL_INVALID_INDEX 0xFFFFFFFF
4745
4746 typedef void (GLAPIENTRY * PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
4747 typedef void (GLAPIENTRY * PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
4748 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length, char* uniformBlockName);
4749 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
4750 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei* length, char* uniformName);
4751 typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint* uniformIndices, GLenum pname, GLint* params);
4752 typedef void (GLAPIENTRY * PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint* data);
4753 typedef GLuint (GLAPIENTRY * PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const char* uniformBlockName);
4754 typedef void (GLAPIENTRY * PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const char** uniformNames, GLuint* uniformIndices);
4755 typedef void (GLAPIENTRY * PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
4756
4757 #define glBindBufferBase GLEW_GET_FUN(__glewBindBufferBase)
4758 #define glBindBufferRange GLEW_GET_FUN(__glewBindBufferRange)
4759 #define glGetActiveUniformBlockName GLEW_GET_FUN(__glewGetActiveUniformBlockName)
4760 #define glGetActiveUniformBlockiv GLEW_GET_FUN(__glewGetActiveUniformBlockiv)
4761 #define glGetActiveUniformName GLEW_GET_FUN(__glewGetActiveUniformName)
4762 #define glGetActiveUniformsiv GLEW_GET_FUN(__glewGetActiveUniformsiv)
4763 #define glGetIntegeri_v GLEW_GET_FUN(__glewGetIntegeri_v)
4764 #define glGetUniformBlockIndex GLEW_GET_FUN(__glewGetUniformBlockIndex)
4765 #define glGetUniformIndices GLEW_GET_FUN(__glewGetUniformIndices)
4766 #define glUniformBlockBinding GLEW_GET_FUN(__glewUniformBlockBinding)
4767
4768 #define GLEW_ARB_uniform_buffer_object GLEW_GET_VAR(__GLEW_ARB_uniform_buffer_object)
4769
4770 #endif /* GL_ARB_uniform_buffer_object */
4771
4772 /* ------------------------ GL_ARB_vertex_array_bgra ----------------------- */
4773
4774 #ifndef GL_ARB_vertex_array_bgra
4775 #define GL_ARB_vertex_array_bgra 1
4776
4777 #define GL_BGRA 0x80E1
4778
4779 #define GLEW_ARB_vertex_array_bgra GLEW_GET_VAR(__GLEW_ARB_vertex_array_bgra)
4780
4781 #endif /* GL_ARB_vertex_array_bgra */
4782
4783 /* ----------------------- GL_ARB_vertex_array_object ---------------------- */
4784
4785 #ifndef GL_ARB_vertex_array_object
4786 #define GL_ARB_vertex_array_object 1
4787
4788 #define GL_VERTEX_ARRAY_BINDING 0x85B5
4789
4790 typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYPROC) (GLuint array);
4791 typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint* arrays);
4792 typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint* arrays);
4793 typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYPROC) (GLuint array);
4794
4795 #define glBindVertexArray GLEW_GET_FUN(__glewBindVertexArray)
4796 #define glDeleteVertexArrays GLEW_GET_FUN(__glewDeleteVertexArrays)
4797 #define glGenVertexArrays GLEW_GET_FUN(__glewGenVertexArrays)
4798 #define glIsVertexArray GLEW_GET_FUN(__glewIsVertexArray)
4799
4800 #define GLEW_ARB_vertex_array_object GLEW_GET_VAR(__GLEW_ARB_vertex_array_object)
4801
4802 #endif /* GL_ARB_vertex_array_object */
4803
4804 /* -------------------------- GL_ARB_vertex_blend -------------------------- */
4805
4806 #ifndef GL_ARB_vertex_blend
4807 #define GL_ARB_vertex_blend 1
4808
4809 #define GL_MODELVIEW0_ARB 0x1700
4810 #define GL_MODELVIEW1_ARB 0x850A
4811 #define GL_MAX_VERTEX_UNITS_ARB 0x86A4
4812 #define GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
4813 #define GL_WEIGHT_SUM_UNITY_ARB 0x86A6
4814 #define GL_VERTEX_BLEND_ARB 0x86A7
4815 #define GL_CURRENT_WEIGHT_ARB 0x86A8
4816 #define GL_WEIGHT_ARRAY_TYPE_ARB 0x86A9
4817 #define GL_WEIGHT_ARRAY_STRIDE_ARB 0x86AA
4818 #define GL_WEIGHT_ARRAY_SIZE_ARB 0x86AB
4819 #define GL_WEIGHT_ARRAY_POINTER_ARB 0x86AC
4820 #define GL_WEIGHT_ARRAY_ARB 0x86AD
4821 #define GL_MODELVIEW2_ARB 0x8722
4822 #define GL_MODELVIEW3_ARB 0x8723
4823 #define GL_MODELVIEW4_ARB 0x8724
4824 #define GL_MODELVIEW5_ARB 0x8725
4825 #define GL_MODELVIEW6_ARB 0x8726
4826 #define GL_MODELVIEW7_ARB 0x8727
4827 #define GL_MODELVIEW8_ARB 0x8728
4828 #define GL_MODELVIEW9_ARB 0x8729
4829 #define GL_MODELVIEW10_ARB 0x872A
4830 #define GL_MODELVIEW11_ARB 0x872B
4831 #define GL_MODELVIEW12_ARB 0x872C
4832 #define GL_MODELVIEW13_ARB 0x872D
4833 #define GL_MODELVIEW14_ARB 0x872E
4834 #define GL_MODELVIEW15_ARB 0x872F
4835 #define GL_MODELVIEW16_ARB 0x8730
4836 #define GL_MODELVIEW17_ARB 0x8731
4837 #define GL_MODELVIEW18_ARB 0x8732
4838 #define GL_MODELVIEW19_ARB 0x8733
4839 #define GL_MODELVIEW20_ARB 0x8734
4840 #define GL_MODELVIEW21_ARB 0x8735
4841 #define GL_MODELVIEW22_ARB 0x8736
4842 #define GL_MODELVIEW23_ARB 0x8737
4843 #define GL_MODELVIEW24_ARB 0x8738
4844 #define GL_MODELVIEW25_ARB 0x8739
4845 #define GL_MODELVIEW26_ARB 0x873A
4846 #define GL_MODELVIEW27_ARB 0x873B
4847 #define GL_MODELVIEW28_ARB 0x873C
4848 #define GL_MODELVIEW29_ARB 0x873D
4849 #define GL_MODELVIEW30_ARB 0x873E
4850 #define GL_MODELVIEW31_ARB 0x873F
4851
4852 typedef void (GLAPIENTRY * PFNGLVERTEXBLENDARBPROC) (GLint count);
4853 typedef void (GLAPIENTRY * PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer);
4854 typedef void (GLAPIENTRY * PFNGLWEIGHTBVARBPROC) (GLint size, GLbyte *weights);
4855 typedef void (GLAPIENTRY * PFNGLWEIGHTDVARBPROC) (GLint size, GLdouble *weights);
4856 typedef void (GLAPIENTRY * PFNGLWEIGHTFVARBPROC) (GLint size, GLfloat *weights);
4857 typedef void (GLAPIENTRY * PFNGLWEIGHTIVARBPROC) (GLint size, GLint *weights);
4858 typedef void (GLAPIENTRY * PFNGLWEIGHTSVARBPROC) (GLint size, GLshort *weights);
4859 typedef void (GLAPIENTRY * PFNGLWEIGHTUBVARBPROC) (GLint size, GLubyte *weights);
4860 typedef void (GLAPIENTRY * PFNGLWEIGHTUIVARBPROC) (GLint size, GLuint *weights);
4861 typedef void (GLAPIENTRY * PFNGLWEIGHTUSVARBPROC) (GLint size, GLushort *weights);
4862
4863 #define glVertexBlendARB GLEW_GET_FUN(__glewVertexBlendARB)
4864 #define glWeightPointerARB GLEW_GET_FUN(__glewWeightPointerARB)
4865 #define glWeightbvARB GLEW_GET_FUN(__glewWeightbvARB)
4866 #define glWeightdvARB GLEW_GET_FUN(__glewWeightdvARB)
4867 #define glWeightfvARB GLEW_GET_FUN(__glewWeightfvARB)
4868 #define glWeightivARB GLEW_GET_FUN(__glewWeightivARB)
4869 #define glWeightsvARB GLEW_GET_FUN(__glewWeightsvARB)
4870 #define glWeightubvARB GLEW_GET_FUN(__glewWeightubvARB)
4871 #define glWeightuivARB GLEW_GET_FUN(__glewWeightuivARB)
4872 #define glWeightusvARB GLEW_GET_FUN(__glewWeightusvARB)
4873
4874 #define GLEW_ARB_vertex_blend GLEW_GET_VAR(__GLEW_ARB_vertex_blend)
4875
4876 #endif /* GL_ARB_vertex_blend */
4877
4878 /* ---------------------- GL_ARB_vertex_buffer_object ---------------------- */
4879
4880 #ifndef GL_ARB_vertex_buffer_object
4881 #define GL_ARB_vertex_buffer_object 1
4882
4883 #define GL_BUFFER_SIZE_ARB 0x8764
4884 #define GL_BUFFER_USAGE_ARB 0x8765
4885 #define GL_ARRAY_BUFFER_ARB 0x8892
4886 #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893
4887 #define GL_ARRAY_BUFFER_BINDING_ARB 0x8894
4888 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
4889 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
4890 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
4891 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
4892 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
4893 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
4894 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
4895 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
4896 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
4897 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
4898 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
4899 #define GL_READ_ONLY_ARB 0x88B8
4900 #define GL_WRITE_ONLY_ARB 0x88B9
4901 #define GL_READ_WRITE_ARB 0x88BA
4902 #define GL_BUFFER_ACCESS_ARB 0x88BB
4903 #define GL_BUFFER_MAPPED_ARB 0x88BC
4904 #define GL_BUFFER_MAP_POINTER_ARB 0x88BD
4905 #define GL_STREAM_DRAW_ARB 0x88E0
4906 #define GL_STREAM_READ_ARB 0x88E1
4907 #define GL_STREAM_COPY_ARB 0x88E2
4908 #define GL_STATIC_DRAW_ARB 0x88E4
4909 #define GL_STATIC_READ_ARB 0x88E5
4910 #define GL_STATIC_COPY_ARB 0x88E6
4911 #define GL_DYNAMIC_DRAW_ARB 0x88E8
4912 #define GL_DYNAMIC_READ_ARB 0x88E9
4913 #define GL_DYNAMIC_COPY_ARB 0x88EA
4914
4915 typedef ptrdiff_t GLsizeiptrARB;
4916 typedef ptrdiff_t GLintptrARB;
4917
4918 typedef void (GLAPIENTRY * PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
4919 typedef void (GLAPIENTRY * PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const GLvoid* data, GLenum usage);
4920 typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid* data);
4921 typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint* buffers);
4922 typedef void (GLAPIENTRY * PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint* buffers);
4923 typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint* params);
4924 typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, GLvoid** params);
4925 typedef void (GLAPIENTRY * PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid* data);
4926 typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERARBPROC) (GLuint buffer);
4927 typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
4928 typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFERARBPROC) (GLenum target);
4929
4930 #define glBindBufferARB GLEW_GET_FUN(__glewBindBufferARB)
4931 #define glBufferDataARB GLEW_GET_FUN(__glewBufferDataARB)
4932 #define glBufferSubDataARB GLEW_GET_FUN(__glewBufferSubDataARB)
4933 #define glDeleteBuffersARB GLEW_GET_FUN(__glewDeleteBuffersARB)
4934 #define glGenBuffersARB GLEW_GET_FUN(__glewGenBuffersARB)
4935 #define glGetBufferParameterivARB GLEW_GET_FUN(__glewGetBufferParameterivARB)
4936 #define glGetBufferPointervARB GLEW_GET_FUN(__glewGetBufferPointervARB)
4937 #define glGetBufferSubDataARB GLEW_GET_FUN(__glewGetBufferSubDataARB)
4938 #define glIsBufferARB GLEW_GET_FUN(__glewIsBufferARB)
4939 #define glMapBufferARB GLEW_GET_FUN(__glewMapBufferARB)
4940 #define glUnmapBufferARB GLEW_GET_FUN(__glewUnmapBufferARB)
4941
4942 #define GLEW_ARB_vertex_buffer_object GLEW_GET_VAR(__GLEW_ARB_vertex_buffer_object)
4943
4944 #endif /* GL_ARB_vertex_buffer_object */
4945
4946 /* ------------------------- GL_ARB_vertex_program ------------------------- */
4947
4948 #ifndef GL_ARB_vertex_program
4949 #define GL_ARB_vertex_program 1
4950
4951 #define GL_COLOR_SUM_ARB 0x8458
4952 #define GL_VERTEX_PROGRAM_ARB 0x8620
4953 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
4954 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB 0x8623
4955 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
4956 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB 0x8625
4957 #define GL_CURRENT_VERTEX_ATTRIB_ARB 0x8626
4958 #define GL_PROGRAM_LENGTH_ARB 0x8627
4959 #define GL_PROGRAM_STRING_ARB 0x8628
4960 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
4961 #define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
4962 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
4963 #define GL_CURRENT_MATRIX_ARB 0x8641
4964 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB 0x8642
4965 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB 0x8643
4966 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
4967 #define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
4968 #define GL_PROGRAM_BINDING_ARB 0x8677
4969 #define GL_MAX_VERTEX_ATTRIBS_ARB 0x8869
4970 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
4971 #define GL_PROGRAM_ERROR_STRING_ARB 0x8874
4972 #define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
4973 #define GL_PROGRAM_FORMAT_ARB 0x8876
4974 #define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
4975 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
4976 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
4977 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
4978 #define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
4979 #define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
4980 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
4981 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
4982 #define GL_PROGRAM_PARAMETERS_ARB 0x88A8
4983 #define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
4984 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
4985 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
4986 #define GL_PROGRAM_ATTRIBS_ARB 0x88AC
4987 #define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
4988 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
4989 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
4990 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B0
4991 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
4992 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
4993 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
4994 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
4995 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
4996 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
4997 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
4998 #define GL_MATRIX0_ARB 0x88C0
4999 #define GL_MATRIX1_ARB 0x88C1
5000 #define GL_MATRIX2_ARB 0x88C2
5001 #define GL_MATRIX3_ARB 0x88C3
5002 #define GL_MATRIX4_ARB 0x88C4
5003 #define GL_MATRIX5_ARB 0x88C5
5004 #define GL_MATRIX6_ARB 0x88C6
5005 #define GL_MATRIX7_ARB 0x88C7
5006 #define GL_MATRIX8_ARB 0x88C8
5007 #define GL_MATRIX9_ARB 0x88C9
5008 #define GL_MATRIX10_ARB 0x88CA
5009 #define GL_MATRIX11_ARB 0x88CB
5010 #define GL_MATRIX12_ARB 0x88CC
5011 #define GL_MATRIX13_ARB 0x88CD
5012 #define GL_MATRIX14_ARB 0x88CE
5013 #define GL_MATRIX15_ARB 0x88CF
5014 #define GL_MATRIX16_ARB 0x88D0
5015 #define GL_MATRIX17_ARB 0x88D1
5016 #define GL_MATRIX18_ARB 0x88D2
5017 #define GL_MATRIX19_ARB 0x88D3
5018 #define GL_MATRIX20_ARB 0x88D4
5019 #define GL_MATRIX21_ARB 0x88D5
5020 #define GL_MATRIX22_ARB 0x88D6
5021 #define GL_MATRIX23_ARB 0x88D7
5022 #define GL_MATRIX24_ARB 0x88D8
5023 #define GL_MATRIX25_ARB 0x88D9
5024 #define GL_MATRIX26_ARB 0x88DA
5025 #define GL_MATRIX27_ARB 0x88DB
5026 #define GL_MATRIX28_ARB 0x88DC
5027 #define GL_MATRIX29_ARB 0x88DD
5028 #define GL_MATRIX30_ARB 0x88DE
5029 #define GL_MATRIX31_ARB 0x88DF
5030
5031 typedef void (GLAPIENTRY * PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
5032 typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint* programs);
5033 typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
5034 typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
5035 typedef void (GLAPIENTRY * PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint* programs);
5036 typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params);
5037 typedef void (GLAPIENTRY * PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params);
5038 typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble* params);
5039 typedef void (GLAPIENTRY * PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat* params);
5040 typedef void (GLAPIENTRY * PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void* string);
5041 typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint* params);
5042 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, GLvoid** pointer);
5043 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble* params);
5044 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat* params);
5045 typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint* params);
5046 typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMARBPROC) (GLuint program);
5047 typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5048 typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params);
5049 typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5050 typedef void (GLAPIENTRY * PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params);
5051 typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5052 typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble* params);
5053 typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5054 typedef void (GLAPIENTRY * PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat* params);
5055 typedef void (GLAPIENTRY * PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void* string);
5056 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
5057 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble* v);
5058 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
5059 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat* v);
5060 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
5061 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort* v);
5062 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
5063 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble* v);
5064 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
5065 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat* v);
5066 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
5067 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort* v);
5068 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
5069 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble* v);
5070 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
5071 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat* v);
5072 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
5073 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort* v);
5074 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte* v);
5075 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint* v);
5076 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort* v);
5077 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
5078 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte* v);
5079 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint* v);
5080 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort* v);
5081 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte* v);
5082 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
5083 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble* v);
5084 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
5085 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat* v);
5086 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint* v);
5087 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
5088 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort* v);
5089 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte* v);
5090 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint* v);
5091 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort* v);
5092 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer);
5093
5094 #define glBindProgramARB GLEW_GET_FUN(__glewBindProgramARB)
5095 #define glDeleteProgramsARB GLEW_GET_FUN(__glewDeleteProgramsARB)
5096 #define glDisableVertexAttribArrayARB GLEW_GET_FUN(__glewDisableVertexAttribArrayARB)
5097 #define glEnableVertexAttribArrayARB GLEW_GET_FUN(__glewEnableVertexAttribArrayARB)
5098 #define glGenProgramsARB GLEW_GET_FUN(__glewGenProgramsARB)
5099 #define glGetProgramEnvParameterdvARB GLEW_GET_FUN(__glewGetProgramEnvParameterdvARB)
5100 #define glGetProgramEnvParameterfvARB GLEW_GET_FUN(__glewGetProgramEnvParameterfvARB)
5101 #define glGetProgramLocalParameterdvARB GLEW_GET_FUN(__glewGetProgramLocalParameterdvARB)
5102 #define glGetProgramLocalParameterfvARB GLEW_GET_FUN(__glewGetProgramLocalParameterfvARB)
5103 #define glGetProgramStringARB GLEW_GET_FUN(__glewGetProgramStringARB)
5104 #define glGetProgramivARB GLEW_GET_FUN(__glewGetProgramivARB)
5105 #define glGetVertexAttribPointervARB GLEW_GET_FUN(__glewGetVertexAttribPointervARB)
5106 #define glGetVertexAttribdvARB GLEW_GET_FUN(__glewGetVertexAttribdvARB)
5107 #define glGetVertexAttribfvARB GLEW_GET_FUN(__glewGetVertexAttribfvARB)
5108 #define glGetVertexAttribivARB GLEW_GET_FUN(__glewGetVertexAttribivARB)
5109 #define glIsProgramARB GLEW_GET_FUN(__glewIsProgramARB)
5110 #define glProgramEnvParameter4dARB GLEW_GET_FUN(__glewProgramEnvParameter4dARB)
5111 #define glProgramEnvParameter4dvARB GLEW_GET_FUN(__glewProgramEnvParameter4dvARB)
5112 #define glProgramEnvParameter4fARB GLEW_GET_FUN(__glewProgramEnvParameter4fARB)
5113 #define glProgramEnvParameter4fvARB GLEW_GET_FUN(__glewProgramEnvParameter4fvARB)
5114 #define glProgramLocalParameter4dARB GLEW_GET_FUN(__glewProgramLocalParameter4dARB)
5115 #define glProgramLocalParameter4dvARB GLEW_GET_FUN(__glewProgramLocalParameter4dvARB)
5116 #define glProgramLocalParameter4fARB GLEW_GET_FUN(__glewProgramLocalParameter4fARB)
5117 #define glProgramLocalParameter4fvARB GLEW_GET_FUN(__glewProgramLocalParameter4fvARB)
5118 #define glProgramStringARB GLEW_GET_FUN(__glewProgramStringARB)
5119 #define glVertexAttrib1dARB GLEW_GET_FUN(__glewVertexAttrib1dARB)
5120 #define glVertexAttrib1dvARB GLEW_GET_FUN(__glewVertexAttrib1dvARB)
5121 #define glVertexAttrib1fARB GLEW_GET_FUN(__glewVertexAttrib1fARB)
5122 #define glVertexAttrib1fvARB GLEW_GET_FUN(__glewVertexAttrib1fvARB)
5123 #define glVertexAttrib1sARB GLEW_GET_FUN(__glewVertexAttrib1sARB)
5124 #define glVertexAttrib1svARB GLEW_GET_FUN(__glewVertexAttrib1svARB)
5125 #define glVertexAttrib2dARB GLEW_GET_FUN(__glewVertexAttrib2dARB)
5126 #define glVertexAttrib2dvARB GLEW_GET_FUN(__glewVertexAttrib2dvARB)
5127 #define glVertexAttrib2fARB GLEW_GET_FUN(__glewVertexAttrib2fARB)
5128 #define glVertexAttrib2fvARB GLEW_GET_FUN(__glewVertexAttrib2fvARB)
5129 #define glVertexAttrib2sARB GLEW_GET_FUN(__glewVertexAttrib2sARB)
5130 #define glVertexAttrib2svARB GLEW_GET_FUN(__glewVertexAttrib2svARB)
5131 #define glVertexAttrib3dARB GLEW_GET_FUN(__glewVertexAttrib3dARB)
5132 #define glVertexAttrib3dvARB GLEW_GET_FUN(__glewVertexAttrib3dvARB)
5133 #define glVertexAttrib3fARB GLEW_GET_FUN(__glewVertexAttrib3fARB)
5134 #define glVertexAttrib3fvARB GLEW_GET_FUN(__glewVertexAttrib3fvARB)
5135 #define glVertexAttrib3sARB GLEW_GET_FUN(__glewVertexAttrib3sARB)
5136 #define glVertexAttrib3svARB GLEW_GET_FUN(__glewVertexAttrib3svARB)
5137 #define glVertexAttrib4NbvARB GLEW_GET_FUN(__glewVertexAttrib4NbvARB)
5138 #define glVertexAttrib4NivARB GLEW_GET_FUN(__glewVertexAttrib4NivARB)
5139 #define glVertexAttrib4NsvARB GLEW_GET_FUN(__glewVertexAttrib4NsvARB)
5140 #define glVertexAttrib4NubARB GLEW_GET_FUN(__glewVertexAttrib4NubARB)
5141 #define glVertexAttrib4NubvARB GLEW_GET_FUN(__glewVertexAttrib4NubvARB)
5142 #define glVertexAttrib4NuivARB GLEW_GET_FUN(__glewVertexAttrib4NuivARB)
5143 #define glVertexAttrib4NusvARB GLEW_GET_FUN(__glewVertexAttrib4NusvARB)
5144 #define glVertexAttrib4bvARB GLEW_GET_FUN(__glewVertexAttrib4bvARB)
5145 #define glVertexAttrib4dARB GLEW_GET_FUN(__glewVertexAttrib4dARB)
5146 #define glVertexAttrib4dvARB GLEW_GET_FUN(__glewVertexAttrib4dvARB)
5147 #define glVertexAttrib4fARB GLEW_GET_FUN(__glewVertexAttrib4fARB)
5148 #define glVertexAttrib4fvARB GLEW_GET_FUN(__glewVertexAttrib4fvARB)
5149 #define glVertexAttrib4ivARB GLEW_GET_FUN(__glewVertexAttrib4ivARB)
5150 #define glVertexAttrib4sARB GLEW_GET_FUN(__glewVertexAttrib4sARB)
5151 #define glVertexAttrib4svARB GLEW_GET_FUN(__glewVertexAttrib4svARB)
5152 #define glVertexAttrib4ubvARB GLEW_GET_FUN(__glewVertexAttrib4ubvARB)
5153 #define glVertexAttrib4uivARB GLEW_GET_FUN(__glewVertexAttrib4uivARB)
5154 #define glVertexAttrib4usvARB GLEW_GET_FUN(__glewVertexAttrib4usvARB)
5155 #define glVertexAttribPointerARB GLEW_GET_FUN(__glewVertexAttribPointerARB)
5156
5157 #define GLEW_ARB_vertex_program GLEW_GET_VAR(__GLEW_ARB_vertex_program)
5158
5159 #endif /* GL_ARB_vertex_program */
5160
5161 /* -------------------------- GL_ARB_vertex_shader ------------------------- */
5162
5163 #ifndef GL_ARB_vertex_shader
5164 #define GL_ARB_vertex_shader 1
5165
5166 #define GL_VERTEX_SHADER_ARB 0x8B31
5167 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
5168 #define GL_MAX_VARYING_FLOATS_ARB 0x8B4B
5169 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
5170 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
5171 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB 0x8B89
5172 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
5173
5174 typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB* name);
5175 typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei* length, GLint *size, GLenum *type, GLcharARB *name);
5176 typedef GLint (GLAPIENTRY * PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB* name);
5177
5178 #define glBindAttribLocationARB GLEW_GET_FUN(__glewBindAttribLocationARB)
5179 #define glGetActiveAttribARB GLEW_GET_FUN(__glewGetActiveAttribARB)
5180 #define glGetAttribLocationARB GLEW_GET_FUN(__glewGetAttribLocationARB)
5181
5182 #define GLEW_ARB_vertex_shader GLEW_GET_VAR(__GLEW_ARB_vertex_shader)
5183
5184 #endif /* GL_ARB_vertex_shader */
5185
5186 /* ------------------- GL_ARB_vertex_type_2_10_10_10_rev ------------------- */
5187
5188 #ifndef GL_ARB_vertex_type_2_10_10_10_rev
5189 #define GL_ARB_vertex_type_2_10_10_10_rev 1
5190
5191 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
5192 #define GL_INT_2_10_10_10_REV 0x8D9F
5193
5194 typedef void (GLAPIENTRY * PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
5195 typedef void (GLAPIENTRY * PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint* color);
5196 typedef void (GLAPIENTRY * PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
5197 typedef void (GLAPIENTRY * PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint* color);
5198 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
5199 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint* coords);
5200 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
5201 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint* coords);
5202 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
5203 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint* coords);
5204 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
5205 typedef void (GLAPIENTRY * PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint* coords);
5206 typedef void (GLAPIENTRY * PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
5207 typedef void (GLAPIENTRY * PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint* coords);
5208 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
5209 typedef void (GLAPIENTRY * PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint* color);
5210 typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
5211 typedef void (GLAPIENTRY * PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint* coords);
5212 typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
5213 typedef void (GLAPIENTRY * PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint* coords);
5214 typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
5215 typedef void (GLAPIENTRY * PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint* coords);
5216 typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
5217 typedef void (GLAPIENTRY * PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint* coords);
5218 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
5219 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value);
5220 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
5221 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value);
5222 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
5223 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value);
5224 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
5225 typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint* value);
5226 typedef void (GLAPIENTRY * PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
5227 typedef void (GLAPIENTRY * PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint* value);
5228 typedef void (GLAPIENTRY * PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
5229 typedef void (GLAPIENTRY * PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint* value);
5230 typedef void (GLAPIENTRY * PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
5231 typedef void (GLAPIENTRY * PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint* value);
5232
5233 #define glColorP3ui GLEW_GET_FUN(__glewColorP3ui)
5234 #define glColorP3uiv GLEW_GET_FUN(__glewColorP3uiv)
5235 #define glColorP4ui GLEW_GET_FUN(__glewColorP4ui)
5236 #define glColorP4uiv GLEW_GET_FUN(__glewColorP4uiv)
5237 #define glMultiTexCoordP1ui GLEW_GET_FUN(__glewMultiTexCoordP1ui)
5238 #define glMultiTexCoordP1uiv GLEW_GET_FUN(__glewMultiTexCoordP1uiv)
5239 #define glMultiTexCoordP2ui GLEW_GET_FUN(__glewMultiTexCoordP2ui)
5240 #define glMultiTexCoordP2uiv GLEW_GET_FUN(__glewMultiTexCoordP2uiv)
5241 #define glMultiTexCoordP3ui GLEW_GET_FUN(__glewMultiTexCoordP3ui)
5242 #define glMultiTexCoordP3uiv GLEW_GET_FUN(__glewMultiTexCoordP3uiv)
5243 #define glMultiTexCoordP4ui GLEW_GET_FUN(__glewMultiTexCoordP4ui)
5244 #define glMultiTexCoordP4uiv GLEW_GET_FUN(__glewMultiTexCoordP4uiv)
5245 #define glNormalP3ui GLEW_GET_FUN(__glewNormalP3ui)
5246 #define glNormalP3uiv GLEW_GET_FUN(__glewNormalP3uiv)
5247 #define glSecondaryColorP3ui GLEW_GET_FUN(__glewSecondaryColorP3ui)
5248 #define glSecondaryColorP3uiv GLEW_GET_FUN(__glewSecondaryColorP3uiv)
5249 #define glTexCoordP1ui GLEW_GET_FUN(__glewTexCoordP1ui)
5250 #define glTexCoordP1uiv GLEW_GET_FUN(__glewTexCoordP1uiv)
5251 #define glTexCoordP2ui GLEW_GET_FUN(__glewTexCoordP2ui)
5252 #define glTexCoordP2uiv GLEW_GET_FUN(__glewTexCoordP2uiv)
5253 #define glTexCoordP3ui GLEW_GET_FUN(__glewTexCoordP3ui)
5254 #define glTexCoordP3uiv GLEW_GET_FUN(__glewTexCoordP3uiv)
5255 #define glTexCoordP4ui GLEW_GET_FUN(__glewTexCoordP4ui)
5256 #define glTexCoordP4uiv GLEW_GET_FUN(__glewTexCoordP4uiv)
5257 #define glVertexAttribP1ui GLEW_GET_FUN(__glewVertexAttribP1ui)
5258 #define glVertexAttribP1uiv GLEW_GET_FUN(__glewVertexAttribP1uiv)
5259 #define glVertexAttribP2ui GLEW_GET_FUN(__glewVertexAttribP2ui)
5260 #define glVertexAttribP2uiv GLEW_GET_FUN(__glewVertexAttribP2uiv)
5261 #define glVertexAttribP3ui GLEW_GET_FUN(__glewVertexAttribP3ui)
5262 #define glVertexAttribP3uiv GLEW_GET_FUN(__glewVertexAttribP3uiv)
5263 #define glVertexAttribP4ui GLEW_GET_FUN(__glewVertexAttribP4ui)
5264 #define glVertexAttribP4uiv GLEW_GET_FUN(__glewVertexAttribP4uiv)
5265 #define glVertexP2ui GLEW_GET_FUN(__glewVertexP2ui)
5266 #define glVertexP2uiv GLEW_GET_FUN(__glewVertexP2uiv)
5267 #define glVertexP3ui GLEW_GET_FUN(__glewVertexP3ui)
5268 #define glVertexP3uiv GLEW_GET_FUN(__glewVertexP3uiv)
5269 #define glVertexP4ui GLEW_GET_FUN(__glewVertexP4ui)
5270 #define glVertexP4uiv GLEW_GET_FUN(__glewVertexP4uiv)
5271
5272 #define GLEW_ARB_vertex_type_2_10_10_10_rev GLEW_GET_VAR(__GLEW_ARB_vertex_type_2_10_10_10_rev)
5273
5274 #endif /* GL_ARB_vertex_type_2_10_10_10_rev */
5275
5276 /* --------------------------- GL_ARB_window_pos --------------------------- */
5277
5278 #ifndef GL_ARB_window_pos
5279 #define GL_ARB_window_pos 1
5280
5281 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
5282 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2DVARBPROC) (const GLdouble* p);
5283 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
5284 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2FVARBPROC) (const GLfloat* p);
5285 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
5286 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2IVARBPROC) (const GLint* p);
5287 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
5288 typedef void (GLAPIENTRY * PFNGLWINDOWPOS2SVARBPROC) (const GLshort* p);
5289 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
5290 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3DVARBPROC) (const GLdouble* p);
5291 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
5292 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3FVARBPROC) (const GLfloat* p);
5293 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
5294 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3IVARBPROC) (const GLint* p);
5295 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
5296 typedef void (GLAPIENTRY * PFNGLWINDOWPOS3SVARBPROC) (const GLshort* p);
5297
5298 #define glWindowPos2dARB GLEW_GET_FUN(__glewWindowPos2dARB)
5299 #define glWindowPos2dvARB GLEW_GET_FUN(__glewWindowPos2dvARB)
5300 #define glWindowPos2fARB GLEW_GET_FUN(__glewWindowPos2fARB)
5301 #define glWindowPos2fvARB GLEW_GET_FUN(__glewWindowPos2fvARB)
5302 #define glWindowPos2iARB GLEW_GET_FUN(__glewWindowPos2iARB)
5303 #define glWindowPos2ivARB GLEW_GET_FUN(__glewWindowPos2ivARB)
5304 #define glWindowPos2sARB GLEW_GET_FUN(__glewWindowPos2sARB)
5305 #define glWindowPos2svARB GLEW_GET_FUN(__glewWindowPos2svARB)
5306 #define glWindowPos3dARB GLEW_GET_FUN(__glewWindowPos3dARB)
5307 #define glWindowPos3dvARB GLEW_GET_FUN(__glewWindowPos3dvARB)
5308 #define glWindowPos3fARB GLEW_GET_FUN(__glewWindowPos3fARB)
5309 #define glWindowPos3fvARB GLEW_GET_FUN(__glewWindowPos3fvARB)
5310 #define glWindowPos3iARB GLEW_GET_FUN(__glewWindowPos3iARB)
5311 #define glWindowPos3ivARB GLEW_GET_FUN(__glewWindowPos3ivARB)
5312 #define glWindowPos3sARB GLEW_GET_FUN(__glewWindowPos3sARB)
5313 #define glWindowPos3svARB GLEW_GET_FUN(__glewWindowPos3svARB)
5314
5315 #define GLEW_ARB_window_pos GLEW_GET_VAR(__GLEW_ARB_window_pos)
5316
5317 #endif /* GL_ARB_window_pos */
5318
5319 /* ------------------------- GL_ATIX_point_sprites ------------------------- */
5320
5321 #ifndef GL_ATIX_point_sprites
5322 #define GL_ATIX_point_sprites 1
5323
5324 #define GL_TEXTURE_POINT_MODE_ATIX 0x60B0
5325 #define GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1
5326 #define GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2
5327 #define GL_POINT_SPRITE_CULL_MODE_ATIX 0x60B3
5328 #define GL_POINT_SPRITE_CULL_CENTER_ATIX 0x60B4
5329 #define GL_POINT_SPRITE_CULL_CLIP_ATIX 0x60B5
5330
5331 #define GLEW_ATIX_point_sprites GLEW_GET_VAR(__GLEW_ATIX_point_sprites)
5332
5333 #endif /* GL_ATIX_point_sprites */
5334
5335 /* ---------------------- GL_ATIX_texture_env_combine3 --------------------- */
5336
5337 #ifndef GL_ATIX_texture_env_combine3
5338 #define GL_ATIX_texture_env_combine3 1
5339
5340 #define GL_MODULATE_ADD_ATIX 0x8744
5341 #define GL_MODULATE_SIGNED_ADD_ATIX 0x8745
5342 #define GL_MODULATE_SUBTRACT_ATIX 0x8746
5343
5344 #define GLEW_ATIX_texture_env_combine3 GLEW_GET_VAR(__GLEW_ATIX_texture_env_combine3)
5345
5346 #endif /* GL_ATIX_texture_env_combine3 */
5347
5348 /* ----------------------- GL_ATIX_texture_env_route ----------------------- */
5349
5350 #ifndef GL_ATIX_texture_env_route
5351 #define GL_ATIX_texture_env_route 1
5352
5353 #define GL_SECONDARY_COLOR_ATIX 0x8747
5354 #define GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748
5355 #define GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749
5356
5357 #define GLEW_ATIX_texture_env_route GLEW_GET_VAR(__GLEW_ATIX_texture_env_route)
5358
5359 #endif /* GL_ATIX_texture_env_route */
5360
5361 /* ---------------- GL_ATIX_vertex_shader_output_point_size ---------------- */
5362
5363 #ifndef GL_ATIX_vertex_shader_output_point_size
5364 #define GL_ATIX_vertex_shader_output_point_size 1
5365
5366 #define GL_OUTPUT_POINT_SIZE_ATIX 0x610E
5367
5368 #define GLEW_ATIX_vertex_shader_output_point_size GLEW_GET_VAR(__GLEW_ATIX_vertex_shader_output_point_size)
5369
5370 #endif /* GL_ATIX_vertex_shader_output_point_size */
5371
5372 /* -------------------------- GL_ATI_draw_buffers -------------------------- */
5373
5374 #ifndef GL_ATI_draw_buffers
5375 #define GL_ATI_draw_buffers 1
5376
5377 #define GL_MAX_DRAW_BUFFERS_ATI 0x8824
5378 #define GL_DRAW_BUFFER0_ATI 0x8825
5379 #define GL_DRAW_BUFFER1_ATI 0x8826
5380 #define GL_DRAW_BUFFER2_ATI 0x8827
5381 #define GL_DRAW_BUFFER3_ATI 0x8828
5382 #define GL_DRAW_BUFFER4_ATI 0x8829
5383 #define GL_DRAW_BUFFER5_ATI 0x882A
5384 #define GL_DRAW_BUFFER6_ATI 0x882B
5385 #define GL_DRAW_BUFFER7_ATI 0x882C
5386 #define GL_DRAW_BUFFER8_ATI 0x882D
5387 #define GL_DRAW_BUFFER9_ATI 0x882E
5388 #define GL_DRAW_BUFFER10_ATI 0x882F
5389 #define GL_DRAW_BUFFER11_ATI 0x8830
5390 #define GL_DRAW_BUFFER12_ATI 0x8831
5391 #define GL_DRAW_BUFFER13_ATI 0x8832
5392 #define GL_DRAW_BUFFER14_ATI 0x8833
5393 #define GL_DRAW_BUFFER15_ATI 0x8834
5394
5395 typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum* bufs);
5396
5397 #define glDrawBuffersATI GLEW_GET_FUN(__glewDrawBuffersATI)
5398
5399 #define GLEW_ATI_draw_buffers GLEW_GET_VAR(__GLEW_ATI_draw_buffers)
5400
5401 #endif /* GL_ATI_draw_buffers */
5402
5403 /* -------------------------- GL_ATI_element_array ------------------------- */
5404
5405 #ifndef GL_ATI_element_array
5406 #define GL_ATI_element_array 1
5407
5408 #define GL_ELEMENT_ARRAY_ATI 0x8768
5409 #define GL_ELEMENT_ARRAY_TYPE_ATI 0x8769
5410 #define GL_ELEMENT_ARRAY_POINTER_ATI 0x876A
5411
5412 typedef void (GLAPIENTRY * PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
5413 typedef void (GLAPIENTRY * PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
5414 typedef void (GLAPIENTRY * PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void* pointer);
5415
5416 #define glDrawElementArrayATI GLEW_GET_FUN(__glewDrawElementArrayATI)
5417 #define glDrawRangeElementArrayATI GLEW_GET_FUN(__glewDrawRangeElementArrayATI)
5418 #define glElementPointerATI GLEW_GET_FUN(__glewElementPointerATI)
5419
5420 #define GLEW_ATI_element_array GLEW_GET_VAR(__GLEW_ATI_element_array)
5421
5422 #endif /* GL_ATI_element_array */
5423
5424 /* ------------------------- GL_ATI_envmap_bumpmap ------------------------- */
5425
5426 #ifndef GL_ATI_envmap_bumpmap
5427 #define GL_ATI_envmap_bumpmap 1
5428
5429 #define GL_BUMP_ROT_MATRIX_ATI 0x8775
5430 #define GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776
5431 #define GL_BUMP_NUM_TEX_UNITS_ATI 0x8777
5432 #define GL_BUMP_TEX_UNITS_ATI 0x8778
5433 #define GL_DUDV_ATI 0x8779
5434 #define GL_DU8DV8_ATI 0x877A
5435 #define GL_BUMP_ENVMAP_ATI 0x877B
5436 #define GL_BUMP_TARGET_ATI 0x877C
5437
5438 typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
5439 typedef void (GLAPIENTRY * PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
5440 typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
5441 typedef void (GLAPIENTRY * PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
5442
5443 #define glGetTexBumpParameterfvATI GLEW_GET_FUN(__glewGetTexBumpParameterfvATI)
5444 #define glGetTexBumpParameterivATI GLEW_GET_FUN(__glewGetTexBumpParameterivATI)
5445 #define glTexBumpParameterfvATI GLEW_GET_FUN(__glewTexBumpParameterfvATI)
5446 #define glTexBumpParameterivATI GLEW_GET_FUN(__glewTexBumpParameterivATI)
5447
5448 #define GLEW_ATI_envmap_bumpmap GLEW_GET_VAR(__GLEW_ATI_envmap_bumpmap)
5449
5450 #endif /* GL_ATI_envmap_bumpmap */
5451
5452 /* ------------------------- GL_ATI_fragment_shader ------------------------ */
5453
5454 #ifndef GL_ATI_fragment_shader
5455 #define GL_ATI_fragment_shader 1
5456
5457 #define GL_RED_BIT_ATI 0x00000001
5458 #define GL_2X_BIT_ATI 0x00000001
5459 #define GL_4X_BIT_ATI 0x00000002
5460 #define GL_GREEN_BIT_ATI 0x00000002
5461 #define GL_COMP_BIT_ATI 0x00000002
5462 #define GL_BLUE_BIT_ATI 0x00000004
5463 #define GL_8X_BIT_ATI 0x00000004
5464 #define GL_NEGATE_BIT_ATI 0x00000004
5465 #define GL_BIAS_BIT_ATI 0x00000008
5466 #define GL_HALF_BIT_ATI 0x00000008
5467 #define GL_QUARTER_BIT_ATI 0x00000010
5468 #define GL_EIGHTH_BIT_ATI 0x00000020
5469 #define GL_SATURATE_BIT_ATI 0x00000040
5470 #define GL_FRAGMENT