glext.h
Go to the documentation of this file.
1 #ifndef __gl_glext_h_
2 #define __gl_glext_h_ 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9 ** Copyright (c) 2013-2018 The Khronos Group Inc.
10 **
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
18 **
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 **
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29 */
30 /*
31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
32 ** API Registry. The current version of the Registry, generator scripts
33 ** used to make the header, and the header can be found at
34 ** https://github.com/KhronosGroup/OpenGL-Registry
35 */
36 
37 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
38 #ifndef WIN32_LEAN_AND_MEAN
39 #define WIN32_LEAN_AND_MEAN 1
40 #endif
41 #include <windows.h>
42 #endif
43 
44 #ifndef APIENTRY
45 #define APIENTRY
46 #endif
47 #ifndef APIENTRYP
48 #define APIENTRYP APIENTRY *
49 #endif
50 #ifndef GLAPI
51 #define GLAPI extern
52 #endif
53 
54 #define GL_GLEXT_VERSION 20181031
55 
56 /* Generated C header for:
57  * API: gl
58  * Profile: compatibility
59  * Versions considered: .*
60  * Versions emitted: 1\.[2-9]|[234]\.[0-9]
61  * Default extensions included: gl
62  * Additional extensions included: _nomatch_^
63  * Extensions removed: _nomatch_^
64  */
65 
66 #ifndef GL_VERSION_1_2
67 #define GL_VERSION_1_2 1
68 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
69 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
70 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
71 #define GL_UNSIGNED_INT_8_8_8_8 0x8035
72 #define GL_UNSIGNED_INT_10_10_10_2 0x8036
73 #define GL_TEXTURE_BINDING_3D 0x806A
74 #define GL_PACK_SKIP_IMAGES 0x806B
75 #define GL_PACK_IMAGE_HEIGHT 0x806C
76 #define GL_UNPACK_SKIP_IMAGES 0x806D
77 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
78 #define GL_TEXTURE_3D 0x806F
79 #define GL_PROXY_TEXTURE_3D 0x8070
80 #define GL_TEXTURE_DEPTH 0x8071
81 #define GL_TEXTURE_WRAP_R 0x8072
82 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
83 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
84 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
85 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
86 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
87 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
88 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
89 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
90 #define GL_BGR 0x80E0
91 #define GL_BGRA 0x80E1
92 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
93 #define GL_MAX_ELEMENTS_INDICES 0x80E9
94 #define GL_CLAMP_TO_EDGE 0x812F
95 #define GL_TEXTURE_MIN_LOD 0x813A
96 #define GL_TEXTURE_MAX_LOD 0x813B
97 #define GL_TEXTURE_BASE_LEVEL 0x813C
98 #define GL_TEXTURE_MAX_LEVEL 0x813D
99 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
100 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
101 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
102 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
103 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
104 #define GL_RESCALE_NORMAL 0x803A
105 #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
106 #define GL_SINGLE_COLOR 0x81F9
107 #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
108 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
109 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
113 #ifdef GL_GLEXT_PROTOTYPES
114 GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
115 GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
116 GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
117 GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
118 #endif
119 #endif /* GL_VERSION_1_2 */
120 
121 #ifndef GL_VERSION_1_3
122 #define GL_VERSION_1_3 1
123 #define GL_TEXTURE0 0x84C0
124 #define GL_TEXTURE1 0x84C1
125 #define GL_TEXTURE2 0x84C2
126 #define GL_TEXTURE3 0x84C3
127 #define GL_TEXTURE4 0x84C4
128 #define GL_TEXTURE5 0x84C5
129 #define GL_TEXTURE6 0x84C6
130 #define GL_TEXTURE7 0x84C7
131 #define GL_TEXTURE8 0x84C8
132 #define GL_TEXTURE9 0x84C9
133 #define GL_TEXTURE10 0x84CA
134 #define GL_TEXTURE11 0x84CB
135 #define GL_TEXTURE12 0x84CC
136 #define GL_TEXTURE13 0x84CD
137 #define GL_TEXTURE14 0x84CE
138 #define GL_TEXTURE15 0x84CF
139 #define GL_TEXTURE16 0x84D0
140 #define GL_TEXTURE17 0x84D1
141 #define GL_TEXTURE18 0x84D2
142 #define GL_TEXTURE19 0x84D3
143 #define GL_TEXTURE20 0x84D4
144 #define GL_TEXTURE21 0x84D5
145 #define GL_TEXTURE22 0x84D6
146 #define GL_TEXTURE23 0x84D7
147 #define GL_TEXTURE24 0x84D8
148 #define GL_TEXTURE25 0x84D9
149 #define GL_TEXTURE26 0x84DA
150 #define GL_TEXTURE27 0x84DB
151 #define GL_TEXTURE28 0x84DC
152 #define GL_TEXTURE29 0x84DD
153 #define GL_TEXTURE30 0x84DE
154 #define GL_TEXTURE31 0x84DF
155 #define GL_ACTIVE_TEXTURE 0x84E0
156 #define GL_MULTISAMPLE 0x809D
157 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
158 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
159 #define GL_SAMPLE_COVERAGE 0x80A0
160 #define GL_SAMPLE_BUFFERS 0x80A8
161 #define GL_SAMPLES 0x80A9
162 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
163 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
164 #define GL_TEXTURE_CUBE_MAP 0x8513
165 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
166 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
167 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
168 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
169 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
170 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
171 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
172 #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
173 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
174 #define GL_COMPRESSED_RGB 0x84ED
175 #define GL_COMPRESSED_RGBA 0x84EE
176 #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
177 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
178 #define GL_TEXTURE_COMPRESSED 0x86A1
179 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
180 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
181 #define GL_CLAMP_TO_BORDER 0x812D
182 #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
183 #define GL_MAX_TEXTURE_UNITS 0x84E2
184 #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
185 #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
186 #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
187 #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
188 #define GL_MULTISAMPLE_BIT 0x20000000
189 #define GL_NORMAL_MAP 0x8511
190 #define GL_REFLECTION_MAP 0x8512
191 #define GL_COMPRESSED_ALPHA 0x84E9
192 #define GL_COMPRESSED_LUMINANCE 0x84EA
193 #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
194 #define GL_COMPRESSED_INTENSITY 0x84EC
195 #define GL_COMBINE 0x8570
196 #define GL_COMBINE_RGB 0x8571
197 #define GL_COMBINE_ALPHA 0x8572
198 #define GL_SOURCE0_RGB 0x8580
199 #define GL_SOURCE1_RGB 0x8581
200 #define GL_SOURCE2_RGB 0x8582
201 #define GL_SOURCE0_ALPHA 0x8588
202 #define GL_SOURCE1_ALPHA 0x8589
203 #define GL_SOURCE2_ALPHA 0x858A
204 #define GL_OPERAND0_RGB 0x8590
205 #define GL_OPERAND1_RGB 0x8591
206 #define GL_OPERAND2_RGB 0x8592
207 #define GL_OPERAND0_ALPHA 0x8598
208 #define GL_OPERAND1_ALPHA 0x8599
209 #define GL_OPERAND2_ALPHA 0x859A
210 #define GL_RGB_SCALE 0x8573
211 #define GL_ADD_SIGNED 0x8574
212 #define GL_INTERPOLATE 0x8575
213 #define GL_SUBTRACT 0x84E7
214 #define GL_CONSTANT 0x8576
215 #define GL_PRIMARY_COLOR 0x8577
216 #define GL_PREVIOUS 0x8578
217 #define GL_DOT3_RGB 0x86AE
218 #define GL_DOT3_RGBA 0x86AF
219 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
220 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
222 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
223 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
224 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
225 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
226 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
227 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
228 typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
229 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
230 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
231 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
232 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
233 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
234 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
235 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
236 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
237 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
238 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
239 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
240 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
241 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
242 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
243 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
244 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
245 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
246 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
247 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
248 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
249 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
250 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
251 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
252 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
253 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
254 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
255 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
256 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
257 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
258 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
259 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
260 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
261 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
262 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
263 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
264 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
265 #ifdef GL_GLEXT_PROTOTYPES
268 GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
269 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
270 GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
271 GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
272 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
273 GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
274 GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
277 GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
279 GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
280 GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
281 GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
283 GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
285 GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
287 GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
288 GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
289 GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
291 GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
293 GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
295 GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
296 GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
297 GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
299 GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
301 GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
303 GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
304 GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
305 GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
307 GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
312 #endif
313 #endif /* GL_VERSION_1_3 */
314 
315 #ifndef GL_VERSION_1_4
316 #define GL_VERSION_1_4 1
317 #define GL_BLEND_DST_RGB 0x80C8
318 #define GL_BLEND_SRC_RGB 0x80C9
319 #define GL_BLEND_DST_ALPHA 0x80CA
320 #define GL_BLEND_SRC_ALPHA 0x80CB
321 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
322 #define GL_DEPTH_COMPONENT16 0x81A5
323 #define GL_DEPTH_COMPONENT24 0x81A6
324 #define GL_DEPTH_COMPONENT32 0x81A7
325 #define GL_MIRRORED_REPEAT 0x8370
326 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
327 #define GL_TEXTURE_LOD_BIAS 0x8501
328 #define GL_INCR_WRAP 0x8507
329 #define GL_DECR_WRAP 0x8508
330 #define GL_TEXTURE_DEPTH_SIZE 0x884A
331 #define GL_TEXTURE_COMPARE_MODE 0x884C
332 #define GL_TEXTURE_COMPARE_FUNC 0x884D
333 #define GL_POINT_SIZE_MIN 0x8126
334 #define GL_POINT_SIZE_MAX 0x8127
335 #define GL_POINT_DISTANCE_ATTENUATION 0x8129
336 #define GL_GENERATE_MIPMAP 0x8191
337 #define GL_GENERATE_MIPMAP_HINT 0x8192
338 #define GL_FOG_COORDINATE_SOURCE 0x8450
339 #define GL_FOG_COORDINATE 0x8451
340 #define GL_FRAGMENT_DEPTH 0x8452
341 #define GL_CURRENT_FOG_COORDINATE 0x8453
342 #define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
343 #define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
344 #define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
345 #define GL_FOG_COORDINATE_ARRAY 0x8457
346 #define GL_COLOR_SUM 0x8458
347 #define GL_CURRENT_SECONDARY_COLOR 0x8459
348 #define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
349 #define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
350 #define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
351 #define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
352 #define GL_SECONDARY_COLOR_ARRAY 0x845E
353 #define GL_TEXTURE_FILTER_CONTROL 0x8500
354 #define GL_DEPTH_TEXTURE_MODE 0x884B
355 #define GL_COMPARE_R_TO_TEXTURE 0x884E
356 #define GL_BLEND_COLOR 0x8005
357 #define GL_BLEND_EQUATION 0x8009
358 #define GL_CONSTANT_COLOR 0x8001
359 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
360 #define GL_CONSTANT_ALPHA 0x8003
361 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
362 #define GL_FUNC_ADD 0x8006
363 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
364 #define GL_FUNC_SUBTRACT 0x800A
365 #define GL_MIN 0x8007
366 #define GL_MAX 0x8008
367 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
368 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
369 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
370 typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
371 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
372 typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
373 typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
374 typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
375 typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
376 typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
377 typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
378 typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
379 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
380 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
381 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
382 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
383 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
384 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
385 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
386 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
387 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
388 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
389 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
390 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
391 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
392 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
393 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
394 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
395 typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
396 typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
397 typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
398 typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
399 typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
400 typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
401 typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
402 typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
403 typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
404 typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
405 typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
406 typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
407 typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
408 typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
409 typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
410 typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
411 typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
412 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
413 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
414 #ifdef GL_GLEXT_PROTOTYPES
415 GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
416 GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
417 GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
421 GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
423 GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
426 GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer);
427 GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
431 GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
433 GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
435 GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
437 GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
439 GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
443 GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
445 GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
447 GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
449 GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
451 GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
453 GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
455 GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
457 GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
459 GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
460 GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
462 #endif
463 #endif /* GL_VERSION_1_4 */
464 
465 #ifndef GL_VERSION_1_5
466 #define GL_VERSION_1_5 1
467 #include <KHR/khrplatform.h>
470 #define GL_BUFFER_SIZE 0x8764
471 #define GL_BUFFER_USAGE 0x8765
472 #define GL_QUERY_COUNTER_BITS 0x8864
473 #define GL_CURRENT_QUERY 0x8865
474 #define GL_QUERY_RESULT 0x8866
475 #define GL_QUERY_RESULT_AVAILABLE 0x8867
476 #define GL_ARRAY_BUFFER 0x8892
477 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
478 #define GL_ARRAY_BUFFER_BINDING 0x8894
479 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
480 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
481 #define GL_READ_ONLY 0x88B8
482 #define GL_WRITE_ONLY 0x88B9
483 #define GL_READ_WRITE 0x88BA
484 #define GL_BUFFER_ACCESS 0x88BB
485 #define GL_BUFFER_MAPPED 0x88BC
486 #define GL_BUFFER_MAP_POINTER 0x88BD
487 #define GL_STREAM_DRAW 0x88E0
488 #define GL_STREAM_READ 0x88E1
489 #define GL_STREAM_COPY 0x88E2
490 #define GL_STATIC_DRAW 0x88E4
491 #define GL_STATIC_READ 0x88E5
492 #define GL_STATIC_COPY 0x88E6
493 #define GL_DYNAMIC_DRAW 0x88E8
494 #define GL_DYNAMIC_READ 0x88E9
495 #define GL_DYNAMIC_COPY 0x88EA
496 #define GL_SAMPLES_PASSED 0x8914
497 #define GL_SRC1_ALPHA 0x8589
498 #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
499 #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
500 #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
501 #define GL_INDEX_ARRAY_BUFFER_BINDING 0x8899
502 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
503 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
504 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
505 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
506 #define GL_WEIGHT_ARRAY_BUFFER_BINDING 0x889E
507 #define GL_FOG_COORD_SRC 0x8450
508 #define GL_FOG_COORD 0x8451
509 #define GL_CURRENT_FOG_COORD 0x8453
510 #define GL_FOG_COORD_ARRAY_TYPE 0x8454
511 #define GL_FOG_COORD_ARRAY_STRIDE 0x8455
512 #define GL_FOG_COORD_ARRAY_POINTER 0x8456
513 #define GL_FOG_COORD_ARRAY 0x8457
514 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
515 #define GL_SRC0_RGB 0x8580
516 #define GL_SRC1_RGB 0x8581
517 #define GL_SRC2_RGB 0x8582
518 #define GL_SRC0_ALPHA 0x8588
519 #define GL_SRC2_ALPHA 0x858A
520 typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
521 typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
522 typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
523 typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
524 typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
525 typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
526 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
527 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
528 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
529 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
530 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
531 typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
532 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
533 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
534 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
535 typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
536 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
537 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
538 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
539 #ifdef GL_GLEXT_PROTOTYPES
543 GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
544 GLAPI void APIENTRY glEndQuery (GLenum target);
545 GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
552 GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
553 GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
554 GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
555 GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
558 GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
559 #endif
560 #endif /* GL_VERSION_1_5 */
561 
562 #ifndef GL_VERSION_2_0
563 #define GL_VERSION_2_0 1
564 typedef char GLchar;
565 #define GL_BLEND_EQUATION_RGB 0x8009
566 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
567 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
568 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
569 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
570 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
571 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
572 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
573 #define GL_STENCIL_BACK_FUNC 0x8800
574 #define GL_STENCIL_BACK_FAIL 0x8801
575 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
576 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
577 #define GL_MAX_DRAW_BUFFERS 0x8824
578 #define GL_DRAW_BUFFER0 0x8825
579 #define GL_DRAW_BUFFER1 0x8826
580 #define GL_DRAW_BUFFER2 0x8827
581 #define GL_DRAW_BUFFER3 0x8828
582 #define GL_DRAW_BUFFER4 0x8829
583 #define GL_DRAW_BUFFER5 0x882A
584 #define GL_DRAW_BUFFER6 0x882B
585 #define GL_DRAW_BUFFER7 0x882C
586 #define GL_DRAW_BUFFER8 0x882D
587 #define GL_DRAW_BUFFER9 0x882E
588 #define GL_DRAW_BUFFER10 0x882F
589 #define GL_DRAW_BUFFER11 0x8830
590 #define GL_DRAW_BUFFER12 0x8831
591 #define GL_DRAW_BUFFER13 0x8832
592 #define GL_DRAW_BUFFER14 0x8833
593 #define GL_DRAW_BUFFER15 0x8834
594 #define GL_BLEND_EQUATION_ALPHA 0x883D
595 #define GL_MAX_VERTEX_ATTRIBS 0x8869
596 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
597 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
598 #define GL_FRAGMENT_SHADER 0x8B30
599 #define GL_VERTEX_SHADER 0x8B31
600 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
601 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
602 #define GL_MAX_VARYING_FLOATS 0x8B4B
603 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
604 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
605 #define GL_SHADER_TYPE 0x8B4F
606 #define GL_FLOAT_VEC2 0x8B50
607 #define GL_FLOAT_VEC3 0x8B51
608 #define GL_FLOAT_VEC4 0x8B52
609 #define GL_INT_VEC2 0x8B53
610 #define GL_INT_VEC3 0x8B54
611 #define GL_INT_VEC4 0x8B55
612 #define GL_BOOL 0x8B56
613 #define GL_BOOL_VEC2 0x8B57
614 #define GL_BOOL_VEC3 0x8B58
615 #define GL_BOOL_VEC4 0x8B59
616 #define GL_FLOAT_MAT2 0x8B5A
617 #define GL_FLOAT_MAT3 0x8B5B
618 #define GL_FLOAT_MAT4 0x8B5C
619 #define GL_SAMPLER_1D 0x8B5D
620 #define GL_SAMPLER_2D 0x8B5E
621 #define GL_SAMPLER_3D 0x8B5F
622 #define GL_SAMPLER_CUBE 0x8B60
623 #define GL_SAMPLER_1D_SHADOW 0x8B61
624 #define GL_SAMPLER_2D_SHADOW 0x8B62
625 #define GL_DELETE_STATUS 0x8B80
626 #define GL_COMPILE_STATUS 0x8B81
627 #define GL_LINK_STATUS 0x8B82
628 #define GL_VALIDATE_STATUS 0x8B83
629 #define GL_INFO_LOG_LENGTH 0x8B84
630 #define GL_ATTACHED_SHADERS 0x8B85
631 #define GL_ACTIVE_UNIFORMS 0x8B86
632 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
633 #define GL_SHADER_SOURCE_LENGTH 0x8B88
634 #define GL_ACTIVE_ATTRIBUTES 0x8B89
635 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
636 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
637 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
638 #define GL_CURRENT_PROGRAM 0x8B8D
639 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
640 #define GL_LOWER_LEFT 0x8CA1
641 #define GL_UPPER_LEFT 0x8CA2
642 #define GL_STENCIL_BACK_REF 0x8CA3
643 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
644 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
645 #define GL_VERTEX_PROGRAM_TWO_SIDE 0x8643
646 #define GL_POINT_SPRITE 0x8861
647 #define GL_COORD_REPLACE 0x8862
648 #define GL_MAX_TEXTURE_COORDS 0x8871
649 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
650 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
651 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
652 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
653 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
654 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
655 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
656 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
657 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
658 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
659 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
660 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
661 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
662 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
663 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
664 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
665 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
666 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
667 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
668 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
669 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
670 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
671 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
672 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
673 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
674 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
675 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
676 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
677 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
678 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
679 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
680 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
681 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
682 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
683 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
684 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
685 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
686 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
687 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
688 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
689 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
690 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
691 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
692 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
693 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
694 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
695 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
696 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
697 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
698 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
699 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
700 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
701 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
702 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
703 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
704 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
705 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
706 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
707 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
708 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
709 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
710 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
711 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
712 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
713 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
714 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
715 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
716 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
717 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
718 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
719 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
720 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
721 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
722 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
723 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
724 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
725 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
726 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
727 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
728 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
729 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
730 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
731 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
732 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
733 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
734 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
735 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
736 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
737 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
738 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
739 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
740 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
741 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
742 #ifdef GL_GLEXT_PROTOTYPES
744 GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
745 GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
748 GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
749 GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
750 GLAPI void APIENTRY glCompileShader (GLuint shader);
753 GLAPI void APIENTRY glDeleteProgram (GLuint program);
754 GLAPI void APIENTRY glDeleteShader (GLuint shader);
755 GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
758 GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
759 GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
760 GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
761 GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
762 GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
763 GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
764 GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
765 GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
766 GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
767 GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
768 GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
769 GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
773 GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
776 GLAPI void APIENTRY glLinkProgram (GLuint program);
777 GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
778 GLAPI void APIENTRY glUseProgram (GLuint program);
779 GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
780 GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
781 GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
782 GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
783 GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
784 GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
785 GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
786 GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
787 GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
788 GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
789 GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
790 GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
791 GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
792 GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
793 GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
794 GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
795 GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
796 GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
797 GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
798 GLAPI void APIENTRY glValidateProgram (GLuint program);
800 GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
802 GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
804 GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
806 GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
808 GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
810 GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
812 GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
814 GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
816 GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
817 GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
818 GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
819 GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
821 GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
822 GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
823 GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
824 GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
826 GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
828 GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
829 GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
831 GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
832 GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
833 GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
834 GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
835 GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
836 #endif
837 #endif /* GL_VERSION_2_0 */
838 
839 #ifndef GL_VERSION_2_1
840 #define GL_VERSION_2_1 1
841 #define GL_PIXEL_PACK_BUFFER 0x88EB
842 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
843 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
844 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
845 #define GL_FLOAT_MAT2x3 0x8B65
846 #define GL_FLOAT_MAT2x4 0x8B66
847 #define GL_FLOAT_MAT3x2 0x8B67
848 #define GL_FLOAT_MAT3x4 0x8B68
849 #define GL_FLOAT_MAT4x2 0x8B69
850 #define GL_FLOAT_MAT4x3 0x8B6A
851 #define GL_SRGB 0x8C40
852 #define GL_SRGB8 0x8C41
853 #define GL_SRGB_ALPHA 0x8C42
854 #define GL_SRGB8_ALPHA8 0x8C43
855 #define GL_COMPRESSED_SRGB 0x8C48
856 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
857 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
858 #define GL_SLUMINANCE_ALPHA 0x8C44
859 #define GL_SLUMINANCE8_ALPHA8 0x8C45
860 #define GL_SLUMINANCE 0x8C46
861 #define GL_SLUMINANCE8 0x8C47
862 #define GL_COMPRESSED_SLUMINANCE 0x8C4A
863 #define GL_COMPRESSED_SLUMINANCE_ALPHA 0x8C4B
864 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
865 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
866 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
867 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
868 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
869 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
870 #ifdef GL_GLEXT_PROTOTYPES
871 GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
872 GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
873 GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
874 GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
875 GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
876 GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
877 #endif
878 #endif /* GL_VERSION_2_1 */
879 
880 #ifndef GL_VERSION_3_0
881 #define GL_VERSION_3_0 1
882 typedef unsigned short GLhalf;
883 #define GL_COMPARE_REF_TO_TEXTURE 0x884E
884 #define GL_CLIP_DISTANCE0 0x3000
885 #define GL_CLIP_DISTANCE1 0x3001
886 #define GL_CLIP_DISTANCE2 0x3002
887 #define GL_CLIP_DISTANCE3 0x3003
888 #define GL_CLIP_DISTANCE4 0x3004
889 #define GL_CLIP_DISTANCE5 0x3005
890 #define GL_CLIP_DISTANCE6 0x3006
891 #define GL_CLIP_DISTANCE7 0x3007
892 #define GL_MAX_CLIP_DISTANCES 0x0D32
893 #define GL_MAJOR_VERSION 0x821B
894 #define GL_MINOR_VERSION 0x821C
895 #define GL_NUM_EXTENSIONS 0x821D
896 #define GL_CONTEXT_FLAGS 0x821E
897 #define GL_COMPRESSED_RED 0x8225
898 #define GL_COMPRESSED_RG 0x8226
899 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
900 #define GL_RGBA32F 0x8814
901 #define GL_RGB32F 0x8815
902 #define GL_RGBA16F 0x881A
903 #define GL_RGB16F 0x881B
904 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
905 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
906 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
907 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
908 #define GL_CLAMP_READ_COLOR 0x891C
909 #define GL_FIXED_ONLY 0x891D
910 #define GL_MAX_VARYING_COMPONENTS 0x8B4B
911 #define GL_TEXTURE_1D_ARRAY 0x8C18
912 #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
913 #define GL_TEXTURE_2D_ARRAY 0x8C1A
914 #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
915 #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
916 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
917 #define GL_R11F_G11F_B10F 0x8C3A
918 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
919 #define GL_RGB9_E5 0x8C3D
920 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
921 #define GL_TEXTURE_SHARED_SIZE 0x8C3F
922 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
923 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
924 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
925 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
926 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
927 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
928 #define GL_PRIMITIVES_GENERATED 0x8C87
929 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
930 #define GL_RASTERIZER_DISCARD 0x8C89
931 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
932 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
933 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
934 #define GL_SEPARATE_ATTRIBS 0x8C8D
935 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
936 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
937 #define GL_RGBA32UI 0x8D70
938 #define GL_RGB32UI 0x8D71
939 #define GL_RGBA16UI 0x8D76
940 #define GL_RGB16UI 0x8D77
941 #define GL_RGBA8UI 0x8D7C
942 #define GL_RGB8UI 0x8D7D
943 #define GL_RGBA32I 0x8D82
944 #define GL_RGB32I 0x8D83
945 #define GL_RGBA16I 0x8D88
946 #define GL_RGB16I 0x8D89
947 #define GL_RGBA8I 0x8D8E
948 #define GL_RGB8I 0x8D8F
949 #define GL_RED_INTEGER 0x8D94
950 #define GL_GREEN_INTEGER 0x8D95
951 #define GL_BLUE_INTEGER 0x8D96
952 #define GL_RGB_INTEGER 0x8D98
953 #define GL_RGBA_INTEGER 0x8D99
954 #define GL_BGR_INTEGER 0x8D9A
955 #define GL_BGRA_INTEGER 0x8D9B
956 #define GL_SAMPLER_1D_ARRAY 0x8DC0
957 #define GL_SAMPLER_2D_ARRAY 0x8DC1
958 #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
959 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
960 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
961 #define GL_UNSIGNED_INT_VEC2 0x8DC6
962 #define GL_UNSIGNED_INT_VEC3 0x8DC7
963 #define GL_UNSIGNED_INT_VEC4 0x8DC8
964 #define GL_INT_SAMPLER_1D 0x8DC9
965 #define GL_INT_SAMPLER_2D 0x8DCA
966 #define GL_INT_SAMPLER_3D 0x8DCB
967 #define GL_INT_SAMPLER_CUBE 0x8DCC
968 #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
969 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
970 #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
971 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
972 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
973 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
974 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
975 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
976 #define GL_QUERY_WAIT 0x8E13
977 #define GL_QUERY_NO_WAIT 0x8E14
978 #define GL_QUERY_BY_REGION_WAIT 0x8E15
979 #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
980 #define GL_BUFFER_ACCESS_FLAGS 0x911F
981 #define GL_BUFFER_MAP_LENGTH 0x9120
982 #define GL_BUFFER_MAP_OFFSET 0x9121
983 #define GL_DEPTH_COMPONENT32F 0x8CAC
984 #define GL_DEPTH32F_STENCIL8 0x8CAD
985 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
986 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
987 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
988 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
989 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
990 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
991 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
992 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
993 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
994 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
995 #define GL_FRAMEBUFFER_DEFAULT 0x8218
996 #define GL_FRAMEBUFFER_UNDEFINED 0x8219
997 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
998 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
999 #define GL_DEPTH_STENCIL 0x84F9
1000 #define GL_UNSIGNED_INT_24_8 0x84FA
1001 #define GL_DEPTH24_STENCIL8 0x88F0
1002 #define GL_TEXTURE_STENCIL_SIZE 0x88F1
1003 #define GL_TEXTURE_RED_TYPE 0x8C10
1004 #define GL_TEXTURE_GREEN_TYPE 0x8C11
1005 #define GL_TEXTURE_BLUE_TYPE 0x8C12
1006 #define GL_TEXTURE_ALPHA_TYPE 0x8C13
1007 #define GL_TEXTURE_DEPTH_TYPE 0x8C16
1008 #define GL_UNSIGNED_NORMALIZED 0x8C17
1009 #define GL_FRAMEBUFFER_BINDING 0x8CA6
1010 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
1011 #define GL_RENDERBUFFER_BINDING 0x8CA7
1012 #define GL_READ_FRAMEBUFFER 0x8CA8
1013 #define GL_DRAW_FRAMEBUFFER 0x8CA9
1014 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
1015 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
1016 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1017 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1018 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1019 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1020 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
1021 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
1022 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1023 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1024 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
1025 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
1026 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
1027 #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
1028 #define GL_COLOR_ATTACHMENT0 0x8CE0
1029 #define GL_COLOR_ATTACHMENT1 0x8CE1
1030 #define GL_COLOR_ATTACHMENT2 0x8CE2
1031 #define GL_COLOR_ATTACHMENT3 0x8CE3
1032 #define GL_COLOR_ATTACHMENT4 0x8CE4
1033 #define GL_COLOR_ATTACHMENT5 0x8CE5
1034 #define GL_COLOR_ATTACHMENT6 0x8CE6
1035 #define GL_COLOR_ATTACHMENT7 0x8CE7
1036 #define GL_COLOR_ATTACHMENT8 0x8CE8
1037 #define GL_COLOR_ATTACHMENT9 0x8CE9
1038 #define GL_COLOR_ATTACHMENT10 0x8CEA
1039 #define GL_COLOR_ATTACHMENT11 0x8CEB
1040 #define GL_COLOR_ATTACHMENT12 0x8CEC
1041 #define GL_COLOR_ATTACHMENT13 0x8CED
1042 #define GL_COLOR_ATTACHMENT14 0x8CEE
1043 #define GL_COLOR_ATTACHMENT15 0x8CEF
1044 #define GL_COLOR_ATTACHMENT16 0x8CF0
1045 #define GL_COLOR_ATTACHMENT17 0x8CF1
1046 #define GL_COLOR_ATTACHMENT18 0x8CF2
1047 #define GL_COLOR_ATTACHMENT19 0x8CF3
1048 #define GL_COLOR_ATTACHMENT20 0x8CF4
1049 #define GL_COLOR_ATTACHMENT21 0x8CF5
1050 #define GL_COLOR_ATTACHMENT22 0x8CF6
1051 #define GL_COLOR_ATTACHMENT23 0x8CF7
1052 #define GL_COLOR_ATTACHMENT24 0x8CF8
1053 #define GL_COLOR_ATTACHMENT25 0x8CF9
1054 #define GL_COLOR_ATTACHMENT26 0x8CFA
1055 #define GL_COLOR_ATTACHMENT27 0x8CFB
1056 #define GL_COLOR_ATTACHMENT28 0x8CFC
1057 #define GL_COLOR_ATTACHMENT29 0x8CFD
1058 #define GL_COLOR_ATTACHMENT30 0x8CFE
1059 #define GL_COLOR_ATTACHMENT31 0x8CFF
1060 #define GL_DEPTH_ATTACHMENT 0x8D00
1061 #define GL_STENCIL_ATTACHMENT 0x8D20
1062 #define GL_FRAMEBUFFER 0x8D40
1063 #define GL_RENDERBUFFER 0x8D41
1064 #define GL_RENDERBUFFER_WIDTH 0x8D42
1065 #define GL_RENDERBUFFER_HEIGHT 0x8D43
1066 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1067 #define GL_STENCIL_INDEX1 0x8D46
1068 #define GL_STENCIL_INDEX4 0x8D47
1069 #define GL_STENCIL_INDEX8 0x8D48
1070 #define GL_STENCIL_INDEX16 0x8D49
1071 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
1072 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1073 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1074 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1075 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1076 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1077 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1078 #define GL_MAX_SAMPLES 0x8D57
1079 #define GL_INDEX 0x8222
1080 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
1081 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15
1082 #define GL_FRAMEBUFFER_SRGB 0x8DB9
1083 #define GL_HALF_FLOAT 0x140B
1084 #define GL_MAP_READ_BIT 0x0001
1085 #define GL_MAP_WRITE_BIT 0x0002
1086 #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
1087 #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
1088 #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
1089 #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
1090 #define GL_COMPRESSED_RED_RGTC1 0x8DBB
1091 #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
1092 #define GL_COMPRESSED_RG_RGTC2 0x8DBD
1093 #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
1094 #define GL_RG 0x8227
1095 #define GL_RG_INTEGER 0x8228
1096 #define GL_R8 0x8229
1097 #define GL_R16 0x822A
1098 #define GL_RG8 0x822B
1099 #define GL_RG16 0x822C
1100 #define GL_R16F 0x822D
1101 #define GL_R32F 0x822E
1102 #define GL_RG16F 0x822F
1103 #define GL_RG32F 0x8230
1104 #define GL_R8I 0x8231
1105 #define GL_R8UI 0x8232
1106 #define GL_R16I 0x8233
1107 #define GL_R16UI 0x8234
1108 #define GL_R32I 0x8235
1109 #define GL_R32UI 0x8236
1110 #define GL_RG8I 0x8237
1111 #define GL_RG8UI 0x8238
1112 #define GL_RG16I 0x8239
1113 #define GL_RG16UI 0x823A
1114 #define GL_RG32I 0x823B
1115 #define GL_RG32UI 0x823C
1116 #define GL_VERTEX_ARRAY_BINDING 0x85B5
1117 #define GL_CLAMP_VERTEX_COLOR 0x891A
1118 #define GL_CLAMP_FRAGMENT_COLOR 0x891B
1119 #define GL_ALPHA_INTEGER 0x8D97
1120 typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1121 typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
1122 typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
1123 typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
1124 typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
1125 typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
1126 typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
1127 typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
1128 typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1129 typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
1130 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1131 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1132 typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
1133 typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
1134 typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
1135 typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1136 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
1137 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
1138 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
1139 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
1140 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
1141 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
1142 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
1143 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
1144 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
1145 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1146 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
1147 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
1148 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
1149 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
1150 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
1151 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
1152 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
1153 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
1154 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
1155 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
1156 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
1157 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
1158 typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
1159 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
1160 typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
1161 typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
1162 typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
1163 typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
1164 typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1165 typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1166 typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1167 typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1168 typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1169 typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
1170 typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
1171 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
1172 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
1173 typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
1174 typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
1175 typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1176 typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1178 typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
1179 typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
1180 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
1181 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
1182 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1183 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1184 typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
1185 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
1186 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
1187 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
1188 typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
1189 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1190 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1191 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1192 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1193 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
1194 typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
1196 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1197 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1198 typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1199 typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
1200 typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
1201 typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
1202 typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
1203 typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
1204 #ifdef GL_GLEXT_PROTOTYPES
1206 GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
1207 GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
1208 GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
1209 GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
1211 GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
1213 GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1214 GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
1215 GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1216 GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1217 GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
1220 GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1223 GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
1224 GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
1225 GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
1226 GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
1231 GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
1232 GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
1233 GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
1234 GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
1235 GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
1236 GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
1237 GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
1238 GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
1239 GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
1240 GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
1241 GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
1242 GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
1243 GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
1244 GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
1245 GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
1246 GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
1247 GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
1248 GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
1249 GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1250 GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
1251 GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
1252 GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
1253 GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
1254 GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
1255 GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
1258 GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
1259 GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
1260 GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1261 GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1267 GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1274 GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1275 GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1276 GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1277 GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1279 GLAPI void APIENTRY glGenerateMipmap (GLenum target);
1280 GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
1281 GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1282 GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1283 GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1284 GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
1289 #endif
1290 #endif /* GL_VERSION_3_0 */
1291 
1292 #ifndef GL_VERSION_3_1
1293 #define GL_VERSION_3_1 1
1294 #define GL_SAMPLER_2D_RECT 0x8B63
1295 #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
1296 #define GL_SAMPLER_BUFFER 0x8DC2
1297 #define GL_INT_SAMPLER_2D_RECT 0x8DCD
1298 #define GL_INT_SAMPLER_BUFFER 0x8DD0
1299 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
1300 #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
1301 #define GL_TEXTURE_BUFFER 0x8C2A
1302 #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
1303 #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
1304 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
1305 #define GL_TEXTURE_RECTANGLE 0x84F5
1306 #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
1307 #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
1308 #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
1309 #define GL_R8_SNORM 0x8F94
1310 #define GL_RG8_SNORM 0x8F95
1311 #define GL_RGB8_SNORM 0x8F96
1312 #define GL_RGBA8_SNORM 0x8F97
1313 #define GL_R16_SNORM 0x8F98
1314 #define GL_RG16_SNORM 0x8F99
1315 #define GL_RGB16_SNORM 0x8F9A
1316 #define GL_RGBA16_SNORM 0x8F9B
1317 #define GL_SIGNED_NORMALIZED 0x8F9C
1318 #define GL_PRIMITIVE_RESTART 0x8F9D
1319 #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
1320 #define GL_COPY_READ_BUFFER 0x8F36
1321 #define GL_COPY_WRITE_BUFFER 0x8F37
1322 #define GL_UNIFORM_BUFFER 0x8A11
1323 #define GL_UNIFORM_BUFFER_BINDING 0x8A28
1324 #define GL_UNIFORM_BUFFER_START 0x8A29
1325 #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
1326 #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
1327 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
1328 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
1329 #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
1330 #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
1331 #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
1332 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
1333 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
1334 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1335 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1336 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1337 #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
1338 #define GL_UNIFORM_TYPE 0x8A37
1339 #define GL_UNIFORM_SIZE 0x8A38
1340 #define GL_UNIFORM_NAME_LENGTH 0x8A39
1341 #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
1342 #define GL_UNIFORM_OFFSET 0x8A3B
1343 #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
1344 #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
1345 #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
1346 #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
1347 #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
1348 #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
1349 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
1350 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1351 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
1352 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
1353 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1354 #define GL_INVALID_INDEX 0xFFFFFFFFu
1355 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
1356 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1357 typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
1358 typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
1359 typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1360 typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1361 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1362 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1363 typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
1364 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1365 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1366 typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
1367 #ifdef GL_GLEXT_PROTOTYPES
1369 GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1370 GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
1372 GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1373 GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1374 GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1375 GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1377 GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1378 GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1379 GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
1380 #endif
1381 #endif /* GL_VERSION_3_1 */
1382 
1383 #ifndef GL_VERSION_3_2
1384 #define GL_VERSION_3_2 1
1385 typedef struct __GLsync *GLsync;
1386 #ifndef GLEXT_64_TYPES_DEFINED
1387 /* This code block is duplicated in glxext.h, so must be protected */
1388 #define GLEXT_64_TYPES_DEFINED
1389 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
1390 /* (as used in the GL_EXT_timer_query extension). */
1391 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
1392 #include <inttypes.h>
1393 #elif defined(__sun__) || defined(__digital__)
1394 #include <inttypes.h>
1395 #if defined(__STDC__)
1396 #if defined(__arch64__) || defined(_LP64)
1397 typedef long int int64_t;
1398 typedef unsigned long int uint64_t;
1399 #else
1400 typedef long long int int64_t;
1401 typedef unsigned long long int uint64_t;
1402 #endif /* __arch64__ */
1403 #endif /* __STDC__ */
1404 #elif defined( __VMS ) || defined(__sgi)
1405 #include <inttypes.h>
1406 #elif defined(__SCO__) || defined(__USLC__)
1407 #include <stdint.h>
1408 #elif defined(__UNIXOS2__) || defined(__SOL64__)
1409 typedef long int int32_t;
1410 typedef long long int int64_t;
1411 typedef unsigned long long int uint64_t;
1412 #elif defined(_WIN32) && defined(__GNUC__)
1413 #include <stdint.h>
1414 #elif defined(_WIN32)
1415 typedef __int32 int32_t;
1416 typedef __int64 int64_t;
1417 typedef unsigned __int64 uint64_t;
1418 #else
1419 /* Fallback if nothing above works */
1420 #include <inttypes.h>
1421 #endif
1422 #endif
1423 typedef uint64_t GLuint64;
1424 typedef int64_t GLint64;
1425 #define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
1426 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
1427 #define GL_LINES_ADJACENCY 0x000A
1428 #define GL_LINE_STRIP_ADJACENCY 0x000B
1429 #define GL_TRIANGLES_ADJACENCY 0x000C
1430 #define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
1431 #define GL_PROGRAM_POINT_SIZE 0x8642
1432 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
1433 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
1434 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
1435 #define GL_GEOMETRY_SHADER 0x8DD9
1436 #define GL_GEOMETRY_VERTICES_OUT 0x8916
1437 #define GL_GEOMETRY_INPUT_TYPE 0x8917
1438 #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
1439 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
1440 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
1441 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
1442 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
1443 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
1444 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
1445 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
1446 #define GL_CONTEXT_PROFILE_MASK 0x9126
1447 #define GL_DEPTH_CLAMP 0x864F
1448 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1449 #define GL_FIRST_VERTEX_CONVENTION 0x8E4D
1450 #define GL_LAST_VERTEX_CONVENTION 0x8E4E
1451 #define GL_PROVOKING_VERTEX 0x8E4F
1452 #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
1453 #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
1454 #define GL_OBJECT_TYPE 0x9112
1455 #define GL_SYNC_CONDITION 0x9113
1456 #define GL_SYNC_STATUS 0x9114
1457 #define GL_SYNC_FLAGS 0x9115
1458 #define GL_SYNC_FENCE 0x9116
1459 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
1460 #define GL_UNSIGNALED 0x9118
1461 #define GL_SIGNALED 0x9119
1462 #define GL_ALREADY_SIGNALED 0x911A
1463 #define GL_TIMEOUT_EXPIRED 0x911B
1464 #define GL_CONDITION_SATISFIED 0x911C
1465 #define GL_WAIT_FAILED 0x911D
1466 #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
1467 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
1468 #define GL_SAMPLE_POSITION 0x8E50
1469 #define GL_SAMPLE_MASK 0x8E51
1470 #define GL_SAMPLE_MASK_VALUE 0x8E52
1471 #define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
1472 #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
1473 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
1474 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
1475 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1476 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1477 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1478 #define GL_TEXTURE_SAMPLES 0x9106
1479 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1480 #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
1481 #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
1482 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1483 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
1484 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1485 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1486 #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
1487 #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
1488 #define GL_MAX_INTEGER_SAMPLES 0x9110
1489 typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1490 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1491 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1492 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1493 typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
1494 typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
1495 typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
1496 typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
1497 typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1498 typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1499 typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
1500 typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1501 typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
1502 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
1503 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
1506 typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
1507 typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
1508 #ifdef GL_GLEXT_PROTOTYPES
1509 GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1510 GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1511 GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1512 GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1514 GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
1515 GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
1516 GLAPI void APIENTRY glDeleteSync (GLsync sync);
1517 GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1518 GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1519 GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
1520 GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1521 GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
1522 GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
1523 GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
1524 GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
1525 GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
1526 GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
1527 GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
1528 #endif
1529 #endif /* GL_VERSION_3_2 */
1530 
1531 #ifndef GL_VERSION_3_3
1532 #define GL_VERSION_3_3 1
1533 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
1534 #define GL_SRC1_COLOR 0x88F9
1535 #define GL_ONE_MINUS_SRC1_COLOR 0x88FA
1536 #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
1537 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
1538 #define GL_ANY_SAMPLES_PASSED 0x8C2F
1539 #define GL_SAMPLER_BINDING 0x8919
1540 #define GL_RGB10_A2UI 0x906F
1541 #define GL_TEXTURE_SWIZZLE_R 0x8E42
1542 #define GL_TEXTURE_SWIZZLE_G 0x8E43
1543 #define GL_TEXTURE_SWIZZLE_B 0x8E44
1544 #define GL_TEXTURE_SWIZZLE_A 0x8E45
1545 #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
1546 #define GL_TIME_ELAPSED 0x88BF
1547 #define GL_TIMESTAMP 0x8E28
1548 #define GL_INT_2_10_10_10_REV 0x8D9F
1549 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1550 typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
1551 typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
1552 typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
1553 typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
1554 typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
1555 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
1556 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1557 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
1558 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
1559 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1560 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
1561 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1562 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1563 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
1564 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
1565 typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
1566 typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
1567 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
1568 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
1569 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1570 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1571 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1572 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1573 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1574 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1575 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1576 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1577 typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
1578 typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
1579 typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
1580 typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
1581 typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
1582 typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
1583 typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
1584 typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
1585 typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
1586 typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
1587 typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
1588 typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
1589 typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
1590 typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
1591 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
1592 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1593 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
1594 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1595 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
1596 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1597 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
1598 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1599 typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
1600 typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
1601 typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
1602 typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
1603 typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
1604 typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
1605 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
1606 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
1607 #ifdef GL_GLEXT_PROTOTYPES
1608 GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1609 GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
1610 GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
1611 GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
1612 GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
1613 GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
1614 GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
1615 GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
1616 GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
1617 GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
1618 GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
1619 GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
1620 GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
1621 GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
1622 GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
1623 GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
1624 GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
1625 GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
1626 GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
1627 GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
1628 GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1629 GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1630 GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1631 GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1632 GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1633 GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1634 GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1635 GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1636 GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
1637 GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
1638 GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
1639 GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
1640 GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
1641 GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
1642 GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
1643 GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
1644 GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
1645 GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
1646 GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
1647 GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
1648 GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
1649 GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
1650 GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
1651 GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
1652 GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
1653 GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
1654 GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
1655 GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
1656 GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
1657 GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
1658 GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
1659 GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
1660 GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
1661 GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
1662 GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
1663 GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
1664 GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
1665 GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
1666 #endif
1667 #endif /* GL_VERSION_3_3 */
1668 
1669 #ifndef GL_VERSION_4_0
1670 #define GL_VERSION_4_0 1
1671 #define GL_SAMPLE_SHADING 0x8C36
1672 #define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
1673 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
1674 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
1675 #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
1676 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
1677 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
1678 #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
1679 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
1680 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
1681 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
1682 #define GL_DRAW_INDIRECT_BUFFER 0x8F3F
1683 #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
1684 #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
1685 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
1686 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
1687 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
1688 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
1689 #define GL_MAX_VERTEX_STREAMS 0x8E71
1690 #define GL_DOUBLE_VEC2 0x8FFC
1691 #define GL_DOUBLE_VEC3 0x8FFD
1692 #define GL_DOUBLE_VEC4 0x8FFE
1693 #define GL_DOUBLE_MAT2 0x8F46
1694 #define GL_DOUBLE_MAT3 0x8F47
1695 #define GL_DOUBLE_MAT4 0x8F48
1696 #define GL_DOUBLE_MAT2x3 0x8F49
1697 #define GL_DOUBLE_MAT2x4 0x8F4A
1698 #define GL_DOUBLE_MAT3x2 0x8F4B
1699 #define GL_DOUBLE_MAT3x4 0x8F4C
1700 #define GL_DOUBLE_MAT4x2 0x8F4D
1701 #define GL_DOUBLE_MAT4x3 0x8F4E
1702 #define GL_ACTIVE_SUBROUTINES 0x8DE5
1703 #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
1704 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
1705 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
1706 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
1707 #define GL_MAX_SUBROUTINES 0x8DE7
1708 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
1709 #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
1710 #define GL_COMPATIBLE_SUBROUTINES 0x8E4B
1711 #define GL_PATCHES 0x000E
1712 #define GL_PATCH_VERTICES 0x8E72
1713 #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
1714 #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
1715 #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
1716 #define GL_TESS_GEN_MODE 0x8E76
1717 #define GL_TESS_GEN_SPACING 0x8E77
1718 #define GL_TESS_GEN_VERTEX_ORDER 0x8E78
1719 #define GL_TESS_GEN_POINT_MODE 0x8E79
1720 #define GL_ISOLINES 0x8E7A
1721 #define GL_FRACTIONAL_ODD 0x8E7B
1722 #define GL_FRACTIONAL_EVEN 0x8E7C
1723 #define GL_MAX_PATCH_VERTICES 0x8E7D
1724 #define GL_MAX_TESS_GEN_LEVEL 0x8E7E
1725 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
1726 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
1727 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
1728 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
1729 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
1730 #define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
1731 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
1732 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
1733 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
1734 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
1735 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
1736 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
1737 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
1738 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
1739 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
1740 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
1741 #define GL_TESS_EVALUATION_SHADER 0x8E87
1742 #define GL_TESS_CONTROL_SHADER 0x8E88
1743 #define GL_TRANSFORM_FEEDBACK 0x8E22
1744 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
1745 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
1746 #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
1747 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
1748 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
1749 typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
1750 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1751 typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
1752 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1753 typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
1754 typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
1755 typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
1756 typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
1757 typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
1758 typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1759 typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1760 typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1761 typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1762 typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1763 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1764 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1765 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1766 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1767 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1768 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1769 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1770 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1771 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1772 typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
1773 typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1774 typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1775 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1776 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1777 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1778 typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
1779 typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
1780 typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1781 typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
1782 typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
1783 typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
1784 typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
1785 typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
1786 typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
1787 typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
1788 typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
1789 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
1790 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
1791 typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
1792 typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
1793 typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
1794 #ifdef GL_GLEXT_PROTOTYPES
1795 GLAPI void APIENTRY glMinSampleShading (GLfloat value);
1796 GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
1797 GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1798 GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
1799 GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1800 GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
1801 GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
1802 GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
1803 GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
1804 GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
1805 GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1806 GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
1807 GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
1808 GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
1809 GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
1810 GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1811 GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1812 GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1813 GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1814 GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1815 GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1816 GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1817 GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1818 GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1819 GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
1820 GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
1821 GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
1822 GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1823 GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1824 GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1825 GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
1826 GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
1827 GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1828 GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
1829 GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
1830 GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
1831 GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
1832 GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
1833 GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
1834 GLAPI void APIENTRY glPauseTransformFeedback (void);
1835 GLAPI void APIENTRY glResumeTransformFeedback (void);
1836 GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
1837 GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
1838 GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
1839 GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
1840 GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
1841 #endif
1842 #endif /* GL_VERSION_4_0 */
1843 
1844 #ifndef GL_VERSION_4_1
1845 #define GL_VERSION_4_1 1
1846 #define GL_FIXED 0x140C
1847 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1848 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1849 #define GL_LOW_FLOAT 0x8DF0
1850 #define GL_MEDIUM_FLOAT 0x8DF1
1851 #define GL_HIGH_FLOAT 0x8DF2
1852 #define GL_LOW_INT 0x8DF3
1853 #define GL_MEDIUM_INT 0x8DF4
1854 #define GL_HIGH_INT 0x8DF5
1855 #define GL_SHADER_COMPILER 0x8DFA
1856 #define GL_SHADER_BINARY_FORMATS 0x8DF8
1857 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1858 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1859 #define GL_MAX_VARYING_VECTORS 0x8DFC
1860 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1861 #define GL_RGB565 0x8D62
1862 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
1863 #define GL_PROGRAM_BINARY_LENGTH 0x8741
1864 #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
1865 #define GL_PROGRAM_BINARY_FORMATS 0x87FF
1866 #define GL_VERTEX_SHADER_BIT 0x00000001
1867 #define GL_FRAGMENT_SHADER_BIT 0x00000002
1868 #define GL_GEOMETRY_SHADER_BIT 0x00000004
1869 #define GL_TESS_CONTROL_SHADER_BIT 0x00000008
1870 #define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
1871 #define GL_ALL_SHADER_BITS 0xFFFFFFFF
1872 #define GL_PROGRAM_SEPARABLE 0x8258
1873 #define GL_ACTIVE_PROGRAM 0x8259
1874 #define GL_PROGRAM_PIPELINE_BINDING 0x825A
1875 #define GL_MAX_VIEWPORTS 0x825B
1876 #define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
1877 #define GL_VIEWPORT_BOUNDS_RANGE 0x825D
1878 #define GL_LAYER_PROVOKING_VERTEX 0x825E
1879 #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
1880 #define GL_UNDEFINED_VERTEX 0x8260
1881 typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
1882 typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
1883 typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
1884 typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
1885 typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
1886 typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
1887 typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
1888 typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
1889 typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
1890 typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
1891 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
1892 typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
1893 typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
1894 typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
1895 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
1896 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
1897 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
1898 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1899 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
1900 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1901 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
1902 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1903 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
1904 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1905 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
1906 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1907 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
1908 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1909 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
1910 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1911 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
1912 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1913 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
1914 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1915 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1916 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1917 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
1918 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1919 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
1920 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1921 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1922 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1923 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1924 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1925 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
1926 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1927 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1928 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1929 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1930 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1931 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1932 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1933 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1934 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1935 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1936 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1937 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1938 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1939 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1940 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1941 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1942 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1943 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1944 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1945 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1946 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1947 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
1948 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1949 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
1950 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
1951 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1952 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1953 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
1954 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
1955 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
1956 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
1957 typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1958 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
1959 typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
1960 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
1961 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
1962 typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
1963 typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
1964 typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
1965 typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
1966 typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
1967 typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
1968 typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
1969 #ifdef GL_GLEXT_PROTOTYPES
1970 GLAPI void APIENTRY glReleaseShaderCompiler (void);
1971 GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
1972 GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
1973 GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
1974 GLAPI void APIENTRY glClearDepthf (GLfloat d);
1975 GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
1976 GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
1977 GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
1978 GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
1979 GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
1980 GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
1981 GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
1982 GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
1983 GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
1984 GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
1985 GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
1986 GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
1987 GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1988 GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
1989 GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1990 GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
1991 GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1992 GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
1993 GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
1994 GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
1995 GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1996 GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
1997 GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1998 GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
1999 GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2000 GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
2001 GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2002 GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
2003 GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2004 GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2005 GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2006 GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
2007 GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2008 GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
2009 GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2010 GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2011 GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2012 GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2013 GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2014 GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
2015 GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2016 GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2017 GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2018 GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2019 GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2020 GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2021 GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2022 GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2023 GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2024 GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2025 GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2026 GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2027 GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2028 GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2029 GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2030 GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2031 GLAPI void APIENTRY glProgramUniformMatrix3x2dv (