source: opengl-game/glcorearb.h@ 4e0b82b

feature/imgui-sdl points-test
Last change on this file since 4e0b82b was 4e0b82b, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago

Add an ImGui example project

  • Property mode set to 100644
File size: 248.3 KB
Line 
1#ifndef __glcorearb_h_
2#define __glcorearb_h_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8 /*
9 ** Copyright (c) 2007-2012 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 /* glcorearb.h replaces gl3.h. It is for use with OpenGL core
32 * profile implementations.
33 *
34 * glcorearb.h last updated on $Date: 2012-09-19 19:02:24 -0700 (Wed, 19 Sep 2012) $
35 *
36 * RELEASE NOTES - 2012/09/19
37 *
38 * glcorearb.h should be placed in the same directory as gl.h and
39 * included as
40 * '<GL/glcorearb.h>'.
41 *
42 * glcorearb.h includes only APIs in the latest OpenGL core profile
43 * implementation together with APIs in newer ARB extensions which can be
44 * can be supported by the core profile. It does not, and never will
45 * include functionality removed from the core profile, such as
46 * fixed-function vertex and fragment processing.
47 *
48 * It is not possible to #include both <GL/glcorearb.h> and either of
49 * <GL/gl.h> or <GL/glext.h> in the same source file.
50 *
51 * Feedback can be given by registering for the Khronos Bugzilla
52 * (www.khronos.org/bugzilla) and filing issues there under product
53 * "OpenGL", category "Registry".
54 */
55
56 /* Function declaration macros - to move into glplatform.h */
57
58#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
59#define WIN32_LEAN_AND_MEAN 1
60#include <windows.h>
61#endif
62
63#ifndef APIENTRY
64#define APIENTRY
65#endif
66#ifndef APIENTRYP
67#define APIENTRYP APIENTRY *
68#endif
69#ifndef GLAPI
70#define GLAPI extern
71#endif
72
73 /* Base GL types */
74
75 typedef unsigned int GLenum;
76 typedef unsigned char GLboolean;
77 typedef unsigned int GLbitfield;
78 typedef signed char GLbyte;
79 typedef short GLshort;
80 typedef int GLint;
81 typedef int GLsizei;
82 typedef unsigned char GLubyte;
83 typedef unsigned short GLushort;
84 typedef unsigned int GLuint;
85 typedef unsigned short GLhalf;
86 typedef float GLfloat;
87 typedef float GLclampf;
88 typedef double GLdouble;
89 typedef double GLclampd;
90 typedef void GLvoid;
91
92 /*************************************************************/
93
94#ifndef GL_VERSION_1_1
95 /* AttribMask */
96#define GL_DEPTH_BUFFER_BIT 0x00000100
97#define GL_STENCIL_BUFFER_BIT 0x00000400
98#define GL_COLOR_BUFFER_BIT 0x00004000
99 /* Boolean */
100#define GL_FALSE 0
101#define GL_TRUE 1
102 /* BeginMode */
103#define GL_POINTS 0x0000
104#define GL_LINES 0x0001
105#define GL_LINE_LOOP 0x0002
106#define GL_LINE_STRIP 0x0003
107#define GL_TRIANGLES 0x0004
108#define GL_TRIANGLE_STRIP 0x0005
109#define GL_TRIANGLE_FAN 0x0006
110#define GL_QUADS 0x0007
111 /* AlphaFunction */
112#define GL_NEVER 0x0200
113#define GL_LESS 0x0201
114#define GL_EQUAL 0x0202
115#define GL_LEQUAL 0x0203
116#define GL_GREATER 0x0204
117#define GL_NOTEQUAL 0x0205
118#define GL_GEQUAL 0x0206
119#define GL_ALWAYS 0x0207
120 /* BlendingFactorDest */
121#define GL_ZERO 0
122#define GL_ONE 1
123#define GL_SRC_COLOR 0x0300
124#define GL_ONE_MINUS_SRC_COLOR 0x0301
125#define GL_SRC_ALPHA 0x0302
126#define GL_ONE_MINUS_SRC_ALPHA 0x0303
127#define GL_DST_ALPHA 0x0304
128#define GL_ONE_MINUS_DST_ALPHA 0x0305
129 /* BlendingFactorSrc */
130#define GL_DST_COLOR 0x0306
131#define GL_ONE_MINUS_DST_COLOR 0x0307
132#define GL_SRC_ALPHA_SATURATE 0x0308
133 /* DrawBufferMode */
134#define GL_NONE 0
135#define GL_FRONT_LEFT 0x0400
136#define GL_FRONT_RIGHT 0x0401
137#define GL_BACK_LEFT 0x0402
138#define GL_BACK_RIGHT 0x0403
139#define GL_FRONT 0x0404
140#define GL_BACK 0x0405
141#define GL_LEFT 0x0406
142#define GL_RIGHT 0x0407
143#define GL_FRONT_AND_BACK 0x0408
144 /* ErrorCode */
145#define GL_NO_ERROR 0
146#define GL_INVALID_ENUM 0x0500
147#define GL_INVALID_VALUE 0x0501
148#define GL_INVALID_OPERATION 0x0502
149#define GL_OUT_OF_MEMORY 0x0505
150 /* FrontFaceDirection */
151#define GL_CW 0x0900
152#define GL_CCW 0x0901
153 /* GetPName */
154#define GL_POINT_SIZE 0x0B11
155#define GL_POINT_SIZE_RANGE 0x0B12
156#define GL_POINT_SIZE_GRANULARITY 0x0B13
157#define GL_LINE_SMOOTH 0x0B20
158#define GL_LINE_WIDTH 0x0B21
159#define GL_LINE_WIDTH_RANGE 0x0B22
160#define GL_LINE_WIDTH_GRANULARITY 0x0B23
161#define GL_POLYGON_MODE 0x0B40
162#define GL_POLYGON_SMOOTH 0x0B41
163#define GL_CULL_FACE 0x0B44
164#define GL_CULL_FACE_MODE 0x0B45
165#define GL_FRONT_FACE 0x0B46
166#define GL_DEPTH_RANGE 0x0B70
167#define GL_DEPTH_TEST 0x0B71
168#define GL_DEPTH_WRITEMASK 0x0B72
169#define GL_DEPTH_CLEAR_VALUE 0x0B73
170#define GL_DEPTH_FUNC 0x0B74
171#define GL_STENCIL_TEST 0x0B90
172#define GL_STENCIL_CLEAR_VALUE 0x0B91
173#define GL_STENCIL_FUNC 0x0B92
174#define GL_STENCIL_VALUE_MASK 0x0B93
175#define GL_STENCIL_FAIL 0x0B94
176#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
177#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
178#define GL_STENCIL_REF 0x0B97
179#define GL_STENCIL_WRITEMASK 0x0B98
180#define GL_VIEWPORT 0x0BA2
181#define GL_DITHER 0x0BD0
182#define GL_BLEND_DST 0x0BE0
183#define GL_BLEND_SRC 0x0BE1
184#define GL_BLEND 0x0BE2
185#define GL_LOGIC_OP_MODE 0x0BF0
186#define GL_COLOR_LOGIC_OP 0x0BF2
187#define GL_DRAW_BUFFER 0x0C01
188#define GL_READ_BUFFER 0x0C02
189#define GL_SCISSOR_BOX 0x0C10
190#define GL_SCISSOR_TEST 0x0C11
191#define GL_COLOR_CLEAR_VALUE 0x0C22
192#define GL_COLOR_WRITEMASK 0x0C23
193#define GL_DOUBLEBUFFER 0x0C32
194#define GL_STEREO 0x0C33
195#define GL_LINE_SMOOTH_HINT 0x0C52
196#define GL_POLYGON_SMOOTH_HINT 0x0C53
197#define GL_UNPACK_SWAP_BYTES 0x0CF0
198#define GL_UNPACK_LSB_FIRST 0x0CF1
199#define GL_UNPACK_ROW_LENGTH 0x0CF2
200#define GL_UNPACK_SKIP_ROWS 0x0CF3
201#define GL_UNPACK_SKIP_PIXELS 0x0CF4
202#define GL_UNPACK_ALIGNMENT 0x0CF5
203#define GL_PACK_SWAP_BYTES 0x0D00
204#define GL_PACK_LSB_FIRST 0x0D01
205#define GL_PACK_ROW_LENGTH 0x0D02
206#define GL_PACK_SKIP_ROWS 0x0D03
207#define GL_PACK_SKIP_PIXELS 0x0D04
208#define GL_PACK_ALIGNMENT 0x0D05
209#define GL_MAX_TEXTURE_SIZE 0x0D33
210#define GL_MAX_VIEWPORT_DIMS 0x0D3A
211#define GL_SUBPIXEL_BITS 0x0D50
212#define GL_TEXTURE_1D 0x0DE0
213#define GL_TEXTURE_2D 0x0DE1
214#define GL_POLYGON_OFFSET_UNITS 0x2A00
215#define GL_POLYGON_OFFSET_POINT 0x2A01
216#define GL_POLYGON_OFFSET_LINE 0x2A02
217#define GL_POLYGON_OFFSET_FILL 0x8037
218#define GL_POLYGON_OFFSET_FACTOR 0x8038
219#define GL_TEXTURE_BINDING_1D 0x8068
220#define GL_TEXTURE_BINDING_2D 0x8069
221 /* GetTextureParameter */
222#define GL_TEXTURE_WIDTH 0x1000
223#define GL_TEXTURE_HEIGHT 0x1001
224#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
225#define GL_TEXTURE_BORDER_COLOR 0x1004
226#define GL_TEXTURE_RED_SIZE 0x805C
227#define GL_TEXTURE_GREEN_SIZE 0x805D
228#define GL_TEXTURE_BLUE_SIZE 0x805E
229#define GL_TEXTURE_ALPHA_SIZE 0x805F
230 /* HintMode */
231#define GL_DONT_CARE 0x1100
232#define GL_FASTEST 0x1101
233#define GL_NICEST 0x1102
234 /* DataType */
235#define GL_BYTE 0x1400
236#define GL_UNSIGNED_BYTE 0x1401
237#define GL_SHORT 0x1402
238#define GL_UNSIGNED_SHORT 0x1403
239#define GL_INT 0x1404
240#define GL_UNSIGNED_INT 0x1405
241#define GL_FLOAT 0x1406
242#define GL_DOUBLE 0x140A
243 /* ErrorCode */
244#define GL_STACK_OVERFLOW 0x0503
245#define GL_STACK_UNDERFLOW 0x0504
246 /* LogicOp */
247#define GL_CLEAR 0x1500
248#define GL_AND 0x1501
249#define GL_AND_REVERSE 0x1502
250#define GL_COPY 0x1503
251#define GL_AND_INVERTED 0x1504
252#define GL_NOOP 0x1505
253#define GL_XOR 0x1506
254#define GL_OR 0x1507
255#define GL_NOR 0x1508
256#define GL_EQUIV 0x1509
257#define GL_INVERT 0x150A
258#define GL_OR_REVERSE 0x150B
259#define GL_COPY_INVERTED 0x150C
260#define GL_OR_INVERTED 0x150D
261#define GL_NAND 0x150E
262#define GL_SET 0x150F
263 /* MatrixMode (for gl3.h, FBO attachment type) */
264#define GL_TEXTURE 0x1702
265 /* PixelCopyType */
266#define GL_COLOR 0x1800
267#define GL_DEPTH 0x1801
268#define GL_STENCIL 0x1802
269 /* PixelFormat */
270#define GL_STENCIL_INDEX 0x1901
271#define GL_DEPTH_COMPONENT 0x1902
272#define GL_RED 0x1903
273#define GL_GREEN 0x1904
274#define GL_BLUE 0x1905
275#define GL_ALPHA 0x1906
276#define GL_RGB 0x1907
277#define GL_RGBA 0x1908
278 /* PolygonMode */
279#define GL_POINT 0x1B00
280#define GL_LINE 0x1B01
281#define GL_FILL 0x1B02
282 /* StencilOp */
283#define GL_KEEP 0x1E00
284#define GL_REPLACE 0x1E01
285#define GL_INCR 0x1E02
286#define GL_DECR 0x1E03
287 /* StringName */
288#define GL_VENDOR 0x1F00
289#define GL_RENDERER 0x1F01
290#define GL_VERSION 0x1F02
291#define GL_EXTENSIONS 0x1F03
292 /* TextureMagFilter */
293#define GL_NEAREST 0x2600
294#define GL_LINEAR 0x2601
295 /* TextureMinFilter */
296#define GL_NEAREST_MIPMAP_NEAREST 0x2700
297#define GL_LINEAR_MIPMAP_NEAREST 0x2701
298#define GL_NEAREST_MIPMAP_LINEAR 0x2702
299#define GL_LINEAR_MIPMAP_LINEAR 0x2703
300 /* TextureParameterName */
301#define GL_TEXTURE_MAG_FILTER 0x2800
302#define GL_TEXTURE_MIN_FILTER 0x2801
303#define GL_TEXTURE_WRAP_S 0x2802
304#define GL_TEXTURE_WRAP_T 0x2803
305 /* TextureTarget */
306#define GL_PROXY_TEXTURE_1D 0x8063
307#define GL_PROXY_TEXTURE_2D 0x8064
308 /* TextureWrapMode */
309#define GL_REPEAT 0x2901
310 /* PixelInternalFormat */
311#define GL_R3_G3_B2 0x2A10
312#define GL_RGB4 0x804F
313#define GL_RGB5 0x8050
314#define GL_RGB8 0x8051
315#define GL_RGB10 0x8052
316#define GL_RGB12 0x8053
317#define GL_RGB16 0x8054
318#define GL_RGBA2 0x8055
319#define GL_RGBA4 0x8056
320#define GL_RGB5_A1 0x8057
321#define GL_RGBA8 0x8058
322#define GL_RGB10_A2 0x8059
323#define GL_RGBA12 0x805A
324#define GL_RGBA16 0x805B
325#endif
326
327#ifndef GL_VERSION_1_2
328#define GL_UNSIGNED_BYTE_3_3_2 0x8032
329#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
330#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
331#define GL_UNSIGNED_INT_8_8_8_8 0x8035
332#define GL_UNSIGNED_INT_10_10_10_2 0x8036
333#define GL_TEXTURE_BINDING_3D 0x806A
334#define GL_PACK_SKIP_IMAGES 0x806B
335#define GL_PACK_IMAGE_HEIGHT 0x806C
336#define GL_UNPACK_SKIP_IMAGES 0x806D
337#define GL_UNPACK_IMAGE_HEIGHT 0x806E
338#define GL_TEXTURE_3D 0x806F
339#define GL_PROXY_TEXTURE_3D 0x8070
340#define GL_TEXTURE_DEPTH 0x8071
341#define GL_TEXTURE_WRAP_R 0x8072
342#define GL_MAX_3D_TEXTURE_SIZE 0x8073
343#define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
344#define GL_UNSIGNED_SHORT_5_6_5 0x8363
345#define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
346#define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
347#define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
348#define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
349#define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
350#define GL_BGR 0x80E0
351#define GL_BGRA 0x80E1
352#define GL_MAX_ELEMENTS_VERTICES 0x80E8
353#define GL_MAX_ELEMENTS_INDICES 0x80E9
354#define GL_CLAMP_TO_EDGE 0x812F
355#define GL_TEXTURE_MIN_LOD 0x813A
356#define GL_TEXTURE_MAX_LOD 0x813B
357#define GL_TEXTURE_BASE_LEVEL 0x813C
358#define GL_TEXTURE_MAX_LEVEL 0x813D
359#define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
360#define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
361#define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
362#define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
363#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
364#endif
365
366#ifndef GL_ARB_imaging
367#define GL_CONSTANT_COLOR 0x8001
368#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
369#define GL_CONSTANT_ALPHA 0x8003
370#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
371#define GL_BLEND_COLOR 0x8005
372#define GL_FUNC_ADD 0x8006
373#define GL_MIN 0x8007
374#define GL_MAX 0x8008
375#define GL_BLEND_EQUATION 0x8009
376#define GL_FUNC_SUBTRACT 0x800A
377#define GL_FUNC_REVERSE_SUBTRACT 0x800B
378#endif
379
380#ifndef GL_VERSION_1_3
381#define GL_TEXTURE0 0x84C0
382#define GL_TEXTURE1 0x84C1
383#define GL_TEXTURE2 0x84C2
384#define GL_TEXTURE3 0x84C3
385#define GL_TEXTURE4 0x84C4
386#define GL_TEXTURE5 0x84C5
387#define GL_TEXTURE6 0x84C6
388#define GL_TEXTURE7 0x84C7
389#define GL_TEXTURE8 0x84C8
390#define GL_TEXTURE9 0x84C9
391#define GL_TEXTURE10 0x84CA
392#define GL_TEXTURE11 0x84CB
393#define GL_TEXTURE12 0x84CC
394#define GL_TEXTURE13 0x84CD
395#define GL_TEXTURE14 0x84CE
396#define GL_TEXTURE15 0x84CF
397#define GL_TEXTURE16 0x84D0
398#define GL_TEXTURE17 0x84D1
399#define GL_TEXTURE18 0x84D2
400#define GL_TEXTURE19 0x84D3
401#define GL_TEXTURE20 0x84D4
402#define GL_TEXTURE21 0x84D5
403#define GL_TEXTURE22 0x84D6
404#define GL_TEXTURE23 0x84D7
405#define GL_TEXTURE24 0x84D8
406#define GL_TEXTURE25 0x84D9
407#define GL_TEXTURE26 0x84DA
408#define GL_TEXTURE27 0x84DB
409#define GL_TEXTURE28 0x84DC
410#define GL_TEXTURE29 0x84DD
411#define GL_TEXTURE30 0x84DE
412#define GL_TEXTURE31 0x84DF
413#define GL_ACTIVE_TEXTURE 0x84E0
414#define GL_MULTISAMPLE 0x809D
415#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
416#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
417#define GL_SAMPLE_COVERAGE 0x80A0
418#define GL_SAMPLE_BUFFERS 0x80A8
419#define GL_SAMPLES 0x80A9
420#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
421#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
422#define GL_TEXTURE_CUBE_MAP 0x8513
423#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
424#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
425#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
426#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
427#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
428#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
429#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
430#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
431#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
432#define GL_COMPRESSED_RGB 0x84ED
433#define GL_COMPRESSED_RGBA 0x84EE
434#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
435#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
436#define GL_TEXTURE_COMPRESSED 0x86A1
437#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
438#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
439#define GL_CLAMP_TO_BORDER 0x812D
440#endif
441
442#ifndef GL_VERSION_1_4
443#define GL_BLEND_DST_RGB 0x80C8
444#define GL_BLEND_SRC_RGB 0x80C9
445#define GL_BLEND_DST_ALPHA 0x80CA
446#define GL_BLEND_SRC_ALPHA 0x80CB
447#define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
448#define GL_DEPTH_COMPONENT16 0x81A5
449#define GL_DEPTH_COMPONENT24 0x81A6
450#define GL_DEPTH_COMPONENT32 0x81A7
451#define GL_MIRRORED_REPEAT 0x8370
452#define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
453#define GL_TEXTURE_LOD_BIAS 0x8501
454#define GL_INCR_WRAP 0x8507
455#define GL_DECR_WRAP 0x8508
456#define GL_TEXTURE_DEPTH_SIZE 0x884A
457#define GL_TEXTURE_COMPARE_MODE 0x884C
458#define GL_TEXTURE_COMPARE_FUNC 0x884D
459#endif
460
461#ifndef GL_VERSION_1_5
462#define GL_BUFFER_SIZE 0x8764
463#define GL_BUFFER_USAGE 0x8765
464#define GL_QUERY_COUNTER_BITS 0x8864
465#define GL_CURRENT_QUERY 0x8865
466#define GL_QUERY_RESULT 0x8866
467#define GL_QUERY_RESULT_AVAILABLE 0x8867
468#define GL_ARRAY_BUFFER 0x8892
469#define GL_ELEMENT_ARRAY_BUFFER 0x8893
470#define GL_ARRAY_BUFFER_BINDING 0x8894
471#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
472#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
473#define GL_READ_ONLY 0x88B8
474#define GL_WRITE_ONLY 0x88B9
475#define GL_READ_WRITE 0x88BA
476#define GL_BUFFER_ACCESS 0x88BB
477#define GL_BUFFER_MAPPED 0x88BC
478#define GL_BUFFER_MAP_POINTER 0x88BD
479#define GL_STREAM_DRAW 0x88E0
480#define GL_STREAM_READ 0x88E1
481#define GL_STREAM_COPY 0x88E2
482#define GL_STATIC_DRAW 0x88E4
483#define GL_STATIC_READ 0x88E5
484#define GL_STATIC_COPY 0x88E6
485#define GL_DYNAMIC_DRAW 0x88E8
486#define GL_DYNAMIC_READ 0x88E9
487#define GL_DYNAMIC_COPY 0x88EA
488#define GL_SAMPLES_PASSED 0x8914
489#define GL_SRC1_ALPHA 0x8589
490#endif
491
492#ifndef GL_VERSION_2_0
493#define GL_BLEND_EQUATION_RGB 0x8009
494#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
495#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
496#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
497#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
498#define GL_CURRENT_VERTEX_ATTRIB 0x8626
499#define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
500#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
501#define GL_STENCIL_BACK_FUNC 0x8800
502#define GL_STENCIL_BACK_FAIL 0x8801
503#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
504#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
505#define GL_MAX_DRAW_BUFFERS 0x8824
506#define GL_DRAW_BUFFER0 0x8825
507#define GL_DRAW_BUFFER1 0x8826
508#define GL_DRAW_BUFFER2 0x8827
509#define GL_DRAW_BUFFER3 0x8828
510#define GL_DRAW_BUFFER4 0x8829
511#define GL_DRAW_BUFFER5 0x882A
512#define GL_DRAW_BUFFER6 0x882B
513#define GL_DRAW_BUFFER7 0x882C
514#define GL_DRAW_BUFFER8 0x882D
515#define GL_DRAW_BUFFER9 0x882E
516#define GL_DRAW_BUFFER10 0x882F
517#define GL_DRAW_BUFFER11 0x8830
518#define GL_DRAW_BUFFER12 0x8831
519#define GL_DRAW_BUFFER13 0x8832
520#define GL_DRAW_BUFFER14 0x8833
521#define GL_DRAW_BUFFER15 0x8834
522#define GL_BLEND_EQUATION_ALPHA 0x883D
523#define GL_MAX_VERTEX_ATTRIBS 0x8869
524#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
525#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
526#define GL_FRAGMENT_SHADER 0x8B30
527#define GL_VERTEX_SHADER 0x8B31
528#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
529#define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
530#define GL_MAX_VARYING_FLOATS 0x8B4B
531#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
532#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
533#define GL_SHADER_TYPE 0x8B4F
534#define GL_FLOAT_VEC2 0x8B50
535#define GL_FLOAT_VEC3 0x8B51
536#define GL_FLOAT_VEC4 0x8B52
537#define GL_INT_VEC2 0x8B53
538#define GL_INT_VEC3 0x8B54
539#define GL_INT_VEC4 0x8B55
540#define GL_BOOL 0x8B56
541#define GL_BOOL_VEC2 0x8B57
542#define GL_BOOL_VEC3 0x8B58
543#define GL_BOOL_VEC4 0x8B59
544#define GL_FLOAT_MAT2 0x8B5A
545#define GL_FLOAT_MAT3 0x8B5B
546#define GL_FLOAT_MAT4 0x8B5C
547#define GL_SAMPLER_1D 0x8B5D
548#define GL_SAMPLER_2D 0x8B5E
549#define GL_SAMPLER_3D 0x8B5F
550#define GL_SAMPLER_CUBE 0x8B60
551#define GL_SAMPLER_1D_SHADOW 0x8B61
552#define GL_SAMPLER_2D_SHADOW 0x8B62
553#define GL_DELETE_STATUS 0x8B80
554#define GL_COMPILE_STATUS 0x8B81
555#define GL_LINK_STATUS 0x8B82
556#define GL_VALIDATE_STATUS 0x8B83
557#define GL_INFO_LOG_LENGTH 0x8B84
558#define GL_ATTACHED_SHADERS 0x8B85
559#define GL_ACTIVE_UNIFORMS 0x8B86
560#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
561#define GL_SHADER_SOURCE_LENGTH 0x8B88
562#define GL_ACTIVE_ATTRIBUTES 0x8B89
563#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
564#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
565#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
566#define GL_CURRENT_PROGRAM 0x8B8D
567#define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
568#define GL_LOWER_LEFT 0x8CA1
569#define GL_UPPER_LEFT 0x8CA2
570#define GL_STENCIL_BACK_REF 0x8CA3
571#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
572#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
573#endif
574
575#ifndef GL_VERSION_2_1
576#define GL_PIXEL_PACK_BUFFER 0x88EB
577#define GL_PIXEL_UNPACK_BUFFER 0x88EC
578#define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
579#define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
580#define GL_FLOAT_MAT2x3 0x8B65
581#define GL_FLOAT_MAT2x4 0x8B66
582#define GL_FLOAT_MAT3x2 0x8B67
583#define GL_FLOAT_MAT3x4 0x8B68
584#define GL_FLOAT_MAT4x2 0x8B69
585#define GL_FLOAT_MAT4x3 0x8B6A
586#define GL_SRGB 0x8C40
587#define GL_SRGB8 0x8C41
588#define GL_SRGB_ALPHA 0x8C42
589#define GL_SRGB8_ALPHA8 0x8C43
590#define GL_COMPRESSED_SRGB 0x8C48
591#define GL_COMPRESSED_SRGB_ALPHA 0x8C49
592#endif
593
594#ifndef GL_VERSION_3_0
595#define GL_COMPARE_REF_TO_TEXTURE 0x884E
596#define GL_CLIP_DISTANCE0 0x3000
597#define GL_CLIP_DISTANCE1 0x3001
598#define GL_CLIP_DISTANCE2 0x3002
599#define GL_CLIP_DISTANCE3 0x3003
600#define GL_CLIP_DISTANCE4 0x3004
601#define GL_CLIP_DISTANCE5 0x3005
602#define GL_CLIP_DISTANCE6 0x3006
603#define GL_CLIP_DISTANCE7 0x3007
604#define GL_MAX_CLIP_DISTANCES 0x0D32
605#define GL_MAJOR_VERSION 0x821B
606#define GL_MINOR_VERSION 0x821C
607#define GL_NUM_EXTENSIONS 0x821D
608#define GL_CONTEXT_FLAGS 0x821E
609#define GL_COMPRESSED_RED 0x8225
610#define GL_COMPRESSED_RG 0x8226
611#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
612#define GL_RGBA32F 0x8814
613#define GL_RGB32F 0x8815
614#define GL_RGBA16F 0x881A
615#define GL_RGB16F 0x881B
616#define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
617#define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
618#define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
619#define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
620#define GL_CLAMP_READ_COLOR 0x891C
621#define GL_FIXED_ONLY 0x891D
622#define GL_MAX_VARYING_COMPONENTS 0x8B4B
623#define GL_TEXTURE_1D_ARRAY 0x8C18
624#define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
625#define GL_TEXTURE_2D_ARRAY 0x8C1A
626#define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
627#define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
628#define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
629#define GL_R11F_G11F_B10F 0x8C3A
630#define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
631#define GL_RGB9_E5 0x8C3D
632#define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
633#define GL_TEXTURE_SHARED_SIZE 0x8C3F
634#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
635#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
636#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
637#define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
638#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
639#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
640#define GL_PRIMITIVES_GENERATED 0x8C87
641#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
642#define GL_RASTERIZER_DISCARD 0x8C89
643#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
644#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
645#define GL_INTERLEAVED_ATTRIBS 0x8C8C
646#define GL_SEPARATE_ATTRIBS 0x8C8D
647#define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
648#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
649#define GL_RGBA32UI 0x8D70
650#define GL_RGB32UI 0x8D71
651#define GL_RGBA16UI 0x8D76
652#define GL_RGB16UI 0x8D77
653#define GL_RGBA8UI 0x8D7C
654#define GL_RGB8UI 0x8D7D
655#define GL_RGBA32I 0x8D82
656#define GL_RGB32I 0x8D83
657#define GL_RGBA16I 0x8D88
658#define GL_RGB16I 0x8D89
659#define GL_RGBA8I 0x8D8E
660#define GL_RGB8I 0x8D8F
661#define GL_RED_INTEGER 0x8D94
662#define GL_GREEN_INTEGER 0x8D95
663#define GL_BLUE_INTEGER 0x8D96
664#define GL_RGB_INTEGER 0x8D98
665#define GL_RGBA_INTEGER 0x8D99
666#define GL_BGR_INTEGER 0x8D9A
667#define GL_BGRA_INTEGER 0x8D9B
668#define GL_SAMPLER_1D_ARRAY 0x8DC0
669#define GL_SAMPLER_2D_ARRAY 0x8DC1
670#define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
671#define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
672#define GL_SAMPLER_CUBE_SHADOW 0x8DC5
673#define GL_UNSIGNED_INT_VEC2 0x8DC6
674#define GL_UNSIGNED_INT_VEC3 0x8DC7
675#define GL_UNSIGNED_INT_VEC4 0x8DC8
676#define GL_INT_SAMPLER_1D 0x8DC9
677#define GL_INT_SAMPLER_2D 0x8DCA
678#define GL_INT_SAMPLER_3D 0x8DCB
679#define GL_INT_SAMPLER_CUBE 0x8DCC
680#define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
681#define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
682#define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
683#define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
684#define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
685#define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
686#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
687#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
688#define GL_QUERY_WAIT 0x8E13
689#define GL_QUERY_NO_WAIT 0x8E14
690#define GL_QUERY_BY_REGION_WAIT 0x8E15
691#define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
692#define GL_BUFFER_ACCESS_FLAGS 0x911F
693#define GL_BUFFER_MAP_LENGTH 0x9120
694#define GL_BUFFER_MAP_OFFSET 0x9121
695 /* Reuse tokens from ARB_depth_buffer_float */
696 /* reuse GL_DEPTH_COMPONENT32F */
697 /* reuse GL_DEPTH32F_STENCIL8 */
698 /* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
699 /* Reuse tokens from ARB_framebuffer_object */
700 /* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
701 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
702 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
703 /* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
704 /* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
705 /* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
706 /* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
707 /* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
708 /* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
709 /* reuse GL_FRAMEBUFFER_DEFAULT */
710 /* reuse GL_FRAMEBUFFER_UNDEFINED */
711 /* reuse GL_DEPTH_STENCIL_ATTACHMENT */
712 /* reuse GL_INDEX */
713 /* reuse GL_MAX_RENDERBUFFER_SIZE */
714 /* reuse GL_DEPTH_STENCIL */
715 /* reuse GL_UNSIGNED_INT_24_8 */
716 /* reuse GL_DEPTH24_STENCIL8 */
717 /* reuse GL_TEXTURE_STENCIL_SIZE */
718 /* reuse GL_TEXTURE_RED_TYPE */
719 /* reuse GL_TEXTURE_GREEN_TYPE */
720 /* reuse GL_TEXTURE_BLUE_TYPE */
721 /* reuse GL_TEXTURE_ALPHA_TYPE */
722 /* reuse GL_TEXTURE_DEPTH_TYPE */
723 /* reuse GL_UNSIGNED_NORMALIZED */
724 /* reuse GL_FRAMEBUFFER_BINDING */
725 /* reuse GL_DRAW_FRAMEBUFFER_BINDING */
726 /* reuse GL_RENDERBUFFER_BINDING */
727 /* reuse GL_READ_FRAMEBUFFER */
728 /* reuse GL_DRAW_FRAMEBUFFER */
729 /* reuse GL_READ_FRAMEBUFFER_BINDING */
730 /* reuse GL_RENDERBUFFER_SAMPLES */
731 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
732 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
733 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
734 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
735 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
736 /* reuse GL_FRAMEBUFFER_COMPLETE */
737 /* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
738 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
739 /* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
740 /* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
741 /* reuse GL_FRAMEBUFFER_UNSUPPORTED */
742 /* reuse GL_MAX_COLOR_ATTACHMENTS */
743 /* reuse GL_COLOR_ATTACHMENT0 */
744 /* reuse GL_COLOR_ATTACHMENT1 */
745 /* reuse GL_COLOR_ATTACHMENT2 */
746 /* reuse GL_COLOR_ATTACHMENT3 */
747 /* reuse GL_COLOR_ATTACHMENT4 */
748 /* reuse GL_COLOR_ATTACHMENT5 */
749 /* reuse GL_COLOR_ATTACHMENT6 */
750 /* reuse GL_COLOR_ATTACHMENT7 */
751 /* reuse GL_COLOR_ATTACHMENT8 */
752 /* reuse GL_COLOR_ATTACHMENT9 */
753 /* reuse GL_COLOR_ATTACHMENT10 */
754 /* reuse GL_COLOR_ATTACHMENT11 */
755 /* reuse GL_COLOR_ATTACHMENT12 */
756 /* reuse GL_COLOR_ATTACHMENT13 */
757 /* reuse GL_COLOR_ATTACHMENT14 */
758 /* reuse GL_COLOR_ATTACHMENT15 */
759 /* reuse GL_DEPTH_ATTACHMENT */
760 /* reuse GL_STENCIL_ATTACHMENT */
761 /* reuse GL_FRAMEBUFFER */
762 /* reuse GL_RENDERBUFFER */
763 /* reuse GL_RENDERBUFFER_WIDTH */
764 /* reuse GL_RENDERBUFFER_HEIGHT */
765 /* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
766 /* reuse GL_STENCIL_INDEX1 */
767 /* reuse GL_STENCIL_INDEX4 */
768 /* reuse GL_STENCIL_INDEX8 */
769 /* reuse GL_STENCIL_INDEX16 */
770 /* reuse GL_RENDERBUFFER_RED_SIZE */
771 /* reuse GL_RENDERBUFFER_GREEN_SIZE */
772 /* reuse GL_RENDERBUFFER_BLUE_SIZE */
773 /* reuse GL_RENDERBUFFER_ALPHA_SIZE */
774 /* reuse GL_RENDERBUFFER_DEPTH_SIZE */
775 /* reuse GL_RENDERBUFFER_STENCIL_SIZE */
776 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
777 /* reuse GL_MAX_SAMPLES */
778 /* Reuse tokens from ARB_framebuffer_sRGB */
779 /* reuse GL_FRAMEBUFFER_SRGB */
780 /* Reuse tokens from ARB_half_float_vertex */
781 /* reuse GL_HALF_FLOAT */
782 /* Reuse tokens from ARB_map_buffer_range */
783 /* reuse GL_MAP_READ_BIT */
784 /* reuse GL_MAP_WRITE_BIT */
785 /* reuse GL_MAP_INVALIDATE_RANGE_BIT */
786 /* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
787 /* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
788 /* reuse GL_MAP_UNSYNCHRONIZED_BIT */
789 /* Reuse tokens from ARB_texture_compression_rgtc */
790 /* reuse GL_COMPRESSED_RED_RGTC1 */
791 /* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
792 /* reuse GL_COMPRESSED_RG_RGTC2 */
793 /* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
794 /* Reuse tokens from ARB_texture_rg */
795 /* reuse GL_RG */
796 /* reuse GL_RG_INTEGER */
797 /* reuse GL_R8 */
798 /* reuse GL_R16 */
799 /* reuse GL_RG8 */
800 /* reuse GL_RG16 */
801 /* reuse GL_R16F */
802 /* reuse GL_R32F */
803 /* reuse GL_RG16F */
804 /* reuse GL_RG32F */
805 /* reuse GL_R8I */
806 /* reuse GL_R8UI */
807 /* reuse GL_R16I */
808 /* reuse GL_R16UI */
809 /* reuse GL_R32I */
810 /* reuse GL_R32UI */
811 /* reuse GL_RG8I */
812 /* reuse GL_RG8UI */
813 /* reuse GL_RG16I */
814 /* reuse GL_RG16UI */
815 /* reuse GL_RG32I */
816 /* reuse GL_RG32UI */
817 /* Reuse tokens from ARB_vertex_array_object */
818 /* reuse GL_VERTEX_ARRAY_BINDING */
819#endif
820
821#ifndef GL_VERSION_3_1
822#define GL_SAMPLER_2D_RECT 0x8B63
823#define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
824#define GL_SAMPLER_BUFFER 0x8DC2
825#define GL_INT_SAMPLER_2D_RECT 0x8DCD
826#define GL_INT_SAMPLER_BUFFER 0x8DD0
827#define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
828#define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
829#define GL_TEXTURE_BUFFER 0x8C2A
830#define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
831#define GL_TEXTURE_BINDING_BUFFER 0x8C2C
832#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
833#define GL_TEXTURE_RECTANGLE 0x84F5
834#define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
835#define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
836#define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
837#define GL_RED_SNORM 0x8F90
838#define GL_RG_SNORM 0x8F91
839#define GL_RGB_SNORM 0x8F92
840#define GL_RGBA_SNORM 0x8F93
841#define GL_R8_SNORM 0x8F94
842#define GL_RG8_SNORM 0x8F95
843#define GL_RGB8_SNORM 0x8F96
844#define GL_RGBA8_SNORM 0x8F97
845#define GL_R16_SNORM 0x8F98
846#define GL_RG16_SNORM 0x8F99
847#define GL_RGB16_SNORM 0x8F9A
848#define GL_RGBA16_SNORM 0x8F9B
849#define GL_SIGNED_NORMALIZED 0x8F9C
850#define GL_PRIMITIVE_RESTART 0x8F9D
851#define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
852 /* Reuse tokens from ARB_copy_buffer */
853 /* reuse GL_COPY_READ_BUFFER */
854 /* reuse GL_COPY_WRITE_BUFFER */
855 /* Reuse tokens from ARB_draw_instanced (none) */
856 /* Reuse tokens from ARB_uniform_buffer_object */
857 /* reuse GL_UNIFORM_BUFFER */
858 /* reuse GL_UNIFORM_BUFFER_BINDING */
859 /* reuse GL_UNIFORM_BUFFER_START */
860 /* reuse GL_UNIFORM_BUFFER_SIZE */
861 /* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
862 /* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
863 /* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
864 /* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
865 /* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
866 /* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
867 /* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
868 /* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
869 /* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
870 /* reuse GL_ACTIVE_UNIFORM_BLOCKS */
871 /* reuse GL_UNIFORM_TYPE */
872 /* reuse GL_UNIFORM_SIZE */
873 /* reuse GL_UNIFORM_NAME_LENGTH */
874 /* reuse GL_UNIFORM_BLOCK_INDEX */
875 /* reuse GL_UNIFORM_OFFSET */
876 /* reuse GL_UNIFORM_ARRAY_STRIDE */
877 /* reuse GL_UNIFORM_MATRIX_STRIDE */
878 /* reuse GL_UNIFORM_IS_ROW_MAJOR */
879 /* reuse GL_UNIFORM_BLOCK_BINDING */
880 /* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
881 /* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
882 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
883 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
884 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
885 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
886 /* reuse GL_INVALID_INDEX */
887#endif
888
889#ifndef GL_VERSION_3_2
890#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
891#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
892#define GL_LINES_ADJACENCY 0x000A
893#define GL_LINE_STRIP_ADJACENCY 0x000B
894#define GL_TRIANGLES_ADJACENCY 0x000C
895#define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
896#define GL_PROGRAM_POINT_SIZE 0x8642
897#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
898#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
899#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
900#define GL_GEOMETRY_SHADER 0x8DD9
901#define GL_GEOMETRY_VERTICES_OUT 0x8916
902#define GL_GEOMETRY_INPUT_TYPE 0x8917
903#define GL_GEOMETRY_OUTPUT_TYPE 0x8918
904#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
905#define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
906#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
907#define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
908#define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
909#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
910#define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
911#define GL_CONTEXT_PROFILE_MASK 0x9126
912 /* reuse GL_MAX_VARYING_COMPONENTS */
913 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
914 /* Reuse tokens from ARB_depth_clamp */
915 /* reuse GL_DEPTH_CLAMP */
916 /* Reuse tokens from ARB_draw_elements_base_vertex (none) */
917 /* Reuse tokens from ARB_fragment_coord_conventions (none) */
918 /* Reuse tokens from ARB_provoking_vertex */
919 /* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
920 /* reuse GL_FIRST_VERTEX_CONVENTION */
921 /* reuse GL_LAST_VERTEX_CONVENTION */
922 /* reuse GL_PROVOKING_VERTEX */
923 /* Reuse tokens from ARB_seamless_cube_map */
924 /* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
925 /* Reuse tokens from ARB_sync */
926 /* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
927 /* reuse GL_OBJECT_TYPE */
928 /* reuse GL_SYNC_CONDITION */
929 /* reuse GL_SYNC_STATUS */
930 /* reuse GL_SYNC_FLAGS */
931 /* reuse GL_SYNC_FENCE */
932 /* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
933 /* reuse GL_UNSIGNALED */
934 /* reuse GL_SIGNALED */
935 /* reuse GL_ALREADY_SIGNALED */
936 /* reuse GL_TIMEOUT_EXPIRED */
937 /* reuse GL_CONDITION_SATISFIED */
938 /* reuse GL_WAIT_FAILED */
939 /* reuse GL_TIMEOUT_IGNORED */
940 /* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
941 /* reuse GL_TIMEOUT_IGNORED */
942 /* Reuse tokens from ARB_texture_multisample */
943 /* reuse GL_SAMPLE_POSITION */
944 /* reuse GL_SAMPLE_MASK */
945 /* reuse GL_SAMPLE_MASK_VALUE */
946 /* reuse GL_MAX_SAMPLE_MASK_WORDS */
947 /* reuse GL_TEXTURE_2D_MULTISAMPLE */
948 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
949 /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
950 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
951 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
952 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
953 /* reuse GL_TEXTURE_SAMPLES */
954 /* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
955 /* reuse GL_SAMPLER_2D_MULTISAMPLE */
956 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
957 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
958 /* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
959 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
960 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
961 /* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
962 /* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
963 /* reuse GL_MAX_INTEGER_SAMPLES */
964 /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
965#endif
966
967#ifndef GL_VERSION_3_3
968#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
969 /* Reuse tokens from ARB_blend_func_extended */
970 /* reuse GL_SRC1_COLOR */
971 /* reuse GL_ONE_MINUS_SRC1_COLOR */
972 /* reuse GL_ONE_MINUS_SRC1_ALPHA */
973 /* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */
974 /* Reuse tokens from ARB_explicit_attrib_location (none) */
975 /* Reuse tokens from ARB_occlusion_query2 */
976 /* reuse GL_ANY_SAMPLES_PASSED */
977 /* Reuse tokens from ARB_sampler_objects */
978 /* reuse GL_SAMPLER_BINDING */
979 /* Reuse tokens from ARB_shader_bit_encoding (none) */
980 /* Reuse tokens from ARB_texture_rgb10_a2ui */
981 /* reuse GL_RGB10_A2UI */
982 /* Reuse tokens from ARB_texture_swizzle */
983 /* reuse GL_TEXTURE_SWIZZLE_R */
984 /* reuse GL_TEXTURE_SWIZZLE_G */
985 /* reuse GL_TEXTURE_SWIZZLE_B */
986 /* reuse GL_TEXTURE_SWIZZLE_A */
987 /* reuse GL_TEXTURE_SWIZZLE_RGBA */
988 /* Reuse tokens from ARB_timer_query */
989 /* reuse GL_TIME_ELAPSED */
990 /* reuse GL_TIMESTAMP */
991 /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */
992 /* reuse GL_INT_2_10_10_10_REV */
993#endif
994
995#ifndef GL_VERSION_4_0
996#define GL_SAMPLE_SHADING 0x8C36
997#define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
998#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
999#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
1000#define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
1001#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
1002#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
1003#define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
1004#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
1005#define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
1006#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
1007 /* Reuse tokens from ARB_texture_query_lod (none) */
1008 /* Reuse tokens from ARB_draw_buffers_blend (none) */
1009 /* Reuse tokens from ARB_draw_indirect */
1010 /* reuse GL_DRAW_INDIRECT_BUFFER */
1011 /* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */
1012 /* Reuse tokens from ARB_gpu_shader5 */
1013 /* reuse GL_GEOMETRY_SHADER_INVOCATIONS */
1014 /* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */
1015 /* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */
1016 /* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */
1017 /* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */
1018 /* reuse GL_MAX_VERTEX_STREAMS */
1019 /* Reuse tokens from ARB_gpu_shader_fp64 */
1020 /* reuse GL_DOUBLE_VEC2 */
1021 /* reuse GL_DOUBLE_VEC3 */
1022 /* reuse GL_DOUBLE_VEC4 */
1023 /* reuse GL_DOUBLE_MAT2 */
1024 /* reuse GL_DOUBLE_MAT3 */
1025 /* reuse GL_DOUBLE_MAT4 */
1026 /* reuse GL_DOUBLE_MAT2x3 */
1027 /* reuse GL_DOUBLE_MAT2x4 */
1028 /* reuse GL_DOUBLE_MAT3x2 */
1029 /* reuse GL_DOUBLE_MAT3x4 */
1030 /* reuse GL_DOUBLE_MAT4x2 */
1031 /* reuse GL_DOUBLE_MAT4x3 */
1032 /* Reuse tokens from ARB_shader_subroutine */
1033 /* reuse GL_ACTIVE_SUBROUTINES */
1034 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */
1035 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */
1036 /* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */
1037 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */
1038 /* reuse GL_MAX_SUBROUTINES */
1039 /* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */
1040 /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
1041 /* reuse GL_COMPATIBLE_SUBROUTINES */
1042 /* Reuse tokens from ARB_tessellation_shader */
1043 /* reuse GL_PATCHES */
1044 /* reuse GL_PATCH_VERTICES */
1045 /* reuse GL_PATCH_DEFAULT_INNER_LEVEL */
1046 /* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */
1047 /* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */
1048 /* reuse GL_TESS_GEN_MODE */
1049 /* reuse GL_TESS_GEN_SPACING */
1050 /* reuse GL_TESS_GEN_VERTEX_ORDER */
1051 /* reuse GL_TESS_GEN_POINT_MODE */
1052 /* reuse GL_ISOLINES */
1053 /* reuse GL_FRACTIONAL_ODD */
1054 /* reuse GL_FRACTIONAL_EVEN */
1055 /* reuse GL_MAX_PATCH_VERTICES */
1056 /* reuse GL_MAX_TESS_GEN_LEVEL */
1057 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */
1058 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */
1059 /* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */
1060 /* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */
1061 /* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */
1062 /* reuse GL_MAX_TESS_PATCH_COMPONENTS */
1063 /* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */
1064 /* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */
1065 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */
1066 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */
1067 /* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */
1068 /* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */
1069 /* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */
1070 /* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */
1071 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */
1072 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */
1073 /* reuse GL_TESS_EVALUATION_SHADER */
1074 /* reuse GL_TESS_CONTROL_SHADER */
1075 /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */
1076 /* Reuse tokens from ARB_transform_feedback2 */
1077 /* reuse GL_TRANSFORM_FEEDBACK */
1078 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */
1079 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */
1080 /* reuse GL_TRANSFORM_FEEDBACK_BINDING */
1081 /* Reuse tokens from ARB_transform_feedback3 */
1082 /* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */
1083 /* reuse GL_MAX_VERTEX_STREAMS */
1084#endif
1085
1086#ifndef GL_VERSION_4_1
1087 /* Reuse tokens from ARB_ES2_compatibility */
1088 /* reuse GL_FIXED */
1089 /* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */
1090 /* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */
1091 /* reuse GL_LOW_FLOAT */
1092 /* reuse GL_MEDIUM_FLOAT */
1093 /* reuse GL_HIGH_FLOAT */
1094 /* reuse GL_LOW_INT */
1095 /* reuse GL_MEDIUM_INT */
1096 /* reuse GL_HIGH_INT */
1097 /* reuse GL_SHADER_COMPILER */
1098 /* reuse GL_SHADER_BINARY_FORMATS */
1099 /* reuse GL_NUM_SHADER_BINARY_FORMATS */
1100 /* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */
1101 /* reuse GL_MAX_VARYING_VECTORS */
1102 /* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */
1103 /* reuse GL_RGB565 */
1104 /* Reuse tokens from ARB_get_program_binary */
1105 /* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */
1106 /* reuse GL_PROGRAM_BINARY_LENGTH */
1107 /* reuse GL_NUM_PROGRAM_BINARY_FORMATS */
1108 /* reuse GL_PROGRAM_BINARY_FORMATS */
1109 /* Reuse tokens from ARB_separate_shader_objects */
1110 /* reuse GL_VERTEX_SHADER_BIT */
1111 /* reuse GL_FRAGMENT_SHADER_BIT */
1112 /* reuse GL_GEOMETRY_SHADER_BIT */
1113 /* reuse GL_TESS_CONTROL_SHADER_BIT */
1114 /* reuse GL_TESS_EVALUATION_SHADER_BIT */
1115 /* reuse GL_ALL_SHADER_BITS */
1116 /* reuse GL_PROGRAM_SEPARABLE */
1117 /* reuse GL_ACTIVE_PROGRAM */
1118 /* reuse GL_PROGRAM_PIPELINE_BINDING */
1119 /* Reuse tokens from ARB_shader_precision (none) */
1120 /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */
1121 /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */
1122 /* reuse GL_MAX_VIEWPORTS */
1123 /* reuse GL_VIEWPORT_SUBPIXEL_BITS */
1124 /* reuse GL_VIEWPORT_BOUNDS_RANGE */
1125 /* reuse GL_LAYER_PROVOKING_VERTEX */
1126 /* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */
1127 /* reuse GL_UNDEFINED_VERTEX */
1128#endif
1129
1130#ifndef GL_VERSION_4_2
1131 /* Reuse tokens from ARB_base_instance (none) */
1132 /* Reuse tokens from ARB_shading_language_420pack (none) */
1133 /* Reuse tokens from ARB_transform_feedback_instanced (none) */
1134 /* Reuse tokens from ARB_compressed_texture_pixel_storage */
1135 /* reuse GL_UNPACK_COMPRESSED_BLOCK_WIDTH */
1136 /* reuse GL_UNPACK_COMPRESSED_BLOCK_HEIGHT */
1137 /* reuse GL_UNPACK_COMPRESSED_BLOCK_DEPTH */
1138 /* reuse GL_UNPACK_COMPRESSED_BLOCK_SIZE */
1139 /* reuse GL_PACK_COMPRESSED_BLOCK_WIDTH */
1140 /* reuse GL_PACK_COMPRESSED_BLOCK_HEIGHT */
1141 /* reuse GL_PACK_COMPRESSED_BLOCK_DEPTH */
1142 /* reuse GL_PACK_COMPRESSED_BLOCK_SIZE */
1143 /* Reuse tokens from ARB_conservative_depth (none) */
1144 /* Reuse tokens from ARB_internalformat_query */
1145 /* reuse GL_NUM_SAMPLE_COUNTS */
1146 /* Reuse tokens from ARB_map_buffer_alignment */
1147 /* reuse GL_MIN_MAP_BUFFER_ALIGNMENT */
1148 /* Reuse tokens from ARB_shader_atomic_counters */
1149 /* reuse GL_ATOMIC_COUNTER_BUFFER */
1150 /* reuse GL_ATOMIC_COUNTER_BUFFER_BINDING */
1151 /* reuse GL_ATOMIC_COUNTER_BUFFER_START */
1152 /* reuse GL_ATOMIC_COUNTER_BUFFER_SIZE */
1153 /* reuse GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE */
1154 /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS */
1155 /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES */
1156 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER */
1157 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER */
1158 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER */
1159 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER */
1160 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER */
1161 /* reuse GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS */
1162 /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS */
1163 /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS */
1164 /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS */
1165 /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS */
1166 /* reuse GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS */
1167 /* reuse GL_MAX_VERTEX_ATOMIC_COUNTERS */
1168 /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS */
1169 /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS */
1170 /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTERS */
1171 /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTERS */
1172 /* reuse GL_MAX_COMBINED_ATOMIC_COUNTERS */
1173 /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE */
1174 /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS */
1175 /* reuse GL_ACTIVE_ATOMIC_COUNTER_BUFFERS */
1176 /* reuse GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX */
1177 /* reuse GL_UNSIGNED_INT_ATOMIC_COUNTER */
1178 /* Reuse tokens from ARB_shader_image_load_store */
1179 /* reuse GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT */
1180 /* reuse GL_ELEMENT_ARRAY_BARRIER_BIT */
1181 /* reuse GL_UNIFORM_BARRIER_BIT */
1182 /* reuse GL_TEXTURE_FETCH_BARRIER_BIT */
1183 /* reuse GL_SHADER_IMAGE_ACCESS_BARRIER_BIT */
1184 /* reuse GL_COMMAND_BARRIER_BIT */
1185 /* reuse GL_PIXEL_BUFFER_BARRIER_BIT */
1186 /* reuse GL_TEXTURE_UPDATE_BARRIER_BIT */
1187 /* reuse GL_BUFFER_UPDATE_BARRIER_BIT */
1188 /* reuse GL_FRAMEBUFFER_BARRIER_BIT */
1189 /* reuse GL_TRANSFORM_FEEDBACK_BARRIER_BIT */
1190 /* reuse GL_ATOMIC_COUNTER_BARRIER_BIT */
1191 /* reuse GL_ALL_BARRIER_BITS */
1192 /* reuse GL_MAX_IMAGE_UNITS */
1193 /* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
1194 /* reuse GL_IMAGE_BINDING_NAME */
1195 /* reuse GL_IMAGE_BINDING_LEVEL */
1196 /* reuse GL_IMAGE_BINDING_LAYERED */
1197 /* reuse GL_IMAGE_BINDING_LAYER */
1198 /* reuse GL_IMAGE_BINDING_ACCESS */
1199 /* reuse GL_IMAGE_1D */
1200 /* reuse GL_IMAGE_2D */
1201 /* reuse GL_IMAGE_3D */
1202 /* reuse GL_IMAGE_2D_RECT */
1203 /* reuse GL_IMAGE_CUBE */
1204 /* reuse GL_IMAGE_BUFFER */
1205 /* reuse GL_IMAGE_1D_ARRAY */
1206 /* reuse GL_IMAGE_2D_ARRAY */
1207 /* reuse GL_IMAGE_CUBE_MAP_ARRAY */
1208 /* reuse GL_IMAGE_2D_MULTISAMPLE */
1209 /* reuse GL_IMAGE_2D_MULTISAMPLE_ARRAY */
1210 /* reuse GL_INT_IMAGE_1D */
1211 /* reuse GL_INT_IMAGE_2D */
1212 /* reuse GL_INT_IMAGE_3D */
1213 /* reuse GL_INT_IMAGE_2D_RECT */
1214 /* reuse GL_INT_IMAGE_CUBE */
1215 /* reuse GL_INT_IMAGE_BUFFER */
1216 /* reuse GL_INT_IMAGE_1D_ARRAY */
1217 /* reuse GL_INT_IMAGE_2D_ARRAY */
1218 /* reuse GL_INT_IMAGE_CUBE_MAP_ARRAY */
1219 /* reuse GL_INT_IMAGE_2D_MULTISAMPLE */
1220 /* reuse GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
1221 /* reuse GL_UNSIGNED_INT_IMAGE_1D */
1222 /* reuse GL_UNSIGNED_INT_IMAGE_2D */
1223 /* reuse GL_UNSIGNED_INT_IMAGE_3D */
1224 /* reuse GL_UNSIGNED_INT_IMAGE_2D_RECT */
1225 /* reuse GL_UNSIGNED_INT_IMAGE_CUBE */
1226 /* reuse GL_UNSIGNED_INT_IMAGE_BUFFER */
1227 /* reuse GL_UNSIGNED_INT_IMAGE_1D_ARRAY */
1228 /* reuse GL_UNSIGNED_INT_IMAGE_2D_ARRAY */
1229 /* reuse GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY */
1230 /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE */
1231 /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
1232 /* reuse GL_MAX_IMAGE_SAMPLES */
1233 /* reuse GL_IMAGE_BINDING_FORMAT */
1234 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
1235 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE */
1236 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS */
1237 /* reuse GL_MAX_VERTEX_IMAGE_UNIFORMS */
1238 /* reuse GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS */
1239 /* reuse GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS */
1240 /* reuse GL_MAX_GEOMETRY_IMAGE_UNIFORMS */
1241 /* reuse GL_MAX_FRAGMENT_IMAGE_UNIFORMS */
1242 /* reuse GL_MAX_COMBINED_IMAGE_UNIFORMS */
1243 /* Reuse tokens from ARB_shading_language_packing (none) */
1244 /* Reuse tokens from ARB_texture_storage */
1245 /* reuse GL_TEXTURE_IMMUTABLE_FORMAT */
1246#endif
1247
1248#ifndef GL_VERSION_4_3
1249#define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
1250#define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
1251 /* Reuse tokens from ARB_arrays_of_arrays (none, GLSL only) */
1252 /* Reuse tokens from ARB_fragment_layer_viewport (none, GLSL only) */
1253 /* Reuse tokens from ARB_shader_image_size (none, GLSL only) */
1254 /* Reuse tokens from ARB_ES3_compatibility */
1255 /* reuse GL_COMPRESSED_RGB8_ETC2 */
1256 /* reuse GL_COMPRESSED_SRGB8_ETC2 */
1257 /* reuse GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
1258 /* reuse GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
1259 /* reuse GL_COMPRESSED_RGBA8_ETC2_EAC */
1260 /* reuse GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC */
1261 /* reuse GL_COMPRESSED_R11_EAC */
1262 /* reuse GL_COMPRESSED_SIGNED_R11_EAC */
1263 /* reuse GL_COMPRESSED_RG11_EAC */
1264 /* reuse GL_COMPRESSED_SIGNED_RG11_EAC */
1265 /* reuse GL_PRIMITIVE_RESTART_FIXED_INDEX */
1266 /* reuse GL_ANY_SAMPLES_PASSED_CONSERVATIVE */
1267 /* reuse GL_MAX_ELEMENT_INDEX */
1268 /* Reuse tokens from ARB_clear_buffer_object (none) */
1269 /* Reuse tokens from ARB_compute_shader */
1270 /* reuse GL_COMPUTE_SHADER */
1271 /* reuse GL_MAX_COMPUTE_UNIFORM_BLOCKS */
1272 /* reuse GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS */
1273 /* reuse GL_MAX_COMPUTE_IMAGE_UNIFORMS */
1274 /* reuse GL_MAX_COMPUTE_SHARED_MEMORY_SIZE */
1275 /* reuse GL_MAX_COMPUTE_UNIFORM_COMPONENTS */
1276 /* reuse GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS */
1277 /* reuse GL_MAX_COMPUTE_ATOMIC_COUNTERS */
1278 /* reuse GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS */
1279 /* reuse GL_MAX_COMPUTE_LOCAL_INVOCATIONS */
1280 /* reuse GL_MAX_COMPUTE_WORK_GROUP_COUNT */
1281 /* reuse GL_MAX_COMPUTE_WORK_GROUP_SIZE */
1282 /* reuse GL_COMPUTE_LOCAL_WORK_SIZE */
1283 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER */
1284 /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER */
1285 /* reuse GL_DISPATCH_INDIRECT_BUFFER */
1286 /* reuse GL_DISPATCH_INDIRECT_BUFFER_BINDING */
1287 /* Reuse tokens from ARB_copy_image (none) */
1288 /* Reuse tokens from KHR_debug */
1289 /* reuse GL_DEBUG_OUTPUT_SYNCHRONOUS */
1290 /* reuse GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH */
1291 /* reuse GL_DEBUG_CALLBACK_FUNCTION */
1292 /* reuse GL_DEBUG_CALLBACK_USER_PARAM */
1293 /* reuse GL_DEBUG_SOURCE_API */
1294 /* reuse GL_DEBUG_SOURCE_WINDOW_SYSTEM */
1295 /* reuse GL_DEBUG_SOURCE_SHADER_COMPILER */
1296 /* reuse GL_DEBUG_SOURCE_THIRD_PARTY */
1297 /* reuse GL_DEBUG_SOURCE_APPLICATION */
1298 /* reuse GL_DEBUG_SOURCE_OTHER */
1299 /* reuse GL_DEBUG_TYPE_ERROR */
1300 /* reuse GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR */
1301 /* reuse GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR */
1302 /* reuse GL_DEBUG_TYPE_PORTABILITY */
1303 /* reuse GL_DEBUG_TYPE_PERFORMANCE */
1304 /* reuse GL_DEBUG_TYPE_OTHER */
1305 /* reuse GL_MAX_DEBUG_MESSAGE_LENGTH */
1306 /* reuse GL_MAX_DEBUG_LOGGED_MESSAGES */
1307 /* reuse GL_DEBUG_LOGGED_MESSAGES */
1308 /* reuse GL_DEBUG_SEVERITY_HIGH */
1309 /* reuse GL_DEBUG_SEVERITY_MEDIUM */
1310 /* reuse GL_DEBUG_SEVERITY_LOW */
1311 /* reuse GL_DEBUG_TYPE_MARKER */
1312 /* reuse GL_DEBUG_TYPE_PUSH_GROUP */
1313 /* reuse GL_DEBUG_TYPE_POP_GROUP */
1314 /* reuse GL_DEBUG_SEVERITY_NOTIFICATION */
1315 /* reuse GL_MAX_DEBUG_GROUP_STACK_DEPTH */
1316 /* reuse GL_DEBUG_GROUP_STACK_DEPTH */
1317 /* reuse GL_BUFFER */
1318 /* reuse GL_SHADER */
1319 /* reuse GL_PROGRAM */
1320 /* reuse GL_QUERY */
1321 /* reuse GL_PROGRAM_PIPELINE */
1322 /* reuse GL_SAMPLER */
1323 /* reuse GL_DISPLAY_LIST */
1324 /* reuse GL_MAX_LABEL_LENGTH */
1325 /* reuse GL_DEBUG_OUTPUT */
1326 /* reuse GL_CONTEXT_FLAG_DEBUG_BIT */
1327 /* reuse GL_STACK_UNDERFLOW */
1328 /* reuse GL_STACK_OVERFLOW */
1329 /* Reuse tokens from ARB_explicit_uniform_location */
1330 /* reuse GL_MAX_UNIFORM_LOCATIONS */
1331 /* Reuse tokens from ARB_framebuffer_no_attachments */
1332 /* reuse GL_FRAMEBUFFER_DEFAULT_WIDTH */
1333 /* reuse GL_FRAMEBUFFER_DEFAULT_HEIGHT */
1334 /* reuse GL_FRAMEBUFFER_DEFAULT_LAYERS */
1335 /* reuse GL_FRAMEBUFFER_DEFAULT_SAMPLES */
1336 /* reuse GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS */
1337 /* reuse GL_MAX_FRAMEBUFFER_WIDTH */
1338 /* reuse GL_MAX_FRAMEBUFFER_HEIGHT */
1339 /* reuse GL_MAX_FRAMEBUFFER_LAYERS */
1340 /* reuse GL_MAX_FRAMEBUFFER_SAMPLES */
1341 /* Reuse tokens from ARB_internalformat_query2 */
1342 /* reuse GL_INTERNALFORMAT_SUPPORTED */
1343 /* reuse GL_INTERNALFORMAT_PREFERRED */
1344 /* reuse GL_INTERNALFORMAT_RED_SIZE */
1345 /* reuse GL_INTERNALFORMAT_GREEN_SIZE */
1346 /* reuse GL_INTERNALFORMAT_BLUE_SIZE */
1347 /* reuse GL_INTERNALFORMAT_ALPHA_SIZE */
1348 /* reuse GL_INTERNALFORMAT_DEPTH_SIZE */
1349 /* reuse GL_INTERNALFORMAT_STENCIL_SIZE */
1350 /* reuse GL_INTERNALFORMAT_SHARED_SIZE */
1351 /* reuse GL_INTERNALFORMAT_RED_TYPE */
1352 /* reuse GL_INTERNALFORMAT_GREEN_TYPE */
1353 /* reuse GL_INTERNALFORMAT_BLUE_TYPE */
1354 /* reuse GL_INTERNALFORMAT_ALPHA_TYPE */
1355 /* reuse GL_INTERNALFORMAT_DEPTH_TYPE */
1356 /* reuse GL_INTERNALFORMAT_STENCIL_TYPE */
1357 /* reuse GL_MAX_WIDTH */
1358 /* reuse GL_MAX_HEIGHT */
1359 /* reuse GL_MAX_DEPTH */
1360 /* reuse GL_MAX_LAYERS */
1361 /* reuse GL_MAX_COMBINED_DIMENSIONS */
1362 /* reuse GL_COLOR_COMPONENTS */
1363 /* reuse GL_DEPTH_COMPONENTS */
1364 /* reuse GL_STENCIL_COMPONENTS */
1365 /* reuse GL_COLOR_RENDERABLE */
1366 /* reuse GL_DEPTH_RENDERABLE */
1367 /* reuse GL_STENCIL_RENDERABLE */
1368 /* reuse GL_FRAMEBUFFER_RENDERABLE */
1369 /* reuse GL_FRAMEBUFFER_RENDERABLE_LAYERED */
1370 /* reuse GL_FRAMEBUFFER_BLEND */
1371 /* reuse GL_READ_PIXELS */
1372 /* reuse GL_READ_PIXELS_FORMAT */
1373 /* reuse GL_READ_PIXELS_TYPE */
1374 /* reuse GL_TEXTURE_IMAGE_FORMAT */
1375 /* reuse GL_TEXTURE_IMAGE_TYPE */
1376 /* reuse GL_GET_TEXTURE_IMAGE_FORMAT */
1377 /* reuse GL_GET_TEXTURE_IMAGE_TYPE */
1378 /* reuse GL_MIPMAP */
1379 /* reuse GL_MANUAL_GENERATE_MIPMAP */
1380 /* reuse GL_AUTO_GENERATE_MIPMAP */
1381 /* reuse GL_COLOR_ENCODING */
1382 /* reuse GL_SRGB_READ */
1383 /* reuse GL_SRGB_WRITE */
1384 /* reuse GL_FILTER */
1385 /* reuse GL_VERTEX_TEXTURE */
1386 /* reuse GL_TESS_CONTROL_TEXTURE */
1387 /* reuse GL_TESS_EVALUATION_TEXTURE */
1388 /* reuse GL_GEOMETRY_TEXTURE */
1389 /* reuse GL_FRAGMENT_TEXTURE */
1390 /* reuse GL_COMPUTE_TEXTURE */
1391 /* reuse GL_TEXTURE_SHADOW */
1392 /* reuse GL_TEXTURE_GATHER */
1393 /* reuse GL_TEXTURE_GATHER_SHADOW */
1394 /* reuse GL_SHADER_IMAGE_LOAD */
1395 /* reuse GL_SHADER_IMAGE_STORE */
1396 /* reuse GL_SHADER_IMAGE_ATOMIC */
1397 /* reuse GL_IMAGE_TEXEL_SIZE */
1398 /* reuse GL_IMAGE_COMPATIBILITY_CLASS */
1399 /* reuse GL_IMAGE_PIXEL_FORMAT */
1400 /* reuse GL_IMAGE_PIXEL_TYPE */
1401 /* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST */
1402 /* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST */
1403 /* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE */
1404 /* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE */
1405 /* reuse GL_TEXTURE_COMPRESSED_BLOCK_WIDTH */
1406 /* reuse GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT */
1407 /* reuse GL_TEXTURE_COMPRESSED_BLOCK_SIZE */
1408 /* reuse GL_CLEAR_BUFFER */
1409 /* reuse GL_TEXTURE_VIEW */
1410 /* reuse GL_VIEW_COMPATIBILITY_CLASS */
1411 /* reuse GL_FULL_SUPPORT */
1412 /* reuse GL_CAVEAT_SUPPORT */
1413 /* reuse GL_IMAGE_CLASS_4_X_32 */
1414 /* reuse GL_IMAGE_CLASS_2_X_32 */
1415 /* reuse GL_IMAGE_CLASS_1_X_32 */
1416 /* reuse GL_IMAGE_CLASS_4_X_16 */
1417 /* reuse GL_IMAGE_CLASS_2_X_16 */
1418 /* reuse GL_IMAGE_CLASS_1_X_16 */
1419 /* reuse GL_IMAGE_CLASS_4_X_8 */
1420 /* reuse GL_IMAGE_CLASS_2_X_8 */
1421 /* reuse GL_IMAGE_CLASS_1_X_8 */
1422 /* reuse GL_IMAGE_CLASS_11_11_10 */
1423 /* reuse GL_IMAGE_CLASS_10_10_10_2 */
1424 /* reuse GL_VIEW_CLASS_128_BITS */
1425 /* reuse GL_VIEW_CLASS_96_BITS */
1426 /* reuse GL_VIEW_CLASS_64_BITS */
1427 /* reuse GL_VIEW_CLASS_48_BITS */
1428 /* reuse GL_VIEW_CLASS_32_BITS */
1429 /* reuse GL_VIEW_CLASS_24_BITS */
1430 /* reuse GL_VIEW_CLASS_16_BITS */
1431 /* reuse GL_VIEW_CLASS_8_BITS */
1432 /* reuse GL_VIEW_CLASS_S3TC_DXT1_RGB */
1433 /* reuse GL_VIEW_CLASS_S3TC_DXT1_RGBA */
1434 /* reuse GL_VIEW_CLASS_S3TC_DXT3_RGBA */
1435 /* reuse GL_VIEW_CLASS_S3TC_DXT5_RGBA */
1436 /* reuse GL_VIEW_CLASS_RGTC1_RED */
1437 /* reuse GL_VIEW_CLASS_RGTC2_RG */
1438 /* reuse GL_VIEW_CLASS_BPTC_UNORM */
1439 /* reuse GL_VIEW_CLASS_BPTC_FLOAT */
1440 /* Reuse tokens from ARB_invalidate_subdata (none) */
1441 /* Reuse tokens from ARB_multi_draw_indirect (none) */
1442 /* Reuse tokens from ARB_program_interface_query */
1443 /* reuse GL_UNIFORM */
1444 /* reuse GL_UNIFORM_BLOCK */
1445 /* reuse GL_PROGRAM_INPUT */
1446 /* reuse GL_PROGRAM_OUTPUT */
1447 /* reuse GL_BUFFER_VARIABLE */
1448 /* reuse GL_SHADER_STORAGE_BLOCK */
1449 /* reuse GL_VERTEX_SUBROUTINE */
1450 /* reuse GL_TESS_CONTROL_SUBROUTINE */
1451 /* reuse GL_TESS_EVALUATION_SUBROUTINE */
1452 /* reuse GL_GEOMETRY_SUBROUTINE */
1453 /* reuse GL_FRAGMENT_SUBROUTINE */
1454 /* reuse GL_COMPUTE_SUBROUTINE */
1455 /* reuse GL_VERTEX_SUBROUTINE_UNIFORM */
1456 /* reuse GL_TESS_CONTROL_SUBROUTINE_UNIFORM */
1457 /* reuse GL_TESS_EVALUATION_SUBROUTINE_UNIFORM */
1458 /* reuse GL_GEOMETRY_SUBROUTINE_UNIFORM */
1459 /* reuse GL_FRAGMENT_SUBROUTINE_UNIFORM */
1460 /* reuse GL_COMPUTE_SUBROUTINE_UNIFORM */
1461 /* reuse GL_TRANSFORM_FEEDBACK_VARYING */
1462 /* reuse GL_ACTIVE_RESOURCES */
1463 /* reuse GL_MAX_NAME_LENGTH */
1464 /* reuse GL_MAX_NUM_ACTIVE_VARIABLES */
1465 /* reuse GL_MAX_NUM_COMPATIBLE_SUBROUTINES */
1466 /* reuse GL_NAME_LENGTH */
1467 /* reuse GL_TYPE */
1468 /* reuse GL_ARRAY_SIZE */
1469 /* reuse GL_OFFSET */
1470 /* reuse GL_BLOCK_INDEX */
1471 /* reuse GL_ARRAY_STRIDE */
1472 /* reuse GL_MATRIX_STRIDE */
1473 /* reuse GL_IS_ROW_MAJOR */
1474 /* reuse GL_ATOMIC_COUNTER_BUFFER_INDEX */
1475 /* reuse GL_BUFFER_BINDING */
1476 /* reuse GL_BUFFER_DATA_SIZE */
1477 /* reuse GL_NUM_ACTIVE_VARIABLES */
1478 /* reuse GL_ACTIVE_VARIABLES */
1479 /* reuse GL_REFERENCED_BY_VERTEX_SHADER */
1480 /* reuse GL_REFERENCED_BY_TESS_CONTROL_SHADER */
1481 /* reuse GL_REFERENCED_BY_TESS_EVALUATION_SHADER */
1482 /* reuse GL_REFERENCED_BY_GEOMETRY_SHADER */
1483 /* reuse GL_REFERENCED_BY_FRAGMENT_SHADER */
1484 /* reuse GL_REFERENCED_BY_COMPUTE_SHADER */
1485 /* reuse GL_TOP_LEVEL_ARRAY_SIZE */
1486 /* reuse GL_TOP_LEVEL_ARRAY_STRIDE */
1487 /* reuse GL_LOCATION */
1488 /* reuse GL_LOCATION_INDEX */
1489 /* reuse GL_IS_PER_PATCH */
1490 /* Reuse tokens from ARB_robust_buffer_access_behavior (none) */
1491 /* Reuse tokens from ARB_shader_storage_buffer_object */
1492 /* reuse GL_SHADER_STORAGE_BUFFER */
1493 /* reuse GL_SHADER_STORAGE_BUFFER_BINDING */
1494 /* reuse GL_SHADER_STORAGE_BUFFER_START */
1495 /* reuse GL_SHADER_STORAGE_BUFFER_SIZE */
1496 /* reuse GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS */
1497 /* reuse GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS */
1498 /* reuse GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS */
1499 /* reuse GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS */
1500 /* reuse GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS */
1501 /* reuse GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS */
1502 /* reuse GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS */
1503 /* reuse GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS */
1504 /* reuse GL_MAX_SHADER_STORAGE_BLOCK_SIZE */
1505 /* reuse GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT */
1506 /* reuse GL_SHADER_STORAGE_BARRIER_BIT */
1507 /* reuse GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES */
1508 /* Reuse tokens from ARB_stencil_texturing */
1509 /* reuse GL_DEPTH_STENCIL_TEXTURE_MODE */
1510 /* Reuse tokens from ARB_texture_buffer_range */
1511 /* reuse GL_TEXTURE_BUFFER_OFFSET */
1512 /* reuse GL_TEXTURE_BUFFER_SIZE */
1513 /* reuse GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT */
1514 /* Reuse tokens from ARB_texture_query_levels (none) */
1515 /* Reuse tokens from ARB_texture_storage_multisample (none) */
1516 /* Reuse tokens from ARB_texture_view */
1517 /* reuse GL_TEXTURE_VIEW_MIN_LEVEL */
1518 /* reuse GL_TEXTURE_VIEW_NUM_LEVELS */
1519 /* reuse GL_TEXTURE_VIEW_MIN_LAYER */
1520 /* reuse GL_TEXTURE_VIEW_NUM_LAYERS */
1521 /* reuse GL_TEXTURE_IMMUTABLE_LEVELS */
1522 /* Reuse tokens from ARB_vertex_attrib_binding */
1523 /* reuse GL_VERTEX_ATTRIB_BINDING */
1524 /* reuse GL_VERTEX_ATTRIB_RELATIVE_OFFSET */
1525 /* reuse GL_VERTEX_BINDING_DIVISOR */
1526 /* reuse GL_VERTEX_BINDING_OFFSET */
1527 /* reuse GL_VERTEX_BINDING_STRIDE */
1528 /* reuse GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET */
1529 /* reuse GL_MAX_VERTEX_ATTRIB_BINDINGS */
1530#endif
1531
1532#ifndef GL_ARB_depth_buffer_float
1533#define GL_DEPTH_COMPONENT32F 0x8CAC
1534#define GL_DEPTH32F_STENCIL8 0x8CAD
1535#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
1536#endif
1537
1538#ifndef GL_ARB_framebuffer_object
1539#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
1540#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
1541#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
1542#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
1543#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
1544#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
1545#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
1546#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
1547#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
1548#define GL_FRAMEBUFFER_DEFAULT 0x8218
1549#define GL_FRAMEBUFFER_UNDEFINED 0x8219
1550#define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
1551#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
1552#define GL_DEPTH_STENCIL 0x84F9
1553#define GL_UNSIGNED_INT_24_8 0x84FA
1554#define GL_DEPTH24_STENCIL8 0x88F0
1555#define GL_TEXTURE_STENCIL_SIZE 0x88F1
1556#define GL_TEXTURE_RED_TYPE 0x8C10
1557#define GL_TEXTURE_GREEN_TYPE 0x8C11
1558#define GL_TEXTURE_BLUE_TYPE 0x8C12
1559#define GL_TEXTURE_ALPHA_TYPE 0x8C13
1560#define GL_TEXTURE_DEPTH_TYPE 0x8C16
1561#define GL_UNSIGNED_NORMALIZED 0x8C17
1562#define GL_FRAMEBUFFER_BINDING 0x8CA6
1563#define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING
1564#define GL_RENDERBUFFER_BINDING 0x8CA7
1565#define GL_READ_FRAMEBUFFER 0x8CA8
1566#define GL_DRAW_FRAMEBUFFER 0x8CA9
1567#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
1568#define GL_RENDERBUFFER_SAMPLES 0x8CAB
1569#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1570#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1571#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1572#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1573#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
1574#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
1575#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1576#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1577#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
1578#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
1579#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
1580#define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
1581#define GL_COLOR_ATTACHMENT0 0x8CE0
1582#define GL_COLOR_ATTACHMENT1 0x8CE1
1583#define GL_COLOR_ATTACHMENT2 0x8CE2
1584#define GL_COLOR_ATTACHMENT3 0x8CE3
1585#define GL_COLOR_ATTACHMENT4 0x8CE4
1586#define GL_COLOR_ATTACHMENT5 0x8CE5
1587#define GL_COLOR_ATTACHMENT6 0x8CE6
1588#define GL_COLOR_ATTACHMENT7 0x8CE7
1589#define GL_COLOR_ATTACHMENT8 0x8CE8
1590#define GL_COLOR_ATTACHMENT9 0x8CE9
1591#define GL_COLOR_ATTACHMENT10 0x8CEA
1592#define GL_COLOR_ATTACHMENT11 0x8CEB
1593#define GL_COLOR_ATTACHMENT12 0x8CEC
1594#define GL_COLOR_ATTACHMENT13 0x8CED
1595#define GL_COLOR_ATTACHMENT14 0x8CEE
1596#define GL_COLOR_ATTACHMENT15 0x8CEF
1597#define GL_DEPTH_ATTACHMENT 0x8D00
1598#define GL_STENCIL_ATTACHMENT 0x8D20
1599#define GL_FRAMEBUFFER 0x8D40
1600#define GL_RENDERBUFFER 0x8D41
1601#define GL_RENDERBUFFER_WIDTH 0x8D42
1602#define GL_RENDERBUFFER_HEIGHT 0x8D43
1603#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1604#define GL_STENCIL_INDEX1 0x8D46
1605#define GL_STENCIL_INDEX4 0x8D47
1606#define GL_STENCIL_INDEX8 0x8D48
1607#define GL_STENCIL_INDEX16 0x8D49
1608#define GL_RENDERBUFFER_RED_SIZE 0x8D50
1609#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1610#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1611#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1612#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1613#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1614#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
1615#define GL_MAX_SAMPLES 0x8D57
1616#endif
1617
1618#ifndef GL_ARB_framebuffer_sRGB
1619#define GL_FRAMEBUFFER_SRGB 0x8DB9
1620#endif
1621
1622#ifndef GL_ARB_half_float_vertex
1623#define GL_HALF_FLOAT 0x140B
1624#endif
1625
1626#ifndef GL_ARB_map_buffer_range
1627#define GL_MAP_READ_BIT 0x0001
1628#define GL_MAP_WRITE_BIT 0x0002
1629#define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
1630#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
1631#define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
1632#define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
1633#endif
1634
1635#ifndef GL_ARB_texture_compression_rgtc
1636#define GL_COMPRESSED_RED_RGTC1 0x8DBB
1637#define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
1638#define GL_COMPRESSED_RG_RGTC2 0x8DBD
1639#define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
1640#endif
1641
1642#ifndef GL_ARB_texture_rg
1643#define GL_RG 0x8227
1644#define GL_RG_INTEGER 0x8228
1645#define GL_R8 0x8229
1646#define GL_R16 0x822A
1647#define GL_RG8 0x822B
1648#define GL_RG16 0x822C
1649#define GL_R16F 0x822D
1650#define GL_R32F 0x822E
1651#define GL_RG16F 0x822F
1652#define GL_RG32F 0x8230
1653#define GL_R8I 0x8231
1654#define GL_R8UI 0x8232
1655#define GL_R16I 0x8233
1656#define GL_R16UI 0x8234
1657#define GL_R32I 0x8235
1658#define GL_R32UI 0x8236
1659#define GL_RG8I 0x8237
1660#define GL_RG8UI 0x8238
1661#define GL_RG16I 0x8239
1662#define GL_RG16UI 0x823A
1663#define GL_RG32I 0x823B
1664#define GL_RG32UI 0x823C
1665#endif
1666
1667#ifndef GL_ARB_vertex_array_object
1668#define GL_VERTEX_ARRAY_BINDING 0x85B5
1669#endif
1670
1671#ifndef GL_ARB_uniform_buffer_object
1672#define GL_UNIFORM_BUFFER 0x8A11
1673#define GL_UNIFORM_BUFFER_BINDING 0x8A28
1674#define GL_UNIFORM_BUFFER_START 0x8A29
1675#define GL_UNIFORM_BUFFER_SIZE 0x8A2A
1676#define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
1677#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
1678#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
1679#define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
1680#define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
1681#define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
1682#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
1683#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
1684#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
1685#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
1686#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
1687#define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
1688#define GL_UNIFORM_TYPE 0x8A37
1689#define GL_UNIFORM_SIZE 0x8A38
1690#define GL_UNIFORM_NAME_LENGTH 0x8A39
1691#define GL_UNIFORM_BLOCK_INDEX 0x8A3A
1692#define GL_UNIFORM_OFFSET 0x8A3B
1693#define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
1694#define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
1695#define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
1696#define GL_UNIFORM_BLOCK_BINDING 0x8A3F
1697#define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
1698#define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
1699#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
1700#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
1701#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
1702#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
1703#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
1704#define GL_INVALID_INDEX 0xFFFFFFFFu
1705#endif
1706
1707#ifndef GL_ARB_copy_buffer
1708#define GL_COPY_READ_BUFFER_BINDING 0x8F36
1709#define GL_COPY_READ_BUFFER GL_COPY_READ_BUFFER_BINDING
1710#define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
1711#define GL_COPY_WRITE_BUFFER GL_COPY_WRITE_BUFFER_BINDING
1712#endif
1713
1714#ifndef GL_ARB_depth_clamp
1715#define GL_DEPTH_CLAMP 0x864F
1716#endif
1717
1718#ifndef GL_ARB_draw_elements_base_vertex
1719#endif
1720
1721#ifndef GL_ARB_fragment_coord_conventions
1722#endif
1723
1724#ifndef GL_ARB_provoking_vertex
1725#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
1726#define GL_FIRST_VERTEX_CONVENTION 0x8E4D
1727#define GL_LAST_VERTEX_CONVENTION 0x8E4E
1728#define GL_PROVOKING_VERTEX 0x8E4F
1729#endif
1730
1731#ifndef GL_ARB_seamless_cube_map
1732#define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
1733#endif
1734
1735#ifndef GL_ARB_sync
1736#define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
1737#define GL_OBJECT_TYPE 0x9112
1738#define GL_SYNC_CONDITION 0x9113
1739#define GL_SYNC_STATUS 0x9114
1740#define GL_SYNC_FLAGS 0x9115
1741#define GL_SYNC_FENCE 0x9116
1742#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
1743#define GL_UNSIGNALED 0x9118
1744#define GL_SIGNALED 0x9119
1745#define GL_ALREADY_SIGNALED 0x911A
1746#define GL_TIMEOUT_EXPIRED 0x911B
1747#define GL_CONDITION_SATISFIED 0x911C
1748#define GL_WAIT_FAILED 0x911D
1749#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
1750#define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
1751#endif
1752
1753#ifndef GL_ARB_texture_multisample
1754#define GL_SAMPLE_POSITION 0x8E50
1755#define GL_SAMPLE_MASK 0x8E51
1756#define GL_SAMPLE_MASK_VALUE 0x8E52
1757#define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
1758#define GL_TEXTURE_2D_MULTISAMPLE 0x9100
1759#define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
1760#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
1761#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
1762#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
1763#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
1764#define GL_TEXTURE_SAMPLES 0x9106
1765#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
1766#define GL_SAMPLER_2D_MULTISAMPLE 0x9108
1767#define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
1768#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
1769#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
1770#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
1771#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
1772#define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
1773#define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
1774#define GL_MAX_INTEGER_SAMPLES 0x9110
1775#endif
1776
1777#ifndef GL_ARB_vertex_array_bgra
1778 /* reuse GL_BGRA */
1779#endif
1780
1781#ifndef GL_ARB_draw_buffers_blend
1782#endif
1783
1784#ifndef GL_ARB_sample_shading
1785#define GL_SAMPLE_SHADING_ARB 0x8C36
1786#define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37
1787#endif
1788
1789#ifndef GL_ARB_texture_cube_map_array
1790#define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
1791#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
1792#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
1793#define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C
1794#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
1795#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
1796#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
1797#endif
1798
1799#ifndef GL_ARB_texture_gather
1800#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
1801#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
1802#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
1803#endif
1804
1805#ifndef GL_ARB_texture_query_lod
1806#endif
1807
1808#ifndef GL_ARB_shading_language_include
1809#define GL_SHADER_INCLUDE_ARB 0x8DAE
1810#define GL_NAMED_STRING_LENGTH_ARB 0x8DE9
1811#define GL_NAMED_STRING_TYPE_ARB 0x8DEA
1812#endif
1813
1814#ifndef GL_ARB_texture_compression_bptc
1815#define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
1816#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
1817#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
1818#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
1819#endif
1820
1821#ifndef GL_ARB_blend_func_extended
1822#define GL_SRC1_COLOR 0x88F9
1823 /* reuse GL_SRC1_ALPHA */
1824#define GL_ONE_MINUS_SRC1_COLOR 0x88FA
1825#define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
1826#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
1827#endif
1828
1829#ifndef GL_ARB_explicit_attrib_location
1830#endif
1831
1832#ifndef GL_ARB_occlusion_query2
1833#define GL_ANY_SAMPLES_PASSED 0x8C2F
1834#endif
1835
1836#ifndef GL_ARB_sampler_objects
1837#define GL_SAMPLER_BINDING 0x8919
1838#endif
1839
1840#ifndef GL_ARB_shader_bit_encoding
1841#endif
1842
1843#ifndef GL_ARB_texture_rgb10_a2ui
1844#define GL_RGB10_A2UI 0x906F
1845#endif
1846
1847#ifndef GL_ARB_texture_swizzle
1848#define GL_TEXTURE_SWIZZLE_R 0x8E42
1849#define GL_TEXTURE_SWIZZLE_G 0x8E43
1850#define GL_TEXTURE_SWIZZLE_B 0x8E44
1851#define GL_TEXTURE_SWIZZLE_A 0x8E45
1852#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
1853#endif
1854
1855#ifndef GL_ARB_timer_query
1856#define GL_TIME_ELAPSED 0x88BF
1857#define GL_TIMESTAMP 0x8E28
1858#endif
1859
1860#ifndef GL_ARB_vertex_type_2_10_10_10_rev
1861 /* reuse GL_UNSIGNED_INT_2_10_10_10_REV */
1862#define GL_INT_2_10_10_10_REV 0x8D9F
1863#endif
1864
1865#ifndef GL_ARB_draw_indirect
1866#define GL_DRAW_INDIRECT_BUFFER 0x8F3F
1867#define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
1868#endif
1869
1870#ifndef GL_ARB_gpu_shader5
1871#define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
1872#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
1873#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
1874#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
1875#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
1876 /* reuse GL_MAX_VERTEX_STREAMS */
1877#endif
1878
1879#ifndef GL_ARB_gpu_shader_fp64
1880 /* reuse GL_DOUBLE */
1881#define GL_DOUBLE_VEC2 0x8FFC
1882#define GL_DOUBLE_VEC3 0x8FFD
1883#define GL_DOUBLE_VEC4 0x8FFE
1884#define GL_DOUBLE_MAT2 0x8F46
1885#define GL_DOUBLE_MAT3 0x8F47
1886#define GL_DOUBLE_MAT4 0x8F48
1887#define GL_DOUBLE_MAT2x3 0x8F49
1888#define GL_DOUBLE_MAT2x4 0x8F4A
1889#define GL_DOUBLE_MAT3x2 0x8F4B
1890#define GL_DOUBLE_MAT3x4 0x8F4C
1891#define GL_DOUBLE_MAT4x2 0x8F4D
1892#define GL_DOUBLE_MAT4x3 0x8F4E
1893#endif
1894
1895#ifndef GL_ARB_shader_subroutine
1896#define GL_ACTIVE_SUBROUTINES 0x8DE5
1897#define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
1898#define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
1899#define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
1900#define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
1901#define GL_MAX_SUBROUTINES 0x8DE7
1902#define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
1903#define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
1904#define GL_COMPATIBLE_SUBROUTINES 0x8E4B
1905 /* reuse GL_UNIFORM_SIZE */
1906 /* reuse GL_UNIFORM_NAME_LENGTH */
1907#endif
1908
1909#ifndef GL_ARB_tessellation_shader
1910#define GL_PATCHES 0x000E
1911#define GL_PATCH_VERTICES 0x8E72
1912#define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
1913#define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
1914#define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
1915#define GL_TESS_GEN_MODE 0x8E76
1916#define GL_TESS_GEN_SPACING 0x8E77
1917#define GL_TESS_GEN_VERTEX_ORDER 0x8E78
1918#define GL_TESS_GEN_POINT_MODE 0x8E79
1919 /* reuse GL_TRIANGLES */
1920 /* reuse GL_QUADS */
1921#define GL_ISOLINES 0x8E7A
1922 /* reuse GL_EQUAL */
1923#define GL_FRACTIONAL_ODD 0x8E7B
1924#define GL_FRACTIONAL_EVEN 0x8E7C
1925 /* reuse GL_CCW */
1926 /* reuse GL_CW */
1927#define GL_MAX_PATCH_VERTICES 0x8E7D
1928#define GL_MAX_TESS_GEN_LEVEL 0x8E7E
1929#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
1930#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
1931#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
1932#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
1933#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
1934#define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
1935#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
1936#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
1937#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
1938#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
1939#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
1940#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
1941#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
1942#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
1943#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
1944#define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
1945#define GL_TESS_EVALUATION_SHADER 0x8E87
1946#define GL_TESS_CONTROL_SHADER 0x8E88
1947#endif
1948
1949#ifndef GL_ARB_texture_buffer_object_rgb32
1950 /* reuse GL_RGB32F */
1951 /* reuse GL_RGB32UI */
1952 /* reuse GL_RGB32I */
1953#endif
1954
1955#ifndef GL_ARB_transform_feedback2
1956#define GL_TRANSFORM_FEEDBACK 0x8E22
1957#define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
1958#define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED GL_TRANSFORM_FEEDBACK_PAUSED
1959#define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
1960#define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE GL_TRANSFORM_FEEDBACK_ACTIVE
1961#define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
1962#endif
1963
1964#ifndef GL_ARB_transform_feedback3
1965#define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
1966#define GL_MAX_VERTEX_STREAMS 0x8E71
1967#endif
1968
1969#ifndef GL_ARB_ES2_compatibility
1970#define GL_FIXED 0x140C
1971#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1972#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1973#define GL_LOW_FLOAT 0x8DF0
1974#define GL_MEDIUM_FLOAT 0x8DF1
1975#define GL_HIGH_FLOAT 0x8DF2
1976#define GL_LOW_INT 0x8DF3
1977#define GL_MEDIUM_INT 0x8DF4
1978#define GL_HIGH_INT 0x8DF5
1979#define GL_SHADER_COMPILER 0x8DFA
1980#define GL_SHADER_BINARY_FORMATS 0x8DF8
1981#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1982#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1983#define GL_MAX_VARYING_VECTORS 0x8DFC
1984#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1985#define GL_RGB565 0x8D62
1986#endif
1987
1988#ifndef GL_ARB_get_program_binary
1989#define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
1990#define GL_PROGRAM_BINARY_LENGTH 0x8741
1991#define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
1992#define GL_PROGRAM_BINARY_FORMATS 0x87FF
1993#endif
1994
1995#ifndef GL_ARB_separate_shader_objects
1996#define GL_VERTEX_SHADER_BIT 0x00000001
1997#define GL_FRAGMENT_SHADER_BIT 0x00000002
1998#define GL_GEOMETRY_SHADER_BIT 0x00000004
1999#define GL_TESS_CONTROL_SHADER_BIT 0x00000008
2000#define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
2001#define GL_ALL_SHADER_BITS 0xFFFFFFFF
2002#define GL_PROGRAM_SEPARABLE 0x8258
2003#define GL_ACTIVE_PROGRAM 0x8259
2004#define GL_PROGRAM_PIPELINE_BINDING 0x825A
2005#endif
2006
2007#ifndef GL_ARB_shader_precision
2008#endif
2009
2010#ifndef GL_ARB_vertex_attrib_64bit
2011 /* reuse GL_RGB32I */
2012 /* reuse GL_DOUBLE_VEC2 */
2013 /* reuse GL_DOUBLE_VEC3 */
2014 /* reuse GL_DOUBLE_VEC4 */
2015 /* reuse GL_DOUBLE_MAT2 */
2016 /* reuse GL_DOUBLE_MAT3 */
2017 /* reuse GL_DOUBLE_MAT4 */
2018 /* reuse GL_DOUBLE_MAT2x3 */
2019 /* reuse GL_DOUBLE_MAT2x4 */
2020 /* reuse GL_DOUBLE_MAT3x2 */
2021 /* reuse GL_DOUBLE_MAT3x4 */
2022 /* reuse GL_DOUBLE_MAT4x2 */
2023 /* reuse GL_DOUBLE_MAT4x3 */
2024#endif
2025
2026#ifndef GL_ARB_viewport_array
2027 /* reuse GL_SCISSOR_BOX */
2028 /* reuse GL_VIEWPORT */
2029 /* reuse GL_DEPTH_RANGE */
2030 /* reuse GL_SCISSOR_TEST */
2031#define GL_MAX_VIEWPORTS 0x825B
2032#define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
2033#define GL_VIEWPORT_BOUNDS_RANGE 0x825D
2034#define GL_LAYER_PROVOKING_VERTEX 0x825E
2035#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
2036#define GL_UNDEFINED_VERTEX 0x8260
2037 /* reuse GL_FIRST_VERTEX_CONVENTION */
2038 /* reuse GL_LAST_VERTEX_CONVENTION */
2039 /* reuse GL_PROVOKING_VERTEX */
2040#endif
2041
2042#ifndef GL_ARB_cl_event
2043#define GL_SYNC_CL_EVENT_ARB 0x8240
2044#define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
2045#endif
2046
2047#ifndef GL_ARB_debug_output
2048#define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
2049#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
2050#define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
2051#define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
2052#define GL_DEBUG_SOURCE_API_ARB 0x8246
2053#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
2054#define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
2055#define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
2056#define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
2057#define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
2058#define GL_DEBUG_TYPE_ERROR_ARB 0x824C
2059#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
2060#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
2061#define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
2062#define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
2063#define GL_DEBUG_TYPE_OTHER_ARB 0x8251
2064#define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
2065#define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
2066#define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
2067#define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
2068#define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
2069#define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
2070#endif
2071
2072#ifndef GL_ARB_robustness
2073 /* reuse GL_NO_ERROR */
2074#define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
2075#define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
2076#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
2077#define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
2078#define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
2079#define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
2080#define GL_NO_RESET_NOTIFICATION_ARB 0x8261
2081#endif
2082
2083#ifndef GL_ARB_shader_stencil_export
2084#endif
2085
2086#ifndef GL_ARB_base_instance
2087#endif
2088
2089#ifndef GL_ARB_shading_language_420pack
2090#endif
2091
2092#ifndef GL_ARB_transform_feedback_instanced
2093#endif
2094
2095#ifndef GL_ARB_compressed_texture_pixel_storage
2096#define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
2097#define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
2098#define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
2099#define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
2100#define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
2101#define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
2102#define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
2103#define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
2104#endif
2105
2106#ifndef GL_ARB_conservative_depth
2107#endif
2108
2109#ifndef GL_ARB_internalformat_query
2110#define GL_NUM_SAMPLE_COUNTS 0x9380
2111#endif
2112
2113#ifndef GL_ARB_map_buffer_alignment
2114#define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
2115#endif
2116
2117#ifndef GL_ARB_shader_atomic_counters
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#endif
2148
2149#ifndef GL_ARB_shader_image_load_store
2150#define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
2151#define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
2152#define GL_UNIFORM_BARRIER_BIT 0x00000004
2153#define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
2154#define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
2155#define GL_COMMAND_BARRIER_BIT 0x00000040
2156#define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
2157#define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
2158#define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
2159#define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
2160#define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
2161#define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
2162#define GL_ALL_BARRIER_BITS 0xFFFFFFFF
2163#define GL_MAX_IMAGE_UNITS 0x8F38
2164#define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
2165#define GL_IMAGE_BINDING_NAME 0x8F3A
2166#define GL_IMAGE_BINDING_LEVEL 0x8F3B
2167#define GL_IMAGE_BINDING_LAYERED 0x8F3C
2168#define GL_IMAGE_BINDING_LAYER 0x8F3D
2169#define GL_IMAGE_BINDING_ACCESS 0x8F3E
2170#define GL_IMAGE_1D 0x904C
2171#define GL_IMAGE_2D 0x904D
2172#define GL_IMAGE_3D 0x904E
2173#define GL_IMAGE_2D_RECT 0x904F
2174#define GL_IMAGE_CUBE 0x9050
2175#define GL_IMAGE_BUFFER 0x9051
2176#define GL_IMAGE_1D_ARRAY 0x9052
2177#define GL_IMAGE_2D_ARRAY 0x9053
2178#define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
2179#define GL_IMAGE_2D_MULTISAMPLE 0x9055
2180#define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
2181#define GL_INT_IMAGE_1D 0x9057
2182#define GL_INT_IMAGE_2D 0x9058
2183#define GL_INT_IMAGE_3D 0x9059
2184#define GL_INT_IMAGE_2D_RECT 0x905A
2185#define GL_INT_IMAGE_CUBE 0x905B
2186#define GL_INT_IMAGE_BUFFER 0x905C
2187#define GL_INT_IMAGE_1D_ARRAY 0x905D
2188#define GL_INT_IMAGE_2D_ARRAY 0x905E
2189#define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
2190#define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
2191#define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
2192#define GL_UNSIGNED_INT_IMAGE_1D 0x9062
2193#define GL_UNSIGNED_INT_IMAGE_2D 0x9063
2194#define GL_UNSIGNED_INT_IMAGE_3D 0x9064
2195#define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
2196#define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
2197#define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
2198#define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
2199#define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
2200#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
2201#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
2202#define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
2203#define GL_MAX_IMAGE_SAMPLES 0x906D
2204#define GL_IMAGE_BINDING_FORMAT 0x906E
2205#define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
2206#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
2207#define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
2208#define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
2209#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
2210#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
2211#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
2212#define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
2213#define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
2214#endif
2215
2216#ifndef GL_ARB_shading_language_packing
2217#endif
2218
2219#ifndef GL_ARB_texture_storage
2220#define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
2221#endif
2222
2223#ifndef GL_KHR_texture_compression_astc_ldr
2224#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
2225#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
2226#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
2227#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
2228#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
2229#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
2230#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
2231#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
2232#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
2233#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
2234#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
2235#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
2236#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
2237#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
2238#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
2239#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
2240#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
2241#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
2242#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
2243#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
2244#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
2245#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
2246#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
2247#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
2248#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
2249#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
2250#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
2251#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
2252#endif
2253
2254#ifndef GL_KHR_debug
2255#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
2256#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
2257#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
2258#define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
2259#define GL_DEBUG_SOURCE_API 0x8246
2260#define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
2261#define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
2262#define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
2263#define GL_DEBUG_SOURCE_APPLICATION 0x824A
2264#define GL_DEBUG_SOURCE_OTHER 0x824B
2265#define GL_DEBUG_TYPE_ERROR 0x824C
2266#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
2267#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
2268#define GL_DEBUG_TYPE_PORTABILITY 0x824F
2269#define GL_DEBUG_TYPE_PERFORMANCE 0x8250
2270#define GL_DEBUG_TYPE_OTHER 0x8251
2271#define GL_DEBUG_TYPE_MARKER 0x8268
2272#define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
2273#define GL_DEBUG_TYPE_POP_GROUP 0x826A
2274#define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
2275#define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
2276#define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
2277#define GL_BUFFER 0x82E0
2278#define GL_SHADER 0x82E1
2279#define GL_PROGRAM 0x82E2
2280#define GL_QUERY 0x82E3
2281#define GL_PROGRAM_PIPELINE 0x82E4
2282#define GL_SAMPLER 0x82E6
2283#define GL_DISPLAY_LIST 0x82E7
2284 /* DISPLAY_LIST used in compatibility profile only */
2285#define GL_MAX_LABEL_LENGTH 0x82E8
2286#define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
2287#define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
2288#define GL_DEBUG_LOGGED_MESSAGES 0x9145
2289#define GL_DEBUG_SEVERITY_HIGH 0x9146
2290#define GL_DEBUG_SEVERITY_MEDIUM 0x9147
2291#define GL_DEBUG_SEVERITY_LOW 0x9148
2292#define GL_DEBUG_OUTPUT 0x92E0
2293#define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
2294 /* reuse GL_STACK_UNDERFLOW */
2295 /* reuse GL_STACK_OVERFLOW */
2296#endif
2297
2298#ifndef GL_ARB_arrays_of_arrays
2299#endif
2300
2301#ifndef GL_ARB_clear_buffer_object
2302#endif
2303
2304#ifndef GL_ARB_compute_shader
2305#define GL_COMPUTE_SHADER 0x91B9
2306#define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
2307#define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
2308#define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
2309#define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
2310#define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
2311#define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
2312#define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
2313#define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
2314#define GL_MAX_COMPUTE_LOCAL_INVOCATIONS 0x90EB
2315#define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
2316#define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
2317#define GL_COMPUTE_LOCAL_WORK_SIZE 0x8267
2318#define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
2319#define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
2320#define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
2321#define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
2322#define GL_COMPUTE_SHADER_BIT 0x00000020
2323#endif
2324
2325#ifndef GL_ARB_copy_image
2326#endif
2327
2328#ifndef GL_ARB_texture_view
2329#define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
2330#define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
2331#define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
2332#define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
2333#define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
2334#endif
2335
2336#ifndef GL_ARB_vertex_attrib_binding
2337#define GL_VERTEX_ATTRIB_BINDING 0x82D4
2338#define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
2339#define GL_VERTEX_BINDING_DIVISOR 0x82D6
2340#define GL_VERTEX_BINDING_OFFSET 0x82D7
2341#define GL_VERTEX_BINDING_STRIDE 0x82D8
2342#define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
2343#define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
2344#endif
2345
2346#ifndef GL_ARB_robustness_isolation
2347#endif
2348
2349#ifndef GL_ARB_ES3_compatibility
2350#define GL_COMPRESSED_RGB8_ETC2 0x9274
2351#define GL_COMPRESSED_SRGB8_ETC2 0x9275
2352#define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
2353#define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
2354#define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
2355#define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
2356#define GL_COMPRESSED_R11_EAC 0x9270
2357#define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
2358#define GL_COMPRESSED_RG11_EAC 0x9272
2359#define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
2360#define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
2361#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
2362#define GL_MAX_ELEMENT_INDEX 0x8D6B
2363#endif
2364
2365#ifndef GL_ARB_explicit_uniform_location
2366#define GL_MAX_UNIFORM_LOCATIONS 0x826E
2367#endif
2368
2369#ifndef GL_ARB_fragment_layer_viewport
2370#endif
2371
2372#ifndef GL_ARB_framebuffer_no_attachments
2373#define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
2374#define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
2375#define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
2376#define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
2377#define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
2378#define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
2379#define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
2380#define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
2381#define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
2382#endif
2383
2384#ifndef GL_ARB_internalformat_query2
2385 /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
2386 /* reuse GL_NUM_SAMPLE_COUNTS */
2387 /* reuse GL_RENDERBUFFER */
2388 /* reuse GL_SAMPLES */
2389 /* reuse GL_TEXTURE_1D */
2390 /* reuse GL_TEXTURE_1D_ARRAY */
2391 /* reuse GL_TEXTURE_2D */
2392 /* reuse GL_TEXTURE_2D_ARRAY */
2393 /* reuse GL_TEXTURE_3D */
2394 /* reuse GL_TEXTURE_CUBE_MAP */
2395 /* reuse GL_TEXTURE_CUBE_MAP_ARRAY */
2396 /* reuse GL_TEXTURE_RECTANGLE */
2397 /* reuse GL_TEXTURE_BUFFER */
2398 /* reuse GL_TEXTURE_2D_MULTISAMPLE */
2399 /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
2400 /* reuse GL_TEXTURE_COMPRESSED */
2401#define GL_INTERNALFORMAT_SUPPORTED 0x826F
2402#define GL_INTERNALFORMAT_PREFERRED 0x8270
2403#define GL_INTERNALFORMAT_RED_SIZE 0x8271
2404#define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
2405#define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
2406#define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
2407#define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
2408#define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
2409#define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
2410#define GL_INTERNALFORMAT_RED_TYPE 0x8278
2411#define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
2412#define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
2413#define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
2414#define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
2415#define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
2416#define GL_MAX_WIDTH 0x827E
2417#define GL_MAX_HEIGHT 0x827F
2418#define GL_MAX_DEPTH 0x8280
2419#define GL_MAX_LAYERS 0x8281
2420#define GL_MAX_COMBINED_DIMENSIONS 0x8282
2421#define GL_COLOR_COMPONENTS 0x8283
2422#define GL_DEPTH_COMPONENTS 0x8284
2423#define GL_STENCIL_COMPONENTS 0x8285
2424#define GL_COLOR_RENDERABLE 0x8286
2425#define GL_DEPTH_RENDERABLE 0x8287
2426#define GL_STENCIL_RENDERABLE 0x8288
2427#define GL_FRAMEBUFFER_RENDERABLE 0x8289
2428#define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
2429#define GL_FRAMEBUFFER_BLEND 0x828B
2430#define GL_READ_PIXELS 0x828C
2431#define GL_READ_PIXELS_FORMAT 0x828D
2432#define GL_READ_PIXELS_TYPE 0x828E
2433#define GL_TEXTURE_IMAGE_FORMAT 0x828F
2434#define GL_TEXTURE_IMAGE_TYPE 0x8290
2435#define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
2436#define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
2437#define GL_MIPMAP 0x8293
2438#define GL_MANUAL_GENERATE_MIPMAP 0x8294
2439#define GL_AUTO_GENERATE_MIPMAP 0x8295
2440#define GL_COLOR_ENCODING 0x8296
2441#define GL_SRGB_READ 0x8297
2442#define GL_SRGB_WRITE 0x8298
2443#define GL_SRGB_DECODE_ARB 0x8299
2444#define GL_FILTER 0x829A
2445#define GL_VERTEX_TEXTURE 0x829B
2446#define GL_TESS_CONTROL_TEXTURE 0x829C
2447#define GL_TESS_EVALUATION_TEXTURE 0x829D
2448#define GL_GEOMETRY_TEXTURE 0x829E
2449#define GL_FRAGMENT_TEXTURE 0x829F
2450#define GL_COMPUTE_TEXTURE 0x82A0
2451#define GL_TEXTURE_SHADOW 0x82A1
2452#define GL_TEXTURE_GATHER 0x82A2
2453#define GL_TEXTURE_GATHER_SHADOW 0x82A3
2454#define GL_SHADER_IMAGE_LOAD 0x82A4
2455#define GL_SHADER_IMAGE_STORE 0x82A5
2456#define GL_SHADER_IMAGE_ATOMIC 0x82A6
2457#define GL_IMAGE_TEXEL_SIZE 0x82A7
2458#define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
2459#define GL_IMAGE_PIXEL_FORMAT 0x82A9
2460#define GL_IMAGE_PIXEL_TYPE 0x82AA
2461#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
2462#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
2463#define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
2464#define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
2465#define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
2466#define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
2467#define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
2468#define GL_CLEAR_BUFFER 0x82B4
2469#define GL_TEXTURE_VIEW 0x82B5
2470#define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
2471#define GL_FULL_SUPPORT 0x82B7
2472#define GL_CAVEAT_SUPPORT 0x82B8
2473#define GL_IMAGE_CLASS_4_X_32 0x82B9
2474#define GL_IMAGE_CLASS_2_X_32 0x82BA
2475#define GL_IMAGE_CLASS_1_X_32 0x82BB
2476#define GL_IMAGE_CLASS_4_X_16 0x82BC
2477#define GL_IMAGE_CLASS_2_X_16 0x82BD
2478#define GL_IMAGE_CLASS_1_X_16 0x82BE
2479#define GL_IMAGE_CLASS_4_X_8 0x82BF
2480#define GL_IMAGE_CLASS_2_X_8 0x82C0
2481#define GL_IMAGE_CLASS_1_X_8 0x82C1
2482#define GL_IMAGE_CLASS_11_11_10 0x82C2
2483#define GL_IMAGE_CLASS_10_10_10_2 0x82C3
2484#define GL_VIEW_CLASS_128_BITS 0x82C4
2485#define GL_VIEW_CLASS_96_BITS 0x82C5
2486#define GL_VIEW_CLASS_64_BITS 0x82C6
2487#define GL_VIEW_CLASS_48_BITS 0x82C7
2488#define GL_VIEW_CLASS_32_BITS 0x82C8
2489#define GL_VIEW_CLASS_24_BITS 0x82C9
2490#define GL_VIEW_CLASS_16_BITS 0x82CA
2491#define GL_VIEW_CLASS_8_BITS 0x82CB
2492#define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
2493#define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
2494#define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
2495#define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
2496#define GL_VIEW_CLASS_RGTC1_RED 0x82D0
2497#define GL_VIEW_CLASS_RGTC2_RG 0x82D1
2498#define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
2499#define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
2500#endif
2501
2502#ifndef GL_ARB_invalidate_subdata
2503#endif
2504
2505#ifndef GL_ARB_multi_draw_indirect
2506#endif
2507
2508#ifndef GL_ARB_program_interface_query
2509#define GL_UNIFORM 0x92E1
2510#define GL_UNIFORM_BLOCK 0x92E2
2511#define GL_PROGRAM_INPUT 0x92E3
2512#define GL_PROGRAM_OUTPUT 0x92E4
2513#define GL_BUFFER_VARIABLE 0x92E5
2514#define GL_SHADER_STORAGE_BLOCK 0x92E6
2515 /* reuse GL_ATOMIC_COUNTER_BUFFER */
2516#define GL_VERTEX_SUBROUTINE 0x92E8
2517#define GL_TESS_CONTROL_SUBROUTINE 0x92E9
2518#define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
2519#define GL_GEOMETRY_SUBROUTINE 0x92EB
2520#define GL_FRAGMENT_SUBROUTINE 0x92EC
2521#define GL_COMPUTE_SUBROUTINE 0x92ED
2522#define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
2523#define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
2524#define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
2525#define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
2526#define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
2527#define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
2528#define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
2529#define GL_ACTIVE_RESOURCES 0x92F5
2530#define GL_MAX_NAME_LENGTH 0x92F6
2531#define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
2532#define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
2533#define GL_NAME_LENGTH 0x92F9
2534#define GL_TYPE 0x92FA
2535#define GL_ARRAY_SIZE 0x92FB
2536#define GL_OFFSET 0x92FC
2537#define GL_BLOCK_INDEX 0x92FD
2538#define GL_ARRAY_STRIDE 0x92FE
2539#define GL_MATRIX_STRIDE 0x92FF
2540#define GL_IS_ROW_MAJOR 0x9300
2541#define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
2542#define GL_BUFFER_BINDING 0x9302
2543#define GL_BUFFER_DATA_SIZE 0x9303
2544#define GL_NUM_ACTIVE_VARIABLES 0x9304
2545#define GL_ACTIVE_VARIABLES 0x9305
2546#define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
2547#define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
2548#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
2549#define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
2550#define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
2551#define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
2552#define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
2553#define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
2554#define GL_LOCATION 0x930E
2555#define GL_LOCATION_INDEX 0x930F
2556#define GL_IS_PER_PATCH 0x92E7
2557 /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
2558 /* reuse GL_COMPATIBLE_SUBROUTINES */
2559#endif
2560
2561#ifndef GL_ARB_robust_buffer_access_behavior
2562#endif
2563
2564#ifndef GL_ARB_shader_image_size
2565#endif
2566
2567#ifndef GL_ARB_shader_storage_buffer_object
2568#define GL_SHADER_STORAGE_BUFFER 0x90D2
2569#define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
2570#define GL_SHADER_STORAGE_BUFFER_START 0x90D4
2571#define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
2572#define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
2573#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
2574#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
2575#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
2576#define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
2577#define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
2578#define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
2579#define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
2580#define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
2581#define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
2582#define GL_SHADER_STORAGE_BARRIER_BIT 0x2000
2583#define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS
2584 /* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
2585#endif
2586
2587#ifndef GL_ARB_stencil_texturing
2588#define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
2589#endif
2590
2591#ifndef GL_ARB_texture_buffer_range
2592#define GL_TEXTURE_BUFFER_OFFSET 0x919D
2593#define GL_TEXTURE_BUFFER_SIZE 0x919E
2594#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
2595#endif
2596
2597#ifndef GL_ARB_texture_query_levels
2598#endif
2599
2600#ifndef GL_ARB_texture_storage_multisample
2601#endif
2602
2603
2604 /*************************************************************/
2605
2606#include <stddef.h>
2607#ifndef GL_VERSION_2_0
2608 /* GL type for program/shader text */
2609 typedef char GLchar;
2610#endif
2611
2612#ifndef GL_VERSION_1_5
2613 /* GL types for handling large vertex buffer objects */
2614 typedef ptrdiff_t GLintptr;
2615 typedef ptrdiff_t GLsizeiptr;
2616#endif
2617
2618#ifndef GL_ARB_vertex_buffer_object
2619 /* GL types for handling large vertex buffer objects */
2620 typedef ptrdiff_t GLintptrARB;
2621 typedef ptrdiff_t GLsizeiptrARB;
2622#endif
2623
2624#ifndef GL_ARB_shader_objects
2625 /* GL types for program/shader text and shader object handles */
2626 typedef char GLcharARB;
2627 typedef unsigned int GLhandleARB;
2628#endif
2629
2630 /* GL type for "half" precision (s10e5) float data in host memory */
2631#ifndef GL_ARB_half_float_pixel
2632 typedef unsigned short GLhalfARB;
2633#endif
2634
2635#ifndef GL_NV_half_float
2636 typedef unsigned short GLhalfNV;
2637#endif
2638
2639#ifndef GLEXT_64_TYPES_DEFINED
2640 /* This code block is duplicated in glxext.h, so must be protected */
2641#define GLEXT_64_TYPES_DEFINED
2642 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
2643 /* (as used in the GL_EXT_timer_query extension). */
2644#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
2645#include <inttypes.h>
2646#elif defined(__sun__) || defined(__digital__)
2647#include <inttypes.h>
2648#if defined(__STDC__)
2649#if defined(__arch64__) || defined(_LP64)
2650 typedef long int int64_t;
2651 typedef unsigned long int uint64_t;
2652#else
2653 typedef long long int int64_t;
2654 typedef unsigned long long int uint64_t;
2655#endif /* __arch64__ */
2656#endif /* __STDC__ */
2657#elif defined( __VMS ) || defined(__sgi)
2658#include <inttypes.h>
2659#elif defined(__SCO__) || defined(__USLC__)
2660#include <stdint.h>
2661#elif defined(__UNIXOS2__) || defined(__SOL64__)
2662 typedef long int int32_t;
2663 typedef long long int int64_t;
2664 typedef unsigned long long int uint64_t;
2665#elif defined(_WIN32) && defined(__GNUC__)
2666#include <stdint.h>
2667#elif defined(_WIN32)
2668 typedef __int32 int32_t;
2669 typedef __int64 int64_t;
2670 typedef unsigned __int64 uint64_t;
2671#else
2672 /* Fallback if nothing above works */
2673#include <inttypes.h>
2674#endif
2675#endif
2676
2677#ifndef GL_EXT_timer_query
2678 typedef int64_t GLint64EXT;
2679 typedef uint64_t GLuint64EXT;
2680#endif
2681
2682#ifndef GL_ARB_sync
2683 typedef int64_t GLint64;
2684 typedef uint64_t GLuint64;
2685 typedef struct __GLsync *GLsync;
2686#endif
2687
2688#ifndef GL_ARB_cl_event
2689 /* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */
2690 struct _cl_context;
2691 struct _cl_event;
2692#endif
2693
2694#ifndef GL_ARB_debug_output
2695 typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam);
2696#endif
2697
2698#ifndef GL_AMD_debug_output
2699 typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam);
2700#endif
2701
2702#ifndef GL_KHR_debug
2703 typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam);
2704#endif
2705
2706#ifndef GL_NV_vdpau_interop
2707 typedef GLintptr GLvdpauSurfaceNV;
2708#endif
2709
2710#ifndef GL_VERSION_1_0
2711#define GL_VERSION_1_0 1
2712#ifdef GLCOREARB_PROTOTYPES
2713 GLAPI void APIENTRY glCullFace(GLenum mode);
2714 GLAPI void APIENTRY glFrontFace(GLenum mode);
2715 GLAPI void APIENTRY glHint(GLenum target, GLenum mode);
2716 GLAPI void APIENTRY glLineWidth(GLfloat width);
2717 GLAPI void APIENTRY glPointSize(GLfloat size);
2718 GLAPI void APIENTRY glPolygonMode(GLenum face, GLenum mode);
2719 GLAPI void APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
2720 GLAPI void APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param);
2721 GLAPI void APIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params);
2722 GLAPI void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param);
2723 GLAPI void APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint *params);
2724 GLAPI void APIENTRY glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2725 GLAPI void APIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2726 GLAPI void APIENTRY glDrawBuffer(GLenum mode);
2727 GLAPI void APIENTRY glClear(GLbitfield mask);
2728 GLAPI void APIENTRY glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2729 GLAPI void APIENTRY glClearStencil(GLint s);
2730 GLAPI void APIENTRY glClearDepth(GLdouble depth);
2731 GLAPI void APIENTRY glStencilMask(GLuint mask);
2732 GLAPI void APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
2733 GLAPI void APIENTRY glDepthMask(GLboolean flag);
2734 GLAPI void APIENTRY glDisable(GLenum cap);
2735 GLAPI void APIENTRY glEnable(GLenum cap);
2736 GLAPI void APIENTRY glFinish(void);
2737 GLAPI void APIENTRY glFlush(void);
2738 GLAPI void APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor);
2739 GLAPI void APIENTRY glLogicOp(GLenum opcode);
2740 GLAPI void APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask);
2741 GLAPI void APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
2742 GLAPI void APIENTRY glDepthFunc(GLenum func);
2743 GLAPI void APIENTRY glPixelStoref(GLenum pname, GLfloat param);
2744 GLAPI void APIENTRY glPixelStorei(GLenum pname, GLint param);
2745 GLAPI void APIENTRY glReadBuffer(GLenum mode);
2746 GLAPI void APIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
2747 GLAPI void APIENTRY glGetBooleanv(GLenum pname, GLboolean *params);
2748 GLAPI void APIENTRY glGetDoublev(GLenum pname, GLdouble *params);
2749 GLAPI GLenum APIENTRY glGetError(void);
2750 GLAPI void APIENTRY glGetFloatv(GLenum pname, GLfloat *params);
2751 GLAPI void APIENTRY glGetIntegerv(GLenum pname, GLint *params);
2752 GLAPI const GLubyte * APIENTRY glGetString(GLenum name);
2753 GLAPI void APIENTRY glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
2754 GLAPI void APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
2755 GLAPI void APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
2756 GLAPI void APIENTRY glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);
2757 GLAPI void APIENTRY glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
2758 GLAPI GLboolean APIENTRY glIsEnabled(GLenum cap);
2759 GLAPI void APIENTRY glDepthRange(GLdouble near, GLdouble far);
2760 GLAPI void APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
2761#endif /* GLCOREARB_PROTOTYPES */
2762 typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
2763 typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
2764 typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
2765 typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
2766 typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size);
2767 typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode);
2768 typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
2769 typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
2770 typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
2771 typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
2772 typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
2773 typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2774 typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2775 typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum mode);
2776 typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
2777 typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2778 typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
2779 typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth);
2780 typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
2781 typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
2782 typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
2783 typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
2784 typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap);
2785 typedef void (APIENTRYP PFNGLFINISHPROC) (void);
2786 typedef void (APIENTRYP PFNGLFLUSHPROC) (void);
2787 typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
2788 typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode);
2789 typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
2790 typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
2791 typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
2792 typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param);
2793 typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
2794 typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum mode);
2795 typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
2796 typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *params);
2797 typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *params);
2798 typedef GLenum(APIENTRYP PFNGLGETERRORPROC) (void);
2799 typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *params);
2800 typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
2801 typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
2802 typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
2803 typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
2804 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
2805 typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params);
2806 typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params);
2807 typedef GLboolean(APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
2808 typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble near, GLdouble far);
2809 typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
2810#endif
2811
2812#ifndef GL_VERSION_1_1
2813#define GL_VERSION_1_1 1
2814#ifdef GLCOREARB_PROTOTYPES
2815 GLAPI void APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count);
2816 GLAPI void APIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
2817 GLAPI void APIENTRY glGetPointerv(GLenum pname, GLvoid* *params);
2818 GLAPI void APIENTRY glPolygonOffset(GLfloat factor, GLfloat units);
2819 GLAPI void APIENTRY glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
2820 GLAPI void APIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
2821 GLAPI void APIENTRY glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
2822 GLAPI void APIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2823 GLAPI void APIENTRY glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
2824 GLAPI void APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
2825 GLAPI void APIENTRY glBindTexture(GLenum target, GLuint texture);
2826 GLAPI void APIENTRY glDeleteTextures(GLsizei n, const GLuint *textures);
2827 GLAPI void APIENTRY glGenTextures(GLsizei n, GLuint *textures);
2828 GLAPI GLboolean APIENTRY glIsTexture(GLuint texture);
2829#endif /* GLCOREARB_PROTOTYPES */
2830 typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
2831 typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
2832 typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, GLvoid* *params);
2833 typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
2834 typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
2835 typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
2836 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
2837 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2838 typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
2839 typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
2840 typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
2841 typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
2842 typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
2843 typedef GLboolean(APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
2844#endif
2845
2846#ifndef GL_VERSION_1_2
2847#define GL_VERSION_1_2 1
2848#ifdef GLCOREARB_PROTOTYPES
2849 GLAPI void APIENTRY glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2850 GLAPI void APIENTRY glBlendEquation(GLenum mode);
2851 GLAPI void APIENTRY glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
2852 GLAPI void APIENTRY glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2853 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 GLvoid *pixels);
2854 GLAPI void APIENTRY glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2855#endif /* GLCOREARB_PROTOTYPES */
2856 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
2857 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
2858 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
2859 typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
2860 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 GLvoid *pixels);
2861 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
2862#endif
2863
2864#ifndef GL_VERSION_1_3
2865#define GL_VERSION_1_3 1
2866#ifdef GLCOREARB_PROTOTYPES
2867 GLAPI void APIENTRY glActiveTexture(GLenum texture);
2868 GLAPI void APIENTRY glSampleCoverage(GLfloat value, GLboolean invert);
2869 GLAPI void APIENTRY glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
2870 GLAPI void APIENTRY glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
2871 GLAPI void APIENTRY glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
2872 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 GLvoid *data);
2873 GLAPI void APIENTRY glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
2874 GLAPI void APIENTRY glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
2875 GLAPI void APIENTRY glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img);
2876#endif /* GLCOREARB_PROTOTYPES */
2877 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
2878 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
2879 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
2880 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
2881 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
2882 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 GLvoid *data);
2883 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
2884 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
2885 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
2886#endif
2887
2888#ifndef GL_VERSION_1_4
2889#define GL_VERSION_1_4 1
2890#ifdef GLCOREARB_PROTOTYPES
2891 GLAPI void APIENTRY glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
2892 GLAPI void APIENTRY glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
2893 GLAPI void APIENTRY glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
2894 GLAPI void APIENTRY glPointParameterf(GLenum pname, GLfloat param);
2895 GLAPI void APIENTRY glPointParameterfv(GLenum pname, const GLfloat *params);
2896 GLAPI void APIENTRY glPointParameteri(GLenum pname, GLint param);
2897 GLAPI void APIENTRY glPointParameteriv(GLenum pname, const GLint *params);
2898#endif /* GLCOREARB_PROTOTYPES */
2899 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
2900 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
2901 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
2902 typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
2903 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
2904 typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
2905 typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
2906#endif
2907
2908#ifndef GL_VERSION_1_5
2909#define GL_VERSION_1_5 1
2910#ifdef GLCOREARB_PROTOTYPES
2911 GLAPI void APIENTRY glGenQueries(GLsizei n, GLuint *ids);
2912 GLAPI void APIENTRY glDeleteQueries(GLsizei n, const GLuint *ids);
2913 GLAPI GLboolean APIENTRY glIsQuery(GLuint id);
2914 GLAPI void APIENTRY glBeginQuery(GLenum target, GLuint id);
2915 GLAPI void APIENTRY glEndQuery(GLenum target);
2916 GLAPI void APIENTRY glGetQueryiv(GLenum target, GLenum pname, GLint *params);
2917 GLAPI void APIENTRY glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params);
2918 GLAPI void APIENTRY glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params);
2919 GLAPI void APIENTRY glBindBuffer(GLenum target, GLuint buffer);
2920 GLAPI void APIENTRY glDeleteBuffers(GLsizei n, const GLuint *buffers);
2921 GLAPI void APIENTRY glGenBuffers(GLsizei n, GLuint *buffers);
2922 GLAPI GLboolean APIENTRY glIsBuffer(GLuint buffer);
2923 GLAPI void APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
2924 GLAPI void APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
2925 GLAPI void APIENTRY glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
2926 GLAPI GLvoid* APIENTRY glMapBuffer(GLenum target, GLenum access);
2927 GLAPI GLboolean APIENTRY glUnmapBuffer(GLenum target);
2928 GLAPI void APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params);
2929 GLAPI void APIENTRY glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params);
2930#endif /* GLCOREARB_PROTOTYPES */
2931 typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
2932 typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
2933 typedef GLboolean(APIENTRYP PFNGLISQUERYPROC) (GLuint id);
2934 typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
2935 typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
2936 typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
2937 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
2938 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
2939 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
2940 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
2941 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
2942 typedef GLboolean(APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
2943 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
2944 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
2945 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
2946 typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
2947 typedef GLboolean(APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
2948 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
2949 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
2950#endif
2951
2952#ifndef GL_VERSION_2_0
2953#define GL_VERSION_2_0 1
2954#ifdef GLCOREARB_PROTOTYPES
2955 GLAPI void APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
2956 GLAPI void APIENTRY glDrawBuffers(GLsizei n, const GLenum *bufs);
2957 GLAPI void APIENTRY glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
2958 GLAPI void APIENTRY glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
2959 GLAPI void APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask);
2960 GLAPI void APIENTRY glAttachShader(GLuint program, GLuint shader);
2961 GLAPI void APIENTRY glBindAttribLocation(GLuint program, GLuint index, const GLchar *name);
2962 GLAPI void APIENTRY glCompileShader(GLuint shader);
2963 GLAPI GLuint APIENTRY glCreateProgram(void);
2964 GLAPI GLuint APIENTRY glCreateShader(GLenum type);
2965 GLAPI void APIENTRY glDeleteProgram(GLuint program);
2966 GLAPI void APIENTRY glDeleteShader(GLuint shader);
2967 GLAPI void APIENTRY glDetachShader(GLuint program, GLuint shader);
2968 GLAPI void APIENTRY glDisableVertexAttribArray(GLuint index);
2969 GLAPI void APIENTRY glEnableVertexAttribArray(GLuint index);
2970 GLAPI void APIENTRY glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
2971 GLAPI void APIENTRY glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
2972 GLAPI void APIENTRY glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
2973 GLAPI GLint APIENTRY glGetAttribLocation(GLuint program, const GLchar *name);
2974 GLAPI void APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint *params);
2975 GLAPI void APIENTRY glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2976 GLAPI void APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint *params);
2977 GLAPI void APIENTRY glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
2978 GLAPI void APIENTRY glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
2979 GLAPI GLint APIENTRY glGetUniformLocation(GLuint program, const GLchar *name);
2980 GLAPI void APIENTRY glGetUniformfv(GLuint program, GLint location, GLfloat *params);
2981 GLAPI void APIENTRY glGetUniformiv(GLuint program, GLint location, GLint *params);
2982 GLAPI void APIENTRY glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params);
2983 GLAPI void APIENTRY glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params);
2984 GLAPI void APIENTRY glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params);
2985 GLAPI void APIENTRY glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer);
2986 GLAPI GLboolean APIENTRY glIsProgram(GLuint program);
2987 GLAPI GLboolean APIENTRY glIsShader(GLuint shader);
2988 GLAPI void APIENTRY glLinkProgram(GLuint program);
2989 GLAPI void APIENTRY glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
2990 GLAPI void APIENTRY glUseProgram(GLuint program);
2991 GLAPI void APIENTRY glUniform1f(GLint location, GLfloat v0);
2992 GLAPI void APIENTRY glUniform2f(GLint location, GLfloat v0, GLfloat v1);
2993 GLAPI void APIENTRY glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
2994 GLAPI void APIENTRY glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
2995 GLAPI void APIENTRY glUniform1i(GLint location, GLint v0);
2996 GLAPI void APIENTRY glUniform2i(GLint location, GLint v0, GLint v1);
2997 GLAPI void APIENTRY glUniform3i(GLint location, GLint v0, GLint v1, GLint v2);
2998 GLAPI void APIENTRY glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
2999 GLAPI void APIENTRY glUniform1fv(GLint location, GLsizei count, const GLfloat *value);
3000 GLAPI void APIENTRY glUniform2fv(GLint location, GLsizei count, const GLfloat *value);
3001 GLAPI void APIENTRY glUniform3fv(GLint location, GLsizei count, const GLfloat *value);
3002 GLAPI void APIENTRY glUniform4fv(GLint location, GLsizei count, const GLfloat *value);
3003 GLAPI void APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint *value);
3004 GLAPI void APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint *value);
3005 GLAPI void APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint *value);
3006 GLAPI void APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint *value);
3007 GLAPI void APIENTRY glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3008 GLAPI void APIENTRY glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3009 GLAPI void APIENTRY glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3010 GLAPI void APIENTRY glValidateProgram(GLuint program);
3011 GLAPI void APIENTRY glVertexAttrib1d(GLuint index, GLdouble x);
3012 GLAPI void APIENTRY glVertexAttrib1dv(GLuint index, const GLdouble *v);
3013 GLAPI void APIENTRY glVertexAttrib1f(GLuint index, GLfloat x);
3014 GLAPI void APIENTRY glVertexAttrib1fv(GLuint index, const GLfloat *v);
3015 GLAPI void APIENTRY glVertexAttrib1s(GLuint index, GLshort x);
3016 GLAPI void APIENTRY glVertexAttrib1sv(GLuint index, const GLshort *v);
3017 GLAPI void APIENTRY glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y);
3018 GLAPI void APIENTRY glVertexAttrib2dv(GLuint index, const GLdouble *v);
3019 GLAPI void APIENTRY glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y);
3020 GLAPI void APIENTRY glVertexAttrib2fv(GLuint index, const GLfloat *v);
3021 GLAPI void APIENTRY glVertexAttrib2s(GLuint index, GLshort x, GLshort y);
3022 GLAPI void APIENTRY glVertexAttrib2sv(GLuint index, const GLshort *v);
3023 GLAPI void APIENTRY glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);
3024 GLAPI void APIENTRY glVertexAttrib3dv(GLuint index, const GLdouble *v);
3025 GLAPI void APIENTRY glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z);
3026 GLAPI void APIENTRY glVertexAttrib3fv(GLuint index, const GLfloat *v);
3027 GLAPI void APIENTRY glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z);
3028 GLAPI void APIENTRY glVertexAttrib3sv(GLuint index, const GLshort *v);
3029 GLAPI void APIENTRY glVertexAttrib4Nbv(GLuint index, const GLbyte *v);
3030 GLAPI void APIENTRY glVertexAttrib4Niv(GLuint index, const GLint *v);
3031 GLAPI void APIENTRY glVertexAttrib4Nsv(GLuint index, const GLshort *v);
3032 GLAPI void APIENTRY glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
3033 GLAPI void APIENTRY glVertexAttrib4Nubv(GLuint index, const GLubyte *v);
3034 GLAPI void APIENTRY glVertexAttrib4Nuiv(GLuint index, const GLuint *v);
3035 GLAPI void APIENTRY glVertexAttrib4Nusv(GLuint index, const GLushort *v);
3036 GLAPI void APIENTRY glVertexAttrib4bv(GLuint index, const GLbyte *v);
3037 GLAPI void APIENTRY glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3038 GLAPI void APIENTRY glVertexAttrib4dv(GLuint index, const GLdouble *v);
3039 GLAPI void APIENTRY glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3040 GLAPI void APIENTRY glVertexAttrib4fv(GLuint index, const GLfloat *v);
3041 GLAPI void APIENTRY glVertexAttrib4iv(GLuint index, const GLint *v);
3042 GLAPI void APIENTRY glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
3043 GLAPI void APIENTRY glVertexAttrib4sv(GLuint index, const GLshort *v);
3044 GLAPI void APIENTRY glVertexAttrib4ubv(GLuint index, const GLubyte *v);
3045 GLAPI void APIENTRY glVertexAttrib4uiv(GLuint index, const GLuint *v);
3046 GLAPI void APIENTRY glVertexAttrib4usv(GLuint index, const GLushort *v);
3047 GLAPI void APIENTRY glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
3048#endif /* GLCOREARB_PROTOTYPES */
3049 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
3050 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
3051 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
3052 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
3053 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
3054 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
3055 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
3056 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
3057 typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
3058 typedef GLuint(APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
3059 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
3060 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
3061 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
3062 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
3063 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
3064 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3065 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
3066 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
3067 typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
3068 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
3069 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3070 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
3071 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
3072 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
3073 typedef GLint(APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
3074 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
3075 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
3076 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
3077 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
3078 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
3079 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
3080 typedef GLboolean(APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
3081 typedef GLboolean(APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
3082 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
3083 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
3084 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
3085 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
3086 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
3087 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
3088 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
3089 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
3090 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
3091 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
3092 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
3093 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3094 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3095 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3096 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
3097 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
3098 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
3099 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
3100 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
3101 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3102 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3103 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3104 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
3105 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
3106 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
3107 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
3108 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
3109 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
3110 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
3111 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
3112 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
3113 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
3114 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
3115 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
3116 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
3117 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
3118 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
3119 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
3120 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
3121 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
3122 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
3123 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
3124 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
3125 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
3126 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
3127 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
3128 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
3129 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
3130 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
3131 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3132 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
3133 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
3134 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
3135 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
3136 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
3137 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
3138 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
3139 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
3140 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
3141 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
3142#endif
3143
3144#ifndef GL_VERSION_2_1
3145#define GL_VERSION_2_1 1
3146#ifdef GLCOREARB_PROTOTYPES
3147 GLAPI void APIENTRY glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3148 GLAPI void APIENTRY glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3149 GLAPI void APIENTRY glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3150 GLAPI void APIENTRY glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3151 GLAPI void APIENTRY glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3152 GLAPI void APIENTRY glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3153#endif /* GLCOREARB_PROTOTYPES */
3154 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3155 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3156 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3157 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3158 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3159 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
3160#endif
3161
3162#ifndef GL_VERSION_3_0
3163#define GL_VERSION_3_0 1
3164 /* OpenGL 3.0 also reuses entry points from these extensions: */
3165 /* ARB_framebuffer_object */
3166 /* ARB_map_buffer_range */
3167 /* ARB_vertex_array_object */
3168#ifdef GLCOREARB_PROTOTYPES
3169 GLAPI void APIENTRY glColorMaski(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
3170 GLAPI void APIENTRY glGetBooleani_v(GLenum target, GLuint index, GLboolean *data);
3171 GLAPI void APIENTRY glGetIntegeri_v(GLenum target, GLuint index, GLint *data);
3172 GLAPI void APIENTRY glEnablei(GLenum target, GLuint index);
3173 GLAPI void APIENTRY glDisablei(GLenum target, GLuint index);
3174 GLAPI GLboolean APIENTRY glIsEnabledi(GLenum target, GLuint index);
3175 GLAPI void APIENTRY glBeginTransformFeedback(GLenum primitiveMode);
3176 GLAPI void APIENTRY glEndTransformFeedback(void);
3177 GLAPI void APIENTRY glBindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
3178 GLAPI void APIENTRY glBindBufferBase(GLenum target, GLuint index, GLuint buffer);
3179 GLAPI void APIENTRY glTransformFeedbackVaryings(GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
3180 GLAPI void APIENTRY glGetTransformFeedbackVarying(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
3181 GLAPI void APIENTRY glClampColor(GLenum target, GLenum clamp);
3182 GLAPI void APIENTRY glBeginConditionalRender(GLuint id, GLenum mode);
3183 GLAPI void APIENTRY glEndConditionalRender(void);
3184 GLAPI void APIENTRY glVertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
3185 GLAPI void APIENTRY glGetVertexAttribIiv(GLuint index, GLenum pname, GLint *params);
3186 GLAPI void APIENTRY glGetVertexAttribIuiv(GLuint index, GLenum pname, GLuint *params);
3187 GLAPI void APIENTRY glVertexAttribI1i(GLuint index, GLint x);
3188 GLAPI void APIENTRY glVertexAttribI2i(GLuint index, GLint x, GLint y);
3189 GLAPI void APIENTRY glVertexAttribI3i(GLuint index, GLint x, GLint y, GLint z);
3190 GLAPI void APIENTRY glVertexAttribI4i(GLuint index, GLint x, GLint y, GLint z, GLint w);
3191 GLAPI void APIENTRY glVertexAttribI1ui(GLuint index, GLuint x);
3192 GLAPI void APIENTRY glVertexAttribI2ui(GLuint index, GLuint x, GLuint y);
3193 GLAPI void APIENTRY glVertexAttribI3ui(GLuint index, GLuint x, GLuint y, GLuint z);
3194 GLAPI void APIENTRY glVertexAttribI4ui(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
3195 GLAPI void APIENTRY glVertexAttribI1iv(GLuint index, const GLint *v);
3196 GLAPI void APIENTRY glVertexAttribI2iv(GLuint index, const GLint *v);
3197 GLAPI void APIENTRY glVertexAttribI3iv(GLuint index, const GLint *v);
3198 GLAPI void APIENTRY glVertexAttribI4iv(GLuint index, const GLint *v);
3199 GLAPI void APIENTRY glVertexAttribI1uiv(GLuint index, const GLuint *v);
3200 GLAPI void APIENTRY glVertexAttribI2uiv(GLuint index, const GLuint *v);
3201 GLAPI void APIENTRY glVertexAttribI3uiv(GLuint index, const GLuint *v);
3202 GLAPI void APIENTRY glVertexAttribI4uiv(GLuint index, const GLuint *v);
3203 GLAPI void APIENTRY glVertexAttribI4bv(GLuint index, const GLbyte *v);
3204 GLAPI void APIENTRY glVertexAttribI4sv(GLuint index, const GLshort *v);
3205 GLAPI void APIENTRY glVertexAttribI4ubv(GLuint index, const GLubyte *v);
3206 GLAPI void APIENTRY glVertexAttribI4usv(GLuint index, const GLushort *v);
3207 GLAPI void APIENTRY glGetUniformuiv(GLuint program, GLint location, GLuint *params);
3208 GLAPI void APIENTRY glBindFragDataLocation(GLuint program, GLuint color, const GLchar *name);
3209 GLAPI GLint APIENTRY glGetFragDataLocation(GLuint program, const GLchar *name);
3210 GLAPI void APIENTRY glUniform1ui(GLint location, GLuint v0);
3211 GLAPI void APIENTRY glUniform2ui(GLint location, GLuint v0, GLuint v1);
3212 GLAPI void APIENTRY glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2);
3213 GLAPI void APIENTRY glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
3214 GLAPI void APIENTRY glUniform1uiv(GLint location, GLsizei count, const GLuint *value);
3215 GLAPI void APIENTRY glUniform2uiv(GLint location, GLsizei count, const GLuint *value);
3216 GLAPI void APIENTRY glUniform3uiv(GLint location, GLsizei count, const GLuint *value);
3217 GLAPI void APIENTRY glUniform4uiv(GLint location, GLsizei count, const GLuint *value);
3218 GLAPI void APIENTRY glTexParameterIiv(GLenum target, GLenum pname, const GLint *params);
3219 GLAPI void APIENTRY glTexParameterIuiv(GLenum target, GLenum pname, const GLuint *params);
3220 GLAPI void APIENTRY glGetTexParameterIiv(GLenum target, GLenum pname, GLint *params);
3221 GLAPI void APIENTRY glGetTexParameterIuiv(GLenum target, GLenum pname, GLuint *params);
3222 GLAPI void APIENTRY glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value);
3223 GLAPI void APIENTRY glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value);
3224 GLAPI void APIENTRY glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value);
3225 GLAPI void APIENTRY glClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
3226 GLAPI const GLubyte * APIENTRY glGetStringi(GLenum name, GLuint index);
3227#endif /* GLCOREARB_PROTOTYPES */
3228 typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
3229 typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
3230 typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
3231 typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
3232 typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
3233 typedef GLboolean(APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
3234 typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
3235 typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
3236 typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
3237 typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
3238 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
3239 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
3240 typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
3241 typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
3242 typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
3243 typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
3244 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
3245 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
3246 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
3247 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
3248 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
3249 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
3250 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
3251 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
3252 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
3253 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
3254 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
3255 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
3256 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
3257 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
3258 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
3259 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
3260 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
3261 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
3262 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
3263 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
3264 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
3265 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
3266 typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
3267 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
3268 typedef GLint(APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
3269 typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
3270 typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
3271 typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
3272 typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
3273 typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
3274 typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
3275 typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
3276 typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
3277 typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
3278 typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
3279 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
3280 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
3281 typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
3282 typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
3283 typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
3284 typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
3285 typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
3286#endif
3287
3288#ifndef GL_VERSION_3_1
3289#define GL_VERSION_3_1 1
3290 /* OpenGL 3.1 also reuses entry points from these extensions: */
3291 /* ARB_copy_buffer */
3292 /* ARB_uniform_buffer_object */
3293#ifdef GLCOREARB_PROTOTYPES
3294 GLAPI void APIENTRY glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
3295 GLAPI void APIENTRY glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
3296 GLAPI void APIENTRY glTexBuffer(GLenum target, GLenum internalformat, GLuint buffer);
3297 GLAPI void APIENTRY glPrimitiveRestartIndex(GLuint index);
3298#endif /* GLCOREARB_PROTOTYPES */
3299 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
3300 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
3301 typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
3302 typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
3303#endif
3304
3305#ifndef GL_VERSION_3_2
3306#define GL_VERSION_3_2 1
3307 /* OpenGL 3.2 also reuses entry points from these extensions: */
3308 /* ARB_draw_elements_base_vertex */
3309 /* ARB_provoking_vertex */
3310 /* ARB_sync */
3311 /* ARB_texture_multisample */
3312#ifdef GLCOREARB_PROTOTYPES
3313 GLAPI void APIENTRY glGetInteger64i_v(GLenum target, GLuint index, GLint64 *data);
3314 GLAPI void APIENTRY glGetBufferParameteri64v(GLenum target, GLenum pname, GLint64 *params);
3315 GLAPI void APIENTRY glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level);
3316#endif /* GLCOREARB_PROTOTYPES */
3317 typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
3318 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
3319 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
3320#endif
3321
3322#ifndef GL_VERSION_3_3
3323#define GL_VERSION_3_3 1
3324 /* OpenGL 3.3 also reuses entry points from these extensions: */
3325 /* ARB_blend_func_extended */
3326 /* ARB_sampler_objects */
3327 /* ARB_explicit_attrib_location, but it has none */
3328 /* ARB_occlusion_query2 (no entry points) */
3329 /* ARB_shader_bit_encoding (no entry points) */
3330 /* ARB_texture_rgb10_a2ui (no entry points) */
3331 /* ARB_texture_swizzle (no entry points) */
3332 /* ARB_timer_query */
3333 /* ARB_vertex_type_2_10_10_10_rev */
3334#ifdef GLCOREARB_PROTOTYPES
3335 GLAPI void APIENTRY glVertexAttribDivisor(GLuint index, GLuint divisor);
3336#endif /* GLCOREARB_PROTOTYPES */
3337 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
3338#endif
3339
3340#ifndef GL_VERSION_4_0
3341#define GL_VERSION_4_0 1
3342 /* OpenGL 4.0 also reuses entry points from these extensions: */
3343 /* ARB_texture_query_lod (no entry points) */
3344 /* ARB_draw_indirect */
3345 /* ARB_gpu_shader5 (no entry points) */
3346 /* ARB_gpu_shader_fp64 */
3347 /* ARB_shader_subroutine */
3348 /* ARB_tessellation_shader */
3349 /* ARB_texture_buffer_object_rgb32 (no entry points) */
3350 /* ARB_texture_cube_map_array (no entry points) */
3351 /* ARB_texture_gather (no entry points) */
3352 /* ARB_transform_feedback2 */
3353 /* ARB_transform_feedback3 */
3354#ifdef GLCOREARB_PROTOTYPES
3355 GLAPI void APIENTRY glMinSampleShading(GLfloat value);
3356 GLAPI void APIENTRY glBlendEquationi(GLuint buf, GLenum mode);
3357 GLAPI void APIENTRY glBlendEquationSeparatei(GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3358 GLAPI void APIENTRY glBlendFunci(GLuint buf, GLenum src, GLenum dst);
3359 GLAPI void APIENTRY glBlendFuncSeparatei(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
3360#endif /* GLCOREARB_PROTOTYPES */
3361 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
3362 typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
3363 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3364 typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
3365 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
3366#endif
3367
3368#ifndef GL_VERSION_4_1
3369#define GL_VERSION_4_1 1
3370 /* OpenGL 4.1 reuses entry points from these extensions: */
3371 /* ARB_ES2_compatibility */
3372 /* ARB_get_program_binary */
3373 /* ARB_separate_shader_objects */
3374 /* ARB_shader_precision (no entry points) */
3375 /* ARB_vertex_attrib_64bit */
3376 /* ARB_viewport_array */
3377#endif
3378
3379#ifndef GL_VERSION_4_2
3380#define GL_VERSION_4_2 1
3381 /* OpenGL 4.2 reuses entry points from these extensions: */
3382 /* ARB_base_instance */
3383 /* ARB_shading_language_420pack (no entry points) */
3384 /* ARB_transform_feedback_instanced */
3385 /* ARB_compressed_texture_pixel_storage (no entry points) */
3386 /* ARB_conservative_depth (no entry points) */
3387 /* ARB_internalformat_query */
3388 /* ARB_map_buffer_alignment (no entry points) */
3389 /* ARB_shader_atomic_counters */
3390 /* ARB_shader_image_load_store */
3391 /* ARB_shading_language_packing (no entry points) */
3392 /* ARB_texture_storage */
3393#endif
3394
3395#ifndef GL_VERSION_4_3
3396#define GL_VERSION_4_3 1
3397 /* OpenGL 4.3 reuses entry points from these extensions: */
3398 /* ARB_arrays_of_arrays (no entry points, GLSL only) */
3399 /* ARB_fragment_layer_viewport (no entry points, GLSL only) */
3400 /* ARB_shader_image_size (no entry points, GLSL only) */
3401 /* ARB_ES3_compatibility (no entry points) */
3402 /* ARB_clear_buffer_object */
3403 /* ARB_compute_shader */
3404 /* ARB_copy_image */
3405 /* KHR_debug (includes ARB_debug_output commands promoted to KHR without suffixes) */
3406 /* ARB_explicit_uniform_location (no entry points) */
3407 /* ARB_framebuffer_no_attachments */
3408 /* ARB_internalformat_query2 */
3409 /* ARB_invalidate_subdata */
3410 /* ARB_multi_draw_indirect */
3411 /* ARB_program_interface_query */
3412 /* ARB_robust_buffer_access_behavior (no entry points) */
3413 /* ARB_shader_storage_buffer_object */
3414 /* ARB_stencil_texturing (no entry points) */
3415 /* ARB_texture_buffer_range */
3416 /* ARB_texture_query_levels (no entry points) */
3417 /* ARB_texture_storage_multisample */
3418 /* ARB_texture_view */
3419 /* ARB_vertex_attrib_binding */
3420#endif
3421
3422#ifndef GL_ARB_depth_buffer_float
3423#define GL_ARB_depth_buffer_float 1
3424#endif
3425
3426#ifndef GL_ARB_framebuffer_object
3427#define GL_ARB_framebuffer_object 1
3428#ifdef GLCOREARB_PROTOTYPES
3429 GLAPI GLboolean APIENTRY glIsRenderbuffer(GLuint renderbuffer);
3430 GLAPI void APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer);
3431 GLAPI void APIENTRY glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers);
3432 GLAPI void APIENTRY glGenRenderbuffers(GLsizei n, GLuint *renderbuffers);
3433 GLAPI void APIENTRY glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
3434 GLAPI void APIENTRY glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params);
3435 GLAPI GLboolean APIENTRY glIsFramebuffer(GLuint framebuffer);
3436 GLAPI void APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer);
3437 GLAPI void APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers);
3438 GLAPI void APIENTRY glGenFramebuffers(GLsizei n, GLuint *framebuffers);
3439 GLAPI GLenum APIENTRY glCheckFramebufferStatus(GLenum target);
3440 GLAPI void APIENTRY glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3441 GLAPI void APIENTRY glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3442 GLAPI void APIENTRY glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
3443 GLAPI void APIENTRY glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
3444 GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params);
3445 GLAPI void APIENTRY glGenerateMipmap(GLenum target);
3446 GLAPI void APIENTRY glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
3447 GLAPI void APIENTRY glRenderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
3448 GLAPI void APIENTRY glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3449#endif /* GLCOREARB_PROTOTYPES */
3450 typedef GLboolean(APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
3451 typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
3452 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
3453 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
3454 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
3455 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
3456 typedef GLboolean(APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
3457 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
3458 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
3459 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
3460 typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
3461 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3462 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
3463 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
3464 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
3465 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
3466 typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
3467 typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
3468 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
3469 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
3470#endif
3471
3472#ifndef GL_ARB_framebuffer_sRGB
3473#define GL_ARB_framebuffer_sRGB 1
3474#endif
3475
3476#ifndef GL_ARB_half_float_vertex
3477#define GL_ARB_half_float_vertex 1
3478#endif
3479
3480#ifndef GL_ARB_map_buffer_range
3481#define GL_ARB_map_buffer_range 1
3482#ifdef GLCOREARB_PROTOTYPES
3483 GLAPI GLvoid* APIENTRY glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
3484 GLAPI void APIENTRY glFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);
3485#endif /* GLCOREARB_PROTOTYPES */
3486 typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
3487 typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
3488#endif
3489
3490#ifndef GL_ARB_texture_compression_rgtc
3491#define GL_ARB_texture_compression_rgtc 1
3492#endif
3493
3494#ifndef GL_ARB_texture_rg
3495#define GL_ARB_texture_rg 1
3496#endif
3497
3498#ifndef GL_ARB_vertex_array_object
3499#define GL_ARB_vertex_array_object 1
3500#ifdef GLCOREARB_PROTOTYPES
3501 GLAPI void APIENTRY glBindVertexArray(GLuint array);
3502 GLAPI void APIENTRY glDeleteVertexArrays(GLsizei n, const GLuint *arrays);
3503 GLAPI void APIENTRY glGenVertexArrays(GLsizei n, GLuint *arrays);
3504 GLAPI GLboolean APIENTRY glIsVertexArray(GLuint array);
3505#endif /* GLCOREARB_PROTOTYPES */
3506 typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
3507 typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
3508 typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
3509 typedef GLboolean(APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
3510#endif
3511
3512#ifndef GL_ARB_uniform_buffer_object
3513#define GL_ARB_uniform_buffer_object 1
3514#ifdef GLCOREARB_PROTOTYPES
3515 GLAPI void APIENTRY glGetUniformIndices(GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
3516 GLAPI void APIENTRY glGetActiveUniformsiv(GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
3517 GLAPI void APIENTRY glGetActiveUniformName(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
3518 GLAPI GLuint APIENTRY glGetUniformBlockIndex(GLuint program, const GLchar *uniformBlockName);
3519 GLAPI void APIENTRY glGetActiveUniformBlockiv(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
3520 GLAPI void APIENTRY glGetActiveUniformBlockName(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
3521 GLAPI void APIENTRY glUniformBlockBinding(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
3522#endif /* GLCOREARB_PROTOTYPES */
3523 typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
3524 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
3525 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
3526 typedef GLuint(APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
3527 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
3528 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
3529 typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
3530#endif
3531
3532#ifndef GL_ARB_copy_buffer
3533#define GL_ARB_copy_buffer 1
3534#ifdef GLCOREARB_PROTOTYPES
3535 GLAPI void APIENTRY glCopyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
3536#endif /* GLCOREARB_PROTOTYPES */
3537 typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
3538#endif
3539
3540#ifndef GL_ARB_depth_clamp
3541#define GL_ARB_depth_clamp 1
3542#endif
3543
3544#ifndef GL_ARB_draw_elements_base_vertex
3545#define GL_ARB_draw_elements_base_vertex 1
3546#ifdef GLCOREARB_PROTOTYPES
3547 GLAPI void APIENTRY glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
3548 GLAPI void APIENTRY glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
3549 GLAPI void APIENTRY glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
3550 GLAPI void APIENTRY glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
3551#endif /* GLCOREARB_PROTOTYPES */
3552 typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
3553 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
3554 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
3555 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
3556#endif
3557
3558#ifndef GL_ARB_fragment_coord_conventions
3559#define GL_ARB_fragment_coord_conventions 1
3560#endif
3561
3562#ifndef GL_ARB_provoking_vertex
3563#define GL_ARB_provoking_vertex 1
3564#ifdef GLCOREARB_PROTOTYPES
3565 GLAPI void APIENTRY glProvokingVertex(GLenum mode);
3566#endif /* GLCOREARB_PROTOTYPES */
3567 typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
3568#endif
3569
3570#ifndef GL_ARB_seamless_cube_map
3571#define GL_ARB_seamless_cube_map 1
3572#endif
3573
3574#ifndef GL_ARB_sync
3575#define GL_ARB_sync 1
3576#ifdef GLCOREARB_PROTOTYPES
3577 GLAPI GLsync APIENTRY glFenceSync(GLenum condition, GLbitfield flags);
3578 GLAPI GLboolean APIENTRY glIsSync(GLsync sync);
3579 GLAPI void APIENTRY glDeleteSync(GLsync sync);
3580 GLAPI GLenum APIENTRY glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
3581 GLAPI void APIENTRY glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout);
3582 GLAPI void APIENTRY glGetInteger64v(GLenum pname, GLint64 *params);
3583 GLAPI void APIENTRY glGetSynciv(GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
3584#endif /* GLCOREARB_PROTOTYPES */
3585 typedef GLsync(APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
3586 typedef GLboolean(APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
3587 typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
3588 typedef GLenum(APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
3589 typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
3590 typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params);
3591 typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
3592#endif
3593
3594#ifndef GL_ARB_texture_multisample
3595#define GL_ARB_texture_multisample 1
3596#ifdef GLCOREARB_PROTOTYPES
3597 GLAPI void APIENTRY glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
3598 GLAPI void APIENTRY glTexImage3DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
3599 GLAPI void APIENTRY glGetMultisamplefv(GLenum pname, GLuint index, GLfloat *val);
3600 GLAPI void APIENTRY glSampleMaski(GLuint index, GLbitfield mask);
3601#endif /* GLCOREARB_PROTOTYPES */
3602 typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
3603 typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
3604 typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
3605 typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
3606#endif
3607
3608#ifndef GL_ARB_vertex_array_bgra
3609#define GL_ARB_vertex_array_bgra 1
3610#endif
3611
3612#ifndef GL_ARB_draw_buffers_blend
3613#define GL_ARB_draw_buffers_blend 1
3614#ifdef GLCOREARB_PROTOTYPES
3615 GLAPI void APIENTRY glBlendEquationiARB(GLuint buf, GLenum mode);
3616 GLAPI void APIENTRY glBlendEquationSeparateiARB(GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3617 GLAPI void APIENTRY glBlendFunciARB(GLuint buf, GLenum src, GLenum dst);
3618 GLAPI void APIENTRY glBlendFuncSeparateiARB(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
3619#endif /* GLCOREARB_PROTOTYPES */
3620 typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
3621 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
3622 typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
3623 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
3624#endif
3625
3626#ifndef GL_ARB_sample_shading
3627#define GL_ARB_sample_shading 1
3628#ifdef GLCOREARB_PROTOTYPES
3629 GLAPI void APIENTRY glMinSampleShadingARB(GLfloat value);
3630#endif /* GLCOREARB_PROTOTYPES */
3631 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
3632#endif
3633
3634#ifndef GL_ARB_texture_cube_map_array
3635#define GL_ARB_texture_cube_map_array 1
3636#endif
3637
3638#ifndef GL_ARB_texture_gather
3639#define GL_ARB_texture_gather 1
3640#endif
3641
3642#ifndef GL_ARB_texture_query_lod
3643#define GL_ARB_texture_query_lod 1
3644#endif
3645
3646#ifndef GL_ARB_shading_language_include
3647#define GL_ARB_shading_language_include 1
3648#ifdef GLCOREARB_PROTOTYPES
3649 GLAPI void APIENTRY glNamedStringARB(GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
3650 GLAPI void APIENTRY glDeleteNamedStringARB(GLint namelen, const GLchar *name);
3651 GLAPI void APIENTRY glCompileShaderIncludeARB(GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
3652 GLAPI GLboolean APIENTRY glIsNamedStringARB(GLint namelen, const GLchar *name);
3653 GLAPI void APIENTRY glGetNamedStringARB(GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
3654 GLAPI void APIENTRY glGetNamedStringivARB(GLint namelen, const GLchar *name, GLenum pname, GLint *params);
3655#endif /* GLCOREARB_PROTOTYPES */
3656 typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
3657 typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
3658 typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
3659 typedef GLboolean(APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
3660 typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
3661 typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
3662#endif
3663
3664#ifndef GL_ARB_texture_compression_bptc
3665#define GL_ARB_texture_compression_bptc 1
3666#endif
3667
3668#ifndef GL_ARB_blend_func_extended
3669#define GL_ARB_blend_func_extended 1
3670#ifdef GLCOREARB_PROTOTYPES
3671 GLAPI void APIENTRY glBindFragDataLocationIndexed(GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
3672 GLAPI GLint APIENTRY glGetFragDataIndex(GLuint program, const GLchar *name);
3673#endif /* GLCOREARB_PROTOTYPES */
3674 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
3675 typedef GLint(APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
3676#endif
3677
3678#ifndef GL_ARB_explicit_attrib_location
3679#define GL_ARB_explicit_attrib_location 1
3680#endif
3681
3682#ifndef GL_ARB_occlusion_query2
3683#define GL_ARB_occlusion_query2 1
3684#endif
3685
3686#ifndef GL_ARB_sampler_objects
3687#define GL_ARB_sampler_objects 1
3688#ifdef GLCOREARB_PROTOTYPES
3689 GLAPI void APIENTRY glGenSamplers(GLsizei count, GLuint *samplers);
3690 GLAPI void APIENTRY glDeleteSamplers(GLsizei count, const GLuint *samplers);
3691 GLAPI GLboolean APIENTRY glIsSampler(GLuint sampler);
3692 GLAPI void APIENTRY glBindSampler(GLuint unit, GLuint sampler);
3693 GLAPI void APIENTRY glSamplerParameteri(GLuint sampler, GLenum pname, GLint param);
3694 GLAPI void APIENTRY glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint *param);
3695 GLAPI void APIENTRY glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param);
3696 GLAPI void APIENTRY glSamplerParameterfv(GLuint sampler, GLenum pname, const GLfloat *param);
3697 GLAPI void APIENTRY glSamplerParameterIiv(GLuint sampler, GLenum pname, const GLint *param);
3698 GLAPI void APIENTRY glSamplerParameterIuiv(GLuint sampler, GLenum pname, const GLuint *param);
3699 GLAPI void APIENTRY glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint *params);
3700 GLAPI void APIENTRY glGetSamplerParameterIiv(GLuint sampler, GLenum pname, GLint *params);
3701 GLAPI void APIENTRY glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat *params);
3702 GLAPI void APIENTRY glGetSamplerParameterIuiv(GLuint sampler, GLenum pname, GLuint *params);
3703#endif /* GLCOREARB_PROTOTYPES */
3704 typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
3705 typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
3706 typedef GLboolean(APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
3707 typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
3708 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
3709 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
3710 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
3711 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
3712 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
3713 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
3714 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
3715 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
3716 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
3717 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
3718#endif
3719
3720#ifndef GL_ARB_shader_bit_encoding
3721#define GL_ARB_shader_bit_encoding 1
3722#endif
3723
3724#ifndef GL_ARB_texture_rgb10_a2ui
3725#define GL_ARB_texture_rgb10_a2ui 1
3726#endif
3727
3728#ifndef GL_ARB_texture_swizzle
3729#define GL_ARB_texture_swizzle 1
3730#endif
3731
3732#ifndef GL_ARB_timer_query
3733#define GL_ARB_timer_query 1
3734#ifdef GLCOREARB_PROTOTYPES
3735 GLAPI void APIENTRY glQueryCounter(GLuint id, GLenum target);
3736 GLAPI void APIENTRY glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64 *params);
3737 GLAPI void APIENTRY glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64 *params);
3738#endif /* GLCOREARB_PROTOTYPES */
3739 typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
3740 typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
3741 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
3742#endif
3743
3744#ifndef GL_ARB_vertex_type_2_10_10_10_rev
3745#define GL_ARB_vertex_type_2_10_10_10_rev 1
3746#ifdef GLCOREARB_PROTOTYPES
3747 GLAPI void APIENTRY glVertexP2ui(GLenum type, GLuint value);
3748 GLAPI void APIENTRY glVertexP2uiv(GLenum type, const GLuint *value);
3749 GLAPI void APIENTRY glVertexP3ui(GLenum type, GLuint value);
3750 GLAPI void APIENTRY glVertexP3uiv(GLenum type, const GLuint *value);
3751 GLAPI void APIENTRY glVertexP4ui(GLenum type, GLuint value);
3752 GLAPI void APIENTRY glVertexP4uiv(GLenum type, const GLuint *value);
3753 GLAPI void APIENTRY glTexCoordP1ui(GLenum type, GLuint coords);
3754 GLAPI void APIENTRY glTexCoordP1uiv(GLenum type, const GLuint *coords);
3755 GLAPI void APIENTRY glTexCoordP2ui(GLenum type, GLuint coords);
3756 GLAPI void APIENTRY glTexCoordP2uiv(GLenum type, const GLuint *coords);
3757 GLAPI void APIENTRY glTexCoordP3ui(GLenum type, GLuint coords);
3758 GLAPI void APIENTRY glTexCoordP3uiv(GLenum type, const GLuint *coords);
3759 GLAPI void APIENTRY glTexCoordP4ui(GLenum type, GLuint coords);
3760 GLAPI void APIENTRY glTexCoordP4uiv(GLenum type, const GLuint *coords);
3761 GLAPI void APIENTRY glMultiTexCoordP1ui(GLenum texture, GLenum type, GLuint coords);
3762 GLAPI void APIENTRY glMultiTexCoordP1uiv(GLenum texture, GLenum type, const GLuint *coords);
3763 GLAPI void APIENTRY glMultiTexCoordP2ui(GLenum texture, GLenum type, GLuint coords);
3764 GLAPI void APIENTRY glMultiTexCoordP2uiv(GLenum texture, GLenum type, const GLuint *coords);
3765 GLAPI void APIENTRY glMultiTexCoordP3ui(GLenum texture, GLenum type, GLuint coords);
3766 GLAPI void APIENTRY glMultiTexCoordP3uiv(GLenum texture, GLenum type, const GLuint *coords);
3767 GLAPI void APIENTRY glMultiTexCoordP4ui(GLenum texture, GLenum type, GLuint coords);
3768 GLAPI void APIENTRY glMultiTexCoordP4uiv(GLenum texture, GLenum type, const GLuint *coords);
3769 GLAPI void APIENTRY glNormalP3ui(GLenum type, GLuint coords);
3770 GLAPI void APIENTRY glNormalP3uiv(GLenum type, const GLuint *coords);
3771 GLAPI void APIENTRY glColorP3ui(GLenum type, GLuint color);
3772 GLAPI void APIENTRY glColorP3uiv(GLenum type, const GLuint *color);
3773 GLAPI void APIENTRY glColorP4ui(GLenum type, GLuint color);
3774 GLAPI void APIENTRY glColorP4uiv(GLenum type, const GLuint *color);
3775 GLAPI void APIENTRY glSecondaryColorP3ui(GLenum type, GLuint color);
3776 GLAPI void APIENTRY glSecondaryColorP3uiv(GLenum type, const GLuint *color);
3777 GLAPI void APIENTRY glVertexAttribP1ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);
3778 GLAPI void APIENTRY glVertexAttribP1uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3779 GLAPI void APIENTRY glVertexAttribP2ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);
3780 GLAPI void APIENTRY glVertexAttribP2uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3781 GLAPI void APIENTRY glVertexAttribP3ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);
3782 GLAPI void APIENTRY glVertexAttribP3uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3783 GLAPI void APIENTRY glVertexAttribP4ui(GLuint index, GLenum type, GLboolean normalized, GLuint value);
3784 GLAPI void APIENTRY glVertexAttribP4uiv(GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3785#endif /* GLCOREARB_PROTOTYPES */
3786 typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
3787 typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
3788 typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
3789 typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
3790 typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
3791 typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
3792 typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
3793 typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
3794 typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
3795 typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
3796 typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
3797 typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
3798 typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
3799 typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
3800 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
3801 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
3802 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
3803 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
3804 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
3805 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
3806 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
3807 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
3808 typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
3809 typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
3810 typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
3811 typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
3812 typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
3813 typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
3814 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
3815 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
3816 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
3817 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3818 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
3819 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3820 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
3821 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3822 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
3823 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
3824#endif
3825
3826#ifndef GL_ARB_draw_indirect
3827#define GL_ARB_draw_indirect 1
3828#ifdef GLCOREARB_PROTOTYPES
3829 GLAPI void APIENTRY glDrawArraysIndirect(GLenum mode, const GLvoid *indirect);
3830 GLAPI void APIENTRY glDrawElementsIndirect(GLenum mode, GLenum type, const GLvoid *indirect);
3831#endif /* GLCOREARB_PROTOTYPES */
3832 typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect);
3833 typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect);
3834#endif
3835
3836#ifndef GL_ARB_gpu_shader5
3837#define GL_ARB_gpu_shader5 1
3838#endif
3839
3840#ifndef GL_ARB_gpu_shader_fp64
3841#define GL_ARB_gpu_shader_fp64 1
3842#ifdef GLCOREARB_PROTOTYPES
3843 GLAPI void APIENTRY glUniform1d(GLint location, GLdouble x);
3844 GLAPI void APIENTRY glUniform2d(GLint location, GLdouble x, GLdouble y);
3845 GLAPI void APIENTRY glUniform3d(GLint location, GLdouble x, GLdouble y, GLdouble z);
3846 GLAPI void APIENTRY glUniform4d(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3847 GLAPI void APIENTRY glUniform1dv(GLint location, GLsizei count, const GLdouble *value);
3848 GLAPI void APIENTRY glUniform2dv(GLint location, GLsizei count, const GLdouble *value);
3849 GLAPI void APIENTRY glUniform3dv(GLint location, GLsizei count, const GLdouble *value);
3850 GLAPI void APIENTRY glUniform4dv(GLint location, GLsizei count, const GLdouble *value);
3851 GLAPI void APIENTRY glUniformMatrix2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3852 GLAPI void APIENTRY glUniformMatrix3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3853 GLAPI void APIENTRY glUniformMatrix4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3854 GLAPI void APIENTRY glUniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3855 GLAPI void APIENTRY glUniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3856 GLAPI void APIENTRY glUniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3857 GLAPI void APIENTRY glUniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3858 GLAPI void APIENTRY glUniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3859 GLAPI void APIENTRY glUniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3860 GLAPI void APIENTRY glGetUniformdv(GLuint program, GLint location, GLdouble *params);
3861#endif /* GLCOREARB_PROTOTYPES */
3862 typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
3863 typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
3864 typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
3865 typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
3866 typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
3867 typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
3868 typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
3869 typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
3870 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3871 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3872 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3873 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3874 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3875 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3876 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3877 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3878 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
3879 typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
3880#endif
3881
3882#ifndef GL_ARB_shader_subroutine
3883#define GL_ARB_shader_subroutine 1
3884#ifdef GLCOREARB_PROTOTYPES
3885 GLAPI GLint APIENTRY glGetSubroutineUniformLocation(GLuint program, GLenum shadertype, const GLchar *name);
3886 GLAPI GLuint APIENTRY glGetSubroutineIndex(GLuint program, GLenum shadertype, const GLchar *name);
3887 GLAPI void APIENTRY glGetActiveSubroutineUniformiv(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
3888 GLAPI void APIENTRY glGetActiveSubroutineUniformName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
3889 GLAPI void APIENTRY glGetActiveSubroutineName(GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
3890 GLAPI void APIENTRY glUniformSubroutinesuiv(GLenum shadertype, GLsizei count, const GLuint *indices);
3891 GLAPI void APIENTRY glGetUniformSubroutineuiv(GLenum shadertype, GLint location, GLuint *params);
3892 GLAPI void APIENTRY glGetProgramStageiv(GLuint program, GLenum shadertype, GLenum pname, GLint *values);
3893#endif /* GLCOREARB_PROTOTYPES */
3894 typedef GLint(APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
3895 typedef GLuint(APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
3896 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
3897 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
3898 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
3899 typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
3900 typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
3901 typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
3902#endif
3903
3904#ifndef GL_ARB_tessellation_shader
3905#define GL_ARB_tessellation_shader 1
3906#ifdef GLCOREARB_PROTOTYPES
3907 GLAPI void APIENTRY glPatchParameteri(GLenum pname, GLint value);
3908 GLAPI void APIENTRY glPatchParameterfv(GLenum pname, const GLfloat *values);
3909#endif /* GLCOREARB_PROTOTYPES */
3910 typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
3911 typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
3912#endif
3913
3914#ifndef GL_ARB_texture_buffer_object_rgb32
3915#define GL_ARB_texture_buffer_object_rgb32 1
3916#endif
3917
3918#ifndef GL_ARB_transform_feedback2
3919#define GL_ARB_transform_feedback2 1
3920#ifdef GLCOREARB_PROTOTYPES
3921 GLAPI void APIENTRY glBindTransformFeedback(GLenum target, GLuint id);
3922 GLAPI void APIENTRY glDeleteTransformFeedbacks(GLsizei n, const GLuint *ids);
3923 GLAPI void APIENTRY glGenTransformFeedbacks(GLsizei n, GLuint *ids);
3924 GLAPI GLboolean APIENTRY glIsTransformFeedback(GLuint id);
3925 GLAPI void APIENTRY glPauseTransformFeedback(void);
3926 GLAPI void APIENTRY glResumeTransformFeedback(void);
3927 GLAPI void APIENTRY glDrawTransformFeedback(GLenum mode, GLuint id);
3928#endif /* GLCOREARB_PROTOTYPES */
3929 typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
3930 typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
3931 typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
3932 typedef GLboolean(APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
3933 typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
3934 typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
3935 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
3936#endif
3937
3938#ifndef GL_ARB_transform_feedback3
3939#define GL_ARB_transform_feedback3 1
3940#ifdef GLCOREARB_PROTOTYPES
3941 GLAPI void APIENTRY glDrawTransformFeedbackStream(GLenum mode, GLuint id, GLuint stream);
3942 GLAPI void APIENTRY glBeginQueryIndexed(GLenum target, GLuint index, GLuint id);
3943 GLAPI void APIENTRY glEndQueryIndexed(GLenum target, GLuint index);
3944 GLAPI void APIENTRY glGetQueryIndexediv(GLenum target, GLuint index, GLenum pname, GLint *params);
3945#endif /* GLCOREARB_PROTOTYPES */
3946 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
3947 typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
3948 typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
3949 typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
3950#endif
3951
3952#ifndef GL_ARB_ES2_compatibility
3953#define GL_ARB_ES2_compatibility 1
3954#ifdef GLCOREARB_PROTOTYPES
3955 GLAPI void APIENTRY glReleaseShaderCompiler(void);
3956 GLAPI void APIENTRY glShaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
3957 GLAPI void APIENTRY glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
3958 GLAPI void APIENTRY glDepthRangef(GLfloat n, GLfloat f);
3959 GLAPI void APIENTRY glClearDepthf(GLfloat d);
3960#endif /* GLCOREARB_PROTOTYPES */
3961 typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
3962 typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
3963 typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
3964 typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
3965 typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
3966#endif
3967
3968#ifndef GL_ARB_get_program_binary
3969#define GL_ARB_get_program_binary 1
3970#ifdef GLCOREARB_PROTOTYPES
3971 GLAPI void APIENTRY glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
3972 GLAPI void APIENTRY glProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
3973 GLAPI void APIENTRY glProgramParameteri(GLuint program, GLenum pname, GLint value);
3974#endif /* GLCOREARB_PROTOTYPES */
3975 typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
3976 typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
3977 typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
3978#endif
3979
3980#ifndef GL_ARB_separate_shader_objects
3981#define GL_ARB_separate_shader_objects 1
3982#ifdef GLCOREARB_PROTOTYPES
3983 GLAPI void APIENTRY glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuint program);
3984 GLAPI void APIENTRY glActiveShaderProgram(GLuint pipeline, GLuint program);
3985 GLAPI GLuint APIENTRY glCreateShaderProgramv(GLenum type, GLsizei count, const GLchar* const *strings);
3986 GLAPI void APIENTRY glBindProgramPipeline(GLuint pipeline);
3987 GLAPI void APIENTRY glDeleteProgramPipelines(GLsizei n, const GLuint *pipelines);
3988 GLAPI void APIENTRY glGenProgramPipelines(GLsizei n, GLuint *pipelines);
3989 GLAPI GLboolean APIENTRY glIsProgramPipeline(GLuint pipeline);
3990 GLAPI void APIENTRY glGetProgramPipelineiv(GLuint pipeline, GLenum pname, GLint *params);
3991 GLAPI void APIENTRY glProgramUniform1i(GLuint program, GLint location, GLint v0);
3992 GLAPI void APIENTRY glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value);
3993 GLAPI void APIENTRY glProgramUniform1f(GLuint program, GLint location, GLfloat v0);
3994 GLAPI void APIENTRY glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);
3995 GLAPI void APIENTRY glProgramUniform1d(GLuint program, GLint location, GLdouble v0);
3996 GLAPI void APIENTRY glProgramUniform1dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);
3997 GLAPI void APIENTRY glProgramUniform1ui(GLuint program, GLint location, GLuint v0);
3998 GLAPI void APIENTRY glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
3999 GLAPI void APIENTRY glProgramUniform2i(GLuint program, GLint location, GLint v0, GLint v1);
4000 GLAPI void APIENTRY glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint *value);
4001 GLAPI void APIENTRY glProgramUniform2f(GLuint program, GLint location, GLfloat v0, GLfloat v1);
4002 GLAPI void APIENTRY glProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4003 GLAPI void APIENTRY glProgramUniform2d(GLuint program, GLint location, GLdouble v0, GLdouble v1);
4004 GLAPI void APIENTRY glProgramUniform2dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4005 GLAPI void APIENTRY glProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1);
4006 GLAPI void APIENTRY glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
4007 GLAPI void APIENTRY glProgramUniform3i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
4008 GLAPI void APIENTRY glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint *value);
4009 GLAPI void APIENTRY glProgramUniform3f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
4010 GLAPI void APIENTRY glProgramUniform3fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4011 GLAPI void APIENTRY glProgramUniform3d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
4012 GLAPI void APIENTRY glProgramUniform3dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4013 GLAPI void APIENTRY glProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
4014 GLAPI void APIENTRY glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
4015 GLAPI void APIENTRY glProgramUniform4i(GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
4016 GLAPI void APIENTRY glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value);
4017 GLAPI void APIENTRY glProgramUniform4f(GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
4018 GLAPI void APIENTRY glProgramUniform4fv(GLuint program, GLint location, GLsizei count, const GLfloat *value);
4019 GLAPI void APIENTRY glProgramUniform4d(GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
4020 GLAPI void APIENTRY glProgramUniform4dv(GLuint program, GLint location, GLsizei count, const GLdouble *value);
4021 GLAPI void APIENTRY glProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
4022 GLAPI void APIENTRY glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value);
4023 GLAPI void APIENTRY glProgramUniformMatrix2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4024 GLAPI void APIENTRY glProgramUniformMatrix3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4025 GLAPI void APIENTRY glProgramUniformMatrix4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4026 GLAPI void APIENTRY glProgramUniformMatrix2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4027 GLAPI void APIENTRY glProgramUniformMatrix3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4028 GLAPI void APIENTRY glProgramUniformMatrix4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4029 GLAPI void APIENTRY glProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4030 GLAPI void APIENTRY glProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4031 GLAPI void APIENTRY glProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4032 GLAPI void APIENTRY glProgramUniformMatrix4x2fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4033 GLAPI void APIENTRY glProgramUniformMatrix3x4fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4034 GLAPI void APIENTRY glProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4035 GLAPI void APIENTRY glProgramUniformMatrix2x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4036 GLAPI void APIENTRY glProgramUniformMatrix3x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4037 GLAPI void APIENTRY glProgramUniformMatrix2x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4038 GLAPI void APIENTRY glProgramUniformMatrix4x2dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4039 GLAPI void APIENTRY glProgramUniformMatrix3x4dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4040 GLAPI void APIENTRY glProgramUniformMatrix4x3dv(GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4041 GLAPI void APIENTRY glValidateProgramPipeline(GLuint pipeline);
4042 GLAPI void APIENTRY glGetProgramPipelineInfoLog(GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
4043#endif /* GLCOREARB_PROTOTYPES */
4044 typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
4045 typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
4046 typedef GLuint(APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* const *strings);
4047 typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
4048 typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
4049 typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
4050 typedef GLboolean(APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
4051 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
4052 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
4053 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
4054 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
4055 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
4056 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
4057 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
4058 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
4059 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
4060 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
4061 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
4062 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
4063 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
4064 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
4065 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
4066 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
4067 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
4068 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
4069 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
4070 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
4071 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
4072 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
4073 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
4074 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
4075 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
4076 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
4077 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
4078 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
4079 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
4080 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
4081 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
4082 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
4083 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
4084 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4085 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4086 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4087 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4088 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4089 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4090 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4091 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4092 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4093 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4094 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4095 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
4096 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4097 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4098 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4099 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4100 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4101 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
4102 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
4103 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
4104#endif
4105
4106#ifndef GL_ARB_vertex_attrib_64bit
4107#define GL_ARB_vertex_attrib_64bit 1
4108#ifdef GLCOREARB_PROTOTYPES
4109 GLAPI void APIENTRY glVertexAttribL1d(GLuint index, GLdouble x);
4110 GLAPI void APIENTRY glVertexAttribL2d(GLuint index, GLdouble x, GLdouble y);
4111 GLAPI void APIENTRY glVertexAttribL3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);
4112 GLAPI void APIENTRY glVertexAttribL4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4113 GLAPI void APIENTRY glVertexAttribL1dv(GLuint index, const GLdouble *v);
4114 GLAPI void APIENTRY glVertexAttribL2dv(GLuint index, const GLdouble *v);
4115 GLAPI void APIENTRY glVertexAttribL3dv(GLuint index, const GLdouble *v);
4116 GLAPI void APIENTRY glVertexAttribL4dv(GLuint index, const GLdouble *v);
4117 GLAPI void APIENTRY glVertexAttribLPointer(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
4118 GLAPI void APIENTRY glGetVertexAttribLdv(GLuint index, GLenum pname, GLdouble *params);
4119#endif /* GLCOREARB_PROTOTYPES */
4120 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
4121 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
4122 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
4123 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
4124 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
4125 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
4126 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
4127 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
4128 typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
4129 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
4130#endif
4131
4132#ifndef GL_ARB_viewport_array
4133#define GL_ARB_viewport_array 1
4134#ifdef GLCOREARB_PROTOTYPES
4135 GLAPI void APIENTRY glViewportArrayv(GLuint first, GLsizei count, const GLfloat *v);
4136 GLAPI void APIENTRY glViewportIndexedf(GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
4137 GLAPI void APIENTRY glViewportIndexedfv(GLuint index, const GLfloat *v);
4138 GLAPI void APIENTRY glScissorArrayv(GLuint first, GLsizei count, const GLint *v);
4139 GLAPI void APIENTRY glScissorIndexed(GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
4140 GLAPI void APIENTRY glScissorIndexedv(GLuint index, const GLint *v);
4141 GLAPI void APIENTRY glDepthRangeArrayv(GLuint first, GLsizei count, const GLdouble *v);
4142 GLAPI void APIENTRY glDepthRangeIndexed(GLuint index, GLdouble n, GLdouble f);
4143 GLAPI void APIENTRY glGetFloati_v(GLenum target, GLuint index, GLfloat *data);
4144 GLAPI void APIENTRY glGetDoublei_v(GLenum target, GLuint index, GLdouble *data);
4145#endif /* GLCOREARB_PROTOTYPES */
4146 typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
4147 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
4148 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
4149 typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
4150 typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
4151 typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
4152 typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
4153 typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
4154 typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
4155 typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
4156#endif
4157
4158#ifndef GL_ARB_cl_event
4159#define GL_ARB_cl_event 1
4160#ifdef GLCOREARB_PROTOTYPES
4161 GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB(struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
4162#endif /* GLCOREARB_PROTOTYPES */
4163 typedef GLsync(APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
4164#endif
4165
4166#ifndef GL_ARB_debug_output
4167#define GL_ARB_debug_output 1
4168#ifdef GLCOREARB_PROTOTYPES
4169 GLAPI void APIENTRY glDebugMessageControlARB(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
4170 GLAPI void APIENTRY glDebugMessageInsertARB(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
4171 GLAPI void APIENTRY glDebugMessageCallbackARB(GLDEBUGPROCARB callback, const GLvoid *userParam);
4172 GLAPI GLuint APIENTRY glGetDebugMessageLogARB(GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
4173#endif /* GLCOREARB_PROTOTYPES */
4174 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
4175 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
4176 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
4177 typedef GLuint(APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
4178#endif
4179
4180#ifndef GL_ARB_robustness
4181#define GL_ARB_robustness 1
4182#ifdef GLCOREARB_PROTOTYPES
4183 GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB(void);
4184 GLAPI void APIENTRY glGetnTexImageARB(GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
4185 GLAPI void APIENTRY glReadnPixelsARB(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
4186 GLAPI void APIENTRY glGetnCompressedTexImageARB(GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
4187 GLAPI void APIENTRY glGetnUniformfvARB(GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
4188 GLAPI void APIENTRY glGetnUniformivARB(GLuint program, GLint location, GLsizei bufSize, GLint *params);
4189 GLAPI void APIENTRY glGetnUniformuivARB(GLuint program, GLint location, GLsizei bufSize, GLuint *params);
4190 GLAPI void APIENTRY glGetnUniformdvARB(GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
4191#endif /* GLCOREARB_PROTOTYPES */
4192 typedef GLenum(APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
4193 typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
4194 typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
4195 typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
4196 typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
4197 typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
4198 typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
4199 typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
4200#endif
4201
4202#ifndef GL_ARB_shader_stencil_export
4203#define GL_ARB_shader_stencil_export 1
4204#endif
4205
4206#ifndef GL_ARB_base_instance
4207#define GL_ARB_base_instance 1
4208#ifdef GLCOREARB_PROTOTYPES
4209 GLAPI void APIENTRY glDrawArraysInstancedBaseInstance(GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
4210 GLAPI void APIENTRY glDrawElementsInstancedBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
4211 GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance(GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
4212#endif /* GLCOREARB_PROTOTYPES */
4213 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
4214 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
4215 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
4216#endif
4217
4218#ifndef GL_ARB_shading_language_420pack
4219#define GL_ARB_shading_language_420pack 1
4220#endif
4221
4222#ifndef GL_ARB_transform_feedback_instanced
4223#define GL_ARB_transform_feedback_instanced 1
4224#ifdef GLCOREARB_PROTOTYPES
4225 GLAPI void APIENTRY glDrawTransformFeedbackInstanced(GLenum mode, GLuint id, GLsizei instancecount);
4226 GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced(GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
4227#endif /* GLCOREARB_PROTOTYPES */
4228 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
4229 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
4230#endif
4231
4232#ifndef GL_ARB_compressed_texture_pixel_storage
4233#define GL_ARB_compressed_texture_pixel_storage 1
4234#endif
4235
4236#ifndef GL_ARB_conservative_depth
4237#define GL_ARB_conservative_depth 1
4238#endif
4239
4240#ifndef GL_ARB_internalformat_query
4241#define GL_ARB_internalformat_query 1
4242#ifdef GLCOREARB_PROTOTYPES
4243 GLAPI void APIENTRY glGetInternalformativ(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
4244#endif /* GLCOREARB_PROTOTYPES */
4245 typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
4246#endif
4247
4248#ifndef GL_ARB_map_buffer_alignment
4249#define GL_ARB_map_buffer_alignment 1
4250#endif
4251
4252#ifndef GL_ARB_shader_atomic_counters
4253#define GL_ARB_shader_atomic_counters 1
4254#ifdef GLCOREARB_PROTOTYPES
4255 GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
4256#endif /* GLCOREARB_PROTOTYPES */
4257 typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
4258#endif
4259
4260#ifndef GL_ARB_shader_image_load_store
4261#define GL_ARB_shader_image_load_store 1
4262#ifdef GLCOREARB_PROTOTYPES
4263 GLAPI void APIENTRY glBindImageTexture(GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
4264 GLAPI void APIENTRY glMemoryBarrier(GLbitfield barriers);
4265#endif /* GLCOREARB_PROTOTYPES */
4266 typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
4267 typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
4268#endif
4269
4270#ifndef GL_ARB_shading_language_packing
4271#define GL_ARB_shading_language_packing 1
4272#endif
4273
4274#ifndef GL_ARB_texture_storage
4275#define GL_ARB_texture_storage 1
4276#ifdef GLCOREARB_PROTOTYPES
4277 GLAPI void APIENTRY glTexStorage1D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
4278 GLAPI void APIENTRY glTexStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4279 GLAPI void APIENTRY glTexStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4280 GLAPI void APIENTRY glTextureStorage1DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
4281 GLAPI void APIENTRY glTextureStorage2DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4282 GLAPI void APIENTRY glTextureStorage3DEXT(GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4283#endif /* GLCOREARB_PROTOTYPES */
4284 typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
4285 typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4286 typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4287 typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
4288 typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
4289 typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
4290#endif
4291
4292#ifndef GL_KHR_texture_compression_astc_ldr
4293#define GL_KHR_texture_compression_astc_ldr 1
4294#endif
4295
4296#ifndef GL_KHR_debug
4297#define GL_KHR_debug 1
4298#ifdef GLCOREARB_PROTOTYPES
4299 GLAPI void APIENTRY glDebugMessageControl(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
4300 GLAPI void APIENTRY glDebugMessageInsert(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
4301 GLAPI void APIENTRY glDebugMessageCallback(GLDEBUGPROC callback, const void *userParam);
4302 GLAPI GLuint APIENTRY glGetDebugMessageLog(GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
4303 GLAPI void APIENTRY glPushDebugGroup(GLenum source, GLuint id, GLsizei length, const GLchar *message);
4304 GLAPI void APIENTRY glPopDebugGroup(void);
4305 GLAPI void APIENTRY glObjectLabel(GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
4306 GLAPI void APIENTRY glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
4307 GLAPI void APIENTRY glObjectPtrLabel(const void *ptr, GLsizei length, const GLchar *label);
4308 GLAPI void APIENTRY glGetObjectPtrLabel(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
4309#endif /* GLCOREARB_PROTOTYPES */
4310 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
4311 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
4312 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
4313 typedef GLuint(APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
4314 typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
4315 typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
4316 typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
4317 typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
4318 typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
4319 typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
4320#endif
4321
4322#ifndef GL_ARB_arrays_of_arrays
4323#define GL_ARB_arrays_of_arrays 1
4324#endif
4325
4326#ifndef GL_ARB_clear_buffer_object
4327#define GL_ARB_clear_buffer_object 1
4328#ifdef GLCOREARB_PROTOTYPES
4329 GLAPI void APIENTRY glClearBufferData(GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
4330 GLAPI void APIENTRY glClearBufferSubData(GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
4331 GLAPI void APIENTRY glClearNamedBufferDataEXT(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
4332 GLAPI void APIENTRY glClearNamedBufferSubDataEXT(GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
4333#endif /* GLCOREARB_PROTOTYPES */
4334 typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
4335 typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
4336 typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
4337 typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
4338#endif
4339
4340#ifndef GL_ARB_compute_shader
4341#define GL_ARB_compute_shader 1
4342#ifdef GLCOREARB_PROTOTYPES
4343 GLAPI void APIENTRY glDispatchCompute(GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
4344 GLAPI void APIENTRY glDispatchComputeIndirect(GLintptr indirect);
4345#endif /* GLCOREARB_PROTOTYPES */
4346 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
4347 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
4348#endif
4349
4350#ifndef GL_ARB_copy_image
4351#define GL_ARB_copy_image 1
4352#ifdef GLCOREARB_PROTOTYPES
4353 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);
4354#endif /* GLCOREARB_PROTOTYPES */
4355 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);
4356#endif
4357
4358#ifndef GL_ARB_texture_view
4359#define GL_ARB_texture_view 1
4360#ifdef GLCOREARB_PROTOTYPES
4361 GLAPI void APIENTRY glTextureView(GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
4362#endif /* GLCOREARB_PROTOTYPES */
4363 typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
4364#endif
4365
4366#ifndef GL_ARB_vertex_attrib_binding
4367#define GL_ARB_vertex_attrib_binding 1
4368#ifdef GLCOREARB_PROTOTYPES
4369 GLAPI void APIENTRY glBindVertexBuffer(GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
4370 GLAPI void APIENTRY glVertexAttribFormat(GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
4371 GLAPI void APIENTRY glVertexAttribIFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4372 GLAPI void APIENTRY glVertexAttribLFormat(GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4373 GLAPI void APIENTRY glVertexAttribBinding(GLuint attribindex, GLuint bindingindex);
4374 GLAPI void APIENTRY glVertexBindingDivisor(GLuint bindingindex, GLuint divisor);
4375 GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT(GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
4376 GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
4377 GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4378 GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT(GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4379 GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT(GLuint vaobj, GLuint attribindex, GLuint bindingindex);
4380 GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT(GLuint vaobj, GLuint bindingindex, GLuint divisor);
4381#endif /* GLCOREARB_PROTOTYPES */
4382 typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
4383 typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
4384 typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4385 typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4386 typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
4387 typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
4388 typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
4389 typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
4390 typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4391 typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
4392 typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
4393 typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
4394#endif
4395
4396#ifndef GL_ARB_robustness_isolation
4397#define GL_ARB_robustness_isolation 1
4398#endif
4399
4400#ifndef GL_ARB_ES3_compatibility
4401#define GL_ARB_ES3_compatibility 1
4402#endif
4403
4404#ifndef GL_ARB_explicit_uniform_location
4405#define GL_ARB_explicit_uniform_location 1
4406#endif
4407
4408#ifndef GL_ARB_fragment_layer_viewport
4409#define GL_ARB_fragment_layer_viewport 1
4410#endif
4411
4412#ifndef GL_ARB_framebuffer_no_attachments
4413#define GL_ARB_framebuffer_no_attachments 1
4414#ifdef GLCOREARB_PROTOTYPES
4415 GLAPI void APIENTRY glFramebufferParameteri(GLenum target, GLenum pname, GLint param);
4416 GLAPI void APIENTRY glGetFramebufferParameteriv(GLenum target, GLenum pname, GLint *params);
4417 GLAPI void APIENTRY glNamedFramebufferParameteriEXT(GLuint framebuffer, GLenum pname, GLint param);
4418 GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT(GLuint framebuffer, GLenum pname, GLint *params);
4419#endif /* GLCOREARB_PROTOTYPES */
4420 typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
4421 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
4422 typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
4423 typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
4424#endif
4425
4426#ifndef GL_ARB_internalformat_query2
4427#define GL_ARB_internalformat_query2 1
4428#ifdef GLCOREARB_PROTOTYPES
4429 GLAPI void APIENTRY glGetInternalformati64v(GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
4430#endif /* GLCOREARB_PROTOTYPES */
4431 typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
4432#endif
4433
4434#ifndef GL_ARB_invalidate_subdata
4435#define GL_ARB_invalidate_subdata 1
4436#ifdef GLCOREARB_PROTOTYPES
4437 GLAPI void APIENTRY glInvalidateTexSubImage(GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
4438 GLAPI void APIENTRY glInvalidateTexImage(GLuint texture, GLint level);
4439 GLAPI void APIENTRY glInvalidateBufferSubData(GLuint buffer, GLintptr offset, GLsizeiptr length);
4440 GLAPI void APIENTRY glInvalidateBufferData(GLuint buffer);
4441 GLAPI void APIENTRY glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments);
4442 GLAPI void APIENTRY glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
4443#endif /* GLCOREARB_PROTOTYPES */
4444 typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
4445 typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
4446 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
4447 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
4448 typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
4449 typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
4450#endif
4451
4452#ifndef GL_ARB_multi_draw_indirect
4453#define GL_ARB_multi_draw_indirect 1
4454#ifdef GLCOREARB_PROTOTYPES
4455 GLAPI void APIENTRY glMultiDrawArraysIndirect(GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
4456 GLAPI void APIENTRY glMultiDrawElementsIndirect(GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
4457#endif /* GLCOREARB_PROTOTYPES */
4458 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
4459 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
4460#endif
4461
4462#ifndef GL_ARB_program_interface_query
4463#define GL_ARB_program_interface_query 1
4464#ifdef GLCOREARB_PROTOTYPES
4465 GLAPI void APIENTRY glGetProgramInterfaceiv(GLuint program, GLenum programInterface, GLenum pname, GLint *params);
4466 GLAPI GLuint APIENTRY glGetProgramResourceIndex(GLuint program, GLenum programInterface, const GLchar *name);
4467 GLAPI void APIENTRY glGetProgramResourceName(GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
4468 GLAPI void APIENTRY glGetProgramResourceiv(GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
4469 GLAPI GLint APIENTRY glGetProgramResourceLocation(GLuint program, GLenum programInterface, const GLchar *name);
4470 GLAPI GLint APIENTRY glGetProgramResourceLocationIndex(GLuint program, GLenum programInterface, const GLchar *name);
4471#endif /* GLCOREARB_PROTOTYPES */
4472 typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
4473 typedef GLuint(APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
4474 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
4475 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
4476 typedef GLint(APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
4477 typedef GLint(APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
4478#endif
4479
4480#ifndef GL_ARB_robust_buffer_access_behavior
4481#define GL_ARB_robust_buffer_access_behavior 1
4482#endif
4483
4484#ifndef GL_ARB_shader_image_size
4485#define GL_ARB_shader_image_size 1
4486#endif
4487
4488#ifndef GL_ARB_shader_storage_buffer_object
4489#define GL_ARB_shader_storage_buffer_object 1
4490#ifdef GLCOREARB_PROTOTYPES
4491 GLAPI void APIENTRY glShaderStorageBlockBinding(GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
4492#endif /* GLCOREARB_PROTOTYPES */
4493 typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
4494#endif
4495
4496#ifndef GL_ARB_stencil_texturing
4497#define GL_ARB_stencil_texturing 1
4498#endif
4499
4500#ifndef GL_ARB_texture_buffer_range
4501#define GL_ARB_texture_buffer_range 1
4502#ifdef GLCOREARB_PROTOTYPES
4503 GLAPI void APIENTRY glTexBufferRange(GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4504 GLAPI void APIENTRY glTextureBufferRangeEXT(GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4505#endif /* GLCOREARB_PROTOTYPES */
4506 typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4507 typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
4508#endif
4509
4510#ifndef GL_ARB_texture_query_levels
4511#define GL_ARB_texture_query_levels 1
4512#endif
4513
4514#ifndef GL_ARB_texture_storage_multisample
4515#define GL_ARB_texture_storage_multisample 1
4516#ifdef GLCOREARB_PROTOTYPES
4517 GLAPI void APIENTRY glTexStorage2DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4518 GLAPI void APIENTRY glTexStorage3DMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4519 GLAPI void APIENTRY glTextureStorage2DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4520 GLAPI void APIENTRY glTextureStorage3DMultisampleEXT(GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4521#endif /* GLCOREARB_PROTOTYPES */
4522 typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4523 typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4524 typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
4525 typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
4526#endif
4527
4528
4529#ifdef __cplusplus
4530}
4531#endif
4532
4533#endif
Note: See TracBrowser for help on using the repository browser.