3 #include <unordered_set> 14 #ifndef GL_CLAMP_VERTEX_COLOR 15 #define GL_CLAMP_VERTEX_COLOR 0x891A 17 #ifndef GL_CLAMP_FRAGMENT_COLOR 18 #define GL_CLAMP_FRAGMENT_COLOR 0x891B 20 #ifndef GL_ALPHA_INTEGER 21 #define GL_ALPHA_INTEGER 0x8D97 23 #ifndef GL_TEXTURE_LUMINANCE_TYPE 24 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14 26 #ifndef GL_TEXTURE_INTENSITY_TYPE 27 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15 30 std::unordered_set<GLenum> removedEnums = {
35 GL_POLYGON_STIPPLE_BIT,
49 GL_CLIENT_PIXEL_STORE_BIT,
50 GL_CLIENT_VERTEX_ARRAY_BIT,
51 GL_CLIENT_ALL_ATTRIB_BITS,
71 GL_PASS_THROUGH_TOKEN,
94 GL_VERTEX_ARRAY_POINTER,
95 GL_NORMAL_ARRAY_POINTER,
96 GL_COLOR_ARRAY_POINTER,
97 GL_INDEX_ARRAY_POINTER,
98 GL_TEXTURE_COORD_ARRAY_POINTER,
99 GL_EDGE_FLAG_ARRAY_POINTER,
100 GL_FEEDBACK_BUFFER_POINTER,
101 GL_SELECTION_BUFFER_POINTER,
105 GL_CURRENT_TEXTURE_COORDS,
106 GL_CURRENT_RASTER_COLOR,
107 GL_CURRENT_RASTER_INDEX,
108 GL_CURRENT_RASTER_TEXTURE_COORDS,
109 GL_CURRENT_RASTER_POSITION,
110 GL_CURRENT_RASTER_POSITION_VALID,
111 GL_CURRENT_RASTER_DISTANCE,
114 GL_LINE_STIPPLE_PATTERN,
115 GL_LINE_STIPPLE_REPEAT,
123 GL_LIGHT_MODEL_LOCAL_VIEWER,
124 GL_LIGHT_MODEL_TWO_SIDE,
125 GL_LIGHT_MODEL_AMBIENT,
127 GL_COLOR_MATERIAL_FACE,
128 GL_COLOR_MATERIAL_PARAMETER,
137 GL_ACCUM_CLEAR_VALUE,
140 GL_MODELVIEW_STACK_DEPTH,
141 GL_PROJECTION_STACK_DEPTH,
142 GL_TEXTURE_STACK_DEPTH,
144 GL_PROJECTION_MATRIX,
146 GL_ATTRIB_STACK_DEPTH,
147 GL_CLIENT_ATTRIB_STACK_DEPTH,
154 GL_INDEX_CLEAR_VALUE,
159 GL_PERSPECTIVE_CORRECTION_HINT,
160 GL_POINT_SMOOTH_HINT,
166 GL_PIXEL_MAP_I_TO_I_SIZE,
167 GL_PIXEL_MAP_S_TO_S_SIZE,
168 GL_PIXEL_MAP_I_TO_R_SIZE,
169 GL_PIXEL_MAP_I_TO_G_SIZE,
170 GL_PIXEL_MAP_I_TO_B_SIZE,
171 GL_PIXEL_MAP_I_TO_A_SIZE,
172 GL_PIXEL_MAP_R_TO_R_SIZE,
173 GL_PIXEL_MAP_G_TO_G_SIZE,
174 GL_PIXEL_MAP_B_TO_B_SIZE,
175 GL_PIXEL_MAP_A_TO_A_SIZE,
195 GL_MAX_PIXEL_MAP_TABLE,
196 GL_MAX_ATTRIB_STACK_DEPTH,
197 GL_MAX_MODELVIEW_STACK_DEPTH,
198 GL_MAX_NAME_STACK_DEPTH,
199 GL_MAX_PROJECTION_STACK_DEPTH,
200 GL_MAX_TEXTURE_STACK_DEPTH,
201 GL_MAX_CLIENT_ATTRIB_STACK_DEPTH,
218 GL_MAP1_TEXTURE_COORD_1,
219 GL_MAP1_TEXTURE_COORD_2,
220 GL_MAP1_TEXTURE_COORD_3,
221 GL_MAP1_TEXTURE_COORD_4,
227 GL_MAP2_TEXTURE_COORD_1,
228 GL_MAP2_TEXTURE_COORD_2,
229 GL_MAP2_TEXTURE_COORD_3,
230 GL_MAP2_TEXTURE_COORD_4,
234 GL_MAP1_GRID_SEGMENTS,
236 GL_MAP2_GRID_SEGMENTS,
237 GL_FEEDBACK_BUFFER_SIZE,
238 GL_FEEDBACK_BUFFER_TYPE,
239 GL_SELECTION_BUFFER_SIZE,
244 GL_TEXTURE_COORD_ARRAY,
246 GL_VERTEX_ARRAY_SIZE,
247 GL_VERTEX_ARRAY_TYPE,
248 GL_VERTEX_ARRAY_STRIDE,
249 GL_NORMAL_ARRAY_TYPE,
250 GL_NORMAL_ARRAY_STRIDE,
253 GL_COLOR_ARRAY_STRIDE,
255 GL_INDEX_ARRAY_STRIDE,
256 GL_TEXTURE_COORD_ARRAY_SIZE,
257 GL_TEXTURE_COORD_ARRAY_TYPE,
258 GL_TEXTURE_COORD_ARRAY_STRIDE,
259 GL_EDGE_FLAG_ARRAY_STRIDE,
260 GL_TEXTURE_COMPONENTS,
262 GL_TEXTURE_LUMINANCE_SIZE,
263 GL_TEXTURE_INTENSITY_SIZE,
273 GL_CONSTANT_ATTENUATION,
274 GL_LINEAR_ATTENUATION,
275 GL_QUADRATIC_ATTENUATION,
277 GL_COMPILE_AND_EXECUTE,
283 GL_AMBIENT_AND_DIFFUSE,
303 GL_TEXTURE_ENV_COLOR,
320 GL_LUMINANCE4_ALPHA4,
321 GL_LUMINANCE6_ALPHA2,
322 GL_LUMINANCE8_ALPHA8,
323 GL_LUMINANCE12_ALPHA4,
324 GL_LUMINANCE12_ALPHA12,
325 GL_LUMINANCE16_ALPHA16,
360 GL_LIGHT_MODEL_COLOR_CONTROL,
362 GL_SEPARATE_SPECULAR_COLOR,
363 GL_ALIASED_POINT_SIZE_RANGE,
364 GL_CLIENT_ACTIVE_TEXTURE,
365 GL_MAX_TEXTURE_UNITS,
366 GL_TRANSPOSE_MODELVIEW_MATRIX,
367 GL_TRANSPOSE_PROJECTION_MATRIX,
368 GL_TRANSPOSE_TEXTURE_MATRIX,
369 GL_TRANSPOSE_COLOR_MATRIX,
374 GL_COMPRESSED_LUMINANCE,
375 GL_COMPRESSED_LUMINANCE_ALPHA,
376 GL_COMPRESSED_INTENSITY,
403 GL_POINT_DISTANCE_ATTENUATION,
405 GL_GENERATE_MIPMAP_HINT,
406 GL_FOG_COORDINATE_SOURCE,
409 GL_CURRENT_FOG_COORDINATE,
410 GL_FOG_COORDINATE_ARRAY_TYPE,
411 GL_FOG_COORDINATE_ARRAY_STRIDE,
412 GL_FOG_COORDINATE_ARRAY_POINTER,
413 GL_FOG_COORDINATE_ARRAY,
415 GL_CURRENT_SECONDARY_COLOR,
416 GL_SECONDARY_COLOR_ARRAY_SIZE,
417 GL_SECONDARY_COLOR_ARRAY_TYPE,
418 GL_SECONDARY_COLOR_ARRAY_STRIDE,
419 GL_SECONDARY_COLOR_ARRAY_POINTER,
420 GL_SECONDARY_COLOR_ARRAY,
421 GL_TEXTURE_FILTER_CONTROL,
422 GL_DEPTH_TEXTURE_MODE,
423 GL_COMPARE_R_TO_TEXTURE,
424 GL_VERTEX_ARRAY_BUFFER_BINDING,
425 GL_NORMAL_ARRAY_BUFFER_BINDING,
426 GL_COLOR_ARRAY_BUFFER_BINDING,
427 GL_INDEX_ARRAY_BUFFER_BINDING,
428 GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING,
429 GL_EDGE_FLAG_ARRAY_BUFFER_BINDING,
430 GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING,
431 GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING,
432 GL_WEIGHT_ARRAY_BUFFER_BINDING,
435 GL_CURRENT_FOG_COORD,
436 GL_FOG_COORD_ARRAY_TYPE,
437 GL_FOG_COORD_ARRAY_STRIDE,
438 GL_FOG_COORD_ARRAY_POINTER,
440 GL_FOG_COORD_ARRAY_BUFFER_BINDING,
446 GL_VERTEX_PROGRAM_TWO_SIDE,
449 GL_MAX_TEXTURE_COORDS,
450 GL_CURRENT_RASTER_SECONDARY_COLOR,
452 GL_SLUMINANCE8_ALPHA8,
455 GL_COMPRESSED_SLUMINANCE,
456 GL_COMPRESSED_SLUMINANCE_ALPHA,
457 GL_CLAMP_VERTEX_COLOR,
458 GL_CLAMP_FRAGMENT_COLOR,
460 GL_TEXTURE_LUMINANCE_TYPE,
461 GL_TEXTURE_INTENSITY_TYPE