ClanLib  2.3.7
opengl_defines.h
Go to the documentation of this file.
1 /*
2 ** ClanLib SDK
3 ** Copyright (c) 1997-2011 The ClanLib Team
4 **
5 ** This software is provided 'as-is', without any express or implied
6 ** warranty. In no event will the authors be held liable for any damages
7 ** arising from the use of this software.
8 **
9 ** Permission is granted to anyone to use this software for any purpose,
10 ** including commercial applications, and to alter it and redistribute it
11 ** freely, subject to the following restrictions:
12 **
13 ** 1. The origin of this software must not be misrepresented; you must not
14 ** claim that you wrote the original software. If you use this software
15 ** in a product, an acknowledgment in the product documentation would be
16 ** appreciated but is not required.
17 ** 2. Altered source versions must be plainly marked as such, and must not be
18 ** misrepresented as being the original software.
19 ** 3. This notice may not be removed or altered from any source distribution.
20 **
21 ** Note: Some of the libraries ClanLib may link to may have additional
22 ** requirements or restrictions.
23 **
24 ** File Author(s):
25 **
26 ** Magnus Norddahl
27 ** Mark Page
28 */
29 
32 
33 #pragma once
34 #include "api_gl.h"
35 
36 #include "../Core/System/cl_platform.h"
37 
38 #ifdef __APPLE__
39 #include <OpenGLES/ES2/gl.h>
40 #include <OpenGLES/ES2/glext.h>
41 #else
42 #include <GL/gl.h>
43 #ifdef __MINGW32__//MinGW32 Does not define most GL Functions needed
44 #include <gl/glext.h> //Because they are treated as extensions
45 #endif
46 #endif
47 
48 #ifndef CL_DISPLAYDEFINES_DEFINES
49 #define CL_DISPLAYDEFINES_DEFINES
50 
51 #include <cstddef>
52 
53 typedef unsigned int GLenum;
54 typedef unsigned char GLboolean;
55 typedef unsigned int GLbitfield;
56 typedef signed char GLbyte;
57 typedef short GLshort;
58 typedef int GLint;
59 typedef int GLsizei;
60 typedef unsigned char GLubyte;
61 typedef unsigned short GLushort;
62 typedef unsigned int GLuint;
65 typedef float GLfloat;
66 typedef float GLclampf;
67 typedef double GLdouble;
68 typedef double GLclampd;
69 typedef void GLvoid;
70 typedef char GLchar;
71 typedef ptrdiff_t GLintptr;
72 typedef ptrdiff_t GLsizeiptr;
73 typedef struct __CLsync *CLsync;
74 
75 typedef void * CLDEBUGPROCARB;
76 
81 {
82  // AttribMask
83 #ifndef GL_DEPTH_BUFFER_BIT
84  GL_DEPTH_BUFFER_BIT = 0x00000100,
85  GL_STENCIL_BUFFER_BIT = 0x00000400,
86  GL_COLOR_BUFFER_BIT = 0x00004000,
87  // Boolean
88 #endif
89 #ifndef GL_FALSE
90  GL_FALSE = 0,
91  GL_TRUE = 1,
92  // BeginMode
93 #endif
94 #ifndef GL_POINTS
95  GL_POINTS = 0x0000,
96  GL_LINES = 0x0001,
97  GL_LINE_LOOP = 0x0002,
98  GL_LINE_STRIP = 0x0003,
99  GL_TRIANGLES = 0x0004,
101  GL_TRIANGLE_FAN = 0x0006,
102  // AlphaFunction
103 #endif
104 #ifndef GL_NEVER
105  GL_NEVER = 0x0200,
106  GL_LESS = 0x0201,
107  GL_EQUAL = 0x0202,
108  GL_LEQUAL = 0x0203,
109  GL_GREATER = 0x0204,
110  GL_NOTEQUAL = 0x0205,
111  GL_GEQUAL = 0x0206,
112  GL_ALWAYS = 0x0207,
113  // BlendingFactorDest
114 #endif
115 #ifndef GL_ZERO
116  GL_ZERO = 0,
117  GL_ONE = 1,
118  GL_SRC_COLOR = 0x0300,
120  GL_SRC_ALPHA = 0x0302,
122  GL_DST_ALPHA = 0x0304,
124  // BlendingFactorSrc
125 #endif
126 #ifndef GL_DST_COLOR
127  GL_DST_COLOR = 0x0306,
130  // DrawBufferMode
131 #endif
132 #ifndef GL_NONE
133  GL_NONE = 0,
134  GL_FRONT_LEFT = 0x0400,
135  GL_FRONT_RIGHT = 0x0401,
136  GL_BACK_LEFT = 0x0402,
137  GL_BACK_RIGHT = 0x0403,
138  GL_FRONT = 0x0404,
139  GL_BACK = 0x0405,
140  GL_LEFT = 0x0406,
141  GL_RIGHT = 0x0407,
143  // ErrorCode
144 #endif
145 #ifndef GL_NO_ERROR
147  GL_INVALID_ENUM = 0x0500,
151  // FrontFaceDirection
152 #endif
153 #ifndef GL_CW
154  GL_CW = 0x0900,
155  GL_CCW = 0x0901,
156  // GetPName
157 #endif
158 #ifndef GL_POINT_SIZE
159  GL_POINT_SIZE = 0x0B11,
162  GL_LINE_SMOOTH = 0x0B20,
163  GL_LINE_WIDTH = 0x0B21,
167  GL_CULL_FACE = 0x0B44,
169  GL_FRONT_FACE = 0x0B46,
170  GL_DEPTH_RANGE = 0x0B70,
171  GL_DEPTH_TEST = 0x0B71,
174  GL_DEPTH_FUNC = 0x0B74,
175  GL_STENCIL_TEST = 0x0B90,
177  GL_STENCIL_FUNC = 0x0B92,
179  GL_STENCIL_FAIL = 0x0B94,
182  GL_STENCIL_REF = 0x0B97,
184  GL_VIEWPORT = 0x0BA2,
185  GL_DITHER = 0x0BD0,
186  GL_BLEND_DST = 0x0BE0,
187  GL_BLEND_SRC = 0x0BE1,
188  GL_BLEND = 0x0BE2,
191  GL_DRAW_BUFFER = 0x0C01,
192  GL_READ_BUFFER = 0x0C02,
193  GL_SCISSOR_BOX = 0x0C10,
194  GL_SCISSOR_TEST = 0x0C11,
197  GL_DOUBLEBUFFER = 0x0C32,
198  GL_STEREO = 0x0C33,
216  GL_TEXTURE_1D = 0x0DE0,
217  GL_TEXTURE_2D = 0x0DE1,
225  // GetTextureParameter
226 #endif
227 #ifndef GL_TEXTURE_WIDTH
236  // HintMode
237 #endif
238 #ifndef GL_DONT_CARE
239  GL_DONT_CARE = 0x1100,
240  GL_FASTEST = 0x1101,
241  GL_NICEST = 0x1102,
242  // DataType
243 #endif
244 #ifndef GL_BYTE
245  GL_BYTE = 0x1400,
247  GL_SHORT = 0x1402,
249  GL_INT = 0x1404,
250  GL_UNSIGNED_INT = 0x1405,
251  GL_FLOAT = 0x1406,
252  GL_DOUBLE = 0x140A,
253  // LogicOp
254 #endif
255 #ifndef GL_CLEAR
256  GL_CLEAR = 0x1500,
257  GL_AND = 0x1501,
258  GL_AND_REVERSE = 0x1502,
259  GL_COPY = 0x1503,
260  GL_AND_INVERTED = 0x1504,
261  GL_NOOP = 0x1505,
262  GL_XOR = 0x1506,
263  GL_OR = 0x1507,
264  GL_NOR = 0x1508,
265  GL_EQUIV = 0x1509,
266  GL_INVERT = 0x150A,
267  GL_OR_REVERSE = 0x150B,
269  GL_OR_INVERTED = 0x150D,
270  GL_NAND = 0x150E,
271  GL_SET = 0x150F,
272  // MatrixMode (for gl3.h, FBO attachment type)
273 #endif
274 #ifndef GL_TEXTURE
275  GL_TEXTURE = 0x1702,
276  // PixelCopyType
277 #endif
278 #ifndef GL_COLOR
279  GL_COLOR = 0x1800,
280  GL_DEPTH = 0x1801,
281  GL_STENCIL = 0x1802,
282  // PixelFormat
283 #endif
284 #ifndef GL_STENCIL_INDEX
287  GL_RED = 0x1903,
288  GL_GREEN = 0x1904,
289  GL_BLUE = 0x1905,
290  GL_ALPHA = 0x1906,
291  GL_RGB = 0x1907,
292  GL_RGBA = 0x1908,
293  // PolygonMode
294 #endif
295 #ifndef GL_POINT
296  GL_POINT = 0x1B00,
297  GL_LINE = 0x1B01,
298  GL_FILL = 0x1B02,
299  // StencilOp
300 #endif
301 #ifndef GL_KEEP
302  GL_KEEP = 0x1E00,
303  GL_REPLACE = 0x1E01,
304  GL_INCR = 0x1E02,
305  GL_DECR = 0x1E03,
306  // StringName
307 #endif
308 #ifndef GL_VENDOR
309  GL_VENDOR = 0x1F00,
310  GL_RENDERER = 0x1F01,
311  GL_VERSION = 0x1F02,
312  GL_EXTENSIONS = 0x1F03,
313  // TextureMagFilter
314 #endif
315 #ifndef GL_NEAREST
316  GL_NEAREST = 0x2600,
317  GL_LINEAR = 0x2601,
318  // TextureMinFilter
319 #endif
320 #ifndef GL_NEAREST_MIPMAP_NEAREST
325  // TextureParameterName
326 #endif
327 #ifndef GL_TEXTURE_MAG_FILTER
332  // TextureTarget
333 #endif
334 #ifndef GL_PROXY_TEXTURE_1D
337  // TextureWrapMode
338 #endif
339 #ifndef GL_REPEAT
340  GL_REPEAT = 0x2901,
341  // PixelInternalFormat
342 #endif
343 #ifndef GL_R3_G3_B2
344  GL_R3_G3_B2 = 0x2A10,
345  GL_RGB4 = 0x804F,
346  GL_RGB5 = 0x8050,
347  GL_RGB8 = 0x8051,
348  GL_RGB10 = 0x8052,
349  GL_RGB12 = 0x8053,
350  GL_RGB16 = 0x8054,
351  GL_RGBA2 = 0x8055,
352  GL_RGBA4 = 0x8056,
353  GL_RGB5_A1 = 0x8057,
354  GL_RGBA8 = 0x8058,
355  GL_RGB10_A2 = 0x8059,
356  GL_RGBA12 = 0x805A,
357  GL_RGBA16 = 0x805B,
358 #endif
359 
360 #ifndef GL_UNSIGNED_BYTE_3_3_2
371  GL_TEXTURE_3D = 0x806F,
383  GL_BGR = 0x80E0,
384  GL_BGRA = 0x80E1,
397 #endif
398 
399 #ifndef GL_CONSTANT_COLOR
400 
405  GL_BLEND_COLOR = 0x8005,
406  GL_FUNC_ADD = 0x8006,
407  GL_MIN = 0x8007,
408  GL_MAX = 0x8008,
412 #endif
413 
414 #ifndef GL_TEXTURE0
415 
416  GL_TEXTURE0 = 0x84C0,
417  GL_TEXTURE1 = 0x84C1,
418  GL_TEXTURE2 = 0x84C2,
419  GL_TEXTURE3 = 0x84C3,
420  GL_TEXTURE4 = 0x84C4,
421  GL_TEXTURE5 = 0x84C5,
422  GL_TEXTURE6 = 0x84C6,
423  GL_TEXTURE7 = 0x84C7,
424  GL_TEXTURE8 = 0x84C8,
425  GL_TEXTURE9 = 0x84C9,
426  GL_TEXTURE10 = 0x84CA,
427  GL_TEXTURE11 = 0x84CB,
428  GL_TEXTURE12 = 0x84CC,
429  GL_TEXTURE13 = 0x84CD,
430  GL_TEXTURE14 = 0x84CE,
431  GL_TEXTURE15 = 0x84CF,
432  GL_TEXTURE16 = 0x84D0,
433  GL_TEXTURE17 = 0x84D1,
434  GL_TEXTURE18 = 0x84D2,
435  GL_TEXTURE19 = 0x84D3,
436  GL_TEXTURE20 = 0x84D4,
437  GL_TEXTURE21 = 0x84D5,
438  GL_TEXTURE22 = 0x84D6,
439  GL_TEXTURE23 = 0x84D7,
440  GL_TEXTURE24 = 0x84D8,
441  GL_TEXTURE25 = 0x84D9,
442  GL_TEXTURE26 = 0x84DA,
443  GL_TEXTURE27 = 0x84DB,
444  GL_TEXTURE28 = 0x84DC,
445  GL_TEXTURE29 = 0x84DD,
446  GL_TEXTURE30 = 0x84DE,
447  GL_TEXTURE31 = 0x84DF,
449  GL_MULTISAMPLE = 0x809D,
454  GL_SAMPLES = 0x80A9,
475 #endif
476 
477 #ifndef GL_BLEND_DST_RGB
478 
490  GL_INCR_WRAP = 0x8507,
491  GL_DECR_WRAP = 0x8508,
495 #endif
496 
497 #ifndef GL_BUFFER_SIZE
498 
499  GL_BUFFER_SIZE = 0x8764,
500  GL_BUFFER_USAGE = 0x8765,
503  GL_QUERY_RESULT = 0x8866,
505  GL_ARRAY_BUFFER = 0x8892,
510  GL_READ_ONLY = 0x88B8,
511  GL_WRITE_ONLY = 0x88B9,
512  GL_READ_WRITE = 0x88BA,
516  GL_STREAM_DRAW = 0x88E0,
517  GL_STREAM_READ = 0x88E1,
518  GL_STREAM_COPY = 0x88E2,
519  GL_STATIC_DRAW = 0x88E4,
520  GL_STATIC_READ = 0x88E5,
521  GL_STATIC_COPY = 0x88E6,
522  GL_DYNAMIC_DRAW = 0x88E8,
523  GL_DYNAMIC_READ = 0x88E9,
524  GL_DYNAMIC_COPY = 0x88EA,
526 #endif
527 
528 #ifndef GL_BLEND_EQUATION_RGB
529 
543  GL_DRAW_BUFFER0 = 0x8825,
544  GL_DRAW_BUFFER1 = 0x8826,
545  GL_DRAW_BUFFER2 = 0x8827,
546  GL_DRAW_BUFFER3 = 0x8828,
547  GL_DRAW_BUFFER4 = 0x8829,
548  GL_DRAW_BUFFER5 = 0x882A,
549  GL_DRAW_BUFFER6 = 0x882B,
550  GL_DRAW_BUFFER7 = 0x882C,
551  GL_DRAW_BUFFER8 = 0x882D,
552  GL_DRAW_BUFFER9 = 0x882E,
570  GL_SHADER_TYPE = 0x8B4F,
571  GL_FLOAT_VEC2 = 0x8B50,
572  GL_FLOAT_VEC3 = 0x8B51,
573  GL_FLOAT_VEC4 = 0x8B52,
574  GL_INT_VEC2 = 0x8B53,
575  GL_INT_VEC3 = 0x8B54,
576  GL_INT_VEC4 = 0x8B55,
577  GL_BOOL = 0x8B56,
578  GL_BOOL_VEC2 = 0x8B57,
579  GL_BOOL_VEC3 = 0x8B58,
580  GL_BOOL_VEC4 = 0x8B59,
581  GL_FLOAT_MAT2 = 0x8B5A,
582  GL_FLOAT_MAT3 = 0x8B5B,
583  GL_FLOAT_MAT4 = 0x8B5C,
584  GL_SAMPLER_1D = 0x8B5D,
585  GL_SAMPLER_2D = 0x8B5E,
586  GL_SAMPLER_3D = 0x8B5F,
587  GL_SAMPLER_CUBE = 0x8B60,
592  GL_LINK_STATUS = 0x8B82,
605  GL_LOWER_LEFT = 0x8CA1,
606  GL_UPPER_LEFT = 0x8CA2,
610 #endif
611 
612 #ifndef GL_PIXEL_PACK_BUFFER
613 
618  GL_FLOAT_MAT2x3 = 0x8B65,
619  GL_FLOAT_MAT2x4 = 0x8B66,
620  GL_FLOAT_MAT3x2 = 0x8B67,
621  GL_FLOAT_MAT3x4 = 0x8B68,
622  GL_FLOAT_MAT4x2 = 0x8B69,
623  GL_FLOAT_MAT4x3 = 0x8B6A,
624  GL_SRGB = 0x8C40,
625  GL_SRGB8 = 0x8C41,
626  GL_SRGB_ALPHA = 0x8C42,
627  GL_SRGB8_ALPHA8 = 0x8C43,
630 #endif
631 
632 #ifndef GL_COMPARE_REF_TO_TEXTURE
633 
648  GL_DEPTH_BUFFER = 0x8223,
653  GL_RGBA32F = 0x8814,
654  GL_RGB32F = 0x8815,
655  GL_RGBA16F = 0x881A,
656  GL_RGB16F = 0x881B,
662  GL_FIXED_ONLY = 0x891D,
672  GL_RGB9_E5 = 0x8C3D,
690  GL_RGBA32UI = 0x8D70,
691  GL_RGB32UI = 0x8D71,
692  GL_RGBA16UI = 0x8D76,
693  GL_RGB16UI = 0x8D77,
694  GL_RGBA8UI = 0x8D7C,
695  GL_RGB8UI = 0x8D7D,
696  GL_RGBA32I = 0x8D82,
697  GL_RGB32I = 0x8D83,
698  GL_RGBA16I = 0x8D88,
699  GL_RGB16I = 0x8D89,
700  GL_RGBA8I = 0x8D8E,
701  GL_RGB8I = 0x8D8F,
702  GL_RED_INTEGER = 0x8D94,
704  GL_BLUE_INTEGER = 0x8D96,
705  GL_RGB_INTEGER = 0x8D98,
706  GL_RGBA_INTEGER = 0x8D99,
707  GL_BGR_INTEGER = 0x8D9A,
708  GL_BGRA_INTEGER = 0x8D9B,
729  GL_QUERY_WAIT = 0x8E13,
736 #endif
737 
738 #ifndef GL_SAMPLER_2D_RECT
739 
756  GL_RED_SNORM = 0x8F90,
757  GL_RG_SNORM = 0x8F91,
758  GL_RGB_SNORM = 0x8F92,
759  GL_RGBA_SNORM = 0x8F93,
760  GL_R8_SNORM = 0x8F94,
761  GL_RG8_SNORM = 0x8F95,
762  GL_RGB8_SNORM = 0x8F96,
763  GL_RGBA8_SNORM = 0x8F97,
764  GL_R16_SNORM = 0x8F98,
765  GL_RG16_SNORM = 0x8F99,
766  GL_RGB16_SNORM = 0x8F9A,
767  GL_RGBA16_SNORM = 0x8F9B,
771 #endif
772 
773 #ifndef GL_CONTEXT_CORE_PROFILE_BIT
774 
797 #endif
798 
799 #ifndef GL_VERTEX_ATTRIB_ARRAY_DIVISOR
800 
802 #endif
803 
804 #ifndef GL_SAMPLE_SHADING
805 
817 #endif
818 
819 #ifndef GL_DEPTH_COMPONENT32F
820 
824 #endif
825 
826 #ifndef GL_INVALID_FRAMEBUFFER_OPERATION
827 
888  GL_FRAMEBUFFER = 0x8D40,
889  GL_RENDERBUFFER = 0x8D41,
904  GL_MAX_SAMPLES = 0x8D57,
905 #endif
906 
907 #ifndef GL_FRAMEBUFFER_SRGB
908 
910 #endif
911 
912 #ifndef GL_HALF_FLOAT
913 
914  GL_HALF_FLOAT = 0x140B,
915 #endif
916 
917 #ifndef GL_MAP_READ_BIT
918 
919  GL_MAP_READ_BIT = 0x0001,
925 #endif
926 
927 #ifndef GL_COMPRESSED_RED_RGTC1
928 
933 #endif
934 
935 #ifndef GL_RG
936 
937  GL_RG = 0x8227,
938  GL_RG_INTEGER = 0x8228,
939  GL_R8 = 0x8229,
940  GL_R16 = 0x822A,
941  GL_RG8 = 0x822B,
942  GL_RG16 = 0x822C,
943  GL_R16F = 0x822D,
944  GL_R32F = 0x822E,
945  GL_RG16F = 0x822F,
946  GL_RG32F = 0x8230,
947  GL_R8I = 0x8231,
948  GL_R8UI = 0x8232,
949  GL_R16I = 0x8233,
950  GL_R16UI = 0x8234,
951  GL_R32I = 0x8235,
952  GL_R32UI = 0x8236,
953  GL_RG8I = 0x8237,
954  GL_RG8UI = 0x8238,
955  GL_RG16I = 0x8239,
956  GL_RG16UI = 0x823A,
957  GL_RG32I = 0x823B,
958  GL_RG32UI = 0x823C,
959 #endif
960 
961 #ifndef GL_VERTEX_ARRAY_BINDING
962 
964 #endif
965 
966 #ifndef GL_UNIFORM_BUFFER
967 
984  GL_UNIFORM_TYPE = 0x8A37,
985  GL_UNIFORM_SIZE = 0x8A38,
1000  GL_INVALID_INDEX = 0xFFFFFFFFu,
1001 #endif
1002 
1003 #ifndef GL_COPY_READ_BUFFER
1004 
1007 #endif
1008 
1009 #ifndef GL_DEPTH_CLAMP
1010 
1011  GL_DEPTH_CLAMP = 0x864F,
1012 #endif
1013 
1014 #ifndef GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION
1015 
1020 #endif
1021 
1022 #ifndef GL_TEXTURE_CUBE_MAP_SEAMLESS
1023 
1025 #endif
1026 
1027 #ifndef GL_MAX_SERVER_WAIT_TIMEOUT
1028 
1030  GL_OBJECT_TYPE = 0x9112,
1032  GL_SYNC_STATUS = 0x9114,
1033  GL_SYNC_FLAGS = 0x9115,
1034  GL_SYNC_FENCE = 0x9116,
1036  GL_UNSIGNALED = 0x9118,
1037  GL_SIGNALED = 0x9119,
1041  GL_WAIT_FAILED = 0x911D,
1043 
1044 #define GL_TIMEOUT_IGNORED (0xFFFFFFFFFFFFFFFFull)
1045 
1047  GL_SAMPLE_MASK = 0x8E51,
1067 
1068 #endif
1069 
1070 #ifndef GL_SAMPLE_SHADING_ARB
1073 
1074 #endif
1075 
1076 #ifndef GL_TEXTURE_CUBE_MAP_ARRAY_ARB
1084 
1085 #endif
1086 
1087 #ifndef GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB
1090 
1091 #endif
1092 
1093 #ifndef GL_SHADER_INCLUDE_ARB
1097 
1098 #endif
1099 
1100 #ifndef GL_COMPRESSED_RGBA_BPTC_UNORM_ARB
1105 
1106 #endif
1107 
1108 #ifndef GL_SRC1_COLOR
1109  GL_SRC1_COLOR = 0x88F9,
1110 
1111 #endif
1112 
1113 #ifndef GL_ONE_MINUS_SRC1_COLOR
1117 
1118 #endif
1119 
1120 #ifndef GL_ANY_SAMPLES_PASSED
1122 
1123 #endif
1124 
1125 #ifndef GL_SAMPLER_BINDING
1127 
1128 #endif
1129 
1130 #ifndef GL_RGB10_A2UI
1131  GL_RGB10_A2UI = 0x906F,
1132 
1133 #endif
1134 
1135 #ifndef GL_TEXTURE_SWIZZLE_R
1141 
1142 #endif
1143 
1144 #ifndef GL_TIME_ELAPSED
1146  GL_TIMESTAMP = 0x8E28,
1147 
1148 #endif
1149 
1150 #ifndef GL_INT_2_10_10_10_REV
1152 
1153 #endif
1154 
1155 #ifndef GL_DRAW_INDIRECT_BUFFER
1158 
1159 #endif
1160 
1161 #ifndef GL_GEOMETRY_SHADER_INVOCATIONS
1167 
1168 #endif
1169 
1170 #ifndef GL_DOUBLE_VEC2
1171  GL_DOUBLE_VEC2 = 0x8FFC,
1172  GL_DOUBLE_VEC3 = 0x8FFD,
1173  GL_DOUBLE_VEC4 = 0x8FFE,
1174  GL_DOUBLE_MAT2 = 0x8F46,
1175  GL_DOUBLE_MAT3 = 0x8F47,
1176  GL_DOUBLE_MAT4 = 0x8F48,
1183 
1184 #endif
1185 
1186 #ifndef GL_ACTIVE_SUBROUTINES
1196 
1197 #endif
1198 
1199 #ifndef GL_PATCHES
1200  GL_PATCHES = 0x000E,
1209 
1210 #endif
1211 
1212 #ifndef GL_ISOLINES
1213  GL_ISOLINES = 0x8E7A,
1214 
1215 #endif
1216 
1217 #ifndef GL_FRACTIONAL_ODD
1220 
1221 #endif
1222 
1223 #ifndef GL_MAX_PATCH_VERTICES
1244 
1245 #endif
1246 
1247 #ifndef GL_TRANSFORM_FEEDBACK
1252 
1253 #endif
1254 
1255 #ifndef GL_MAX_TRANSFORM_FEEDBACK_BUFFERS
1258 
1259 #endif
1260 
1261 #ifndef GL_FIXED
1262  GL_FIXED = 0x140C,
1265  GL_LOW_FLOAT = 0x8DF0,
1267  GL_HIGH_FLOAT = 0x8DF2,
1268  GL_LOW_INT = 0x8DF3,
1269  GL_MEDIUM_INT = 0x8DF4,
1270  GL_HIGH_INT = 0x8DF5,
1276 
1277 #endif
1278 
1279 #ifndef GL_PROGRAM_BINARY_RETRIEVABLE_HINT
1284 
1285 #endif
1286 
1287 #ifndef GL_VERTEX_SHADER_BIT
1288  GL_VERTEX_SHADER_BIT = 0x00000001,
1293  GL_ALL_SHADER_BITS = 0xFFFFFFFF,
1297 
1298 #endif
1299 
1300 #ifndef GL_MAX_VIEWPORTS
1307 
1308 #endif
1309 
1310 #ifndef GL_SYNC_CL_EVENT_ARB
1313 
1314 #endif
1315 
1316 #ifndef GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB
1339 
1340 #endif
1341 
1342 #ifndef GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB
1350 #endif
1351 
1352  // http://www.opengl.org/wiki/Ubiquitous_Extensions
1353  // EXT_texture_filter_anisotropic
1354 #ifndef GL_TEXTURE_MAX_ANISOTROPY_EXT
1357 #endif
1358 
1359 };
1360 
1361 #endif
1362 
1364 
1365