0030748: Visualization - Marker displayed in immediate layer ruins QT Quick view...
[occt.git] / src / OpenGl / glext.h
CommitLineData
5f8b738e 1#ifndef __glext_h_
9293178b 2#define __glext_h_ 1
5f8b738e 3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
00ea319b 9** Copyright (c) 2013-2014 The Khronos Group Inc.
b311480e 10**
5f8b738e 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:
b311480e 18**
5f8b738e 19** The above copyright notice and this permission notice shall be included
20** in all copies or substantial portions of the Materials.
b311480e 21**
5f8b738e 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*/
9293178b 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** http://www.opengl.org/registry/
35**
00ea319b 36** Khronos $Revision: 28798 $ on $Date: 2014-10-30 03:27:48 -0700 (Thu, 30 Oct 2014) $
9293178b 37*/
5f8b738e 38
39#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
9293178b 40#ifndef WIN32_LEAN_AND_MEAN
5f8b738e 41#define WIN32_LEAN_AND_MEAN 1
9293178b 42#endif
5f8b738e 43#include <windows.h>
44#endif
45
46#ifndef APIENTRY
47#define APIENTRY
48#endif
49#ifndef APIENTRYP
50#define APIENTRYP APIENTRY *
51#endif
52#ifndef GLAPI
53#define GLAPI extern
54#endif
55
00ea319b 56#define GL_GLEXT_VERSION 20141030
9293178b 57
58/* Generated C header for:
59 * API: gl
60 * Profile: compatibility
61 * Versions considered: .*
62 * Versions emitted: 1\.[2-9]|[234]\.[0-9]
63 * Default extensions included: gl
64 * Additional extensions included: _nomatch_^
65 * Extensions removed: _nomatch_^
66 */
5f8b738e 67
68#ifndef GL_VERSION_1_2
9293178b 69#define GL_VERSION_1_2 1
5f8b738e 70#define GL_UNSIGNED_BYTE_3_3_2 0x8032
71#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
72#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
73#define GL_UNSIGNED_INT_8_8_8_8 0x8035
74#define GL_UNSIGNED_INT_10_10_10_2 0x8036
75#define GL_TEXTURE_BINDING_3D 0x806A
76#define GL_PACK_SKIP_IMAGES 0x806B
77#define GL_PACK_IMAGE_HEIGHT 0x806C
78#define GL_UNPACK_SKIP_IMAGES 0x806D
79#define GL_UNPACK_IMAGE_HEIGHT 0x806E
80#define GL_TEXTURE_3D 0x806F
81#define GL_PROXY_TEXTURE_3D 0x8070
82#define GL_TEXTURE_DEPTH 0x8071
83#define GL_TEXTURE_WRAP_R 0x8072
84#define GL_MAX_3D_TEXTURE_SIZE 0x8073
85#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
86#define GL_UNSIGNED_SHORT_5_6_5 0x8363
87#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
88#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
89#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
90#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
91#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
92#define GL_BGR 0x80E0
93#define GL_BGRA 0x80E1
94#define GL_MAX_ELEMENTS_VERTICES 0x80E8
95#define GL_MAX_ELEMENTS_INDICES 0x80E9
96#define GL_CLAMP_TO_EDGE 0x812F
97#define GL_TEXTURE_MIN_LOD 0x813A
98#define GL_TEXTURE_MAX_LOD 0x813B
99#define GL_TEXTURE_BASE_LEVEL 0x813C
100#define GL_TEXTURE_MAX_LEVEL 0x813D
101#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
102#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
103#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
104#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
105#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
5f8b738e 106#define GL_RESCALE_NORMAL 0x803A
107#define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
108#define GL_SINGLE_COLOR 0x81F9
109#define GL_SEPARATE_SPECULAR_COLOR 0x81FA
110#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
9293178b 111typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
112typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
113typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
114typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
115#ifdef GL_GLEXT_PROTOTYPES
116GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
117GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
118GLAPI 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);
119GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
5f8b738e 120#endif
9293178b 121#endif /* GL_VERSION_1_2 */
5f8b738e 122
123#ifndef GL_VERSION_1_3
9293178b 124#define GL_VERSION_1_3 1
5f8b738e 125#define GL_TEXTURE0 0x84C0
126#define GL_TEXTURE1 0x84C1
127#define GL_TEXTURE2 0x84C2
128#define GL_TEXTURE3 0x84C3
129#define GL_TEXTURE4 0x84C4
130#define GL_TEXTURE5 0x84C5
131#define GL_TEXTURE6 0x84C6
132#define GL_TEXTURE7 0x84C7
133#define GL_TEXTURE8 0x84C8
134#define GL_TEXTURE9 0x84C9
135#define GL_TEXTURE10 0x84CA
136#define GL_TEXTURE11 0x84CB
137#define GL_TEXTURE12 0x84CC
138#define GL_TEXTURE13 0x84CD
139#define GL_TEXTURE14 0x84CE
140#define GL_TEXTURE15 0x84CF
141#define GL_TEXTURE16 0x84D0
142#define GL_TEXTURE17 0x84D1
143#define GL_TEXTURE18 0x84D2
144#define GL_TEXTURE19 0x84D3
145#define GL_TEXTURE20 0x84D4
146#define GL_TEXTURE21 0x84D5
147#define GL_TEXTURE22 0x84D6
148#define GL_TEXTURE23 0x84D7
149#define GL_TEXTURE24 0x84D8
150#define GL_TEXTURE25 0x84D9
151#define GL_TEXTURE26 0x84DA
152#define GL_TEXTURE27 0x84DB
153#define GL_TEXTURE28 0x84DC
154#define GL_TEXTURE29 0x84DD
155#define GL_TEXTURE30 0x84DE
156#define GL_TEXTURE31 0x84DF
157#define GL_ACTIVE_TEXTURE 0x84E0
158#define GL_MULTISAMPLE 0x809D
159#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
160#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
161#define GL_SAMPLE_COVERAGE 0x80A0
162#define GL_SAMPLE_BUFFERS 0x80A8
163#define GL_SAMPLES 0x80A9
164#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
165#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
166#define GL_TEXTURE_CUBE_MAP 0x8513
167#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
168#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
169#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
170#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
171#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
172#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
173#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
174#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
175#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
176#define GL_COMPRESSED_RGB 0x84ED
177#define GL_COMPRESSED_RGBA 0x84EE
178#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
179#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
180#define GL_TEXTURE_COMPRESSED 0x86A1
181#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
182#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
183#define GL_CLAMP_TO_BORDER 0x812D
5f8b738e 184#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
185#define GL_MAX_TEXTURE_UNITS 0x84E2
186#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
187#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
188#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
189#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
190#define GL_MULTISAMPLE_BIT 0x20000000
191#define GL_NORMAL_MAP 0x8511
192#define GL_REFLECTION_MAP 0x8512
193#define GL_COMPRESSED_ALPHA 0x84E9
194#define GL_COMPRESSED_LUMINANCE 0x84EA
195#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
196#define GL_COMPRESSED_INTENSITY 0x84EC
197#define GL_COMBINE 0x8570
198#define GL_COMBINE_RGB 0x8571
199#define GL_COMBINE_ALPHA 0x8572
200#define GL_SOURCE0_RGB 0x8580
201#define GL_SOURCE1_RGB 0x8581
202#define GL_SOURCE2_RGB 0x8582
203#define GL_SOURCE0_ALPHA 0x8588
204#define GL_SOURCE1_ALPHA 0x8589
205#define GL_SOURCE2_ALPHA 0x858A
206#define GL_OPERAND0_RGB 0x8590
207#define GL_OPERAND1_RGB 0x8591
208#define GL_OPERAND2_RGB 0x8592
209#define GL_OPERAND0_ALPHA 0x8598
210#define GL_OPERAND1_ALPHA 0x8599
211#define GL_OPERAND2_ALPHA 0x859A
212#define GL_RGB_SCALE 0x8573
213#define GL_ADD_SIGNED 0x8574
214#define GL_INTERPOLATE 0x8575
215#define GL_SUBTRACT 0x84E7
216#define GL_CONSTANT 0x8576
217#define GL_PRIMARY_COLOR 0x8577
218#define GL_PREVIOUS 0x8578
219#define GL_DOT3_RGB 0x86AE
220#define GL_DOT3_RGBA 0x86AF
9293178b 221typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
222typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
223typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
224typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
225typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
226typedef 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);
227typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
228typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
229typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
230typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
231typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
232typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
233typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
234typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
235typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
236typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
237typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
238typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
239typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
240typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
241typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
242typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
243typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
244typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
245typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
246typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
247typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
248typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
249typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
250typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
251typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
252typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
253typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
254typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
255typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
256typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
257typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
258typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
259typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
260typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
261typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
262typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
263typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
264typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
265typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
266typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
267#ifdef GL_GLEXT_PROTOTYPES
268GLAPI void APIENTRY glActiveTexture (GLenum texture);
269GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
270GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
271GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
272GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
273GLAPI 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);
274GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
275GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
276GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
277GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
278GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
279GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
280GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
281GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
282GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
283GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
284GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
285GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
286GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
287GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
288GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
289GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
290GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
291GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
292GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
293GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
294GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
295GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
296GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
297GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
298GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
299GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
300GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
301GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
302GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
303GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
304GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
305GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
306GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
307GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
308GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
309GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
310GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
311GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
312GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
313GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
5f8b738e 314#endif
9293178b 315#endif /* GL_VERSION_1_3 */
5f8b738e 316
317#ifndef GL_VERSION_1_4
9293178b 318#define GL_VERSION_1_4 1
5f8b738e 319#define GL_BLEND_DST_RGB 0x80C8
320#define GL_BLEND_SRC_RGB 0x80C9
321#define GL_BLEND_DST_ALPHA 0x80CA
322#define GL_BLEND_SRC_ALPHA 0x80CB
323#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
324#define GL_DEPTH_COMPONENT16 0x81A5
325#define GL_DEPTH_COMPONENT24 0x81A6
326#define GL_DEPTH_COMPONENT32 0x81A7
327#define GL_MIRRORED_REPEAT 0x8370
328#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
329#define GL_TEXTURE_LOD_BIAS 0x8501
330#define GL_INCR_WRAP 0x8507
331#define GL_DECR_WRAP 0x8508
332#define GL_TEXTURE_DEPTH_SIZE 0x884A
333#define GL_TEXTURE_COMPARE_MODE 0x884C
334#define GL_TEXTURE_COMPARE_FUNC 0x884D
5f8b738e 335#define GL_POINT_SIZE_MIN 0x8126
336#define GL_POINT_SIZE_MAX 0x8127
337#define GL_POINT_DISTANCE_ATTENUATION 0x8129
338#define GL_GENERATE_MIPMAP 0x8191
339#define GL_GENERATE_MIPMAP_HINT 0x8192
340#define GL_FOG_COORDINATE_SOURCE 0x8450
341#define GL_FOG_COORDINATE 0x8451
342#define GL_FRAGMENT_DEPTH 0x8452
343#define GL_CURRENT_FOG_COORDINATE 0x8453
344#define GL_FOG_COORDINATE_ARRAY_TYPE 0x8454
345#define GL_FOG_COORDINATE_ARRAY_STRIDE 0x8455
346#define GL_FOG_COORDINATE_ARRAY_POINTER 0x8456
347#define GL_FOG_COORDINATE_ARRAY 0x8457
348#define GL_COLOR_SUM 0x8458
349#define GL_CURRENT_SECONDARY_COLOR 0x8459
350#define GL_SECONDARY_COLOR_ARRAY_SIZE 0x845A
351#define GL_SECONDARY_COLOR_ARRAY_TYPE 0x845B
352#define GL_SECONDARY_COLOR_ARRAY_STRIDE 0x845C
353#define GL_SECONDARY_COLOR_ARRAY_POINTER 0x845D
354#define GL_SECONDARY_COLOR_ARRAY 0x845E
355#define GL_TEXTURE_FILTER_CONTROL 0x8500
356#define GL_DEPTH_TEXTURE_MODE 0x884B
357#define GL_COMPARE_R_TO_TEXTURE 0x884E
9293178b 358#define GL_FUNC_ADD 0x8006
359#define GL_FUNC_SUBTRACT 0x800A
360#define GL_FUNC_REVERSE_SUBTRACT 0x800B
361#define GL_MIN 0x8007
362#define GL_MAX 0x8008
363#define GL_CONSTANT_COLOR 0x8001
364#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
365#define GL_CONSTANT_ALPHA 0x8003
366#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
367typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
368typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
369typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
370typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
371typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
372typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
373typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
374typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
375typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
376typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
377typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
378typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
379typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
380typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
381typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
382typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
383typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
384typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
385typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
386typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
387typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
388typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
389typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
390typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
391typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
392typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
393typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
394typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
395typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
396typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
397typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
398typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
399typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
400typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
401typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
402typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
403typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
404typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
405typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
406typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
407typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
408typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
409typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
410typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
411typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
412typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
413typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
414#ifdef GL_GLEXT_PROTOTYPES
415GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
416GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
417GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
418GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
419GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
420GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
421GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
422GLAPI void APIENTRY glFogCoordf (GLfloat coord);
423GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
424GLAPI void APIENTRY glFogCoordd (GLdouble coord);
425GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
426GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer);
427GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
428GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
429GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
430GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
431GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
432GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
433GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
434GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
435GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
436GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
437GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
438GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
439GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
440GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
441GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
442GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
443GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
444GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
445GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
446GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
447GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
448GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
449GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
450GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
451GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
452GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
453GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
454GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
455GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
456GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
457GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
458GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
459GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
460GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
461GLAPI void APIENTRY glBlendEquation (GLenum mode);
462#endif
463#endif /* GL_VERSION_1_4 */
464
465#ifndef GL_VERSION_1_5
466#define GL_VERSION_1_5 1
467#include <stddef.h>
468typedef ptrdiff_t GLsizeiptr;
469typedef ptrdiff_t GLintptr;
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
520typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
521typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
522typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
523typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
524typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
525typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
526typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
527typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
528typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
529typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
530typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
531typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
532typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
533typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
534typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
535typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
536typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
537typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
538typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
539#ifdef GL_GLEXT_PROTOTYPES
540GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
541GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
542GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
543GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
544GLAPI void APIENTRY glEndQuery (GLenum target);
545GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
546GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
547GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
548GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
549GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
550GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
551GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
552GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
553GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
554GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
555GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
556GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
557GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
558GLAPI 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
564typedef 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
5f8b738e 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
5f8b738e 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
9293178b 649typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
650typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
651typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
652typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
653typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
654typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
655typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
656typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
657typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
658typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
659typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
660typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
661typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
662typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
663typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
664typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
665typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
666typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
667typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
668typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
669typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
670typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
671typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
672typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
673typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
674typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
675typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
676typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
677typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
678typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
679typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
680typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
681typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
682typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
683typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
684typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
685typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
686typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
687typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
688typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
689typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
690typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
691typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
692typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
693typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
694typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
695typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
696typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
697typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
698typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
699typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
700typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
701typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
702typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
703typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
704typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
705typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
706typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
707typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
708typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
709typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
710typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
711typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
712typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
713typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
714typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
715typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
716typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
717typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
718typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
719typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
720typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
721typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
722typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
723typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
724typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
725typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
726typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
727typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
728typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
729typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
730typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
731typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
732typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
733typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
734typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
735typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
736typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
737typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
738typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
739typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
740typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
741typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
742#ifdef GL_GLEXT_PROTOTYPES
743GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
744GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
745GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
746GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
747GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
748GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
749GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
750GLAPI void APIENTRY glCompileShader (GLuint shader);
751GLAPI GLuint APIENTRY glCreateProgram (void);
752GLAPI GLuint APIENTRY glCreateShader (GLenum type);
753GLAPI void APIENTRY glDeleteProgram (GLuint program);
754GLAPI void APIENTRY glDeleteShader (GLuint shader);
755GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
756GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
757GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
758GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
759GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
760GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
761GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
762GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
763GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
764GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
765GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
766GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
767GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
768GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
769GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
770GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
771GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
772GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
773GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
774GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
775GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
776GLAPI void APIENTRY glLinkProgram (GLuint program);
777GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
778GLAPI void APIENTRY glUseProgram (GLuint program);
779GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
780GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
781GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
782GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
783GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
784GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
785GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
786GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
787GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
788GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
789GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
790GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
791GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
792GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
793GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
794GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
795GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
796GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
797GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
798GLAPI void APIENTRY glValidateProgram (GLuint program);
799GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
800GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
801GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
802GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
803GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
804GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
805GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
806GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
807GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
808GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
809GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
810GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
811GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
812GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
813GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
814GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
815GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
816GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
817GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
818GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
819GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
820GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
821GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
822GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
823GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
824GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
825GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
826GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
827GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
828GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
829GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
830GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
831GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
832GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
833GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
834GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
835GLAPI 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
864typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
865typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
866typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
867typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
868typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
869typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
870#ifdef GL_GLEXT_PROTOTYPES
871GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
872GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
873GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
874GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
875GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
876GLAPI 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
882typedef 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
5f8b738e 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
9293178b 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_DEPTH_ATTACHMENT 0x8D00
1045#define GL_STENCIL_ATTACHMENT 0x8D20
1046#define GL_FRAMEBUFFER 0x8D40
1047#define GL_RENDERBUFFER 0x8D41
1048#define GL_RENDERBUFFER_WIDTH 0x8D42
1049#define GL_RENDERBUFFER_HEIGHT 0x8D43
1050#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1051#define GL_STENCIL_INDEX1 0x8D46
1052#define GL_STENCIL_INDEX4 0x8D47
1053#define GL_STENCIL_INDEX8 0x8D48
1054#define GL_STENCIL_INDEX16 0x8D49
1055#define GL_RENDERBUFFER_RED_SIZE 0x8D50
1056#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1057#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1058#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1059#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1060#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1061#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1062#define GL_MAX_SAMPLES 0x8D57
1063#define GL_INDEX 0x8222
1064#define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
1065#define GL_TEXTURE_INTENSITY_TYPE 0x8C15
1066#define GL_FRAMEBUFFER_SRGB 0x8DB9
1067#define GL_HALF_FLOAT 0x140B
1068#define GL_MAP_READ_BIT 0x0001
1069#define GL_MAP_WRITE_BIT 0x0002
1070#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
1071#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
1072#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
1073#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
1074#define GL_COMPRESSED_RED_RGTC1 0x8DBB
1075#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
1076#define GL_COMPRESSED_RG_RGTC2 0x8DBD
1077#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
1078#define GL_RG 0x8227
1079#define GL_RG_INTEGER 0x8228
1080#define GL_R8 0x8229
1081#define GL_R16 0x822A
1082#define GL_RG8 0x822B
1083#define GL_RG16 0x822C
1084#define GL_R16F 0x822D
1085#define GL_R32F 0x822E
1086#define GL_RG16F 0x822F
1087#define GL_RG32F 0x8230
1088#define GL_R8I 0x8231
1089#define GL_R8UI 0x8232
1090#define GL_R16I 0x8233
1091#define GL_R16UI 0x8234
1092#define GL_R32I 0x8235
1093#define GL_R32UI 0x8236
1094#define GL_RG8I 0x8237
1095#define GL_RG8UI 0x8238
1096#define GL_RG16I 0x8239
1097#define GL_RG16UI 0x823A
1098#define GL_RG32I 0x823B
1099#define GL_RG32UI 0x823C
1100#define GL_VERTEX_ARRAY_BINDING 0x85B5
1101#define GL_CLAMP_VERTEX_COLOR 0x891A
1102#define GL_CLAMP_FRAGMENT_COLOR 0x891B
1103#define GL_ALPHA_INTEGER 0x8D97
1104typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1105typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
1106typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
1107typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
1108typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
1109typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
1110typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
1111typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
1112typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1113typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
1114typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1115typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1116typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
1117typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
1118typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
1119typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1120typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
1121typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
1122typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
1123typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
1124typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
1125typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
1126typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
1127typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
1128typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
1129typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1130typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
1131typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
1132typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
1133typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
1134typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
1135typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
1136typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
1137typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
1138typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
1139typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
1140typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
1141typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
1142typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
1143typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
1144typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
1145typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
1146typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
1147typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
1148typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1149typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1150typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1151typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1152typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1153typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
1154typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
1155typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
1156typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
1157typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
1158typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
1159typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1160typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1161typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
1162typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
1163typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
1164typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
1165typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
1166typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1167typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1168typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
1169typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
1170typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
1171typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
1172typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
1173typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1174typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1175typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1176typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1177typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
1178typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
1179typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
1180typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1181typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1182typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1183typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
1184typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
1185typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
1186typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
1187typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
5f8b738e 1188#ifdef GL_GLEXT_PROTOTYPES
9293178b 1189GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1190GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
1191GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
1192GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
1193GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
1194GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
1195GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
1196GLAPI void APIENTRY glEndTransformFeedback (void);
1197GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1198GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
1199GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1200GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1201GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
1202GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
1203GLAPI void APIENTRY glEndConditionalRender (void);
1204GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1205GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
1206GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
1207GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
1208GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
1209GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
1210GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
1211GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
1212GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
1213GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
1214GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1215GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
1216GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
1217GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
1218GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
1219GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
1220GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
1221GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
1222GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
1223GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
1224GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
1225GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
1226GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
1227GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
1228GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
1229GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
1230GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
1231GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
1232GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
1233GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1234GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
1235GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
1236GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
1237GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
1238GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
1239GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
1240GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
1241GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
1242GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
1243GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
1244GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1245GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1246GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
1247GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
1248GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
1249GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
1250GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
1251GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1252GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
1253GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
1254GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
1255GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
1256GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
1257GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
1258GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1259GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1260GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1261GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1262GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
1263GLAPI void APIENTRY glGenerateMipmap (GLenum target);
1264GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
1265GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1266GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1267GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1268GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
1269GLAPI void APIENTRY glBindVertexArray (GLuint array);
1270GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
1271GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
1272GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
5f8b738e 1273#endif
9293178b 1274#endif /* GL_VERSION_3_0 */
5f8b738e 1275
9293178b 1276#ifndef GL_VERSION_3_1
1277#define GL_VERSION_3_1 1
1278#define GL_SAMPLER_2D_RECT 0x8B63
1279#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
1280#define GL_SAMPLER_BUFFER 0x8DC2
1281#define GL_INT_SAMPLER_2D_RECT 0x8DCD
1282#define GL_INT_SAMPLER_BUFFER 0x8DD0
1283#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
1284#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
1285#define GL_TEXTURE_BUFFER 0x8C2A
1286#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
1287#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
1288#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
1289#define GL_TEXTURE_RECTANGLE 0x84F5
1290#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
1291#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
1292#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
1293#define GL_R8_SNORM 0x8F94
1294#define GL_RG8_SNORM 0x8F95
1295#define GL_RGB8_SNORM 0x8F96
1296#define GL_RGBA8_SNORM 0x8F97
1297#define GL_R16_SNORM 0x8F98
1298#define GL_RG16_SNORM 0x8F99
1299#define GL_RGB16_SNORM 0x8F9A
1300#define GL_RGBA16_SNORM 0x8F9B
1301#define GL_SIGNED_NORMALIZED 0x8F9C
1302#define GL_PRIMITIVE_RESTART 0x8F9D
1303#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
1304#define GL_COPY_READ_BUFFER 0x8F36
1305#define GL_COPY_WRITE_BUFFER 0x8F37
1306#define GL_UNIFORM_BUFFER 0x8A11
1307#define GL_UNIFORM_BUFFER_BINDING 0x8A28
1308#define GL_UNIFORM_BUFFER_START 0x8A29
1309#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
1310#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
00ea319b 1311#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
9293178b 1312#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
1313#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
1314#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
1315#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
1316#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
00ea319b 1317#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
9293178b 1318#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1319#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1320#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1321#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
1322#define GL_UNIFORM_TYPE 0x8A37
1323#define GL_UNIFORM_SIZE 0x8A38
1324#define GL_UNIFORM_NAME_LENGTH 0x8A39
1325#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
1326#define GL_UNIFORM_OFFSET 0x8A3B
1327#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
1328#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
1329#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
1330#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
1331#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
1332#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
1333#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
1334#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1335#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
00ea319b 1336#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
9293178b 1337#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1338#define GL_INVALID_INDEX 0xFFFFFFFFu
1339typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
1340typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1341typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
1342typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
1343typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1344typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1345typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1346typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1347typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
1348typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1349typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1350typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
5f8b738e 1351#ifdef GL_GLEXT_PROTOTYPES
9293178b 1352GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
1353GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1354GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
1355GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
1356GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1357GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1358GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1359GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1360GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
1361GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1362GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1363GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
5f8b738e 1364#endif
9293178b 1365#endif /* GL_VERSION_3_1 */
5f8b738e 1366
9293178b 1367#ifndef GL_VERSION_3_2
1368#define GL_VERSION_3_2 1
1369typedef struct __GLsync *GLsync;
1370#ifndef GLEXT_64_TYPES_DEFINED
1371/* This code block is duplicated in glxext.h, so must be protected */
1372#define GLEXT_64_TYPES_DEFINED
1373/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
1374/* (as used in the GL_EXT_timer_query extension). */
1375#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
1376#include <inttypes.h>
1377#elif defined(__sun__) || defined(__digital__)
1378#include <inttypes.h>
1379#if defined(__STDC__)
1380#if defined(__arch64__) || defined(_LP64)
1381typedef long int int64_t;
1382typedef unsigned long int uint64_t;
1383#else
1384typedef long long int int64_t;
1385typedef unsigned long long int uint64_t;
1386#endif /* __arch64__ */
1387#endif /* __STDC__ */
1388#elif defined( __VMS ) || defined(__sgi)
1389#include <inttypes.h>
1390#elif defined(__SCO__) || defined(__USLC__)
1391#include <stdint.h>
1392#elif defined(__UNIXOS2__) || defined(__SOL64__)
1393typedef long int int32_t;
1394typedef long long int int64_t;
1395typedef unsigned long long int uint64_t;
1396#elif defined(_WIN32) && defined(__GNUC__)
1397#include <stdint.h>
1398#elif defined(_WIN32)
1399typedef __int32 int32_t;
1400typedef __int64 int64_t;
1401typedef unsigned __int64 uint64_t;
1402#else
1403/* Fallback if nothing above works */
1404#include <inttypes.h>
5f8b738e 1405#endif
5f8b738e 1406#endif
9293178b 1407typedef uint64_t GLuint64;
1408typedef int64_t GLint64;
1409#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
1410#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
1411#define GL_LINES_ADJACENCY 0x000A
1412#define GL_LINE_STRIP_ADJACENCY 0x000B
1413#define GL_TRIANGLES_ADJACENCY 0x000C
1414#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
1415#define GL_PROGRAM_POINT_SIZE 0x8642
1416#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
1417#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
1418#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
1419#define GL_GEOMETRY_SHADER 0x8DD9
1420#define GL_GEOMETRY_VERTICES_OUT 0x8916
1421#define GL_GEOMETRY_INPUT_TYPE 0x8917
1422#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
1423#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
1424#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
1425#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
1426#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
1427#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
1428#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
1429#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
1430#define GL_CONTEXT_PROFILE_MASK 0x9126
1431#define GL_DEPTH_CLAMP 0x864F
1432#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1433#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
1434#define GL_LAST_VERTEX_CONVENTION 0x8E4E
1435#define GL_PROVOKING_VERTEX 0x8E4F
1436#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
1437#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
1438#define GL_OBJECT_TYPE 0x9112
1439#define GL_SYNC_CONDITION 0x9113
1440#define GL_SYNC_STATUS 0x9114
1441#define GL_SYNC_FLAGS 0x9115
1442#define GL_SYNC_FENCE 0x9116
1443#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
1444#define GL_UNSIGNALED 0x9118
1445#define GL_SIGNALED 0x9119
1446#define GL_ALREADY_SIGNALED 0x911A
1447#define GL_TIMEOUT_EXPIRED 0x911B
1448#define GL_CONDITION_SATISFIED 0x911C
1449#define GL_WAIT_FAILED 0x911D
1450#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
1451#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
1452#define GL_SAMPLE_POSITION 0x8E50
1453#define GL_SAMPLE_MASK 0x8E51
1454#define GL_SAMPLE_MASK_VALUE 0x8E52
1455#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
1456#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
1457#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
1458#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
1459#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1460#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1461#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1462#define GL_TEXTURE_SAMPLES 0x9106
1463#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1464#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
1465#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
1466#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1467#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
1468#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1469#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1470#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
1471#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
1472#define GL_MAX_INTEGER_SAMPLES 0x9110
1473typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1474typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1475typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1476typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1477typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
1478typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
1479typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
1480typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
1481typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1482typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1483typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
1484typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1485typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
1486typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
1487typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
1488typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
1489typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
1490typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
00ea319b 1491typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
5f8b738e 1492#ifdef GL_GLEXT_PROTOTYPES
9293178b 1493GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1494GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1495GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1496GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1497GLAPI void APIENTRY glProvokingVertex (GLenum mode);
1498GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
1499GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
1500GLAPI void APIENTRY glDeleteSync (GLsync sync);
1501GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1502GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1503GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
1504GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1505GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
1506GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
1507GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
1508GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
1509GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
1510GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
00ea319b 1511GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
5f8b738e 1512#endif
9293178b 1513#endif /* GL_VERSION_3_2 */
5f8b738e 1514
9293178b 1515#ifndef GL_VERSION_3_3
1516#define GL_VERSION_3_3 1
1517#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
1518#define GL_SRC1_COLOR 0x88F9
1519#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
1520#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
1521#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
1522#define GL_ANY_SAMPLES_PASSED 0x8C2F
1523#define GL_SAMPLER_BINDING 0x8919
1524#define GL_RGB10_A2UI 0x906F
1525#define GL_TEXTURE_SWIZZLE_R 0x8E42
1526#define GL_TEXTURE_SWIZZLE_G 0x8E43
1527#define GL_TEXTURE_SWIZZLE_B 0x8E44
1528#define GL_TEXTURE_SWIZZLE_A 0x8E45
1529#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
1530#define GL_TIME_ELAPSED 0x88BF
1531#define GL_TIMESTAMP 0x8E28
1532#define GL_INT_2_10_10_10_REV 0x8D9F
1533typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1534typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
1535typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
1536typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
1537typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
1538typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
1539typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
1540typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1541typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
1542typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
1543typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1544typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
1545typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1546typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1547typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
1548typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
1549typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
1550typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
1551typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
1552typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
1553typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1554typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1555typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1556typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1557typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1558typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1559typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1560typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1561typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
1562typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
1563typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
1564typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
1565typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
1566typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
1567typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
1568typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
1569typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
1570typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
1571typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
1572typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
1573typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
1574typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
1575typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
1576typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1577typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
1578typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1579typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
1580typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1581typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
1582typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
1583typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
1584typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
1585typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
1586typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
1587typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
1588typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
1589typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
1590typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
5f8b738e 1591#ifdef GL_GLEXT_PROTOTYPES
9293178b 1592GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1593GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
1594GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
1595GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
1596GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
1597GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
1598GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
1599GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
1600GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
1601GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
1602GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
1603GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
1604GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
1605GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
1606GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
1607GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
1608GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
1609GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
1610GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
1611GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
1612GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1613GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1614GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1615GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1616GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1617GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1618GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1619GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1620GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
1621GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
1622GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
1623GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
1624GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
1625GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
1626GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
1627GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
1628GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
1629GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
1630GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
1631GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
1632GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
1633GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
1634GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
1635GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
1636GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
1637GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
1638GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
1639GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
1640GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
1641GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
1642GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
1643GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
1644GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
1645GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
1646GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
1647GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
1648GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
1649GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
5f8b738e 1650#endif
9293178b 1651#endif /* GL_VERSION_3_3 */
5f8b738e 1652
9293178b 1653#ifndef GL_VERSION_4_0
1654#define GL_VERSION_4_0 1
1655#define GL_SAMPLE_SHADING 0x8C36
1656#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
1657#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
1658#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
1659#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
1660#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
1661#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
1662#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
1663#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
1664#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
1665#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
1666#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
1667#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
1668#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
1669#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
1670#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
1671#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
1672#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
1673#define GL_MAX_VERTEX_STREAMS 0x8E71
1674#define GL_DOUBLE_VEC2 0x8FFC
1675#define GL_DOUBLE_VEC3 0x8FFD
1676#define GL_DOUBLE_VEC4 0x8FFE
1677#define GL_DOUBLE_MAT2 0x8F46
1678#define GL_DOUBLE_MAT3 0x8F47
1679#define GL_DOUBLE_MAT4 0x8F48
1680#define GL_DOUBLE_MAT2x3 0x8F49
1681#define GL_DOUBLE_MAT2x4 0x8F4A
1682#define GL_DOUBLE_MAT3x2 0x8F4B
1683#define GL_DOUBLE_MAT3x4 0x8F4C
1684#define GL_DOUBLE_MAT4x2 0x8F4D
1685#define GL_DOUBLE_MAT4x3 0x8F4E
1686#define GL_ACTIVE_SUBROUTINES 0x8DE5
1687#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
1688#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
1689#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
1690#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
1691#define GL_MAX_SUBROUTINES 0x8DE7
1692#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
1693#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
1694#define GL_COMPATIBLE_SUBROUTINES 0x8E4B
1695#define GL_PATCHES 0x000E
1696#define GL_PATCH_VERTICES 0x8E72
1697#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
1698#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
1699#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
1700#define GL_TESS_GEN_MODE 0x8E76
1701#define GL_TESS_GEN_SPACING 0x8E77
1702#define GL_TESS_GEN_VERTEX_ORDER 0x8E78
1703#define GL_TESS_GEN_POINT_MODE 0x8E79
1704#define GL_ISOLINES 0x8E7A
1705#define GL_FRACTIONAL_ODD 0x8E7B
1706#define GL_FRACTIONAL_EVEN 0x8E7C
1707#define GL_MAX_PATCH_VERTICES 0x8E7D
1708#define GL_MAX_TESS_GEN_LEVEL 0x8E7E
1709#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
1710#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
1711#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
1712#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
1713#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
1714#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
1715#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
1716#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
1717#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
1718#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
1719#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
1720#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
1721#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
1722#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
1723#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
1724#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
1725#define GL_TESS_EVALUATION_SHADER 0x8E87
1726#define GL_TESS_CONTROL_SHADER 0x8E88
1727#define GL_TRANSFORM_FEEDBACK 0x8E22
1728#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
1729#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
1730#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
1731#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
1732typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
1733typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
1734typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1735typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
1736typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1737typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
1738typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
1739typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
1740typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
1741typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
1742typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1743typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1744typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1745typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1746typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1747typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1748typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1749typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1750typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1751typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1752typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1753typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1754typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1755typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1756typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
1757typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1758typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1759typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1760typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1761typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1762typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
1763typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
1764typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1765typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
1766typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
1767typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
1768typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
1769typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
1770typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
1771typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
1772typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
1773typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
1774typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
1775typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
1776typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
1777typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
1778#ifdef GL_GLEXT_PROTOTYPES
1779GLAPI void APIENTRY glMinSampleShading (GLfloat value);
1780GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
1781GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1782GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
1783GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1784GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
1785GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
1786GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
1787GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
1788GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
1789GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1790GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
1791GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
1792GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
1793GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
1794GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1795GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1796GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1797GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1798GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1799GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1800GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1801GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1802GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1803GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
1804GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
1805GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
1806GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1807GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1808GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1809GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
1810GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
1811GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1812GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
1813GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
1814GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
1815GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
1816GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
1817GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
1818GLAPI void APIENTRY glPauseTransformFeedback (void);
1819GLAPI void APIENTRY glResumeTransformFeedback (void);
1820GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
1821GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
1822GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
1823GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
1824GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
5f8b738e 1825#endif
9293178b 1826#endif /* GL_VERSION_4_0 */
5f8b738e 1827
9293178b 1828#ifndef GL_VERSION_4_1
1829#define GL_VERSION_4_1 1
1830#define GL_FIXED 0x140C
1831#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1832#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1833#define GL_LOW_FLOAT 0x8DF0
1834#define GL_MEDIUM_FLOAT 0x8DF1
1835#define GL_HIGH_FLOAT 0x8DF2
1836#define GL_LOW_INT 0x8DF3
1837#define GL_MEDIUM_INT 0x8DF4
1838#define GL_HIGH_INT 0x8DF5
1839#define GL_SHADER_COMPILER 0x8DFA
1840#define GL_SHADER_BINARY_FORMATS 0x8DF8
1841#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1842#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1843#define GL_MAX_VARYING_VECTORS 0x8DFC
1844#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1845#define GL_RGB565 0x8D62
1846#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
1847#define GL_PROGRAM_BINARY_LENGTH 0x8741
1848#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
1849#define GL_PROGRAM_BINARY_FORMATS 0x87FF
1850#define GL_VERTEX_SHADER_BIT 0x00000001
1851#define GL_FRAGMENT_SHADER_BIT 0x00000002
1852#define GL_GEOMETRY_SHADER_BIT 0x00000004
1853#define GL_TESS_CONTROL_SHADER_BIT 0x00000008
1854#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
1855#define GL_ALL_SHADER_BITS 0xFFFFFFFF
1856#define GL_PROGRAM_SEPARABLE 0x8258
1857#define GL_ACTIVE_PROGRAM 0x8259
1858#define GL_PROGRAM_PIPELINE_BINDING 0x825A
1859#define GL_MAX_VIEWPORTS 0x825B
1860#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
1861#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
1862#define GL_LAYER_PROVOKING_VERTEX 0x825E
1863#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
1864#define GL_UNDEFINED_VERTEX 0x8260
1865typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
1866typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
1867typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
1868typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
1869typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
1870typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
1871typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
1872typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
1873typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
1874typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
1875typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
1876typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
1877typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
1878typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
1879typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
1880typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
1881typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
1882typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1883typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
1884typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1885typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
1886typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1887typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
1888typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1889typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
1890typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1891typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
1892typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1893typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
1894typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1895typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
1896typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1897typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
1898typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1899typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1900typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1901typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
1902typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1903typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
1904typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1905typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1906typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1907typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1908typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1909typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
1910typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1911typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1912typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1913typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1914typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1915typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1916typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1917typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1918typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1919typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1920typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1921typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1922typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1923typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1924typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1925typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1926typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1927typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1928typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1929typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1930typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1931typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
1932typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1933typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
1934typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
1935typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1936typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1937typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
1938typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
1939typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
1940typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
1941typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1942typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
1943typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
1944typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
1945typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
1946typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
1947typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
1948typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
1949typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
1950typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
1951typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
1952typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
5f8b738e 1953#ifdef GL_GLEXT_PROTOTYPES
9293178b 1954GLAPI void APIENTRY glReleaseShaderCompiler (void);
1955GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
1956GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
1957GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
1958GLAPI void APIENTRY glClearDepthf (GLfloat d);
1959GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
1960GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
1961GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
1962GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
1963GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
1964GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
1965GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
1966GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
1967GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
1968GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
1969GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
1970GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
1971GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1972GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
1973GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1974GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
1975GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1976GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
1977GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
1978GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
1979GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1980GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
1981GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1982GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
1983GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1984GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
1985GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
1986GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
1987GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1988GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1989GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1990GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
1991GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1992GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
1993GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
1994GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1995GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
1996GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1997GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1998GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
1999GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2000GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2001GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2002GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2003GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2004GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2005GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2006GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2007GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2008GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2009GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2010GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2011GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2012GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2013GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2014GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2015GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2016GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2017GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2018GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2019GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2020GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
2021GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2022GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
2023GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
2024GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2025GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2026GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
2027GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
2028GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
2029GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
2030GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
2031GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
2032GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
2033GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
2034GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
2035GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
2036GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
2037GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
2038GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
2039GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
2040GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
2041GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
5f8b738e 2042#endif
9293178b 2043#endif /* GL_VERSION_4_1 */
5f8b738e 2044
9293178b 2045#ifndef GL_VERSION_4_2
2046#define GL_VERSION_4_2 1
00ea319b 2047#define GL_COPY_READ_BUFFER_BINDING 0x8F36
2048#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
2049#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
2050#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
9293178b 2051#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
2052#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
2053#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
2054#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
2055#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
2056#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
2057#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
2058#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
2059#define GL_NUM_SAMPLE_COUNTS 0x9380
2060#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
2061#define GL_ATOMIC_COUNTER_BUFFER 0x92C0
2062#define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
2063#define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
2064#define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
2065#define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
2066#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
2067#define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
2068#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
2069#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
2070#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
2071#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
2072#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
2073#define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
2074#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
2075#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
2076#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
2077#define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
2078#define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
2079#define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
2080#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
2081#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
2082#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
2083#define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
2084#define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
2085#define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
2086#define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
2087#define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
2088#define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
2089#define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
2090#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
2091#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
2092#define GL_UNIFORM_BARRIER_BIT 0x00000004
2093#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
2094#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
2095#define GL_COMMAND_BARRIER_BIT 0x00000040
2096#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
2097#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
2098#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
2099#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
2100#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
2101#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
2102#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
2103#define GL_MAX_IMAGE_UNITS 0x8F38
2104#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
2105#define GL_IMAGE_BINDING_NAME 0x8F3A
2106#define GL_IMAGE_BINDING_LEVEL 0x8F3B
2107#define GL_IMAGE_BINDING_LAYERED 0x8F3C
2108#define GL_IMAGE_BINDING_LAYER 0x8F3D
2109#define GL_IMAGE_BINDING_ACCESS 0x8F3E
2110#define GL_IMAGE_1D 0x904C
2111#define GL_IMAGE_2D 0x904D
2112#define GL_IMAGE_3D 0x904E
2113#define GL_IMAGE_2D_RECT 0x904F
2114#define GL_IMAGE_CUBE 0x9050
2115#define GL_IMAGE_BUFFER 0x9051
2116#define GL_IMAGE_1D_ARRAY 0x9052
2117#define GL_IMAGE_2D_ARRAY 0x9053
2118#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
2119#define GL_IMAGE_2D_MULTISAMPLE 0x9055
2120#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
2121#define GL_INT_IMAGE_1D 0x9057
2122#define GL_INT_IMAGE_2D 0x9058
2123#define GL_INT_IMAGE_3D 0x9059
2124#define GL_INT_IMAGE_2D_RECT 0x905A
2125#define GL_INT_IMAGE_CUBE 0x905B
2126#define GL_INT_IMAGE_BUFFER 0x905C
2127#define GL_INT_IMAGE_1D_ARRAY 0x905D
2128#define GL_INT_IMAGE_2D_ARRAY 0x905E
2129#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
2130#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
2131#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
2132#define GL_UNSIGNED_INT_IMAGE_1D 0x9062
2133#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
2134#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
2135#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
2136#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
2137#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
2138#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
2139#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
2140#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
2141#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
2142#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
2143#define GL_MAX_IMAGE_SAMPLES 0x906D
2144#define GL_IMAGE_BINDING_FORMAT 0x906E
2145#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
2146#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
2147#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
2148#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
2149#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
2150#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
2151#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
2152#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
2153#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
00ea319b 2154#define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
2155#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
2156#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
2157#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
9293178b 2158#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
2159typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
2160typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
2161typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
2162typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
2163typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
2164typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
2165typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
2166typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
2167typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2168typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2169typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
2170typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
5f8b738e 2171#ifdef GL_GLEXT_PROTOTYPES
9293178b 2172GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
2173GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
2174GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
2175GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
2176GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
2177GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
2178GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
2179GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
2180GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2181GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2182GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
2183GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
2184#endif
2185#endif /* GL_VERSION_4_2 */
2186
2187#ifndef GL_VERSION_4_3
2188#define GL_VERSION_4_3 1
2189typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
2190#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
2191#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
2192#define GL_COMPRESSED_RGB8_ETC2 0x9274
2193#define GL_COMPRESSED_SRGB8_ETC2 0x9275
2194#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
2195#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
2196#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
2197#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
2198#define GL_COMPRESSED_R11_EAC 0x9270
2199#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
2200#define GL_COMPRESSED_RG11_EAC 0x9272
2201#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
2202#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
2203#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
2204#define GL_MAX_ELEMENT_INDEX 0x8D6B
2205#define GL_COMPUTE_SHADER 0x91B9
2206#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
2207#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
2208#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
2209#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
2210#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
2211#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
2212#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
2213#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
2214#define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
2215#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
2216#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
2217#define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
2218#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
2219#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
2220#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
2221#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
00ea319b 2222#define GL_COMPUTE_SHADER_BIT 0x00000020
9293178b 2223#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
2224#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
2225#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
2226#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
2227#define GL_DEBUG_SOURCE_API 0x8246
2228#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
2229#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
2230#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
2231#define GL_DEBUG_SOURCE_APPLICATION 0x824A
2232#define GL_DEBUG_SOURCE_OTHER 0x824B
2233#define GL_DEBUG_TYPE_ERROR 0x824C
2234#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
2235#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
2236#define GL_DEBUG_TYPE_PORTABILITY 0x824F
2237#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
2238#define GL_DEBUG_TYPE_OTHER 0x8251
2239#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
2240#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
2241#define GL_DEBUG_LOGGED_MESSAGES 0x9145
2242#define GL_DEBUG_SEVERITY_HIGH 0x9146
2243#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
2244#define GL_DEBUG_SEVERITY_LOW 0x9148
2245#define GL_DEBUG_TYPE_MARKER 0x8268
2246#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
2247#define GL_DEBUG_TYPE_POP_GROUP 0x826A
2248#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
2249#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
2250#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
2251#define GL_BUFFER 0x82E0
2252#define GL_SHADER 0x82E1
2253#define GL_PROGRAM 0x82E2
2254#define GL_QUERY 0x82E3
2255#define GL_PROGRAM_PIPELINE 0x82E4
2256#define GL_SAMPLER 0x82E6
2257#define GL_MAX_LABEL_LENGTH 0x82E8
2258#define GL_DEBUG_OUTPUT 0x92E0
2259#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
2260#define GL_MAX_UNIFORM_LOCATIONS 0x826E
2261#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
2262#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
2263#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
2264#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
2265#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
2266#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
2267#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
2268#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
2269#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
2270#define GL_INTERNALFORMAT_SUPPORTED 0x826F
2271#define GL_INTERNALFORMAT_PREFERRED 0x8270
2272#define GL_INTERNALFORMAT_RED_SIZE 0x8271
2273#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
2274#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
2275#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
2276#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
2277#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
2278#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
2279#define GL_INTERNALFORMAT_RED_TYPE 0x8278
2280#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
2281#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
2282#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
2283#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
2284#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
2285#define GL_MAX_WIDTH 0x827E
2286#define GL_MAX_HEIGHT 0x827F
2287#define GL_MAX_DEPTH 0x8280
2288#define GL_MAX_LAYERS 0x8281
2289#define GL_MAX_COMBINED_DIMENSIONS 0x8282
2290#define GL_COLOR_COMPONENTS 0x8283
2291#define GL_DEPTH_COMPONENTS 0x8284
2292#define GL_STENCIL_COMPONENTS 0x8285
2293#define GL_COLOR_RENDERABLE 0x8286
2294#define GL_DEPTH_RENDERABLE 0x8287
2295#define GL_STENCIL_RENDERABLE 0x8288
2296#define GL_FRAMEBUFFER_RENDERABLE 0x8289
2297#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
2298#define GL_FRAMEBUFFER_BLEND 0x828B
2299#define GL_READ_PIXELS 0x828C
2300#define GL_READ_PIXELS_FORMAT 0x828D
2301#define GL_READ_PIXELS_TYPE 0x828E
2302#define GL_TEXTURE_IMAGE_FORMAT 0x828F
2303#define GL_TEXTURE_IMAGE_TYPE 0x8290
2304#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
2305#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
2306#define GL_MIPMAP 0x8293
2307#define GL_MANUAL_GENERATE_MIPMAP 0x8294
2308#define GL_AUTO_GENERATE_MIPMAP 0x8295
2309#define GL_COLOR_ENCODING 0x8296
2310#define GL_SRGB_READ 0x8297
2311#define GL_SRGB_WRITE 0x8298
2312#define GL_FILTER 0x829A
2313#define GL_VERTEX_TEXTURE 0x829B
2314#define GL_TESS_CONTROL_TEXTURE 0x829C
2315#define GL_TESS_EVALUATION_TEXTURE 0x829D
2316#define GL_GEOMETRY_TEXTURE 0x829E
2317#define GL_FRAGMENT_TEXTURE 0x829F
2318#define GL_COMPUTE_TEXTURE 0x82A0
2319#define GL_TEXTURE_SHADOW 0x82A1
2320#define GL_TEXTURE_GATHER 0x82A2
2321#define GL_TEXTURE_GATHER_SHADOW 0x82A3
2322#define GL_SHADER_IMAGE_LOAD 0x82A4
2323#define GL_SHADER_IMAGE_STORE 0x82A5
2324#define GL_SHADER_IMAGE_ATOMIC 0x82A6
2325#define GL_IMAGE_TEXEL_SIZE 0x82A7
2326#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
2327#define GL_IMAGE_PIXEL_FORMAT 0x82A9
2328#define GL_IMAGE_PIXEL_TYPE 0x82AA
2329#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
2330#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
2331#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
2332#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
2333#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
2334#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
2335#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
2336#define GL_CLEAR_BUFFER 0x82B4
2337#define GL_TEXTURE_VIEW 0x82B5
2338#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
2339#define GL_FULL_SUPPORT 0x82B7
2340#define GL_CAVEAT_SUPPORT 0x82B8
2341#define GL_IMAGE_CLASS_4_X_32 0x82B9
2342#define GL_IMAGE_CLASS_2_X_32 0x82BA
2343#define GL_IMAGE_CLASS_1_X_32 0x82BB
2344#define GL_IMAGE_CLASS_4_X_16 0x82BC
2345#define GL_IMAGE_CLASS_2_X_16 0x82BD
2346#define GL_IMAGE_CLASS_1_X_16 0x82BE
2347#define GL_IMAGE_CLASS_4_X_8 0x82BF
2348#define GL_IMAGE_CLASS_2_X_8 0x82C0
2349#define GL_IMAGE_CLASS_1_X_8 0x82C1
2350#define GL_IMAGE_CLASS_11_11_10 0x82C2
2351#define GL_IMAGE_CLASS_10_10_10_2 0x82C3
2352#define GL_VIEW_CLASS_128_BITS 0x82C4
2353#define GL_VIEW_CLASS_96_BITS 0x82C5
2354#define GL_VIEW_CLASS_64_BITS 0x82C6
2355#define GL_VIEW_CLASS_48_BITS 0x82C7
2356#define GL_VIEW_CLASS_32_BITS 0x82C8
2357#define GL_VIEW_CLASS_24_BITS 0x82C9
2358#define GL_VIEW_CLASS_16_BITS 0x82CA
2359#define GL_VIEW_CLASS_8_BITS 0x82CB
2360#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
2361#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
2362#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
2363#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
2364#define GL_VIEW_CLASS_RGTC1_RED 0x82D0
2365#define GL_VIEW_CLASS_RGTC2_RG 0x82D1
2366#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
2367#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
2368#define GL_UNIFORM 0x92E1
2369#define GL_UNIFORM_BLOCK 0x92E2
2370#define GL_PROGRAM_INPUT 0x92E3
2371#define GL_PROGRAM_OUTPUT 0x92E4
2372#define GL_BUFFER_VARIABLE 0x92E5
2373#define GL_SHADER_STORAGE_BLOCK 0x92E6
2374#define GL_VERTEX_SUBROUTINE 0x92E8
2375#define GL_TESS_CONTROL_SUBROUTINE 0x92E9
2376#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
2377#define GL_GEOMETRY_SUBROUTINE 0x92EB
2378#define GL_FRAGMENT_SUBROUTINE 0x92EC
2379#define GL_COMPUTE_SUBROUTINE 0x92ED
2380#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
2381#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
2382#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
2383#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
2384#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
2385#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
2386#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
2387#define GL_ACTIVE_RESOURCES 0x92F5
2388#define GL_MAX_NAME_LENGTH 0x92F6
2389#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
2390#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
2391#define GL_NAME_LENGTH 0x92F9
2392#define GL_TYPE 0x92FA
2393#define GL_ARRAY_SIZE 0x92FB
2394#define GL_OFFSET 0x92FC
2395#define GL_BLOCK_INDEX 0x92FD
2396#define GL_ARRAY_STRIDE 0x92FE
2397#define GL_MATRIX_STRIDE 0x92FF
2398#define GL_IS_ROW_MAJOR 0x9300
2399#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
2400#define GL_BUFFER_BINDING 0x9302
2401#define GL_BUFFER_DATA_SIZE 0x9303
2402#define GL_NUM_ACTIVE_VARIABLES 0x9304
2403#define GL_ACTIVE_VARIABLES 0x9305
2404#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
2405#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
2406#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
2407#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
2408#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
2409#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
2410#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
2411#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
2412#define GL_LOCATION 0x930E
2413#define GL_LOCATION_INDEX 0x930F
2414#define GL_IS_PER_PATCH 0x92E7
2415#define GL_SHADER_STORAGE_BUFFER 0x90D2
2416#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
2417#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
2418#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
2419#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
2420#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
2421#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
2422#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
2423#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
2424#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
2425#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
2426#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
2427#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
2428#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
2429#define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
2430#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
2431#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
2432#define GL_TEXTURE_BUFFER_OFFSET 0x919D
2433#define GL_TEXTURE_BUFFER_SIZE 0x919E
2434#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
2435#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
2436#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
2437#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
2438#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
2439#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
2440#define GL_VERTEX_ATTRIB_BINDING 0x82D4
2441#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
2442#define GL_VERTEX_BINDING_DIVISOR 0x82D6
2443#define GL_VERTEX_BINDING_OFFSET 0x82D7
2444#define GL_VERTEX_BINDING_STRIDE 0x82D8
2445#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
2446#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
00ea319b 2447#define GL_VERTEX_BINDING_BUFFER 0x8F4F
9293178b 2448#define GL_DISPLAY_LIST 0x82E7
2449typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
2450typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
2451typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
2452typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
2453typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
2454typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
2455typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
2456typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
2457typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
2458typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
2459typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
2460typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
2461typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
2462typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2463typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
2464typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
2465typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
2466typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2467typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
2468typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
2469typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2470typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2471typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
2472typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
2473typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2474typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2475typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
2476typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2477typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2478typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2479typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2480typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
2481typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
2482typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
2483typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
2484typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
2485typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
2486typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
2487typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
2488typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
2489typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
2490typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
2491typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
2492#ifdef GL_GLEXT_PROTOTYPES
2493GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
2494GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
2495GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
2496GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
2497GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
2498GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
2499GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
2500GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
2501GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
2502GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
2503GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
2504GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
2505GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
2506GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2507GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
2508GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
2509GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
2510GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
2511GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
2512GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
2513GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
2514GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
2515GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
2516GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
2517GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2518GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2519GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
2520GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2521GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2522GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2523GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2524GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
2525GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
2526GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
2527GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
2528GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
2529GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
2530GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
2531GLAPI void APIENTRY glPopDebugGroup (void);
2532GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
2533GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
2534GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
2535GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
2536#endif
2537#endif /* GL_VERSION_4_3 */
2538
2539#ifndef GL_VERSION_4_4
2540#define GL_VERSION_4_4 1
2541#define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
2542#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
2543#define GL_TEXTURE_BUFFER_BINDING 0x8C2A
2544#define GL_MAP_PERSISTENT_BIT 0x0040
2545#define GL_MAP_COHERENT_BIT 0x0080
2546#define GL_DYNAMIC_STORAGE_BIT 0x0100
2547#define GL_CLIENT_STORAGE_BIT 0x0200
2548#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
2549#define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
2550#define GL_BUFFER_STORAGE_FLAGS 0x8220
2551#define GL_CLEAR_TEXTURE 0x9365
2552#define GL_LOCATION_COMPONENT 0x934A
2553#define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
2554#define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
2555#define GL_QUERY_BUFFER 0x9192
2556#define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000
2557#define GL_QUERY_BUFFER_BINDING 0x9193
2558#define GL_QUERY_RESULT_NO_WAIT 0x9194
2559#define GL_MIRROR_CLAMP_TO_EDGE 0x8743
2560typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
2561typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
2562typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
2563typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
2564typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
2565typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
2566typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
2567typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
2568typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2569#ifdef GL_GLEXT_PROTOTYPES
2570GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
2571GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
2572GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
2573GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
2574GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
2575GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
2576GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
2577GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
2578GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2579#endif
2580#endif /* GL_VERSION_4_4 */
5f8b738e 2581
00ea319b 2582#ifndef GL_VERSION_4_5
2583#define GL_VERSION_4_5 1
2584#define GL_CONTEXT_LOST 0x0507
2585#define GL_NEGATIVE_ONE_TO_ONE 0x935E
2586#define GL_ZERO_TO_ONE 0x935F
2587#define GL_CLIP_ORIGIN 0x935C
2588#define GL_CLIP_DEPTH_MODE 0x935D
2589#define GL_QUERY_WAIT_INVERTED 0x8E17
2590#define GL_QUERY_NO_WAIT_INVERTED 0x8E18
2591#define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19
2592#define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A
2593#define GL_MAX_CULL_DISTANCES 0x82F9
2594#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
2595#define GL_TEXTURE_TARGET 0x1006
2596#define GL_QUERY_TARGET 0x82EA
2597#define GL_TEXTURE_BINDING 0x82EB
2598#define GL_GUILTY_CONTEXT_RESET 0x8253
2599#define GL_INNOCENT_CONTEXT_RESET 0x8254
2600#define GL_UNKNOWN_CONTEXT_RESET 0x8255
2601#define GL_RESET_NOTIFICATION_STRATEGY 0x8256
2602#define GL_LOSE_CONTEXT_ON_RESET 0x8252
2603#define GL_NO_RESET_NOTIFICATION 0x8261
2604#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
2605#define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
2606#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
2607typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth);
2608typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
2609typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer);
2610typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size);
2611typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param);
2612typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param);
2613typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
2614typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers);
2615typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizei size, const void *data, GLbitfield flags);
2616typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizei size, const void *data, GLenum usage);
2617typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizei size, const void *data);
2618typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size);
2619typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
2620typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void *data);
2621typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access);
2622typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access);
2623typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer);
2624typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizei length);
2625typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params);
2626typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params);
2627typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params);
2628typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizei size, void *data);
2629typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
2630typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
2631typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param);
2632typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
2633typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
2634typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf);
2635typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC) (GLuint framebuffer, GLsizei n, const GLenum *bufs);
2636typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC) (GLuint framebuffer, GLenum src);
2637typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
2638typedef void (APIENTRYP PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC) (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2639typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
2640typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
2641typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFVPROC) (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
2642typedef void (APIENTRYP PFNGLCLEARNAMEDFRAMEBUFFERFIPROC) (GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil);
2643typedef void (APIENTRYP PFNGLBLITNAMEDFRAMEBUFFERPROC) (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2644typedef GLenum (APIENTRYP PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC) (GLuint framebuffer, GLenum target);
2645typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC) (GLuint framebuffer, GLenum pname, GLint *param);
2646typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
2647typedef void (APIENTRYP PFNGLCREATERENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
2648typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEPROC) (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
2649typedef void (APIENTRYP PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
2650typedef void (APIENTRYP PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC) (GLuint renderbuffer, GLenum pname, GLint *params);
2651typedef void (APIENTRYP PFNGLCREATETEXTURESPROC) (GLenum target, GLsizei n, GLuint *textures);
2652typedef void (APIENTRYP PFNGLTEXTUREBUFFERPROC) (GLuint texture, GLenum internalformat, GLuint buffer);
2653typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEPROC) (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size);
2654typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
2655typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2656typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DPROC) (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2657typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2658typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC) (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2659typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
2660typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
2661typedef void (APIENTRYP PFNGLTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
2662typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
2663typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
2664typedef void (APIENTRYP PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
2665typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE1DPROC) (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
2666typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE2DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2667typedef void (APIENTRYP PFNGLCOPYTEXTURESUBIMAGE3DPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2668typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFPROC) (GLuint texture, GLenum pname, GLfloat param);
2669typedef void (APIENTRYP PFNGLTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, const GLfloat *param);
2670typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIPROC) (GLuint texture, GLenum pname, GLint param);
2671typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, const GLint *params);
2672typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, const GLuint *params);
2673typedef void (APIENTRYP PFNGLTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, const GLint *param);
2674typedef void (APIENTRYP PFNGLGENERATETEXTUREMIPMAPPROC) (GLuint texture);
2675typedef void (APIENTRYP PFNGLBINDTEXTUREUNITPROC) (GLuint unit, GLuint texture);
2676typedef void (APIENTRYP PFNGLGETTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2677typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC) (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
2678typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERFVPROC) (GLuint texture, GLint level, GLenum pname, GLfloat *params);
2679typedef void (APIENTRYP PFNGLGETTEXTURELEVELPARAMETERIVPROC) (GLuint texture, GLint level, GLenum pname, GLint *params);
2680typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERFVPROC) (GLuint texture, GLenum pname, GLfloat *params);
2681typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIIVPROC) (GLuint texture, GLenum pname, GLint *params);
2682typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIUIVPROC) (GLuint texture, GLenum pname, GLuint *params);
2683typedef void (APIENTRYP PFNGLGETTEXTUREPARAMETERIVPROC) (GLuint texture, GLenum pname, GLint *params);
2684typedef void (APIENTRYP PFNGLCREATEVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
2685typedef void (APIENTRYP PFNGLDISABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
2686typedef void (APIENTRYP PFNGLENABLEVERTEXARRAYATTRIBPROC) (GLuint vaobj, GLuint index);
2687typedef void (APIENTRYP PFNGLVERTEXARRAYELEMENTBUFFERPROC) (GLuint vaobj, GLuint buffer);
2688typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2689typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBUFFERSPROC) (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2690typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBBINDINGPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
2691typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2692typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBIFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2693typedef void (APIENTRYP PFNGLVERTEXARRAYATTRIBLFORMATPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2694typedef void (APIENTRYP PFNGLVERTEXARRAYBINDINGDIVISORPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
2695typedef void (APIENTRYP PFNGLGETVERTEXARRAYIVPROC) (GLuint vaobj, GLenum pname, GLint *param);
2696typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXEDIVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
2697typedef void (APIENTRYP PFNGLGETVERTEXARRAYINDEXED64IVPROC) (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
2698typedef void (APIENTRYP PFNGLCREATESAMPLERSPROC) (GLsizei n, GLuint *samplers);
2699typedef void (APIENTRYP PFNGLCREATEPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
2700typedef void (APIENTRYP PFNGLCREATEQUERIESPROC) (GLenum target, GLsizei n, GLuint *ids);
2701typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2702typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2703typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUI64VPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2704typedef void (APIENTRYP PFNGLGETQUERYBUFFEROBJECTUIVPROC) (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2705typedef void (APIENTRYP PFNGLMEMORYBARRIERBYREGIONPROC) (GLbitfield barriers);
2706typedef void (APIENTRYP PFNGLGETTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2707typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
2708typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSPROC) (void);
2709typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
2710typedef void (APIENTRYP PFNGLGETNTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2711typedef void (APIENTRYP PFNGLGETNUNIFORMDVPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
2712typedef void (APIENTRYP PFNGLGETNUNIFORMFVPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
2713typedef void (APIENTRYP PFNGLGETNUNIFORMIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
2714typedef void (APIENTRYP PFNGLGETNUNIFORMUIVPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
2715typedef void (APIENTRYP PFNGLREADNPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
2716typedef void (APIENTRYP PFNGLGETNMAPDVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
2717typedef void (APIENTRYP PFNGLGETNMAPFVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
2718typedef void (APIENTRYP PFNGLGETNMAPIVPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
2719typedef void (APIENTRYP PFNGLGETNPIXELMAPFVPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
2720typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVPROC) (GLenum map, GLsizei bufSize, GLuint *values);
2721typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVPROC) (GLenum map, GLsizei bufSize, GLushort *values);
2722typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEPROC) (GLsizei bufSize, GLubyte *pattern);
2723typedef void (APIENTRYP PFNGLGETNCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
2724typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
2725typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
2726typedef void (APIENTRYP PFNGLGETNHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
2727typedef void (APIENTRYP PFNGLGETNMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
2728typedef void (APIENTRYP PFNGLTEXTUREBARRIERPROC) (void);
2729#ifdef GL_GLEXT_PROTOTYPES
2730GLAPI void APIENTRY glClipControl (GLenum origin, GLenum depth);
2731GLAPI void APIENTRY glCreateTransformFeedbacks (GLsizei n, GLuint *ids);
2732GLAPI void APIENTRY glTransformFeedbackBufferBase (GLuint xfb, GLuint index, GLuint buffer);
2733GLAPI void APIENTRY glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizei size);
2734GLAPI void APIENTRY glGetTransformFeedbackiv (GLuint xfb, GLenum pname, GLint *param);
2735GLAPI void APIENTRY glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint *param);
2736GLAPI void APIENTRY glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
2737GLAPI void APIENTRY glCreateBuffers (GLsizei n, GLuint *buffers);
2738GLAPI void APIENTRY glNamedBufferStorage (GLuint buffer, GLsizei size, const void *data, GLbitfield flags);
2739GLAPI void APIENTRY glNamedBufferData (GLuint buffer, GLsizei size, const void *data, GLenum usage);
2740GLAPI void APIENTRY glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizei size, const void *data);
2741GLAPI void APIENTRY glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizei size);
2742GLAPI void APIENTRY glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
2743GLAPI void APIENTRY glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizei size, GLenum format, GLenum type, const void *data);
2744GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access);
2745GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizei length, GLbitfield access);
2746GLAPI GLboolean APIENTRY glUnmapNamedBuffer (GLuint buffer);
2747GLAPI void APIENTRY glFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizei length);
2748GLAPI void APIENTRY glGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params);
2749GLAPI void APIENTRY glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params);
2750GLAPI void APIENTRY glGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params);
2751GLAPI void APIENTRY glGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizei size, void *data);
2752GLAPI void APIENTRY glCreateFramebuffers (GLsizei n, GLuint *framebuffers);
2753GLAPI void APIENTRY glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
2754GLAPI void APIENTRY glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param);
2755GLAPI void APIENTRY glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
2756GLAPI void APIENTRY glNamedFramebufferTextureLayer (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
2757GLAPI void APIENTRY glNamedFramebufferDrawBuffer (GLuint framebuffer, GLenum buf);
2758GLAPI void APIENTRY glNamedFramebufferDrawBuffers (GLuint framebuffer, GLsizei n, const GLenum *bufs);
2759GLAPI void APIENTRY glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src);
2760GLAPI void APIENTRY glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);
2761GLAPI void APIENTRY glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2762GLAPI void APIENTRY glClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value);
2763GLAPI void APIENTRY glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value);
2764GLAPI void APIENTRY glClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value);
2765GLAPI void APIENTRY glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, const GLfloat depth, GLint stencil);
2766GLAPI void APIENTRY glBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
2767GLAPI GLenum APIENTRY glCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target);
2768GLAPI void APIENTRY glGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param);
2769GLAPI void APIENTRY glGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params);
2770GLAPI void APIENTRY glCreateRenderbuffers (GLsizei n, GLuint *renderbuffers);
2771GLAPI void APIENTRY glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height);
2772GLAPI void APIENTRY glNamedRenderbufferStorageMultisample (GLuint renderbuffer, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
2773GLAPI void APIENTRY glGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params);
2774GLAPI void APIENTRY glCreateTextures (GLenum target, GLsizei n, GLuint *textures);
2775GLAPI void APIENTRY glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer);
2776GLAPI void APIENTRY glTextureBufferRange (GLuint texture, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizei size);
2777GLAPI void APIENTRY glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width);
2778GLAPI void APIENTRY glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2779GLAPI void APIENTRY glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2780GLAPI void APIENTRY glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2781GLAPI void APIENTRY glTextureStorage3DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2782GLAPI void APIENTRY glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
2783GLAPI void APIENTRY glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
2784GLAPI void APIENTRY glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
2785GLAPI void APIENTRY glCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
2786GLAPI void APIENTRY glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
2787GLAPI void APIENTRY glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
2788GLAPI void APIENTRY glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
2789GLAPI void APIENTRY glCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2790GLAPI void APIENTRY glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2791GLAPI void APIENTRY glTextureParameterf (GLuint texture, GLenum pname, GLfloat param);
2792GLAPI void APIENTRY glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat *param);
2793GLAPI void APIENTRY glTextureParameteri (GLuint texture, GLenum pname, GLint param);
2794GLAPI void APIENTRY glTextureParameterIiv (GLuint texture, GLenum pname, const GLint *params);
2795GLAPI void APIENTRY glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint *params);
2796GLAPI void APIENTRY glTextureParameteriv (GLuint texture, GLenum pname, const GLint *param);
2797GLAPI void APIENTRY glGenerateTextureMipmap (GLuint texture);
2798GLAPI void APIENTRY glBindTextureUnit (GLuint unit, GLuint texture);
2799GLAPI void APIENTRY glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2800GLAPI void APIENTRY glGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels);
2801GLAPI void APIENTRY glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat *params);
2802GLAPI void APIENTRY glGetTextureLevelParameteriv (GLuint texture, GLint level, GLenum pname, GLint *params);
2803GLAPI void APIENTRY glGetTextureParameterfv (GLuint texture, GLenum pname, GLfloat *params);
2804GLAPI void APIENTRY glGetTextureParameterIiv (GLuint texture, GLenum pname, GLint *params);
2805GLAPI void APIENTRY glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint *params);
2806GLAPI void APIENTRY glGetTextureParameteriv (GLuint texture, GLenum pname, GLint *params);
2807GLAPI void APIENTRY glCreateVertexArrays (GLsizei n, GLuint *arrays);
2808GLAPI void APIENTRY glDisableVertexArrayAttrib (GLuint vaobj, GLuint index);
2809GLAPI void APIENTRY glEnableVertexArrayAttrib (GLuint vaobj, GLuint index);
2810GLAPI void APIENTRY glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer);
2811GLAPI void APIENTRY glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2812GLAPI void APIENTRY glVertexArrayVertexBuffers (GLuint vaobj, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2813GLAPI void APIENTRY glVertexArrayAttribBinding (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
2814GLAPI void APIENTRY glVertexArrayAttribFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2815GLAPI void APIENTRY glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2816GLAPI void APIENTRY glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2817GLAPI void APIENTRY glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor);
2818GLAPI void APIENTRY glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint *param);
2819GLAPI void APIENTRY glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint *param);
2820GLAPI void APIENTRY glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 *param);
2821GLAPI void APIENTRY glCreateSamplers (GLsizei n, GLuint *samplers);
2822GLAPI void APIENTRY glCreateProgramPipelines (GLsizei n, GLuint *pipelines);
2823GLAPI void APIENTRY glCreateQueries (GLenum target, GLsizei n, GLuint *ids);
2824GLAPI void APIENTRY glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2825GLAPI void APIENTRY glGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2826GLAPI void APIENTRY glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2827GLAPI void APIENTRY glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset);
2828GLAPI void APIENTRY glMemoryBarrierByRegion (GLbitfield barriers);
2829GLAPI void APIENTRY glGetTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2830GLAPI void APIENTRY glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels);
2831GLAPI GLenum APIENTRY glGetGraphicsResetStatus (void);
2832GLAPI void APIENTRY glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void *pixels);
2833GLAPI void APIENTRY glGetnTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *pixels);
2834GLAPI void APIENTRY glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
2835GLAPI void APIENTRY glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
2836GLAPI void APIENTRY glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint *params);
2837GLAPI void APIENTRY glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
2838GLAPI void APIENTRY glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
2839GLAPI void APIENTRY glGetnMapdv (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
2840GLAPI void APIENTRY glGetnMapfv (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
2841GLAPI void APIENTRY glGetnMapiv (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
2842GLAPI void APIENTRY glGetnPixelMapfv (GLenum map, GLsizei bufSize, GLfloat *values);
2843GLAPI void APIENTRY glGetnPixelMapuiv (GLenum map, GLsizei bufSize, GLuint *values);
2844GLAPI void APIENTRY glGetnPixelMapusv (GLenum map, GLsizei bufSize, GLushort *values);
2845GLAPI void APIENTRY glGetnPolygonStipple (GLsizei bufSize, GLubyte *pattern);
2846GLAPI void APIENTRY glGetnColorTable (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
2847GLAPI void APIENTRY glGetnConvolutionFilter (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
2848GLAPI void APIENTRY glGetnSeparableFilter (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
2849GLAPI void APIENTRY glGetnHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
2850GLAPI void APIENTRY glGetnMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
2851GLAPI void APIENTRY glTextureBarrier (void);
2852#endif
2853#endif /* GL_VERSION_4_5 */
2854
9293178b 2855#ifndef GL_ARB_ES2_compatibility
2856#define GL_ARB_ES2_compatibility 1
2857#endif /* GL_ARB_ES2_compatibility */
2858
00ea319b 2859#ifndef GL_ARB_ES3_1_compatibility
2860#define GL_ARB_ES3_1_compatibility 1
2861#endif /* GL_ARB_ES3_1_compatibility */
2862
9293178b 2863#ifndef GL_ARB_ES3_compatibility
2864#define GL_ARB_ES3_compatibility 1
2865#endif /* GL_ARB_ES3_compatibility */
5f8b738e 2866
9293178b 2867#ifndef GL_ARB_arrays_of_arrays
2868#define GL_ARB_arrays_of_arrays 1
2869#endif /* GL_ARB_arrays_of_arrays */
5f8b738e 2870
9293178b 2871#ifndef GL_ARB_base_instance
2872#define GL_ARB_base_instance 1
2873#endif /* GL_ARB_base_instance */
5f8b738e 2874
9293178b 2875#ifndef GL_ARB_bindless_texture
2876#define GL_ARB_bindless_texture 1
2877typedef uint64_t GLuint64EXT;
2878#define GL_UNSIGNED_INT64_ARB 0x140F
2879typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture);
2880typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler);
2881typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
2882typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle);
2883typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
2884typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
2885typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle);
2886typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value);
2887typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
2888typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value);
2889typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
2890typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
2891typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle);
2892typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x);
2893typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v);
2894typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
2895#ifdef GL_GLEXT_PROTOTYPES
2896GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture);
2897GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler);
2898GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle);
2899GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle);
2900GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
2901GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
2902GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle);
2903GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value);
2904GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value);
2905GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value);
2906GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
2907GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle);
2908GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle);
2909GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x);
2910GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v);
2911GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params);
2912#endif
2913#endif /* GL_ARB_bindless_texture */
5f8b738e 2914
9293178b 2915#ifndef GL_ARB_blend_func_extended
2916#define GL_ARB_blend_func_extended 1
2917#endif /* GL_ARB_blend_func_extended */
5f8b738e 2918
9293178b 2919#ifndef GL_ARB_buffer_storage
2920#define GL_ARB_buffer_storage 1
2921#endif /* GL_ARB_buffer_storage */
2922
2923#ifndef GL_ARB_cl_event
2924#define GL_ARB_cl_event 1
2925struct _cl_context;
2926struct _cl_event;
2927#define GL_SYNC_CL_EVENT_ARB 0x8240
2928#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
2929typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
5f8b738e 2930#ifdef GL_GLEXT_PROTOTYPES
9293178b 2931GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
5f8b738e 2932#endif
9293178b 2933#endif /* GL_ARB_cl_event */
5f8b738e 2934
9293178b 2935#ifndef GL_ARB_clear_buffer_object
2936#define GL_ARB_clear_buffer_object 1
2937#endif /* GL_ARB_clear_buffer_object */
5f8b738e 2938
9293178b 2939#ifndef GL_ARB_clear_texture
2940#define GL_ARB_clear_texture 1
2941#endif /* GL_ARB_clear_texture */
2942
00ea319b 2943#ifndef GL_ARB_clip_control
2944#define GL_ARB_clip_control 1
2945#endif /* GL_ARB_clip_control */
2946
9293178b 2947#ifndef GL_ARB_color_buffer_float
2948#define GL_ARB_color_buffer_float 1
2949#define GL_RGBA_FLOAT_MODE_ARB 0x8820
2950#define GL_CLAMP_VERTEX_COLOR_ARB 0x891A
2951#define GL_CLAMP_FRAGMENT_COLOR_ARB 0x891B
2952#define GL_CLAMP_READ_COLOR_ARB 0x891C
2953#define GL_FIXED_ONLY_ARB 0x891D
2954typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
5f8b738e 2955#ifdef GL_GLEXT_PROTOTYPES
9293178b 2956GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp);
5f8b738e 2957#endif
9293178b 2958#endif /* GL_ARB_color_buffer_float */
5f8b738e 2959
9293178b 2960#ifndef GL_ARB_compatibility
2961#define GL_ARB_compatibility 1
2962#endif /* GL_ARB_compatibility */
5f8b738e 2963
9293178b 2964#ifndef GL_ARB_compressed_texture_pixel_storage
2965#define GL_ARB_compressed_texture_pixel_storage 1
2966#endif /* GL_ARB_compressed_texture_pixel_storage */
5f8b738e 2967
9293178b 2968#ifndef GL_ARB_compute_shader
2969#define GL_ARB_compute_shader 1
9293178b 2970#endif /* GL_ARB_compute_shader */
5f8b738e 2971
9293178b 2972#ifndef GL_ARB_compute_variable_group_size
2973#define GL_ARB_compute_variable_group_size 1
2974#define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
2975#define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB
2976#define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
2977#define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF
2978typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
5f8b738e 2979#ifdef GL_GLEXT_PROTOTYPES
9293178b 2980GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
5f8b738e 2981#endif
9293178b 2982#endif /* GL_ARB_compute_variable_group_size */
5f8b738e 2983
00ea319b 2984#ifndef GL_ARB_conditional_render_inverted
2985#define GL_ARB_conditional_render_inverted 1
2986#endif /* GL_ARB_conditional_render_inverted */
2987
9293178b 2988#ifndef GL_ARB_conservative_depth
2989#define GL_ARB_conservative_depth 1
2990#endif /* GL_ARB_conservative_depth */
5f8b738e 2991
9293178b 2992#ifndef GL_ARB_copy_buffer
2993#define GL_ARB_copy_buffer 1
9293178b 2994#endif /* GL_ARB_copy_buffer */
5f8b738e 2995
9293178b 2996#ifndef GL_ARB_copy_image
2997#define GL_ARB_copy_image 1
2998#endif /* GL_ARB_copy_image */
2999
00ea319b 3000#ifndef GL_ARB_cull_distance
3001#define GL_ARB_cull_distance 1
3002#endif /* GL_ARB_cull_distance */
3003
9293178b 3004#ifndef GL_ARB_debug_output
3005#define GL_ARB_debug_output 1
3006typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
3007#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
3008#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
3009#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
3010#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
3011#define GL_DEBUG_SOURCE_API_ARB 0x8246
3012#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
3013#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
3014#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
3015#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
3016#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
3017#define GL_DEBUG_TYPE_ERROR_ARB 0x824C
3018#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
3019#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
3020#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
3021#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
3022#define GL_DEBUG_TYPE_OTHER_ARB 0x8251
3023#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
3024#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
3025#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
3026#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
3027#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
3028#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
3029typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
3030typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
3031typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
3032typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
5f8b738e 3033#ifdef GL_GLEXT_PROTOTYPES
9293178b 3034GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
3035GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
3036GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam);
3037GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
5f8b738e 3038#endif
9293178b 3039#endif /* GL_ARB_debug_output */
5f8b738e 3040
9293178b 3041#ifndef GL_ARB_depth_buffer_float
3042#define GL_ARB_depth_buffer_float 1
3043#endif /* GL_ARB_depth_buffer_float */
5f8b738e 3044
9293178b 3045#ifndef GL_ARB_depth_clamp
3046#define GL_ARB_depth_clamp 1
3047#endif /* GL_ARB_depth_clamp */
5f8b738e 3048
9293178b 3049#ifndef GL_ARB_depth_texture
3050#define GL_ARB_depth_texture 1
3051#define GL_DEPTH_COMPONENT16_ARB 0x81A5
3052#define GL_DEPTH_COMPONENT24_ARB 0x81A6
3053#define GL_DEPTH_COMPONENT32_ARB 0x81A7
3054#define GL_TEXTURE_DEPTH_SIZE_ARB 0x884A
3055#define GL_DEPTH_TEXTURE_MODE_ARB 0x884B
3056#endif /* GL_ARB_depth_texture */
3057
00ea319b 3058#ifndef GL_ARB_derivative_control
3059#define GL_ARB_derivative_control 1
3060#endif /* GL_ARB_derivative_control */
3061
3062#ifndef GL_ARB_direct_state_access
3063#define GL_ARB_direct_state_access 1
3064#endif /* GL_ARB_direct_state_access */
3065
9293178b 3066#ifndef GL_ARB_draw_buffers
3067#define GL_ARB_draw_buffers 1
3068#define GL_MAX_DRAW_BUFFERS_ARB 0x8824
3069#define GL_DRAW_BUFFER0_ARB 0x8825
3070#define GL_DRAW_BUFFER1_ARB 0x8826
3071#define GL_DRAW_BUFFER2_ARB 0x8827
3072#define GL_DRAW_BUFFER3_ARB 0x8828
3073#define GL_DRAW_BUFFER4_ARB 0x8829
3074#define GL_DRAW_BUFFER5_ARB 0x882A
3075#define GL_DRAW_BUFFER6_ARB 0x882B
3076#define GL_DRAW_BUFFER7_ARB 0x882C
3077#define GL_DRAW_BUFFER8_ARB 0x882D
3078#define GL_DRAW_BUFFER9_ARB 0x882E
3079#define GL_DRAW_BUFFER10_ARB 0x882F
3080#define GL_DRAW_BUFFER11_ARB 0x8830
3081#define GL_DRAW_BUFFER12_ARB 0x8831
3082#define GL_DRAW_BUFFER13_ARB 0x8832
3083#define GL_DRAW_BUFFER14_ARB 0x8833
3084#define GL_DRAW_BUFFER15_ARB 0x8834
3085typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
3086#ifdef GL_GLEXT_PROTOTYPES
3087GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
5f8b738e 3088#endif
9293178b 3089#endif /* GL_ARB_draw_buffers */
5f8b738e 3090
9293178b 3091#ifndef GL_ARB_draw_buffers_blend
3092#define GL_ARB_draw_buffers_blend 1
3093typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
3094typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3095typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
3096typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
3097#ifdef GL_GLEXT_PROTOTYPES
3098GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
3099GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3100GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
3101GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
5f8b738e 3102#endif
9293178b 3103#endif /* GL_ARB_draw_buffers_blend */
5f8b738e 3104
9293178b 3105#ifndef GL_ARB_draw_elements_base_vertex
3106#define GL_ARB_draw_elements_base_vertex 1
3107#endif /* GL_ARB_draw_elements_base_vertex */
5f8b738e 3108
9293178b 3109#ifndef GL_ARB_draw_indirect
3110#define GL_ARB_draw_indirect 1
3111#endif /* GL_ARB_draw_indirect */
5f8b738e 3112
9293178b 3113#ifndef GL_ARB_draw_instanced
3114#define GL_ARB_draw_instanced 1
3115typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
3116typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
5f8b738e 3117#ifdef GL_GLEXT_PROTOTYPES
9293178b 3118GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
3119GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
5f8b738e 3120#endif
9293178b 3121#endif /* GL_ARB_draw_instanced */
5f8b738e 3122
9293178b 3123#ifndef GL_ARB_enhanced_layouts
3124#define GL_ARB_enhanced_layouts 1
3125#endif /* GL_ARB_enhanced_layouts */
5f8b738e 3126
9293178b 3127#ifndef GL_ARB_explicit_attrib_location
3128#define GL_ARB_explicit_attrib_location 1
3129#endif /* GL_ARB_explicit_attrib_location */
5f8b738e 3130
9293178b 3131#ifndef GL_ARB_explicit_uniform_location
3132#define GL_ARB_explicit_uniform_location 1
3133#endif /* GL_ARB_explicit_uniform_location */
3134
3135#ifndef GL_ARB_fragment_coord_conventions
3136#define GL_ARB_fragment_coord_conventions 1
3137#endif /* GL_ARB_fragment_coord_conventions */
3138
3139#ifndef GL_ARB_fragment_layer_viewport
3140#define GL_ARB_fragment_layer_viewport 1
3141#endif /* GL_ARB_fragment_layer_viewport */
3142
3143#ifndef GL_ARB_fragment_program
3144#define GL_ARB_fragment_program 1
3145#define GL_FRAGMENT_PROGRAM_ARB 0x8804
3146#define GL_PROGRAM_FORMAT_ASCII_ARB 0x8875
3147#define GL_PROGRAM_LENGTH_ARB 0x8627
3148#define GL_PROGRAM_FORMAT_ARB 0x8876
3149#define GL_PROGRAM_BINDING_ARB 0x8677
3150#define GL_PROGRAM_INSTRUCTIONS_ARB 0x88A0
3151#define GL_MAX_PROGRAM_INSTRUCTIONS_ARB 0x88A1
3152#define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
3153#define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
3154#define GL_PROGRAM_TEMPORARIES_ARB 0x88A4
3155#define GL_MAX_PROGRAM_TEMPORARIES_ARB 0x88A5
3156#define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
3157#define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
3158#define GL_PROGRAM_PARAMETERS_ARB 0x88A8
3159#define GL_MAX_PROGRAM_PARAMETERS_ARB 0x88A9
3160#define GL_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AA
3161#define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
3162#define GL_PROGRAM_ATTRIBS_ARB 0x88AC
3163#define GL_MAX_PROGRAM_ATTRIBS_ARB 0x88AD
3164#define GL_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AE
3165#define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
3166#define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
3167#define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
3168#define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
3169#define GL_PROGRAM_ALU_INSTRUCTIONS_ARB 0x8805
3170#define GL_PROGRAM_TEX_INSTRUCTIONS_ARB 0x8806
3171#define GL_PROGRAM_TEX_INDIRECTIONS_ARB 0x8807
3172#define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
3173#define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
3174#define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
3175#define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
3176#define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
3177#define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
3178#define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
3179#define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
3180#define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
3181#define GL_PROGRAM_STRING_ARB 0x8628
3182#define GL_PROGRAM_ERROR_POSITION_ARB 0x864B
3183#define GL_CURRENT_MATRIX_ARB 0x8641
3184#define GL_TRANSPOSE_CURRENT_MATRIX_ARB 0x88B7
3185#define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
3186#define GL_MAX_PROGRAM_MATRICES_ARB 0x862F
3187#define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
3188#define GL_MAX_TEXTURE_COORDS_ARB 0x8871
3189#define GL_MAX_TEXTURE_IMAGE_UNITS_ARB 0x8872
3190#define GL_PROGRAM_ERROR_STRING_ARB 0x8874
3191#define GL_MATRIX0_ARB 0x88C0
3192#define GL_MATRIX1_ARB 0x88C1
3193#define GL_MATRIX2_ARB 0x88C2
3194#define GL_MATRIX3_ARB 0x88C3
3195#define GL_MATRIX4_ARB 0x88C4
3196#define GL_MATRIX5_ARB 0x88C5
3197#define GL_MATRIX6_ARB 0x88C6
3198#define GL_MATRIX7_ARB 0x88C7
3199#define GL_MATRIX8_ARB 0x88C8
3200#define GL_MATRIX9_ARB 0x88C9
3201#define GL_MATRIX10_ARB 0x88CA
3202#define GL_MATRIX11_ARB 0x88CB
3203#define GL_MATRIX12_ARB 0x88CC
3204#define GL_MATRIX13_ARB 0x88CD
3205#define GL_MATRIX14_ARB 0x88CE
3206#define GL_MATRIX15_ARB 0x88CF
3207#define GL_MATRIX16_ARB 0x88D0
3208#define GL_MATRIX17_ARB 0x88D1
3209#define GL_MATRIX18_ARB 0x88D2
3210#define GL_MATRIX19_ARB 0x88D3
3211#define GL_MATRIX20_ARB 0x88D4
3212#define GL_MATRIX21_ARB 0x88D5
3213#define GL_MATRIX22_ARB 0x88D6
3214#define GL_MATRIX23_ARB 0x88D7
3215#define GL_MATRIX24_ARB 0x88D8
3216#define GL_MATRIX25_ARB 0x88D9
3217#define GL_MATRIX26_ARB 0x88DA
3218#define GL_MATRIX27_ARB 0x88DB
3219#define GL_MATRIX28_ARB 0x88DC
3220#define GL_MATRIX29_ARB 0x88DD
3221#define GL_MATRIX30_ARB 0x88DE
3222#define GL_MATRIX31_ARB 0x88DF
3223typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void *string);
3224typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
3225typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
3226typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
3227typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3228typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
3229typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3230typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
3231typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3232typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
3233typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3234typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
3235typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
3236typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
3237typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
3238typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
3239typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
3240typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void *string);
3241typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
5f8b738e 3242#ifdef GL_GLEXT_PROTOTYPES
9293178b 3243GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const void *string);
3244GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program);
3245GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs);
3246GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs);
3247GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3248GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
3249GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3250GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
3251GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3252GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
3253GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3254GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
3255GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
3256GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
3257GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
3258GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
3259GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
3260GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, void *string);
3261GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
5f8b738e 3262#endif
9293178b 3263#endif /* GL_ARB_fragment_program */
5f8b738e 3264
9293178b 3265#ifndef GL_ARB_fragment_program_shadow
3266#define GL_ARB_fragment_program_shadow 1
3267#endif /* GL_ARB_fragment_program_shadow */
5f8b738e 3268
9293178b 3269#ifndef GL_ARB_fragment_shader
3270#define GL_ARB_fragment_shader 1
3271#define GL_FRAGMENT_SHADER_ARB 0x8B30
3272#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
3273#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
3274#endif /* GL_ARB_fragment_shader */
5f8b738e 3275
9293178b 3276#ifndef GL_ARB_framebuffer_no_attachments
3277#define GL_ARB_framebuffer_no_attachments 1
3278#endif /* GL_ARB_framebuffer_no_attachments */
5f8b738e 3279
9293178b 3280#ifndef GL_ARB_framebuffer_object
3281#define GL_ARB_framebuffer_object 1
3282#endif /* GL_ARB_framebuffer_object */
5f8b738e 3283
9293178b 3284#ifndef GL_ARB_framebuffer_sRGB
3285#define GL_ARB_framebuffer_sRGB 1
3286#endif /* GL_ARB_framebuffer_sRGB */
5f8b738e 3287
9293178b 3288#ifndef GL_ARB_geometry_shader4
3289#define GL_ARB_geometry_shader4 1
3290#define GL_LINES_ADJACENCY_ARB 0x000A
3291#define GL_LINE_STRIP_ADJACENCY_ARB 0x000B
3292#define GL_TRIANGLES_ADJACENCY_ARB 0x000C
3293#define GL_TRIANGLE_STRIP_ADJACENCY_ARB 0x000D
3294#define GL_PROGRAM_POINT_SIZE_ARB 0x8642
3295#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
3296#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
3297#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
3298#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
3299#define GL_GEOMETRY_SHADER_ARB 0x8DD9
3300#define GL_GEOMETRY_VERTICES_OUT_ARB 0x8DDA
3301#define GL_GEOMETRY_INPUT_TYPE_ARB 0x8DDB
3302#define GL_GEOMETRY_OUTPUT_TYPE_ARB 0x8DDC
3303#define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
3304#define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
3305#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
3306#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
3307#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
3308typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
3309typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
3310typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3311typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
3312#ifdef GL_GLEXT_PROTOTYPES
3313GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
3314GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
3315GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3316GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
5f8b738e 3317#endif
9293178b 3318#endif /* GL_ARB_geometry_shader4 */
5f8b738e 3319
9293178b 3320#ifndef GL_ARB_get_program_binary
3321#define GL_ARB_get_program_binary 1
3322#endif /* GL_ARB_get_program_binary */
5f8b738e 3323
00ea319b 3324#ifndef GL_ARB_get_texture_sub_image
3325#define GL_ARB_get_texture_sub_image 1
3326#endif /* GL_ARB_get_texture_sub_image */
3327
9293178b 3328#ifndef GL_ARB_gpu_shader5
3329#define GL_ARB_gpu_shader5 1
3330#endif /* GL_ARB_gpu_shader5 */
5f8b738e 3331
9293178b 3332#ifndef GL_ARB_gpu_shader_fp64
3333#define GL_ARB_gpu_shader_fp64 1
3334#endif /* GL_ARB_gpu_shader_fp64 */
5f8b738e 3335
9293178b 3336#ifndef GL_ARB_half_float_pixel
3337#define GL_ARB_half_float_pixel 1
3338typedef unsigned short GLhalfARB;
3339#define GL_HALF_FLOAT_ARB 0x140B
3340#endif /* GL_ARB_half_float_pixel */
5f8b738e 3341
9293178b 3342#ifndef GL_ARB_half_float_vertex
3343#define GL_ARB_half_float_vertex 1
3344#endif /* GL_ARB_half_float_vertex */
5f8b738e 3345
9293178b 3346#ifndef GL_ARB_imaging
3347#define GL_ARB_imaging 1
3348#define GL_BLEND_COLOR 0x8005
3349#define GL_BLEND_EQUATION 0x8009
3350#define GL_CONVOLUTION_1D 0x8010
3351#define GL_CONVOLUTION_2D 0x8011
3352#define GL_SEPARABLE_2D 0x8012
3353#define GL_CONVOLUTION_BORDER_MODE 0x8013
3354#define GL_CONVOLUTION_FILTER_SCALE 0x8014
3355#define GL_CONVOLUTION_FILTER_BIAS 0x8015
3356#define GL_REDUCE 0x8016
3357#define GL_CONVOLUTION_FORMAT 0x8017
3358#define GL_CONVOLUTION_WIDTH 0x8018
3359#define GL_CONVOLUTION_HEIGHT 0x8019
3360#define GL_MAX_CONVOLUTION_WIDTH 0x801A
3361#define GL_MAX_CONVOLUTION_HEIGHT 0x801B
3362#define GL_POST_CONVOLUTION_RED_SCALE 0x801C
3363#define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
3364#define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
3365#define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
3366#define GL_POST_CONVOLUTION_RED_BIAS 0x8020
3367#define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
3368#define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
3369#define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
3370#define GL_HISTOGRAM 0x8024
3371#define GL_PROXY_HISTOGRAM 0x8025
3372#define GL_HISTOGRAM_WIDTH 0x8026
3373#define GL_HISTOGRAM_FORMAT 0x8027
3374#define GL_HISTOGRAM_RED_SIZE 0x8028
3375#define GL_HISTOGRAM_GREEN_SIZE 0x8029
3376#define GL_HISTOGRAM_BLUE_SIZE 0x802A
3377#define GL_HISTOGRAM_ALPHA_SIZE 0x802B
3378#define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
3379#define GL_HISTOGRAM_SINK 0x802D
3380#define GL_MINMAX 0x802E
3381#define GL_MINMAX_FORMAT 0x802F
3382#define GL_MINMAX_SINK 0x8030
3383#define GL_TABLE_TOO_LARGE 0x8031
3384#define GL_COLOR_MATRIX 0x80B1
3385#define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
3386#define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
3387#define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
3388#define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
3389#define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
3390#define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
3391#define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
3392#define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
3393#define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
3394#define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
3395#define GL_COLOR_TABLE 0x80D0
3396#define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
3397#define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
3398#define GL_PROXY_COLOR_TABLE 0x80D3
3399#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
3400#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
3401#define GL_COLOR_TABLE_SCALE 0x80D6
3402#define GL_COLOR_TABLE_BIAS 0x80D7
3403#define GL_COLOR_TABLE_FORMAT 0x80D8
3404#define GL_COLOR_TABLE_WIDTH 0x80D9
3405#define GL_COLOR_TABLE_RED_SIZE 0x80DA
3406#define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
3407#define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
3408#define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
3409#define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
3410#define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
3411#define GL_CONSTANT_BORDER 0x8151
3412#define GL_REPLICATE_BORDER 0x8153
3413#define GL_CONVOLUTION_BORDER_COLOR 0x8154
3414typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
3415typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
3416typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
3417typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3418typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void *table);
3419typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3420typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3421typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
3422typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
3423typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
3424typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
3425typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
3426typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
3427typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
3428typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
3429typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3430typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
3431typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void *image);
3432typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3433typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3434typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
3435typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
3436typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
3437typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3438typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3439typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
3440typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
3441typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3442typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
3443typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
3444typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
3445typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
5f8b738e 3446#ifdef GL_GLEXT_PROTOTYPES
9293178b 3447GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
3448GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
3449GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
3450GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3451GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, void *table);
3452GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
3453GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
3454GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
3455GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
3456GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
3457GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
3458GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
3459GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
3460GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
3461GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
3462GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
3463GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
3464GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image);
3465GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
3466GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
3467GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
3468GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
3469GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
3470GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
3471GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
3472GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
3473GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
3474GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
3475GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
3476GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
3477GLAPI void APIENTRY glResetHistogram (GLenum target);
3478GLAPI void APIENTRY glResetMinmax (GLenum target);
5f8b738e 3479#endif
9293178b 3480#endif /* GL_ARB_imaging */
5f8b738e 3481
9293178b 3482#ifndef GL_ARB_indirect_parameters
3483#define GL_ARB_indirect_parameters 1
3484#define GL_PARAMETER_BUFFER_ARB 0x80EE
3485#define GL_PARAMETER_BUFFER_BINDING_ARB 0x80EF
3486typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
3487typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
5f8b738e 3488#ifdef GL_GLEXT_PROTOTYPES
9293178b 3489GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
3490GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
5f8b738e 3491#endif
9293178b 3492#endif /* GL_ARB_indirect_parameters */
5f8b738e 3493
9293178b 3494#ifndef GL_ARB_instanced_arrays
3495#define GL_ARB_instanced_arrays 1
3496#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
3497typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
5f8b738e 3498#ifdef GL_GLEXT_PROTOTYPES
9293178b 3499GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
5f8b738e 3500#endif
9293178b 3501#endif /* GL_ARB_instanced_arrays */
3502
3503#ifndef GL_ARB_internalformat_query
3504#define GL_ARB_internalformat_query 1
3505#endif /* GL_ARB_internalformat_query */
3506
3507#ifndef GL_ARB_internalformat_query2
3508#define GL_ARB_internalformat_query2 1
3509#define GL_SRGB_DECODE_ARB 0x8299
3510#endif /* GL_ARB_internalformat_query2 */
3511
3512#ifndef GL_ARB_invalidate_subdata
3513#define GL_ARB_invalidate_subdata 1
3514#endif /* GL_ARB_invalidate_subdata */
5f8b738e 3515
9293178b 3516#ifndef GL_ARB_map_buffer_alignment
3517#define GL_ARB_map_buffer_alignment 1
3518#endif /* GL_ARB_map_buffer_alignment */
5f8b738e 3519
9293178b 3520#ifndef GL_ARB_map_buffer_range
3521#define GL_ARB_map_buffer_range 1
3522#endif /* GL_ARB_map_buffer_range */
3523
3524#ifndef GL_ARB_matrix_palette
3525#define GL_ARB_matrix_palette 1
3526#define GL_MATRIX_PALETT