Developer Documentation

removedEnums.hh
1 #pragma once
2 #include <vector>
3 #include <unordered_set>
4 #include "acg_glew.hh"
5
14 #ifndef GL_CLAMP_VERTEX_COLOR
15 #define GL_CLAMP_VERTEX_COLOR 0x891A
16 #endif
17 #ifndef GL_CLAMP_FRAGMENT_COLOR
18 #define GL_CLAMP_FRAGMENT_COLOR 0x891B
19 #endif
20 #ifndef GL_ALPHA_INTEGER
21 #define GL_ALPHA_INTEGER 0x8D97
22 #endif
23 #ifndef GL_TEXTURE_LUMINANCE_TYPE
24 #define GL_TEXTURE_LUMINANCE_TYPE 0x8C14
25 #endif
26 #ifndef GL_TEXTURE_INTENSITY_TYPE
27 #define GL_TEXTURE_INTENSITY_TYPE 0x8C15
28 #endif
29
30 std::unordered_set<GLenum> removedEnums = {
31 GL_CURRENT_BIT,
32 GL_POINT_BIT,
33 GL_LINE_BIT,
34 GL_POLYGON_BIT,
35 GL_POLYGON_STIPPLE_BIT,
36 GL_PIXEL_MODE_BIT,
37 GL_LIGHTING_BIT,
38 GL_FOG_BIT,
39 GL_ACCUM_BUFFER_BIT,
40 GL_VIEWPORT_BIT,
41 GL_TRANSFORM_BIT,
42 GL_ENABLE_BIT,
43 GL_HINT_BIT,
44 GL_EVAL_BIT,
45 GL_LIST_BIT,
46 GL_TEXTURE_BIT,
47 GL_SCISSOR_BIT,
48 GL_ALL_ATTRIB_BITS,
49 GL_CLIENT_PIXEL_STORE_BIT,
50 GL_CLIENT_VERTEX_ARRAY_BIT,
51 GL_CLIENT_ALL_ATTRIB_BITS,
52 GL_QUAD_STRIP,
53 GL_QUADS,
54 GL_POLYGON,
55 GL_ACCUM,
56 GL_LOAD,
57 GL_RETURN,
58 GL_MULT,
59 GL_ADD,
60 GL_STACK_OVERFLOW,
61 GL_STACK_UNDERFLOW,
62 GL_AUX0,
63 GL_AUX1,
64 GL_AUX2,
65 GL_AUX3,
66 GL_2D,
67 GL_3D,
68 GL_3D_COLOR,
69 GL_3D_COLOR_TEXTURE,
70 GL_4D_COLOR_TEXTURE,
71 GL_PASS_THROUGH_TOKEN,
72 GL_POINT_TOKEN,
73 GL_LINE_TOKEN,
74 GL_POLYGON_TOKEN,
75 GL_BITMAP_TOKEN,
76 GL_DRAW_PIXEL_TOKEN,
77 GL_COPY_PIXEL_TOKEN,
78 GL_LINE_RESET_TOKEN,
79 GL_EXP,
80 GL_EXP2,
81 GL_COEFF,
82 GL_ORDER,
83 GL_DOMAIN,
84 GL_PIXEL_MAP_I_TO_I,
85 GL_PIXEL_MAP_S_TO_S,
86 GL_PIXEL_MAP_I_TO_R,
87 GL_PIXEL_MAP_I_TO_G,
88 GL_PIXEL_MAP_I_TO_B,
89 GL_PIXEL_MAP_I_TO_A,
90 GL_PIXEL_MAP_R_TO_R,
91 GL_PIXEL_MAP_G_TO_G,
92 GL_PIXEL_MAP_B_TO_B,
93 GL_PIXEL_MAP_A_TO_A,
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,
102 GL_CURRENT_COLOR,
103 GL_CURRENT_INDEX,
104 GL_CURRENT_NORMAL,
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,
112 GL_POINT_SMOOTH,
113 GL_LINE_STIPPLE,
114 GL_LINE_STIPPLE_PATTERN,
115 GL_LINE_STIPPLE_REPEAT,
116 GL_LIST_MODE,
117 GL_MAX_LIST_NESTING,
118 GL_LIST_BASE,
119 GL_LIST_INDEX,
120 GL_POLYGON_STIPPLE,
121 GL_EDGE_FLAG,
122 GL_LIGHTING,
123 GL_LIGHT_MODEL_LOCAL_VIEWER,
124 GL_LIGHT_MODEL_TWO_SIDE,
125 GL_LIGHT_MODEL_AMBIENT,
126 GL_SHADE_MODEL,
127 GL_COLOR_MATERIAL_FACE,
128 GL_COLOR_MATERIAL_PARAMETER,
129 GL_COLOR_MATERIAL,
130 GL_FOG,
131 GL_FOG_INDEX,
132 GL_FOG_DENSITY,
133 GL_FOG_START,
134 GL_FOG_END,
135 GL_FOG_MODE,
136 GL_FOG_COLOR,
137 GL_ACCUM_CLEAR_VALUE,
138 GL_MATRIX_MODE,
139 GL_NORMALIZE,
140 GL_MODELVIEW_STACK_DEPTH,
141 GL_PROJECTION_STACK_DEPTH,
142 GL_TEXTURE_STACK_DEPTH,
143 GL_MODELVIEW_MATRIX,
144 GL_PROJECTION_MATRIX,
145 GL_TEXTURE_MATRIX,
146 GL_ATTRIB_STACK_DEPTH,
147 GL_CLIENT_ATTRIB_STACK_DEPTH,
148 GL_ALPHA_TEST,
149 GL_ALPHA_TEST_FUNC,
150 GL_ALPHA_TEST_REF,
151 GL_INDEX_LOGIC_OP,
152 GL_LOGIC_OP,
153 GL_AUX_BUFFERS,
154 GL_INDEX_CLEAR_VALUE,
155 GL_INDEX_WRITEMASK,
156 GL_INDEX_MODE,
157 GL_RGBA_MODE,
158 GL_RENDER_MODE,
159 GL_PERSPECTIVE_CORRECTION_HINT,
160 GL_POINT_SMOOTH_HINT,
161 GL_FOG_HINT,
162 GL_TEXTURE_GEN_S,
163 GL_TEXTURE_GEN_T,
164 GL_TEXTURE_GEN_R,
165 GL_TEXTURE_GEN_Q,
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,
176 GL_MAP_COLOR,
177 GL_MAP_STENCIL,
178 GL_INDEX_SHIFT,
179 GL_INDEX_OFFSET,
180 GL_RED_SCALE,
181 GL_RED_BIAS,
182 GL_ZOOM_X,
183 GL_ZOOM_Y,
184 GL_GREEN_SCALE,
185 GL_GREEN_BIAS,
186 GL_BLUE_SCALE,
187 GL_BLUE_BIAS,
188 GL_ALPHA_SCALE,
189 GL_ALPHA_BIAS,
190 GL_DEPTH_SCALE,
191 GL_DEPTH_BIAS,
192 GL_MAX_EVAL_ORDER,
193 GL_MAX_LIGHTS,
194 GL_MAX_CLIP_PLANES,
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,
202 GL_INDEX_BITS,
203 GL_RED_BITS,
204 GL_GREEN_BITS,
205 GL_BLUE_BITS,
206 GL_ALPHA_BITS,
207 GL_DEPTH_BITS,
208 GL_STENCIL_BITS,
209 GL_ACCUM_RED_BITS,
210 GL_ACCUM_GREEN_BITS,
211 GL_ACCUM_BLUE_BITS,
212 GL_ACCUM_ALPHA_BITS,
213 GL_NAME_STACK_DEPTH,
214 GL_AUTO_NORMAL,
215 GL_MAP1_COLOR_4,
216 GL_MAP1_INDEX,
217 GL_MAP1_NORMAL,
218 GL_MAP1_TEXTURE_COORD_1,
219 GL_MAP1_TEXTURE_COORD_2,
220 GL_MAP1_TEXTURE_COORD_3,
221 GL_MAP1_TEXTURE_COORD_4,
222 GL_MAP1_VERTEX_3,
223 GL_MAP1_VERTEX_4,
224 GL_MAP2_COLOR_4,
225 GL_MAP2_INDEX,
226 GL_MAP2_NORMAL,
227 GL_MAP2_TEXTURE_COORD_1,
228 GL_MAP2_TEXTURE_COORD_2,
229 GL_MAP2_TEXTURE_COORD_3,
230 GL_MAP2_TEXTURE_COORD_4,
231 GL_MAP2_VERTEX_3,
232 GL_MAP2_VERTEX_4,
233 GL_MAP1_GRID_DOMAIN,
234 GL_MAP1_GRID_SEGMENTS,
235 GL_MAP2_GRID_DOMAIN,
236 GL_MAP2_GRID_SEGMENTS,
237 GL_FEEDBACK_BUFFER_SIZE,
238 GL_FEEDBACK_BUFFER_TYPE,
239 GL_SELECTION_BUFFER_SIZE,
240 GL_VERTEX_ARRAY,
241 GL_NORMAL_ARRAY,
242 GL_COLOR_ARRAY,
243 GL_INDEX_ARRAY,
244 GL_TEXTURE_COORD_ARRAY,
245 GL_EDGE_FLAG_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,
251 GL_COLOR_ARRAY_SIZE,
252 GL_COLOR_ARRAY_TYPE,
253 GL_COLOR_ARRAY_STRIDE,
254 GL_INDEX_ARRAY_TYPE,
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,
261 GL_TEXTURE_BORDER,
262 GL_TEXTURE_LUMINANCE_SIZE,
263 GL_TEXTURE_INTENSITY_SIZE,
264 GL_TEXTURE_PRIORITY,
265 GL_TEXTURE_RESIDENT,
266 GL_AMBIENT,
267 GL_DIFFUSE,
268 GL_SPECULAR,
269 GL_POSITION,
270 GL_SPOT_DIRECTION,
271 GL_SPOT_EXPONENT,
272 GL_SPOT_CUTOFF,
273 GL_CONSTANT_ATTENUATION,
274 GL_LINEAR_ATTENUATION,
275 GL_QUADRATIC_ATTENUATION,
276 GL_COMPILE,
277 GL_COMPILE_AND_EXECUTE,
278 GL_2_BYTES,
279 GL_3_BYTES,
280 GL_4_BYTES,
281 GL_EMISSION,
282 GL_SHININESS,
283 GL_AMBIENT_AND_DIFFUSE,
284 GL_COLOR_INDEXES,
285 GL_MODELVIEW,
286 GL_PROJECTION,
287 GL_COLOR_INDEX,
288 GL_LUMINANCE,
289 GL_LUMINANCE_ALPHA,
290 GL_BITMAP,
291 GL_RENDER,
292 GL_FEEDBACK,
293 GL_SELECT,
294 GL_FLAT,
295 GL_SMOOTH,
296 GL_S,
297 GL_T,
298 GL_R,
299 GL_Q,
300 GL_MODULATE,
301 GL_DECAL,
302 GL_TEXTURE_ENV_MODE,
303 GL_TEXTURE_ENV_COLOR,
304 GL_TEXTURE_ENV,
305 GL_EYE_LINEAR,
306 GL_OBJECT_LINEAR,
307 GL_SPHERE_MAP,
308 GL_TEXTURE_GEN_MODE,
309 GL_OBJECT_PLANE,
310 GL_EYE_PLANE,
311 GL_CLAMP,
312 GL_ALPHA4,
313 GL_ALPHA8,
314 GL_ALPHA12,
315 GL_ALPHA16,
316 GL_LUMINANCE4,
317 GL_LUMINANCE8,
318 GL_LUMINANCE12,
319 GL_LUMINANCE16,
320 GL_LUMINANCE4_ALPHA4,
321 GL_LUMINANCE6_ALPHA2,
322 GL_LUMINANCE8_ALPHA8,
323 GL_LUMINANCE12_ALPHA4,
324 GL_LUMINANCE12_ALPHA12,
325 GL_LUMINANCE16_ALPHA16,
326 GL_INTENSITY,
327 GL_INTENSITY4,
328 GL_INTENSITY8,
329 GL_INTENSITY12,
330 GL_INTENSITY16,
331 GL_V2F,
332 GL_V3F,
333 GL_C4UB_V2F,
334 GL_C4UB_V3F,
335 GL_C3F_V3F,
336 GL_N3F_V3F,
337 GL_C4F_N3F_V3F,
338 GL_T2F_V3F,
339 GL_T4F_V4F,
340 GL_T2F_C4UB_V3F,
341 GL_T2F_C3F_V3F,
342 GL_T2F_N3F_V3F,
343 GL_T2F_C4F_N3F_V3F,
344 GL_T4F_C4F_N3F_V4F,
345 GL_CLIP_PLANE0,
346 GL_CLIP_PLANE1,
347 GL_CLIP_PLANE2,
348 GL_CLIP_PLANE3,
349 GL_CLIP_PLANE4,
350 GL_CLIP_PLANE5,
351 GL_LIGHT0,
352 GL_LIGHT1,
353 GL_LIGHT2,
354 GL_LIGHT3,
355 GL_LIGHT4,
356 GL_LIGHT5,
357 GL_LIGHT6,
358 GL_LIGHT7,
359 GL_RESCALE_NORMAL,
360 GL_LIGHT_MODEL_COLOR_CONTROL,
361 GL_SINGLE_COLOR,
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,
370 GL_MULTISAMPLE_BIT,
371 GL_NORMAL_MAP,
372 GL_REFLECTION_MAP,
373 GL_COMPRESSED_ALPHA,
374 GL_COMPRESSED_LUMINANCE,
375 GL_COMPRESSED_LUMINANCE_ALPHA,
376 GL_COMPRESSED_INTENSITY,
377 GL_COMBINE,
378 GL_COMBINE_RGB,
379 GL_COMBINE_ALPHA,
380 GL_SOURCE0_RGB,
381 GL_SOURCE1_RGB,
382 GL_SOURCE2_RGB,
383 GL_SOURCE0_ALPHA,
384 GL_SOURCE1_ALPHA,
385 GL_SOURCE2_ALPHA,
386 GL_OPERAND0_RGB,
387 GL_OPERAND1_RGB,
388 GL_OPERAND2_RGB,
389 GL_OPERAND0_ALPHA,
390 GL_OPERAND1_ALPHA,
391 GL_OPERAND2_ALPHA,
392 GL_RGB_SCALE,
393 GL_ADD_SIGNED,
394 GL_INTERPOLATE,
395 GL_SUBTRACT,
396 GL_CONSTANT,
397 GL_PRIMARY_COLOR,
398 GL_PREVIOUS,
399 GL_DOT3_RGB,
400 GL_DOT3_RGBA,
401 GL_POINT_SIZE_MIN,
402 GL_POINT_SIZE_MAX,
403 GL_POINT_DISTANCE_ATTENUATION,
404 GL_GENERATE_MIPMAP,
405 GL_GENERATE_MIPMAP_HINT,
406 GL_FOG_COORDINATE_SOURCE,
407 GL_FOG_COORDINATE,
408 GL_FRAGMENT_DEPTH,
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,
414 GL_COLOR_SUM,
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,
433 GL_FOG_COORD_SRC,
434 GL_FOG_COORD,
435 GL_CURRENT_FOG_COORD,
436 GL_FOG_COORD_ARRAY_TYPE,
437 GL_FOG_COORD_ARRAY_STRIDE,
438 GL_FOG_COORD_ARRAY_POINTER,
439 GL_FOG_COORD_ARRAY,
440 GL_FOG_COORD_ARRAY_BUFFER_BINDING,
441 GL_SRC0_RGB,
442 GL_SRC1_RGB,
443 GL_SRC2_RGB,
444 GL_SRC0_ALPHA,
445 GL_SRC2_ALPHA,
446 GL_VERTEX_PROGRAM_TWO_SIDE,
447 GL_POINT_SPRITE,
448 GL_COORD_REPLACE,
449 GL_MAX_TEXTURE_COORDS,
450 GL_CURRENT_RASTER_SECONDARY_COLOR,
451 GL_SLUMINANCE_ALPHA,
452 GL_SLUMINANCE8_ALPHA8,
453 GL_SLUMINANCE,
454 GL_SLUMINANCE8,
455 GL_COMPRESSED_SLUMINANCE,
456 GL_COMPRESSED_SLUMINANCE_ALPHA,
457 GL_CLAMP_VERTEX_COLOR,
458 GL_CLAMP_FRAGMENT_COLOR,
459 GL_ALPHA_INTEGER,
460 GL_TEXTURE_LUMINANCE_TYPE,
461 GL_TEXTURE_INTENSITY_TYPE
462 };