HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
glcorearb.h
Go to the documentation of this file.
1 #ifndef __glcorearb_h_
2 #define __glcorearb_h_ 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
10 **
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
18 **
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 **
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29 */
30 /*
31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
32 ** API Registry. The current version of the Registry, generator scripts
33 ** used to make the header, and the header can be found at
34 ** http://www.opengl.org/registry/
35 **
36 ** Khronos $Revision: 29735 $ on $Date: 2015-02-02 19:00:01 -0800 (Mon, 02 Feb 2015) $
37 */
38 
39 // NOTE: This file has been slightly modified by SESI. The GL_GLEXT_PROTOTYPES
40 // #ifdef checks for version 1.0 and 1.1 have been commented out so that
41 // they are always included.
42 
43 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
44 #ifndef WIN32_LEAN_AND_MEAN
45 #define WIN32_LEAN_AND_MEAN 1
46 #endif
47 #include <windows.h>
48 #endif
49 
50 #ifndef APIENTRY
51 #define APIENTRY
52 #endif
53 #ifndef APIENTRYP
54 #define APIENTRYP APIENTRY *
55 #endif
56 #ifndef GLAPI
57 #define GLAPI extern
58 #endif
59 
60 /* glcorearb.h is for use with OpenGL core profile implementations.
61 ** It should should be placed in the same directory as gl.h and
62 ** included as <GL/glcorearb.h>.
63 **
64 ** glcorearb.h includes only APIs in the latest OpenGL core profile
65 ** implementation together with APIs in newer ARB extensions which
66 ** can be supported by the core profile. It does not, and never will
67 ** include functionality removed from the core profile, such as
68 ** fixed-function vertex and fragment processing.
69 **
70 ** Do not #include both <GL/glcorearb.h> and either of <GL/gl.h> or
71 ** <GL/glext.h> in the same source file.
72 */
73 
74 /* Generated C header for:
75  * API: gl
76  * Profile: core
77  * Versions considered: .*
78  * Versions emitted: .*
79  * Default extensions included: glcore
80  * Additional extensions included: _nomatch_^
81  * Extensions removed: _nomatch_^
82  */
83 
84 #ifndef GL_VERSION_1_0
85 #define GL_VERSION_1_0 1
86 typedef void GLvoid;
87 typedef unsigned int GLenum;
88 typedef float GLfloat;
89 typedef int GLint;
90 typedef int GLsizei;
91 typedef unsigned int GLbitfield;
92 typedef double GLdouble;
93 typedef unsigned int GLuint;
94 typedef unsigned char GLboolean;
95 typedef unsigned char GLubyte;
96 typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
97 typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
98 typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
99 typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
100 typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size);
101 typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode);
102 typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
103 typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
104 typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
105 typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
106 typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
107 typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
108 typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
109 typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum buf);
110 typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
111 typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
112 typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
113 typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth);
114 typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
115 typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
116 typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
117 typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
118 typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap);
119 typedef void (APIENTRYP PFNGLFINISHPROC) (void);
120 typedef void (APIENTRYP PFNGLFLUSHPROC) (void);
121 typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
122 typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode);
123 typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
124 typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
125 typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
126 typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param);
127 typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
128 typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum src);
129 typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
130 typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data);
131 typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *data);
132 typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void);
133 typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
134 typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
135 typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
136 typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
137 typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
138 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
139 typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params);
140 typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params);
141 typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
142 typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble near, GLdouble far);
143 typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
144 //#ifdef GL_GLEXT_PROTOTYPES
145 GLAPI void APIENTRY glCullFace (GLenum mode);
146 GLAPI void APIENTRY glFrontFace (GLenum mode);
147 GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
148 GLAPI void APIENTRY glLineWidth (GLfloat width);
149 GLAPI void APIENTRY glPointSize (GLfloat size);
150 GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);
151 GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
152 GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
153 GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
154 GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
155 GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
156 GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
157 GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
158 GLAPI void APIENTRY glDrawBuffer (GLenum buf);
159 GLAPI void APIENTRY glClear (GLbitfield mask);
160 GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
161 GLAPI void APIENTRY glClearStencil (GLint s);
162 GLAPI void APIENTRY glClearDepth (GLdouble depth);
163 GLAPI void APIENTRY glStencilMask (GLuint mask);
164 GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
165 GLAPI void APIENTRY glDepthMask (GLboolean flag);
166 GLAPI void APIENTRY glDisable (GLenum cap);
167 GLAPI void APIENTRY glEnable (GLenum cap);
168 GLAPI void APIENTRY glFinish (void);
169 GLAPI void APIENTRY glFlush (void);
170 GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
171 GLAPI void APIENTRY glLogicOp (GLenum opcode);
172 GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
173 GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
174 GLAPI void APIENTRY glDepthFunc (GLenum func);
175 GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);
176 GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
177 GLAPI void APIENTRY glReadBuffer (GLenum src);
178 GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
179 GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
180 GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *data);
181 GLAPI GLenum APIENTRY glGetError (void);
182 GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
183 GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *data);
184 GLAPI const GLubyte *APIENTRY glGetString (GLenum name);
185 GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
186 GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
187 GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
188 GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
189 GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
190 GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap);
191 GLAPI void APIENTRY glDepthRange (GLdouble near, GLdouble far);
192 GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
193 //#endif
194 #endif /* GL_VERSION_1_0 */
195 
196 #ifndef GL_VERSION_1_1
197 #define GL_VERSION_1_1 1
198 typedef float GLclampf;
199 typedef double GLclampd;
200 #define GL_DEPTH_BUFFER_BIT 0x00000100
201 #define GL_STENCIL_BUFFER_BIT 0x00000400
202 #define GL_COLOR_BUFFER_BIT 0x00004000
203 #define GL_FALSE 0
204 #define GL_TRUE 1
205 #define GL_POINTS 0x0000
206 #define GL_LINES 0x0001
207 #define GL_LINE_LOOP 0x0002
208 #define GL_LINE_STRIP 0x0003
209 #define GL_TRIANGLES 0x0004
210 #define GL_TRIANGLE_STRIP 0x0005
211 #define GL_TRIANGLE_FAN 0x0006
212 #define GL_QUADS 0x0007
213 #define GL_NEVER 0x0200
214 #define GL_LESS 0x0201
215 #define GL_EQUAL 0x0202
216 #define GL_LEQUAL 0x0203
217 #define GL_GREATER 0x0204
218 #define GL_NOTEQUAL 0x0205
219 #define GL_GEQUAL 0x0206
220 #define GL_ALWAYS 0x0207
221 #define GL_ZERO 0
222 #define GL_ONE 1
223 #define GL_SRC_COLOR 0x0300
224 #define GL_ONE_MINUS_SRC_COLOR 0x0301
225 #define GL_SRC_ALPHA 0x0302
226 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
227 #define GL_DST_ALPHA 0x0304
228 #define GL_ONE_MINUS_DST_ALPHA 0x0305
229 #define GL_DST_COLOR 0x0306
230 #define GL_ONE_MINUS_DST_COLOR 0x0307
231 #define GL_SRC_ALPHA_SATURATE 0x0308
232 #define GL_NONE 0
233 #define GL_FRONT_LEFT 0x0400
234 #define GL_FRONT_RIGHT 0x0401
235 #define GL_BACK_LEFT 0x0402
236 #define GL_BACK_RIGHT 0x0403
237 #define GL_FRONT 0x0404
238 #define GL_BACK 0x0405
239 #define GL_LEFT 0x0406
240 #define GL_RIGHT 0x0407
241 #define GL_FRONT_AND_BACK 0x0408
242 #define GL_NO_ERROR 0
243 #define GL_INVALID_ENUM 0x0500
244 #define GL_INVALID_VALUE 0x0501
245 #define GL_INVALID_OPERATION 0x0502
246 #define GL_OUT_OF_MEMORY 0x0505
247 #define GL_CW 0x0900
248 #define GL_CCW 0x0901
249 #define GL_POINT_SIZE 0x0B11
250 #define GL_POINT_SIZE_RANGE 0x0B12
251 #define GL_POINT_SIZE_GRANULARITY 0x0B13
252 #define GL_LINE_SMOOTH 0x0B20
253 #define GL_LINE_WIDTH 0x0B21
254 #define GL_LINE_WIDTH_RANGE 0x0B22
255 #define GL_LINE_WIDTH_GRANULARITY 0x0B23
256 #define GL_POLYGON_MODE 0x0B40
257 #define GL_POLYGON_SMOOTH 0x0B41
258 #define GL_CULL_FACE 0x0B44
259 #define GL_CULL_FACE_MODE 0x0B45
260 #define GL_FRONT_FACE 0x0B46
261 #define GL_DEPTH_RANGE 0x0B70
262 #define GL_DEPTH_TEST 0x0B71
263 #define GL_DEPTH_WRITEMASK 0x0B72
264 #define GL_DEPTH_CLEAR_VALUE 0x0B73
265 #define GL_DEPTH_FUNC 0x0B74
266 #define GL_STENCIL_TEST 0x0B90
267 #define GL_STENCIL_CLEAR_VALUE 0x0B91
268 #define GL_STENCIL_FUNC 0x0B92
269 #define GL_STENCIL_VALUE_MASK 0x0B93
270 #define GL_STENCIL_FAIL 0x0B94
271 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
272 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
273 #define GL_STENCIL_REF 0x0B97
274 #define GL_STENCIL_WRITEMASK 0x0B98
275 #define GL_VIEWPORT 0x0BA2
276 #define GL_DITHER 0x0BD0
277 #define GL_BLEND_DST 0x0BE0
278 #define GL_BLEND_SRC 0x0BE1
279 #define GL_BLEND 0x0BE2
280 #define GL_LOGIC_OP_MODE 0x0BF0
281 #define GL_COLOR_LOGIC_OP 0x0BF2
282 #define GL_DRAW_BUFFER 0x0C01
283 #define GL_READ_BUFFER 0x0C02
284 #define GL_SCISSOR_BOX 0x0C10
285 #define GL_SCISSOR_TEST 0x0C11
286 #define GL_COLOR_CLEAR_VALUE 0x0C22
287 #define GL_COLOR_WRITEMASK 0x0C23
288 #define GL_DOUBLEBUFFER 0x0C32
289 #define GL_STEREO 0x0C33
290 #define GL_LINE_SMOOTH_HINT 0x0C52
291 #define GL_POLYGON_SMOOTH_HINT 0x0C53
292 #define GL_UNPACK_SWAP_BYTES 0x0CF0
293 #define GL_UNPACK_LSB_FIRST 0x0CF1
294 #define GL_UNPACK_ROW_LENGTH 0x0CF2
295 #define GL_UNPACK_SKIP_ROWS 0x0CF3
296 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
297 #define GL_UNPACK_ALIGNMENT 0x0CF5
298 #define GL_PACK_SWAP_BYTES 0x0D00
299 #define GL_PACK_LSB_FIRST 0x0D01
300 #define GL_PACK_ROW_LENGTH 0x0D02
301 #define GL_PACK_SKIP_ROWS 0x0D03
302 #define GL_PACK_SKIP_PIXELS 0x0D04
303 #define GL_PACK_ALIGNMENT 0x0D05
304 #define GL_MAX_TEXTURE_SIZE 0x0D33
305 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
306 #define GL_SUBPIXEL_BITS 0x0D50
307 #define GL_TEXTURE_1D 0x0DE0
308 #define GL_TEXTURE_2D 0x0DE1
309 #define GL_POLYGON_OFFSET_UNITS 0x2A00
310 #define GL_POLYGON_OFFSET_POINT 0x2A01
311 #define GL_POLYGON_OFFSET_LINE 0x2A02
312 #define GL_POLYGON_OFFSET_FILL 0x8037
313 #define GL_POLYGON_OFFSET_FACTOR 0x8038
314 #define GL_TEXTURE_BINDING_1D 0x8068
315 #define GL_TEXTURE_BINDING_2D 0x8069
316 #define GL_TEXTURE_WIDTH 0x1000
317 #define GL_TEXTURE_HEIGHT 0x1001
318 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
319 #define GL_TEXTURE_BORDER_COLOR 0x1004
320 #define GL_TEXTURE_RED_SIZE 0x805C
321 #define GL_TEXTURE_GREEN_SIZE 0x805D
322 #define GL_TEXTURE_BLUE_SIZE 0x805E
323 #define GL_TEXTURE_ALPHA_SIZE 0x805F
324 #define GL_DONT_CARE 0x1100
325 #define GL_FASTEST 0x1101
326 #define GL_NICEST 0x1102
327 #define GL_BYTE 0x1400
328 #define GL_UNSIGNED_BYTE 0x1401
329 #define GL_SHORT 0x1402
330 #define GL_UNSIGNED_SHORT 0x1403
331 #define GL_INT 0x1404
332 #define GL_UNSIGNED_INT 0x1405
333 #define GL_FLOAT 0x1406
334 #define GL_DOUBLE 0x140A
335 #define GL_STACK_OVERFLOW 0x0503
336 #define GL_STACK_UNDERFLOW 0x0504
337 #define GL_CLEAR 0x1500
338 #define GL_AND 0x1501
339 #define GL_AND_REVERSE 0x1502
340 #define GL_COPY 0x1503
341 #define GL_AND_INVERTED 0x1504
342 #define GL_NOOP 0x1505
343 #define GL_XOR 0x1506
344 #define GL_OR 0x1507
345 #define GL_NOR 0x1508
346 #define GL_EQUIV 0x1509
347 #define GL_INVERT 0x150A
348 #define GL_OR_REVERSE 0x150B
349 #define GL_COPY_INVERTED 0x150C
350 #define GL_OR_INVERTED 0x150D
351 #define GL_NAND 0x150E
352 #define GL_SET 0x150F
353 #define GL_TEXTURE 0x1702
354 #define GL_COLOR 0x1800
355 #define GL_DEPTH 0x1801
356 #define GL_STENCIL 0x1802
357 #define GL_STENCIL_INDEX 0x1901
358 #define GL_DEPTH_COMPONENT 0x1902
359 #define GL_RED 0x1903
360 #define GL_GREEN 0x1904
361 #define GL_BLUE 0x1905
362 #define GL_ALPHA 0x1906
363 #define GL_RGB 0x1907
364 #define GL_RGBA 0x1908
365 #define GL_POINT 0x1B00
366 #define GL_LINE 0x1B01
367 #define GL_FILL 0x1B02
368 #define GL_KEEP 0x1E00
369 #define GL_REPLACE 0x1E01
370 #define GL_INCR 0x1E02
371 #define GL_DECR 0x1E03
372 #define GL_VENDOR 0x1F00
373 #define GL_RENDERER 0x1F01
374 #define GL_VERSION 0x1F02
375 #define GL_EXTENSIONS 0x1F03
376 #define GL_NEAREST 0x2600
377 #define GL_LINEAR 0x2601
378 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
379 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
380 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
381 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
382 #define GL_TEXTURE_MAG_FILTER 0x2800
383 #define GL_TEXTURE_MIN_FILTER 0x2801
384 #define GL_TEXTURE_WRAP_S 0x2802
385 #define GL_TEXTURE_WRAP_T 0x2803
386 #define GL_PROXY_TEXTURE_1D 0x8063
387 #define GL_PROXY_TEXTURE_2D 0x8064
388 #define GL_REPEAT 0x2901
389 #define GL_R3_G3_B2 0x2A10
390 #define GL_RGB4 0x804F
391 #define GL_RGB5 0x8050
392 #define GL_RGB8 0x8051
393 #define GL_RGB10 0x8052
394 #define GL_RGB12 0x8053
395 #define GL_RGB16 0x8054
396 #define GL_RGBA2 0x8055
397 #define GL_RGBA4 0x8056
398 #define GL_RGB5_A1 0x8057
399 #define GL_RGBA8 0x8058
400 #define GL_RGB10_A2 0x8059
401 #define GL_RGBA12 0x805A
402 #define GL_RGBA16 0x805B
403 #define GL_VERTEX_ARRAY 0x8074
404 typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
405 typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
406 typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params);
407 typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
408 typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
409 typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
410 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
411 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
412 typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
413 typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
414 typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
415 typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
416 typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
417 typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
418 //#ifdef GL_GLEXT_PROTOTYPES
419 GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
420 GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
421 GLAPI void APIENTRY glGetPointerv (GLenum pname, void **params);
422 GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
423 GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
424 GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
425 GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
426 GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
427 GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
428 GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
429 GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
430 GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
431 GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
432 GLAPI GLboolean APIENTRY glIsTexture (GLuint texture);
433 //#endif
434 #endif /* GL_VERSION_1_1 */
435 
436 #ifndef GL_VERSION_1_2
437 #define GL_VERSION_1_2 1
438 #define GL_UNSIGNED_BYTE_3_3_2 0x8032
439 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
440 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
441 #define GL_UNSIGNED_INT_8_8_8_8 0x8035
442 #define GL_UNSIGNED_INT_10_10_10_2 0x8036
443 #define GL_TEXTURE_BINDING_3D 0x806A
444 #define GL_PACK_SKIP_IMAGES 0x806B
445 #define GL_PACK_IMAGE_HEIGHT 0x806C
446 #define GL_UNPACK_SKIP_IMAGES 0x806D
447 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
448 #define GL_TEXTURE_3D 0x806F
449 #define GL_PROXY_TEXTURE_3D 0x8070
450 #define GL_TEXTURE_DEPTH 0x8071
451 #define GL_TEXTURE_WRAP_R 0x8072
452 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
453 #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
454 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
455 #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
456 #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
457 #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
458 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
459 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
460 #define GL_BGR 0x80E0
461 #define GL_BGRA 0x80E1
462 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
463 #define GL_MAX_ELEMENTS_INDICES 0x80E9
464 #define GL_CLAMP_TO_EDGE 0x812F
465 #define GL_TEXTURE_MIN_LOD 0x813A
466 #define GL_TEXTURE_MAX_LOD 0x813B
467 #define GL_TEXTURE_BASE_LEVEL 0x813C
468 #define GL_TEXTURE_MAX_LEVEL 0x813D
469 #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
470 #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
471 #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
472 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
473 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
474 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
475 typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
476 typedef 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);
477 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
478 #ifdef GL_GLEXT_PROTOTYPES
479 GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
480 GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
481 GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
482 GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
483 #endif
484 #endif /* GL_VERSION_1_2 */
485 
486 #ifndef GL_VERSION_1_3
487 #define GL_VERSION_1_3 1
488 #define GL_TEXTURE0 0x84C0
489 #define GL_TEXTURE1 0x84C1
490 #define GL_TEXTURE2 0x84C2
491 #define GL_TEXTURE3 0x84C3
492 #define GL_TEXTURE4 0x84C4
493 #define GL_TEXTURE5 0x84C5
494 #define GL_TEXTURE6 0x84C6
495 #define GL_TEXTURE7 0x84C7
496 #define GL_TEXTURE8 0x84C8
497 #define GL_TEXTURE9 0x84C9
498 #define GL_TEXTURE10 0x84CA
499 #define GL_TEXTURE11 0x84CB
500 #define GL_TEXTURE12 0x84CC
501 #define GL_TEXTURE13 0x84CD
502 #define GL_TEXTURE14 0x84CE
503 #define GL_TEXTURE15 0x84CF
504 #define GL_TEXTURE16 0x84D0
505 #define GL_TEXTURE17 0x84D1
506 #define GL_TEXTURE18 0x84D2
507 #define GL_TEXTURE19 0x84D3
508 #define GL_TEXTURE20 0x84D4
509 #define GL_TEXTURE21 0x84D5
510 #define GL_TEXTURE22 0x84D6
511 #define GL_TEXTURE23 0x84D7
512 #define GL_TEXTURE24 0x84D8
513 #define GL_TEXTURE25 0x84D9
514 #define GL_TEXTURE26 0x84DA
515 #define GL_TEXTURE27 0x84DB
516 #define GL_TEXTURE28 0x84DC
517 #define GL_TEXTURE29 0x84DD
518 #define GL_TEXTURE30 0x84DE
519 #define GL_TEXTURE31 0x84DF
520 #define GL_ACTIVE_TEXTURE 0x84E0
521 #define GL_MULTISAMPLE 0x809D
522 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
523 #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
524 #define GL_SAMPLE_COVERAGE 0x80A0
525 #define GL_SAMPLE_BUFFERS 0x80A8
526 #define GL_SAMPLES 0x80A9
527 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
528 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
529 #define GL_TEXTURE_CUBE_MAP 0x8513
530 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
531 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
532 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
533 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
534 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
535 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
536 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
537 #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
538 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
539 #define GL_COMPRESSED_RGB 0x84ED
540 #define GL_COMPRESSED_RGBA 0x84EE
541 #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
542 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
543 #define GL_TEXTURE_COMPRESSED 0x86A1
544 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
545 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
546 #define GL_CLAMP_TO_BORDER 0x812D
547 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
548 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
549 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
550 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
551 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
552 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
553 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
554 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
555 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
556 #ifdef GL_GLEXT_PROTOTYPES
557 GLAPI void APIENTRY glActiveTexture (GLenum texture);
558 GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
559 GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
560 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
561 GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
562 GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
563 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
564 GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
565 GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
566 #endif
567 #endif /* GL_VERSION_1_3 */
568 
569 #ifndef GL_VERSION_1_4
570 #define GL_VERSION_1_4 1
571 #define GL_BLEND_DST_RGB 0x80C8
572 #define GL_BLEND_SRC_RGB 0x80C9
573 #define GL_BLEND_DST_ALPHA 0x80CA
574 #define GL_BLEND_SRC_ALPHA 0x80CB
575 #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
576 #define GL_DEPTH_COMPONENT16 0x81A5
577 #define GL_DEPTH_COMPONENT24 0x81A6
578 #define GL_DEPTH_COMPONENT32 0x81A7
579 #define GL_MIRRORED_REPEAT 0x8370
580 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
581 #define GL_TEXTURE_LOD_BIAS 0x8501
582 #define GL_INCR_WRAP 0x8507
583 #define GL_DECR_WRAP 0x8508
584 #define GL_TEXTURE_DEPTH_SIZE 0x884A
585 #define GL_TEXTURE_COMPARE_MODE 0x884C
586 #define GL_TEXTURE_COMPARE_FUNC 0x884D
587 #define GL_FUNC_ADD 0x8006
588 #define GL_FUNC_SUBTRACT 0x800A
589 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
590 #define GL_MIN 0x8007
591 #define GL_MAX 0x8008
592 #define GL_CONSTANT_COLOR 0x8001
593 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
594 #define GL_CONSTANT_ALPHA 0x8003
595 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
596 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
597 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
598 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
599 typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
600 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
601 typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
602 typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
603 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
604 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
605 #ifdef GL_GLEXT_PROTOTYPES
606 GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
607 GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
608 GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
609 GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
610 GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
611 GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
612 GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
613 GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
614 GLAPI void APIENTRY glBlendEquation (GLenum mode);
615 #endif
616 #endif /* GL_VERSION_1_4 */
617 
618 #ifndef GL_VERSION_1_5
619 #define GL_VERSION_1_5 1
620 #include <stddef.h>
621 typedef ptrdiff_t GLsizeiptr;
622 typedef ptrdiff_t GLintptr;
623 #define GL_BUFFER_SIZE 0x8764
624 #define GL_BUFFER_USAGE 0x8765
625 #define GL_QUERY_COUNTER_BITS 0x8864
626 #define GL_CURRENT_QUERY 0x8865
627 #define GL_QUERY_RESULT 0x8866
628 #define GL_QUERY_RESULT_AVAILABLE 0x8867
629 #define GL_ARRAY_BUFFER 0x8892
630 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
631 #define GL_ARRAY_BUFFER_BINDING 0x8894
632 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
633 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
634 #define GL_READ_ONLY 0x88B8
635 #define GL_WRITE_ONLY 0x88B9
636 #define GL_READ_WRITE 0x88BA
637 #define GL_BUFFER_ACCESS 0x88BB
638 #define GL_BUFFER_MAPPED 0x88BC
639 #define GL_BUFFER_MAP_POINTER 0x88BD
640 #define GL_STREAM_DRAW 0x88E0
641 #define GL_STREAM_READ 0x88E1
642 #define GL_STREAM_COPY 0x88E2
643 #define GL_STATIC_DRAW 0x88E4
644 #define GL_STATIC_READ 0x88E5
645 #define GL_STATIC_COPY 0x88E6
646 #define GL_DYNAMIC_DRAW 0x88E8
647 #define GL_DYNAMIC_READ 0x88E9
648 #define GL_DYNAMIC_COPY 0x88EA
649 #define GL_SAMPLES_PASSED 0x8914
650 #define GL_SRC1_ALPHA 0x8589
651 typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
652 typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
653 typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
654 typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
655 typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
656 typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
657 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
658 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
659 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
660 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
661 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
662 typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
663 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
664 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
665 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
666 typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
667 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
668 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
669 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
670 #ifdef GL_GLEXT_PROTOTYPES
671 GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
672 GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
673 GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
674 GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
675 GLAPI void APIENTRY glEndQuery (GLenum target);
676 GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
677 GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
678 GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
679 GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
680 GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
681 GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
682 GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
683 GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
684 GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
685 GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
686 GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
687 GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
688 GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
689 GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
690 #endif
691 #endif /* GL_VERSION_1_5 */
692 
693 #ifndef GL_VERSION_2_0
694 #define GL_VERSION_2_0 1
695 typedef char GLchar;
696 typedef short GLshort;
697 typedef signed char GLbyte;
698 typedef unsigned short GLushort;
699 #define GL_BLEND_EQUATION_RGB 0x8009
700 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
701 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
702 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
703 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
704 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
705 #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
706 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
707 #define GL_STENCIL_BACK_FUNC 0x8800
708 #define GL_STENCIL_BACK_FAIL 0x8801
709 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
710 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
711 #define GL_MAX_DRAW_BUFFERS 0x8824
712 #define GL_DRAW_BUFFER0 0x8825
713 #define GL_DRAW_BUFFER1 0x8826
714 #define GL_DRAW_BUFFER2 0x8827
715 #define GL_DRAW_BUFFER3 0x8828
716 #define GL_DRAW_BUFFER4 0x8829
717 #define GL_DRAW_BUFFER5 0x882A
718 #define GL_DRAW_BUFFER6 0x882B
719 #define GL_DRAW_BUFFER7 0x882C
720 #define GL_DRAW_BUFFER8 0x882D
721 #define GL_DRAW_BUFFER9 0x882E
722 #define GL_DRAW_BUFFER10 0x882F
723 #define GL_DRAW_BUFFER11 0x8830
724 #define GL_DRAW_BUFFER12 0x8831
725 #define GL_DRAW_BUFFER13 0x8832
726 #define GL_DRAW_BUFFER14 0x8833
727 #define GL_DRAW_BUFFER15 0x8834
728 #define GL_BLEND_EQUATION_ALPHA 0x883D
729 #define GL_MAX_VERTEX_ATTRIBS 0x8869
730 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
731 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
732 #define GL_FRAGMENT_SHADER 0x8B30
733 #define GL_VERTEX_SHADER 0x8B31
734 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
735 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
736 #define GL_MAX_VARYING_FLOATS 0x8B4B
737 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
738 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
739 #define GL_SHADER_TYPE 0x8B4F
740 #define GL_FLOAT_VEC2 0x8B50
741 #define GL_FLOAT_VEC3 0x8B51
742 #define GL_FLOAT_VEC4 0x8B52
743 #define GL_INT_VEC2 0x8B53
744 #define GL_INT_VEC3 0x8B54
745 #define GL_INT_VEC4 0x8B55
746 #define GL_BOOL 0x8B56
747 #define GL_BOOL_VEC2 0x8B57
748 #define GL_BOOL_VEC3 0x8B58
749 #define GL_BOOL_VEC4 0x8B59
750 #define GL_FLOAT_MAT2 0x8B5A
751 #define GL_FLOAT_MAT3 0x8B5B
752 #define GL_FLOAT_MAT4 0x8B5C
753 #define GL_SAMPLER_1D 0x8B5D
754 #define GL_SAMPLER_2D 0x8B5E
755 #define GL_SAMPLER_3D 0x8B5F
756 #define GL_SAMPLER_CUBE 0x8B60
757 #define GL_SAMPLER_1D_SHADOW 0x8B61
758 #define GL_SAMPLER_2D_SHADOW 0x8B62
759 #define GL_DELETE_STATUS 0x8B80
760 #define GL_COMPILE_STATUS 0x8B81
761 #define GL_LINK_STATUS 0x8B82
762 #define GL_VALIDATE_STATUS 0x8B83
763 #define GL_INFO_LOG_LENGTH 0x8B84
764 #define GL_ATTACHED_SHADERS 0x8B85
765 #define GL_ACTIVE_UNIFORMS 0x8B86
766 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
767 #define GL_SHADER_SOURCE_LENGTH 0x8B88
768 #define GL_ACTIVE_ATTRIBUTES 0x8B89
769 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
770 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
771 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
772 #define GL_CURRENT_PROGRAM 0x8B8D
773 #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
774 #define GL_LOWER_LEFT 0x8CA1
775 #define GL_UPPER_LEFT 0x8CA2
776 #define GL_STENCIL_BACK_REF 0x8CA3
777 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
778 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
779 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
780 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
781 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
782 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
783 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
784 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
785 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
786 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
787 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
788 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
789 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
790 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
791 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
792 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
793 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
794 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
795 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
796 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
797 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
798 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
799 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
800 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
801 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
802 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
803 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
804 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
805 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
806 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
807 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
808 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
809 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
810 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
811 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
812 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
813 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
814 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
815 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
816 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
817 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
818 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
819 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
820 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
821 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
822 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
823 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
824 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
825 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
826 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
827 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
828 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
829 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
830 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
831 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
832 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
833 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
834 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
835 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
836 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
837 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
838 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
839 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
840 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
841 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
842 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
843 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
844 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
845 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
846 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
847 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
848 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
849 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
850 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
851 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
852 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
853 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
854 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
855 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
856 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
857 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
858 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
859 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
860 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
861 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
862 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
863 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
864 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
865 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
866 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
867 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
868 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
869 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
870 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
871 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
872 #ifdef GL_GLEXT_PROTOTYPES
873 GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
874 GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
875 GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
876 GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
877 GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
878 GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
879 GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
880 GLAPI void APIENTRY glCompileShader (GLuint shader);
881 GLAPI GLuint APIENTRY glCreateProgram (void);
882 GLAPI GLuint APIENTRY glCreateShader (GLenum type);
883 GLAPI void APIENTRY glDeleteProgram (GLuint program);
884 GLAPI void APIENTRY glDeleteShader (GLuint shader);
885 GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
886 GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
887 GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
888 GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
889 GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
890 GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
891 GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
892 GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
893 GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
894 GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
895 GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
896 GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
897 GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
898 GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
899 GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
900 GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
901 GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
902 GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
903 GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
904 GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
905 GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
906 GLAPI void APIENTRY glLinkProgram (GLuint program);
907 GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
908 GLAPI void APIENTRY glUseProgram (GLuint program);
909 GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
910 GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
911 GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
912 GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
913 GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
914 GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
915 GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
916 GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
917 GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
918 GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
919 GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
920 GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
921 GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
922 GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
923 GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
924 GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
925 GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
926 GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
927 GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
928 GLAPI void APIENTRY glValidateProgram (GLuint program);
929 GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
930 GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
931 GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
932 GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
933 GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
934 GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
935 GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
936 GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
937 GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
938 GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
939 GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
940 GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
941 GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
942 GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
943 GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
944 GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
945 GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
946 GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
947 GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
948 GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
949 GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
950 GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
951 GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
952 GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
953 GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
954 GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
955 GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
956 GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
957 GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
958 GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
959 GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
960 GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
961 GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
962 GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
963 GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
964 GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
965 GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
966 #endif
967 #endif /* GL_VERSION_2_0 */
968 
969 #ifndef GL_VERSION_2_1
970 #define GL_VERSION_2_1 1
971 #define GL_PIXEL_PACK_BUFFER 0x88EB
972 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
973 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
974 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
975 #define GL_FLOAT_MAT2x3 0x8B65
976 #define GL_FLOAT_MAT2x4 0x8B66
977 #define GL_FLOAT_MAT3x2 0x8B67
978 #define GL_FLOAT_MAT3x4 0x8B68
979 #define GL_FLOAT_MAT4x2 0x8B69
980 #define GL_FLOAT_MAT4x3 0x8B6A
981 #define GL_SRGB 0x8C40
982 #define GL_SRGB8 0x8C41
983 #define GL_SRGB_ALPHA 0x8C42
984 #define GL_SRGB8_ALPHA8 0x8C43
985 #define GL_COMPRESSED_SRGB 0x8C48
986 #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
987 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
988 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
989 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
990 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
991 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
992 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
993 #ifdef GL_GLEXT_PROTOTYPES
994 GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
995 GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
996 GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
997 GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
998 GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
999 GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1000 #endif
1001 #endif /* GL_VERSION_2_1 */
1002 
1003 #ifndef GL_VERSION_3_0
1004 #define GL_VERSION_3_0 1
1005 typedef unsigned short GLhalf;
1006 #define GL_COMPARE_REF_TO_TEXTURE 0x884E
1007 #define GL_CLIP_DISTANCE0 0x3000
1008 #define GL_CLIP_DISTANCE1 0x3001
1009 #define GL_CLIP_DISTANCE2 0x3002
1010 #define GL_CLIP_DISTANCE3 0x3003
1011 #define GL_CLIP_DISTANCE4 0x3004
1012 #define GL_CLIP_DISTANCE5 0x3005
1013 #define GL_CLIP_DISTANCE6 0x3006
1014 #define GL_CLIP_DISTANCE7 0x3007
1015 #define GL_MAX_CLIP_DISTANCES 0x0D32
1016 #define GL_MAJOR_VERSION 0x821B
1017 #define GL_MINOR_VERSION 0x821C
1018 #define GL_NUM_EXTENSIONS 0x821D
1019 #define GL_CONTEXT_FLAGS 0x821E
1020 #define GL_COMPRESSED_RED 0x8225
1021 #define GL_COMPRESSED_RG 0x8226
1022 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
1023 #define GL_RGBA32F 0x8814
1024 #define GL_RGB32F 0x8815
1025 #define GL_RGBA16F 0x881A
1026 #define GL_RGB16F 0x881B
1027 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
1028 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
1029 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
1030 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
1031 #define GL_CLAMP_READ_COLOR 0x891C
1032 #define GL_FIXED_ONLY 0x891D
1033 #define GL_MAX_VARYING_COMPONENTS 0x8B4B
1034 #define GL_TEXTURE_1D_ARRAY 0x8C18
1035 #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
1036 #define GL_TEXTURE_2D_ARRAY 0x8C1A
1037 #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
1038 #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
1039 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
1040 #define GL_R11F_G11F_B10F 0x8C3A
1041 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
1042 #define GL_RGB9_E5 0x8C3D
1043 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
1044 #define GL_TEXTURE_SHARED_SIZE 0x8C3F
1045 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
1046 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
1047 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
1048 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
1049 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
1050 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
1051 #define GL_PRIMITIVES_GENERATED 0x8C87
1052 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
1053 #define GL_RASTERIZER_DISCARD 0x8C89
1054 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
1055 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
1056 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
1057 #define GL_SEPARATE_ATTRIBS 0x8C8D
1058 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
1059 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
1060 #define GL_RGBA32UI 0x8D70
1061 #define GL_RGB32UI 0x8D71
1062 #define GL_RGBA16UI 0x8D76
1063 #define GL_RGB16UI 0x8D77
1064 #define GL_RGBA8UI 0x8D7C
1065 #define GL_RGB8UI 0x8D7D
1066 #define GL_RGBA32I 0x8D82
1067 #define GL_RGB32I 0x8D83
1068 #define GL_RGBA16I 0x8D88
1069 #define GL_RGB16I 0x8D89
1070 #define GL_RGBA8I 0x8D8E
1071 #define GL_RGB8I 0x8D8F
1072 #define GL_RED_INTEGER 0x8D94
1073 #define GL_GREEN_INTEGER 0x8D95
1074 #define GL_BLUE_INTEGER 0x8D96
1075 #define GL_RGB_INTEGER 0x8D98
1076 #define GL_RGBA_INTEGER 0x8D99
1077 #define GL_BGR_INTEGER 0x8D9A
1078 #define GL_BGRA_INTEGER 0x8D9B
1079 #define GL_SAMPLER_1D_ARRAY 0x8DC0
1080 #define GL_SAMPLER_2D_ARRAY 0x8DC1
1081 #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
1082 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
1083 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
1084 #define GL_UNSIGNED_INT_VEC2 0x8DC6
1085 #define GL_UNSIGNED_INT_VEC3 0x8DC7
1086 #define GL_UNSIGNED_INT_VEC4 0x8DC8
1087 #define GL_INT_SAMPLER_1D 0x8DC9
1088 #define GL_INT_SAMPLER_2D 0x8DCA
1089 #define GL_INT_SAMPLER_3D 0x8DCB
1090 #define GL_INT_SAMPLER_CUBE 0x8DCC
1091 #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
1092 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
1093 #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
1094 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
1095 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
1096 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
1097 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
1098 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
1099 #define GL_QUERY_WAIT 0x8E13
1100 #define GL_QUERY_NO_WAIT 0x8E14
1101 #define GL_QUERY_BY_REGION_WAIT 0x8E15
1102 #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
1103 #define GL_BUFFER_ACCESS_FLAGS 0x911F
1104 #define GL_BUFFER_MAP_LENGTH 0x9120
1105 #define GL_BUFFER_MAP_OFFSET 0x9121
1106 #define GL_DEPTH_COMPONENT32F 0x8CAC
1107 #define GL_DEPTH32F_STENCIL8 0x8CAD
1108 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
1109 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
1110 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
1111 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
1112 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
1113 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
1114 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
1115 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
1116 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
1117 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
1118 #define GL_FRAMEBUFFER_DEFAULT 0x8218
1119 #define GL_FRAMEBUFFER_UNDEFINED 0x8219
1120 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
1121 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
1122 #define GL_DEPTH_STENCIL 0x84F9
1123 #define GL_UNSIGNED_INT_24_8 0x84FA
1124 #define GL_DEPTH24_STENCIL8 0x88F0
1125 #define GL_TEXTURE_STENCIL_SIZE 0x88F1
1126 #define GL_TEXTURE_RED_TYPE 0x8C10
1127 #define GL_TEXTURE_GREEN_TYPE 0x8C11
1128 #define GL_TEXTURE_BLUE_TYPE 0x8C12
1129 #define GL_TEXTURE_ALPHA_TYPE 0x8C13
1130 #define GL_TEXTURE_DEPTH_TYPE 0x8C16
1131 #define GL_UNSIGNED_NORMALIZED 0x8C17
1132 #define GL_FRAMEBUFFER_BINDING 0x8CA6
1133 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
1134 #define GL_RENDERBUFFER_BINDING 0x8CA7
1135 #define GL_READ_FRAMEBUFFER 0x8CA8
1136 #define GL_DRAW_FRAMEBUFFER 0x8CA9
1137 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
1138 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
1139 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1140 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1141 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1142 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1143 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
1144 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
1145 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1146 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1147 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
1148 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
1149 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
1150 #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
1151 #define GL_COLOR_ATTACHMENT0 0x8CE0
1152 #define GL_COLOR_ATTACHMENT1 0x8CE1
1153 #define GL_COLOR_ATTACHMENT2 0x8CE2
1154 #define GL_COLOR_ATTACHMENT3 0x8CE3
1155 #define GL_COLOR_ATTACHMENT4 0x8CE4
1156 #define GL_COLOR_ATTACHMENT5 0x8CE5
1157 #define GL_COLOR_ATTACHMENT6 0x8CE6
1158 #define GL_COLOR_ATTACHMENT7 0x8CE7
1159 #define GL_COLOR_ATTACHMENT8 0x8CE8
1160 #define GL_COLOR_ATTACHMENT9 0x8CE9
1161 #define GL_COLOR_ATTACHMENT10 0x8CEA
1162 #define GL_COLOR_ATTACHMENT11 0x8CEB
1163 #define GL_COLOR_ATTACHMENT12 0x8CEC
1164 #define GL_COLOR_ATTACHMENT13 0x8CED
1165 #define GL_COLOR_ATTACHMENT14 0x8CEE
1166 #define GL_COLOR_ATTACHMENT15 0x8CEF
1167 #define GL_DEPTH_ATTACHMENT 0x8D00
1168 #define GL_STENCIL_ATTACHMENT 0x8D20
1169 #define GL_FRAMEBUFFER 0x8D40
1170 #define GL_RENDERBUFFER 0x8D41
1171 #define GL_RENDERBUFFER_WIDTH 0x8D42
1172 #define GL_RENDERBUFFER_HEIGHT 0x8D43
1173 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1174 #define GL_STENCIL_INDEX1 0x8D46
1175 #define GL_STENCIL_INDEX4 0x8D47
1176 #define GL_STENCIL_INDEX8 0x8D48
1177 #define GL_STENCIL_INDEX16 0x8D49
1178 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
1179 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1180 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1181 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1182 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1183 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1184 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1185 #define GL_MAX_SAMPLES 0x8D57
1186 #define GL_FRAMEBUFFER_SRGB 0x8DB9
1187 #define GL_HALF_FLOAT 0x140B
1188 #define GL_MAP_READ_BIT 0x0001
1189 #define GL_MAP_WRITE_BIT 0x0002
1190 #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
1191 #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
1192 #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
1193 #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
1194 #define GL_COMPRESSED_RED_RGTC1 0x8DBB
1195 #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
1196 #define GL_COMPRESSED_RG_RGTC2 0x8DBD
1197 #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
1198 #define GL_RG 0x8227
1199 #define GL_RG_INTEGER 0x8228
1200 #define GL_R8 0x8229
1201 #define GL_R16 0x822A
1202 #define GL_RG8 0x822B
1203 #define GL_RG16 0x822C
1204 #define GL_R16F 0x822D
1205 #define GL_R32F 0x822E
1206 #define GL_RG16F 0x822F
1207 #define GL_RG32F 0x8230
1208 #define GL_R8I 0x8231
1209 #define GL_R8UI 0x8232
1210 #define GL_R16I 0x8233
1211 #define GL_R16UI 0x8234
1212 #define GL_R32I 0x8235
1213 #define GL_R32UI 0x8236
1214 #define GL_RG8I 0x8237
1215 #define GL_RG8UI 0x8238
1216 #define GL_RG16I 0x8239
1217 #define GL_RG16UI 0x823A
1218 #define GL_RG32I 0x823B
1219 #define GL_RG32UI 0x823C
1220 #define GL_VERTEX_ARRAY_BINDING 0x85B5
1221 typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1222 typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
1223 typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
1224 typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
1225 typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
1226 typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
1227 typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
1228 typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
1229 typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1230 typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
1231 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1232 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1233 typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
1234 typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
1235 typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
1236 typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1237 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
1238 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
1239 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
1240 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
1241 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
1242 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
1243 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
1244 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
1245 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
1246 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1247 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
1248 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
1249 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
1250 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
1251 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
1252 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
1253 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
1254 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
1255 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
1256 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
1257 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
1258 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
1259 typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
1260 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
1261 typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
1262 typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
1263 typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
1264 typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
1265 typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1266 typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1267 typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1268 typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1269 typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
1270 typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
1271 typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
1272 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
1273 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
1274 typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
1275 typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
1276 typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1277 typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1278 typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
1279 typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
1280 typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
1281 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
1282 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
1283 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1284 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
1285 typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
1286 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
1287 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
1288 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
1289 typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
1290 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1291 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1292 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1293 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1294 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
1295 typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
1296 typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
1297 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1298 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1299 typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1300 typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
1301 typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
1302 typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
1303 typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
1304 typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
1305 #ifdef GL_GLEXT_PROTOTYPES
1306 GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
1307 GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
1308 GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
1309 GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
1310 GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
1311 GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
1312 GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
1313 GLAPI void APIENTRY glEndTransformFeedback (void);
1314 GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
1315 GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
1316 GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
1317 GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
1318 GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
1319 GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
1320 GLAPI void APIENTRY glEndConditionalRender (void);
1321 GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1322 GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
1323 GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
1324 GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
1325 GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
1326 GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
1327 GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
1328 GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
1329 GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
1330 GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
1331 GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
1332 GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
1333 GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
1334 GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
1335 GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
1336 GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
1337 GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
1338 GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
1339 GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
1340 GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
1341 GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
1342 GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
1343 GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
1344 GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
1345 GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
1346 GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
1347 GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
1348 GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
1349 GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
1350 GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1351 GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
1352 GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
1353 GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
1354 GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
1355 GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
1356 GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
1357 GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
1358 GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
1359 GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
1360 GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
1361 GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
1362 GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
1363 GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
1364 GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
1365 GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
1366 GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
1367 GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
1368 GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
1369 GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
1370 GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
1371 GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
1372 GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
1373 GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
1374 GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
1375 GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1376 GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
1377 GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
1378 GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
1379 GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
1380 GLAPI void APIENTRY glGenerateMipmap (GLenum target);
1381 GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
1382 GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
1383 GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
1384 GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
1385 GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
1386 GLAPI void APIENTRY glBindVertexArray (GLuint array);
1387 GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
1388 GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
1389 GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
1390 #endif
1391 #endif /* GL_VERSION_3_0 */
1392 
1393 #ifndef GL_VERSION_3_1
1394 #define GL_VERSION_3_1 1
1395 #define GL_SAMPLER_2D_RECT 0x8B63
1396 #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
1397 #define GL_SAMPLER_BUFFER 0x8DC2
1398 #define GL_INT_SAMPLER_2D_RECT 0x8DCD
1399 #define GL_INT_SAMPLER_BUFFER 0x8DD0
1400 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
1401 #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
1402 #define GL_TEXTURE_BUFFER 0x8C2A
1403 #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
1404 #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
1405 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
1406 #define GL_TEXTURE_RECTANGLE 0x84F5
1407 #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
1408 #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
1409 #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
1410 #define GL_R8_SNORM 0x8F94
1411 #define GL_RG8_SNORM 0x8F95
1412 #define GL_RGB8_SNORM 0x8F96
1413 #define GL_RGBA8_SNORM 0x8F97
1414 #define GL_R16_SNORM 0x8F98
1415 #define GL_RG16_SNORM 0x8F99
1416 #define GL_RGB16_SNORM 0x8F9A
1417 #define GL_RGBA16_SNORM 0x8F9B
1418 #define GL_SIGNED_NORMALIZED 0x8F9C
1419 #define GL_PRIMITIVE_RESTART 0x8F9D
1420 #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
1421 #define GL_COPY_READ_BUFFER 0x8F36
1422 #define GL_COPY_WRITE_BUFFER 0x8F37
1423 #define GL_UNIFORM_BUFFER 0x8A11
1424 #define GL_UNIFORM_BUFFER_BINDING 0x8A28
1425 #define GL_UNIFORM_BUFFER_START 0x8A29
1426 #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
1427 #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
1428 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
1429 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
1430 #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
1431 #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
1432 #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
1433 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
1434 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
1435 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1436 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1437 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1438 #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
1439 #define GL_UNIFORM_TYPE 0x8A37
1440 #define GL_UNIFORM_SIZE 0x8A38
1441 #define GL_UNIFORM_NAME_LENGTH 0x8A39
1442 #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
1443 #define GL_UNIFORM_OFFSET 0x8A3B
1444 #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
1445 #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
1446 #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
1447 #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
1448 #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
1449 #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
1450 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
1451 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1452 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
1453 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
1454 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1455 #define GL_INVALID_INDEX 0xFFFFFFFFu
1456 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
1457 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1458 typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
1459 typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
1460 typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1461 typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1462 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1463 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1464 typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
1465 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1466 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1467 typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
1468 #ifdef GL_GLEXT_PROTOTYPES
1469 GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
1470 GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
1471 GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
1472 GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
1473 GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
1474 GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
1475 GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
1476 GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
1477 GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
1478 GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
1479 GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
1480 GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
1481 #endif
1482 #endif /* GL_VERSION_3_1 */
1483 
1484 #ifndef GL_VERSION_3_2
1485 #define GL_VERSION_3_2 1
1486 typedef struct __GLsync *GLsync;
1487 #ifndef GLEXT_64_TYPES_DEFINED
1488 /* This code block is duplicated in glxext.h, so must be protected */
1489 #define GLEXT_64_TYPES_DEFINED
1490 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
1491 /* (as used in the GL_EXT_timer_query extension). */
1492 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
1493 #include <inttypes.h>
1494 #elif defined(__sun__) || defined(__digital__)
1495 #include <inttypes.h>
1496 #if defined(__STDC__)
1497 #if defined(__arch64__) || defined(_LP64)
1498 typedef long int int64_t;
1499 typedef unsigned long int uint64_t;
1500 #else
1501 typedef long long int int64_t;
1502 typedef unsigned long long int uint64_t;
1503 #endif /* __arch64__ */
1504 #endif /* __STDC__ */
1505 #elif defined( __VMS ) || defined(__sgi)
1506 #include <inttypes.h>
1507 #elif defined(__SCO__) || defined(__USLC__)
1508 #include <stdint.h>
1509 #elif defined(__UNIXOS2__) || defined(__SOL64__)
1510 typedef long int int32_t;
1511 typedef long long int int64_t;
1512 typedef unsigned long long int uint64_t;
1513 #elif defined(_WIN32) && defined(__GNUC__)
1514 #include <stdint.h>
1515 #elif defined(_WIN32)
1516 typedef __int32 int32_t;
1517 typedef __int64 int64_t;
1518 typedef unsigned __int64 uint64_t;
1519 #else
1520 /* Fallback if nothing above works */
1521 #include <inttypes.h>
1522 #endif
1523 #endif
1524 typedef uint64_t GLuint64;
1525 typedef int64_t GLint64;
1526 #define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
1527 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
1528 #define GL_LINES_ADJACENCY 0x000A
1529 #define GL_LINE_STRIP_ADJACENCY 0x000B
1530 #define GL_TRIANGLES_ADJACENCY 0x000C
1531 #define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
1532 #define GL_PROGRAM_POINT_SIZE 0x8642
1533 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
1534 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
1535 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
1536 #define GL_GEOMETRY_SHADER 0x8DD9
1537 #define GL_GEOMETRY_VERTICES_OUT 0x8916
1538 #define GL_GEOMETRY_INPUT_TYPE 0x8917
1539 #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
1540 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
1541 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
1542 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
1543 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
1544 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
1545 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
1546 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
1547 #define GL_CONTEXT_PROFILE_MASK 0x9126
1548 #define GL_DEPTH_CLAMP 0x864F
1549 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1550 #define GL_FIRST_VERTEX_CONVENTION 0x8E4D
1551 #define GL_LAST_VERTEX_CONVENTION 0x8E4E
1552 #define GL_PROVOKING_VERTEX 0x8E4F
1553 #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
1554 #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
1555 #define GL_OBJECT_TYPE 0x9112
1556 #define GL_SYNC_CONDITION 0x9113
1557 #define GL_SYNC_STATUS 0x9114
1558 #define GL_SYNC_FLAGS 0x9115
1559 #define GL_SYNC_FENCE 0x9116
1560 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
1561 #define GL_UNSIGNALED 0x9118
1562 #define GL_SIGNALED 0x9119
1563 #define GL_ALREADY_SIGNALED 0x911A
1564 #define GL_TIMEOUT_EXPIRED 0x911B
1565 #define GL_CONDITION_SATISFIED 0x911C
1566 #define GL_WAIT_FAILED 0x911D
1567 #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
1568 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
1569 #define GL_SAMPLE_POSITION 0x8E50
1570 #define GL_SAMPLE_MASK 0x8E51
1571 #define GL_SAMPLE_MASK_VALUE 0x8E52
1572 #define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
1573 #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
1574 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
1575 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
1576 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1577 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1578 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1579 #define GL_TEXTURE_SAMPLES 0x9106
1580 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1581 #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
1582 #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
1583 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1584 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
1585 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1586 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1587 #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
1588 #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
1589 #define GL_MAX_INTEGER_SAMPLES 0x9110
1590 typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1591 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1592 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1593 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1594 typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
1595 typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
1596 typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
1597 typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
1598 typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1599 typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
1600 typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
1601 typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1602 typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
1603 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
1604 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
1605 typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
1606 typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
1607 typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
1608 typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
1609 #ifdef GL_GLEXT_PROTOTYPES
1610 GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1611 GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
1612 GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
1613 GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
1614 GLAPI void APIENTRY glProvokingVertex (GLenum mode);
1615 GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
1616 GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
1617 GLAPI void APIENTRY glDeleteSync (GLsync sync);
1618 GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1619 GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
1620 GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
1621 GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
1622 GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
1623 GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
1624 GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
1625 GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
1626 GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
1627 GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
1628 GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
1629 #endif
1630 #endif /* GL_VERSION_3_2 */
1631 
1632 #ifndef GL_VERSION_3_3
1633 #define GL_VERSION_3_3 1
1634 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
1635 #define GL_SRC1_COLOR 0x88F9
1636 #define GL_ONE_MINUS_SRC1_COLOR 0x88FA
1637 #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
1638 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
1639 #define GL_ANY_SAMPLES_PASSED 0x8C2F
1640 #define GL_SAMPLER_BINDING 0x8919
1641 #define GL_RGB10_A2UI 0x906F
1642 #define GL_TEXTURE_SWIZZLE_R 0x8E42
1643 #define GL_TEXTURE_SWIZZLE_G 0x8E43
1644 #define GL_TEXTURE_SWIZZLE_B 0x8E44
1645 #define GL_TEXTURE_SWIZZLE_A 0x8E45
1646 #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
1647 #define GL_TIME_ELAPSED 0x88BF
1648 #define GL_TIMESTAMP 0x8E28
1649 #define GL_INT_2_10_10_10_REV 0x8D9F
1650 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1651 typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
1652 typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
1653 typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
1654 typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
1655 typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
1656 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
1657 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1658 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
1659 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
1660 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
1661 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
1662 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1663 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
1664 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
1665 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
1666 typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
1667 typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
1668 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
1669 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
1670 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1671 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1672 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1673 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1674 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1675 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1676 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1677 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1678 #ifdef GL_GLEXT_PROTOTYPES
1679 GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
1680 GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
1681 GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
1682 GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
1683 GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
1684 GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
1685 GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
1686 GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
1687 GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
1688 GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
1689 GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
1690 GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
1691 GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
1692 GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
1693 GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
1694 GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
1695 GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
1696 GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
1697 GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
1698 GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
1699 GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1700 GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1701 GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1702 GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1703 GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1704 GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1705 GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
1706 GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
1707 #endif
1708 #endif /* GL_VERSION_3_3 */
1709 
1710 #ifndef GL_VERSION_4_0
1711 #define GL_VERSION_4_0 1
1712 #define GL_SAMPLE_SHADING 0x8C36
1713 #define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
1714 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
1715 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
1716 #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
1717 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
1718 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
1719 #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
1720 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
1721 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
1722 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
1723 #define GL_DRAW_INDIRECT_BUFFER 0x8F3F
1724 #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
1725 #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
1726 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
1727 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
1728 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
1729 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
1730 #define GL_MAX_VERTEX_STREAMS 0x8E71
1731 #define GL_DOUBLE_VEC2 0x8FFC
1732 #define GL_DOUBLE_VEC3 0x8FFD
1733 #define GL_DOUBLE_VEC4 0x8FFE
1734 #define GL_DOUBLE_MAT2 0x8F46
1735 #define GL_DOUBLE_MAT3 0x8F47
1736 #define GL_DOUBLE_MAT4 0x8F48
1737 #define GL_DOUBLE_MAT2x3 0x8F49
1738 #define GL_DOUBLE_MAT2x4 0x8F4A
1739 #define GL_DOUBLE_MAT3x2 0x8F4B
1740 #define GL_DOUBLE_MAT3x4 0x8F4C
1741 #define GL_DOUBLE_MAT4x2 0x8F4D
1742 #define GL_DOUBLE_MAT4x3 0x8F4E
1743 #define GL_ACTIVE_SUBROUTINES 0x8DE5
1744 #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
1745 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
1746 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
1747 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
1748 #define GL_MAX_SUBROUTINES 0x8DE7
1749 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
1750 #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
1751 #define GL_COMPATIBLE_SUBROUTINES 0x8E4B
1752 #define GL_PATCHES 0x000E
1753 #define GL_PATCH_VERTICES 0x8E72
1754 #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
1755 #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
1756 #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
1757 #define GL_TESS_GEN_MODE 0x8E76
1758 #define GL_TESS_GEN_SPACING 0x8E77
1759 #define GL_TESS_GEN_VERTEX_ORDER 0x8E78
1760 #define GL_TESS_GEN_POINT_MODE 0x8E79
1761 #define GL_ISOLINES 0x8E7A
1762 #define GL_FRACTIONAL_ODD 0x8E7B
1763 #define GL_FRACTIONAL_EVEN 0x8E7C
1764 #define GL_MAX_PATCH_VERTICES 0x8E7D
1765 #define GL_MAX_TESS_GEN_LEVEL 0x8E7E
1766 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
1767 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
1768 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
1769 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
1770 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
1771 #define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
1772 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
1773 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
1774 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
1775 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
1776 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
1777 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
1778 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
1779 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
1780 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
1781 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
1782 #define GL_TESS_EVALUATION_SHADER 0x8E87
1783 #define GL_TESS_CONTROL_SHADER 0x8E88
1784 #define GL_TRANSFORM_FEEDBACK 0x8E22
1785 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
1786 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
1787 #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
1788 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
1789 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
1790 typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
1791 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1792 typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
1793 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1794 typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
1795 typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
1796 typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
1797 typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
1798 typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
1799 typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1800 typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1801 typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1802 typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1803 typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
1804 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1805 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1806 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1807 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1808 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1809 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1810 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1811 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1812 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1813 typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
1814 typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1815 typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
1816 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1817 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1818 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1819 typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
1820 typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
1821 typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1822 typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
1823 typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
1824 typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
1825 typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
1826 typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
1827 typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
1828 typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
1829 typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
1830 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
1831 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
1832 typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
1833 typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
1834 typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
1835 #ifdef GL_GLEXT_PROTOTYPES
1836 GLAPI void APIENTRY glMinSampleShading (GLfloat value);
1837 GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
1838 GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
1839 GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
1840 GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
1841 GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
1842 GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
1843 GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
1844 GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
1845 GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
1846 GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1847 GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
1848 GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
1849 GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
1850 GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
1851 GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1852 GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1853 GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1854 GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1855 GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1856 GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1857 GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1858 GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1859 GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1860 GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
1861 GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
1862 GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
1863 GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
1864 GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1865 GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
1866 GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
1867 GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
1868 GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
1869 GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
1870 GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
1871 GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
1872 GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
1873 GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
1874 GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
1875 GLAPI void APIENTRY glPauseTransformFeedback (void);
1876 GLAPI void APIENTRY glResumeTransformFeedback (void);
1877 GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
1878 GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
1879 GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
1880 GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
1881 GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
1882 #endif
1883 #endif /* GL_VERSION_4_0 */
1884 
1885 #ifndef GL_VERSION_4_1
1886 #define GL_VERSION_4_1 1
1887 #define GL_FIXED 0x140C
1888 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1889 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1890 #define GL_LOW_FLOAT 0x8DF0
1891 #define GL_MEDIUM_FLOAT 0x8DF1
1892 #define GL_HIGH_FLOAT 0x8DF2
1893 #define GL_LOW_INT 0x8DF3
1894 #define GL_MEDIUM_INT 0x8DF4
1895 #define GL_HIGH_INT 0x8DF5
1896 #define GL_SHADER_COMPILER 0x8DFA
1897 #define GL_SHADER_BINARY_FORMATS 0x8DF8
1898 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1899 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1900 #define GL_MAX_VARYING_VECTORS 0x8DFC
1901 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1902 #define GL_RGB565 0x8D62
1903 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
1904 #define GL_PROGRAM_BINARY_LENGTH 0x8741
1905 #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
1906 #define GL_PROGRAM_BINARY_FORMATS 0x87FF
1907 #define GL_VERTEX_SHADER_BIT 0x00000001
1908 #define GL_FRAGMENT_SHADER_BIT 0x00000002
1909 #define GL_GEOMETRY_SHADER_BIT 0x00000004
1910 #define GL_TESS_CONTROL_SHADER_BIT 0x00000008
1911 #define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
1912 #define GL_ALL_SHADER_BITS 0xFFFFFFFF
1913 #define GL_PROGRAM_SEPARABLE 0x8258
1914 #define GL_ACTIVE_PROGRAM 0x8259
1915 #define GL_PROGRAM_PIPELINE_BINDING 0x825A
1916 #define GL_MAX_VIEWPORTS 0x825B
1917 #define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
1918 #define GL_VIEWPORT_BOUNDS_RANGE 0x825D
1919 #define GL_LAYER_PROVOKING_VERTEX 0x825E
1920 #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
1921 #define GL_UNDEFINED_VERTEX 0x8260
1922 typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
1923 typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
1924 typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
1925 typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
1926 typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
1927 typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
1928 typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
1929 typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
1930 typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
1931 typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
1932 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
1933 typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
1934 typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
1935 typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
1936 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
1937 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
1938 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
1939 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1940 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
1941 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1942 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
1943 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1944 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
1945 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1946 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
1947 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1948 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
1949 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1950 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
1951 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1952 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
1953 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1954 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
1955 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1956 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
1957 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1958 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
1959 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1960 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
1961 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1962 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
1963 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
1964 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
1965 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
1966 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
1967 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
1968 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
1969 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
1970 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1971 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1972 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1973 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1974 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1975 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1976 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1977 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1978 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1979 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1980 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1981 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
1982 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1983 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1984 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1985 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1986 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1987 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
1988 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
1989 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
1990 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
1991 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
1992 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
1993 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
1994 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
1995 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
1996 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
1997 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
1998 typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
1999 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
2000 typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
2001 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
2002 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
2003 typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
2004 typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
2005 typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
2006 typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
2007 typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
2008 typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
2009 typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
2010 #ifdef GL_GLEXT_PROTOTYPES
2011 GLAPI void APIENTRY glReleaseShaderCompiler (void);
2012 GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
2013 GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
2014 GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
2015 GLAPI void APIENTRY glClearDepthf (GLfloat d);
2016 GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
2017 GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
2018 GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
2019 GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
2020 GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
2021 GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
2022 GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
2023 GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
2024 GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
2025 GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
2026 GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
2027 GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
2028 GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2029 GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
2030 GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2031 GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
2032 GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2033 GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
2034 GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2035 GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
2036 GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2037 GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
2038 GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2039 GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
2040 GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2041 GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
2042 GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2043 GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
2044 GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2045 GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2046 GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2047 GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
2048 GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2049 GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
2050 GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2051 GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2052 GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
2053 GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2054 GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
2055 GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
2056 GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
2057 GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
2058 GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
2059 GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2060 GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2061 GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2062 GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2063 GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2064 GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2065 GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2066 GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2067 GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2068 GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2069 GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2070 GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
2071 GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2072 GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2073 GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2074 GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2075 GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2076 GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
2077 GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
2078 GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2079 GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
2080 GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
2081 GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
2082 GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
2083 GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
2084 GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
2085 GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
2086 GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
2087 GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
2088 GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
2089 GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
2090 GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
2091 GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
2092 GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
2093 GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
2094 GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
2095 GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
2096 GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
2097 GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
2098 GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
2099 #endif
2100 #endif /* GL_VERSION_4_1 */
2101 
2102 #ifndef GL_VERSION_4_2
2103 #define GL_VERSION_4_2 1
2104 #define GL_COPY_READ_BUFFER_BINDING 0x8F36
2105 #define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
2106 #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
2107 #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
2108 #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
2109 #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
2110 #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
2111 #define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
2112 #define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
2113 #define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
2114 #define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
2115 #define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
2116 #define GL_NUM_SAMPLE_COUNTS 0x9380
2117 #define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
2118 #define GL_ATOMIC_COUNTER_BUFFER 0x92C0
2119 #define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
2120 #define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
2121 #define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
2122 #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
2123 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
2124 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
2125 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
2126 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
2127 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
2128 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
2129 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
2130 #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
2131 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
2132 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
2133 #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
2134 #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
2135 #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
2136 #define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
2137 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
2138 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
2139 #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
2140 #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
2141 #define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
2142 #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
2143 #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
2144 #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
2145 #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
2146 #define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
2147 #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
2148 #define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
2149 #define GL_UNIFORM_BARRIER_BIT 0x00000004
2150 #define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
2151 #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
2152 #define GL_COMMAND_BARRIER_BIT 0x00000040
2153 #define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
2154 #define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
2155 #define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
2156 #define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
2157 #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
2158 #define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
2159 #define GL_ALL_BARRIER_BITS 0xFFFFFFFF
2160 #define GL_MAX_IMAGE_UNITS 0x8F38
2161 #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
2162 #define GL_IMAGE_BINDING_NAME 0x8F3A
2163 #define GL_IMAGE_BINDING_LEVEL 0x8F3B
2164 #define GL_IMAGE_BINDING_LAYERED 0x8F3C
2165 #define GL_IMAGE_BINDING_LAYER 0x8F3D
2166 #define GL_IMAGE_BINDING_ACCESS 0x8F3E
2167 #define GL_IMAGE_1D 0x904C
2168 #define GL_IMAGE_2D 0x904D
2169 #define GL_IMAGE_3D 0x904E
2170 #define GL_IMAGE_2D_RECT 0x904F
2171 #define GL_IMAGE_CUBE 0x9050
2172 #define GL_IMAGE_BUFFER 0x9051
2173 #define GL_IMAGE_1D_ARRAY 0x9052
2174 #define GL_IMAGE_2D_ARRAY 0x9053
2175 #define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
2176 #define GL_IMAGE_2D_MULTISAMPLE 0x9055
2177 #define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
2178 #define GL_INT_IMAGE_1D 0x9057
2179 #define GL_INT_IMAGE_2D 0x9058
2180 #define GL_INT_IMAGE_3D 0x9059
2181 #define GL_INT_IMAGE_2D_RECT 0x905A
2182 #define GL_INT_IMAGE_CUBE 0x905B
2183 #define GL_INT_IMAGE_BUFFER 0x905C
2184 #define GL_INT_IMAGE_1D_ARRAY 0x905D
2185 #define GL_INT_IMAGE_2D_ARRAY 0x905E
2186 #define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
2187 #define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
2188 #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
2189 #define GL_UNSIGNED_INT_IMAGE_1D 0x9062
2190 #define GL_UNSIGNED_INT_IMAGE_2D 0x9063
2191 #define GL_UNSIGNED_INT_IMAGE_3D 0x9064
2192 #define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
2193 #define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
2194 #define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
2195 #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
2196 #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
2197 #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
2198 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
2199 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
2200 #define GL_MAX_IMAGE_SAMPLES 0x906D
2201 #define GL_IMAGE_BINDING_FORMAT 0x906E
2202 #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
2203 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
2204 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
2205 #define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
2206 #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
2207 #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
2208 #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
2209 #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
2210 #define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
2211 #define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C
2212 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
2213 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
2214 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
2215 #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
2216 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
2217 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
2218 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
2219 typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
2220 typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
2221 typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
2222 typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
2223 typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
2224 typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2225 typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2226 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
2227 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
2228 #ifdef GL_GLEXT_PROTOTYPES
2229 GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
2230 GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
2231 GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
2232 GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
2233 GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
2234 GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
2235 GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
2236 GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
2237 GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
2238 GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
2239 GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
2240 GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
2241 #endif
2242 #endif /* GL_VERSION_4_2 */
2243 
2244 #ifndef GL_VERSION_4_3
2245 #define GL_VERSION_4_3 1
2246 typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
2247 #define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
2248 #define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
2249 #define GL_COMPRESSED_RGB8_ETC2 0x9274
2250 #define GL_COMPRESSED_SRGB8_ETC2 0x9275
2251 #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
2252 #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
2253 #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
2254 #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
2255 #define GL_COMPRESSED_R11_EAC 0x9270
2256 #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
2257 #define GL_COMPRESSED_RG11_EAC 0x9272
2258 #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
2259 #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
2260 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
2261 #define GL_MAX_ELEMENT_INDEX 0x8D6B
2262 #define GL_COMPUTE_SHADER 0x91B9
2263 #define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
2264 #define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
2265 #define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
2266 #define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
2267 #define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
2268 #define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
2269 #define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
2270 #define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
2271 #define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
2272 #define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
2273 #define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
2274 #define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
2275 #define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
2276 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
2277 #define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
2278 #define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
2279 #define GL_COMPUTE_SHADER_BIT 0x00000020
2280 #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
2281 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
2282 #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
2283 #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
2284 #define GL_DEBUG_SOURCE_API 0x8246
2285 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
2286 #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
2287 #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
2288 #define GL_DEBUG_SOURCE_APPLICATION 0x824A
2289 #define GL_DEBUG_SOURCE_OTHER 0x824B
2290 #define GL_DEBUG_TYPE_ERROR 0x824C
2291 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
2292 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
2293 #define GL_DEBUG_TYPE_PORTABILITY 0x824F
2294 #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
2295 #define GL_DEBUG_TYPE_OTHER 0x8251
2296 #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
2297 #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
2298 #define GL_DEBUG_LOGGED_MESSAGES 0x9145
2299 #define GL_DEBUG_SEVERITY_HIGH 0x9146
2300 #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
2301 #define GL_DEBUG_SEVERITY_LOW 0x9148
2302 #define GL_DEBUG_TYPE_MARKER 0x8268
2303 #define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
2304 #define GL_DEBUG_TYPE_POP_GROUP 0x826A
2305 #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
2306 #define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
2307 #define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
2308 #define GL_BUFFER 0x82E0
2309 #define GL_SHADER 0x82E1
2310 #define GL_PROGRAM 0x82E2
2311 #define GL_QUERY 0x82E3
2312 #define GL_PROGRAM_PIPELINE 0x82E4
2313 #define GL_SAMPLER 0x82E6
2314 #define GL_MAX_LABEL_LENGTH 0x82E8
2315 #define GL_DEBUG_OUTPUT 0x92E0
2316 #define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
2317 #define GL_MAX_UNIFORM_LOCATIONS 0x826E
2318 #define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
2319 #define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
2320 #define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
2321 #define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
2322 #define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
2323 #define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
2324 #define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
2325 #define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
2326 #define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
2327 #define GL_INTERNALFORMAT_SUPPORTED 0x826F
2328 #define GL_INTERNALFORMAT_PREFERRED 0x8270
2329 #define GL_INTERNALFORMAT_RED_SIZE 0x8271
2330 #define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
2331 #define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
2332 #define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
2333 #define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
2334 #define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
2335 #define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
2336 #define GL_INTERNALFORMAT_RED_TYPE 0x8278
2337 #define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
2338 #define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
2339 #define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
2340 #define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
2341 #define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
2342 #define GL_MAX_WIDTH 0x827E
2343 #define GL_MAX_HEIGHT 0x827F
2344 #define GL_MAX_DEPTH 0x8280
2345 #define GL_MAX_LAYERS 0x8281
2346 #define GL_MAX_COMBINED_DIMENSIONS 0x8282
2347 #define GL_COLOR_COMPONENTS 0x8283
2348 #define GL_DEPTH_COMPONENTS 0x8284
2349 #define GL_STENCIL_COMPONENTS 0x8285
2350 #define GL_COLOR_RENDERABLE 0x8286
2351 #define GL_DEPTH_RENDERABLE 0x8287
2352 #define GL_STENCIL_RENDERABLE 0x8288
2353 #define GL_FRAMEBUFFER_RENDERABLE 0x8289
2354 #define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
2355 #define GL_FRAMEBUFFER_BLEND 0x828B
2356 #define GL_READ_PIXELS 0x828C
2357 #define GL_READ_PIXELS_FORMAT 0x828D
2358 #define GL_READ_PIXELS_TYPE 0x828E
2359 #define GL_TEXTURE_IMAGE_FORMAT 0x828F
2360 #define GL_TEXTURE_IMAGE_TYPE 0x8290
2361 #define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
2362 #define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
2363 #define GL_MIPMAP 0x8293
2364 #define GL_MANUAL_GENERATE_MIPMAP 0x8294
2365 #define GL_AUTO_GENERATE_MIPMAP 0x8295
2366 #define GL_COLOR_ENCODING 0x8296
2367 #define GL_SRGB_READ 0x8297
2368 #define GL_SRGB_WRITE 0x8298
2369 #define GL_FILTER 0x829A
2370 #define GL_VERTEX_TEXTURE 0x829B
2371 #define GL_TESS_CONTROL_TEXTURE 0x829C
2372 #define GL_TESS_EVALUATION_TEXTURE 0x829D
2373 #define GL_GEOMETRY_TEXTURE 0x829E
2374 #define GL_FRAGMENT_TEXTURE 0x829F
2375 #define GL_COMPUTE_TEXTURE 0x82A0
2376 #define GL_TEXTURE_SHADOW 0x82A1
2377 #define GL_TEXTURE_GATHER 0x82A2
2378 #define GL_TEXTURE_GATHER_SHADOW 0x82A3
2379 #define GL_SHADER_IMAGE_LOAD 0x82A4
2380 #define GL_SHADER_IMAGE_STORE 0x82A5
2381 #define GL_SHADER_IMAGE_ATOMIC 0x82A6
2382 #define GL_IMAGE_TEXEL_SIZE 0x82A7
2383 #define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
2384 #define GL_IMAGE_PIXEL_FORMAT 0x82A9
2385 #define GL_IMAGE_PIXEL_TYPE 0x82AA
2386 #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
2387 #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
2388 #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
2389 #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
2390 #define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
2391 #define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
2392 #define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
2393 #define GL_CLEAR_BUFFER 0x82B4
2394 #define GL_TEXTURE_VIEW 0x82B5
2395 #define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
2396 #define GL_FULL_SUPPORT 0x82B7
2397 #define GL_CAVEAT_SUPPORT 0x82B8
2398 #define GL_IMAGE_CLASS_4_X_32 0x82B9
2399 #define GL_IMAGE_CLASS_2_X_32 0x82BA
2400 #define GL_IMAGE_CLASS_1_X_32 0x82BB
2401 #define GL_IMAGE_CLASS_4_X_16 0x82BC
2402 #define GL_IMAGE_CLASS_2_X_16 0x82BD
2403 #define GL_IMAGE_CLASS_1_X_16 0x82BE
2404 #define GL_IMAGE_CLASS_4_X_8 0x82BF
2405 #define GL_IMAGE_CLASS_2_X_8 0x82C0
2406 #define GL_IMAGE_CLASS_1_X_8 0x82C1
2407 #define GL_IMAGE_CLASS_11_11_10 0x82C2
2408 #define GL_IMAGE_CLASS_10_10_10_2 0x82C3
2409 #define GL_VIEW_CLASS_128_BITS 0x82C4
2410 #define GL_VIEW_CLASS_96_BITS 0x82C5
2411 #define GL_VIEW_CLASS_64_BITS 0x82C6
2412 #define GL_VIEW_CLASS_48_BITS 0x82C7
2413 #define GL_VIEW_CLASS_32_BITS 0x82C8
2414 #define GL_VIEW_CLASS_24_BITS 0x82C9
2415 #define GL_VIEW_CLASS_16_BITS 0x82CA
2416 #define GL_VIEW_CLASS_8_BITS 0x82CB
2417 #define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
2418 #define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
2419 #define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
2420 #define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
2421 #define GL_VIEW_CLASS_RGTC1_RED 0x82D0
2422 #define GL_VIEW_CLASS_RGTC2_RG 0x82D1
2423 #define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
2424 #define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
2425 #define GL_UNIFORM 0x92E1
2426 #define GL_UNIFORM_BLOCK 0x92E2
2427 #define GL_PROGRAM_INPUT 0x92E3
2428 #define GL_PROGRAM_OUTPUT 0x92E4
2429 #define GL_BUFFER_VARIABLE 0x92E5
2430 #define GL_SHADER_STORAGE_BLOCK 0x92E6
2431 #define GL_VERTEX_SUBROUTINE 0x92E8
2432 #define GL_TESS_CONTROL_SUBROUTINE 0x92E9
2433 #define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
2434 #define GL_GEOMETRY_SUBROUTINE 0x92EB
2435 #define GL_FRAGMENT_SUBROUTINE 0x92EC
2436 #define GL_COMPUTE_SUBROUTINE 0x92ED
2437 #define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
2438 #define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
2439 #define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
2440 #define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
2441 #define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
2442 #define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
2443 #define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
2444 #define GL_ACTIVE_RESOURCES 0x92F5
2445 #define GL_MAX_NAME_LENGTH 0x92F6
2446 #define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
2447 #define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
2448 #define GL_NAME_LENGTH 0x92F9
2449 #define GL_TYPE 0x92FA
2450 #define GL_ARRAY_SIZE 0x92FB
2451 #define GL_OFFSET 0x92FC
2452 #define GL_BLOCK_INDEX 0x92FD
2453 #define GL_ARRAY_STRIDE 0x92FE
2454 #define GL_MATRIX_STRIDE 0x92FF
2455 #define GL_IS_ROW_MAJOR 0x9300
2456 #define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
2457 #define GL_BUFFER_BINDING 0x9302
2458 #define GL_BUFFER_DATA_SIZE 0x9303
2459 #define GL_NUM_ACTIVE_VARIABLES 0x9304
2460 #define GL_ACTIVE_VARIABLES 0x9305
2461 #define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
2462 #define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
2463 #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
2464 #define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
2465 #define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
2466 #define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
2467 #define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
2468 #define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
2469 #define GL_LOCATION 0x930E
2470 #define GL_LOCATION_INDEX 0x930F
2471 #define GL_IS_PER_PATCH 0x92E7
2472 #define GL_SHADER_STORAGE_BUFFER 0x90D2
2473 #define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
2474 #define GL_SHADER_STORAGE_BUFFER_START 0x90D4
2475 #define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
2476 #define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
2477 #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
2478 #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
2479 #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
2480 #define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
2481 #define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
2482 #define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
2483 #define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
2484 #define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
2485 #define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
2486 #define GL_SHADER_STORAGE_BARRIER_BIT 0x00002000
2487 #define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
2488 #define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
2489 #define GL_TEXTURE_BUFFER_OFFSET 0x919D
2490 #define GL_TEXTURE_BUFFER_SIZE 0x919E
2491 #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
2492 #define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
2493 #define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
2494 #define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
2495 #define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
2496 #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
2497 #define GL_VERTEX_ATTRIB_BINDING 0x82D4
2498 #define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
2499 #define GL_VERTEX_BINDING_DIVISOR 0x82D6
2500 #define GL_VERTEX_BINDING_OFFSET 0x82D7
2501 #define GL_VERTEX_BINDING_STRIDE 0x82D8
2502 #define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
2503 #define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
2504 #define GL_VERTEX_BINDING_BUFFER 0x8F4F
2505 typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
2506 typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
2507 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
2508 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
2509 typedef 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);
2510 typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
2511 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
2512 typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
2513 typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
2514 typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
2515 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
2516 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
2517 typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
2518 typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2519 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
2520 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
2521 typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
2522 typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2523 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
2524 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
2525 typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2526 typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
2527 typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
2528 typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
2529 typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2530 typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2531 typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
2532 typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2533 typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2534 typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2535 typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2536 typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
2537 typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
2538 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
2539 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
2540 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
2541 typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
2542 typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
2543 typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
2544 typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
2545 typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
2546 typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
2547 typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
2548 #ifdef GL_GLEXT_PROTOTYPES
2549 GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
2550 GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
2551 GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
2552 GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
2553 GLAPI 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);
2554 GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
2555 GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
2556 GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
2557 GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
2558 GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
2559 GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
2560 GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
2561 GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
2562 GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
2563 GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
2564 GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
2565 GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
2566 GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
2567 GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
2568 GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
2569 GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
2570 GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
2571 GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
2572 GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
2573 GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
2574 GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
2575 GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
2576 GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
2577 GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
2578 GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2579 GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
2580 GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
2581 GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
2582 GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
2583 GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
2584 GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
2585 GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
2586 GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
2587 GLAPI void APIENTRY glPopDebugGroup (void);
2588 GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
2589 GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
2590 GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
2591 GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
2592 #endif
2593 #endif /* GL_VERSION_4_3 */
2594 
2595 #ifndef GL_VERSION_4_4
2596 #define GL_VERSION_4_4 1
2597 #define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5
2598 #define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
2599 #define GL_TEXTURE_BUFFER_BINDING 0x8C2A
2600 #define GL_MAP_PERSISTENT_BIT 0x0040
2601 #define GL_MAP_COHERENT_BIT 0x0080
2602 #define GL_DYNAMIC_STORAGE_BIT 0x0100
2603 #define GL_CLIENT_STORAGE_BIT 0x0200
2604 #define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
2605 #define GL_BUFFER_IMMUTABLE_STORAGE 0x821F
2606 #define GL_BUFFER_STORAGE_FLAGS 0x8220
2607 #define GL_CLEAR_TEXTURE 0x9365
2608 #define GL_LOCATION_COMPONENT 0x934A
2609 #define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
2610 #define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
2611 #define GL_QUERY_BUFFER 0x9192
2612 #define GL_QUERY_BUFFER_BARRIER_BIT 0x00008000
2613 #define GL_QUERY_BUFFER_BINDING 0x9193
2614 #define GL_QUERY_RESULT_NO_WAIT 0x9194
2615 #define GL_MIRROR_CLAMP_TO_EDGE 0x8743
2616 typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
2617 typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
2618 typedef 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);
2619 typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
2620 typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
2621 typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
2622 typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
2623 typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
2624 typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2625 #ifdef GL_GLEXT_PROTOTYPES
2626 GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
2627 GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
2628 GLAPI 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);
2629 GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
2630 GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
2631 GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
2632 GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
2633 GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
2634 GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
2635 #endif
2636 #endif /* GL_VERSION_4_4 */
2637 
2638 #ifndef GL_VERSION_4_5
2639 #define GL_VERSION_4_5 1
2640 #define GL_CONTEXT_LOST 0x0507
2641 #define GL_NEGATIVE_ONE_TO_ONE 0x935E
2642 #define GL_ZERO_TO_ONE 0x935F
2643 #define GL_CLIP_ORIGIN 0x935C
2644 #define GL_CLIP_DEPTH_MODE 0x935D
2645 #define GL_QUERY_WAIT_INVERTED 0x8E17
2646 #define GL_QUERY_NO_WAIT_INVERTED 0x8E18
2647 #define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8E19
2648 #define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8E1A
2649 #define GL_MAX_CULL_DISTANCES 0x82F9
2650 #define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82FA
2651 #define GL_TEXTURE_TARGET 0x1006
2652 #define GL_QUERY_TARGET 0x82EA
2653 #define GL_GUILTY_CONTEXT_RESET 0x8253
2654 #define GL_INNOCENT_CONTEXT_RESET 0x8254
2655 #define GL_UNKNOWN_CONTEXT_RESET 0x8255
2656 #define GL_RESET_NOTIFICATION_STRATEGY 0x8256
2657 #define GL_LOSE_CONTEXT_ON_RESET 0x8252
2658 #define GL_NO_RESET_NOTIFICATION 0x8261
2659 #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x00000004
2660 #define GL_CONTEXT_RELEASE_BEHAVIOR 0x82FB
2661 #define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
2662 typedef void (APIENTRYP PFNGLCLIPCONTROLPROC) (GLenum origin, GLenum depth);
2663 typedef void (APIENTRYP PFNGLCREATETRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
2664 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC) (GLuint xfb, GLuint index, GLuint buffer);
2665 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC) (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
2666 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKIVPROC) (GLuint xfb, GLenum pname, GLint *param);
2667 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint *param);
2668 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKI64_VPROC) (GLuint xfb, GLenum pname, GLuint index, GLint64 *param);
2669 typedef void (APIENTRYP PFNGLCREATEBUFFERSPROC) (GLsizei n, GLuint *buffers);
2670 typedef void (APIENTRYP PFNGLNAMEDBUFFERSTORAGEPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLbitfield flags);
2671 typedef void (APIENTRYP PFNGLNAMEDBUFFERDATAPROC) (GLuint buffer, GLsizeiptr size, const void *data, GLenum usage);
2672 typedef void (APIENTRYP PFNGLNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, const void *data);
2673 typedef void (APIENTRYP PFNGLCOPYNAMEDBUFFERSUBDATAPROC) (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
2674 typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
2675 typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
2676 typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access);
2677 typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
2678 typedef GLboolean (APIENTRYP PFNGLUNMAPNAMEDBUFFERPROC) (GLuint buffer);
2679 typedef void (APIENTRYP PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
2680 typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERIVPROC) (GLuint buffer, GLenum pname, GLint *params);
2681 typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPARAMETERI64VPROC) (GLuint buffer, GLenum pname, GLint64 *params);
2682 typedef void (APIENTRYP PFNGLGETNAMEDBUFFERPOINTERVPROC) (GLuint buffer, GLenum pname, void **params);
2683 typedef void (APIENTRYP PFNGLGETNAMEDBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data);
2684 typedef void (APIENTRYP PFNGLCREATEFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
2685 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC) (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
2686 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC) (GLuint framebuffer, GLenum pname, GLint param);
2687 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTUREPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level);
2688 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC) (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level, GLint layer);
2689 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC) (GLuint framebuffer, GLenum buf);
2690