Fix corner case
[llpp.git] / lablGL / gl_tags.c
bloba3bf6551f5226d5a454185855d11c294e2a70955
1 {MLTAG_color, GL_COLOR},
2 {MLTAG_depth, GL_DEPTH},
3 {MLTAG_accum, GL_ACCUM},
4 {MLTAG_stencil, GL_STENCIL},
5 {MLTAG_points, GL_POINTS},
6 {MLTAG_lines, GL_LINES},
7 {MLTAG_polygon, GL_POLYGON},
8 {MLTAG_triangles, GL_TRIANGLES},
9 {MLTAG_quads, GL_QUADS},
10 {MLTAG_line_strip, GL_LINE_STRIP},
11 {MLTAG_line_loop, GL_LINE_LOOP},
12 {MLTAG_triangle_strip, GL_TRIANGLE_STRIP},
13 {MLTAG_triangle_fan, GL_TRIANGLE_FAN},
14 {MLTAG_quad_strip, GL_QUAD_STRIP},
15 {MLTAG_front, GL_FRONT},
16 {MLTAG_back, GL_BACK},
17 {MLTAG_both, GL_FRONT_AND_BACK},
18 {MLTAG_point, GL_POINT},
19 {MLTAG_line, GL_LINE},
20 {MLTAG_fill, GL_FILL},
21 {MLTAG_cw, GL_CW},
22 {MLTAG_ccw, GL_CCW},
23 {MLTAG_modelview, GL_MODELVIEW},
24 {MLTAG_projection, GL_PROJECTION},
25 {MLTAG_texture, GL_TEXTURE},
26 {MLTAG_modelview_matrix, GL_MODELVIEW_MATRIX},
27 {MLTAG_projection_matrix, GL_PROJECTION_MATRIX},
28 {MLTAG_texture_matrix, GL_TEXTURE_MATRIX},
29 {MLTAG_alpha_test, GL_ALPHA_TEST},
30 {MLTAG_auto_normal, GL_AUTO_NORMAL},
31 {MLTAG_blend, GL_BLEND},
32 {MLTAG_clip_plane0, GL_CLIP_PLANE0},
33 {MLTAG_clip_plane1, GL_CLIP_PLANE1},
34 {MLTAG_clip_plane2, GL_CLIP_PLANE2},
35 {MLTAG_clip_plane3, GL_CLIP_PLANE3},
36 {MLTAG_clip_plane4, GL_CLIP_PLANE4},
37 {MLTAG_clip_plane5, GL_CLIP_PLANE5},
38 {MLTAG_color_material, GL_COLOR_MATERIAL},
39 {MLTAG_cull_face, GL_CULL_FACE},
40 {MLTAG_depth_test, GL_DEPTH_TEST},
41 {MLTAG_dither, GL_DITHER},
42 {MLTAG_fog, GL_FOG},
43 {MLTAG_light0, GL_LIGHT0},
44 {MLTAG_light1, GL_LIGHT1},
45 {MLTAG_light2, GL_LIGHT2},
46 {MLTAG_light3, GL_LIGHT3},
47 {MLTAG_light4, GL_LIGHT4},
48 {MLTAG_light5, GL_LIGHT5},
49 {MLTAG_light6, GL_LIGHT6},
50 {MLTAG_light7, GL_LIGHT7},
51 {MLTAG_lighting, GL_LIGHTING},
52 {MLTAG_line_smooth, GL_LINE_SMOOTH},
53 {MLTAG_line_stipple, GL_LINE_STIPPLE},
54 {MLTAG_logic_op, GL_LOGIC_OP},
55 {MLTAG_index_logic_op, GL_INDEX_LOGIC_OP},
56 {MLTAG_color_logic_op, GL_COLOR_LOGIC_OP},
57 {MLTAG_map1_color_4, GL_MAP1_COLOR_4},
58 {MLTAG_map1_index, GL_MAP1_INDEX},
59 {MLTAG_map1_normal, GL_MAP1_NORMAL},
60 {MLTAG_map1_texture_coord_1, GL_MAP1_TEXTURE_COORD_1},
61 {MLTAG_map1_texture_coord_2, GL_MAP1_TEXTURE_COORD_2},
62 {MLTAG_map1_texture_coord_3, GL_MAP1_TEXTURE_COORD_3},
63 {MLTAG_map1_texture_coord_4, GL_MAP1_TEXTURE_COORD_4},
64 {MLTAG_map1_vertex_3, GL_MAP1_VERTEX_3},
65 {MLTAG_map1_vertex_4, GL_MAP1_VERTEX_4},
66 {MLTAG_map2_color_4, GL_MAP2_COLOR_4},
67 {MLTAG_map2_index, GL_MAP2_INDEX},
68 {MLTAG_map2_normal, GL_MAP2_NORMAL},
69 {MLTAG_map2_texture_coord_1, GL_MAP2_TEXTURE_COORD_1},
70 {MLTAG_map2_texture_coord_2, GL_MAP2_TEXTURE_COORD_2},
71 {MLTAG_map2_texture_coord_3, GL_MAP2_TEXTURE_COORD_3},
72 {MLTAG_map2_texture_coord_4, GL_MAP2_TEXTURE_COORD_4},
73 {MLTAG_map2_vertex_3, GL_MAP2_VERTEX_3},
74 {MLTAG_map2_vertex_4, GL_MAP2_VERTEX_4},
75 {MLTAG_normalize, GL_NORMALIZE},
76 {MLTAG_point_smooth, GL_POINT_SMOOTH},
77 {MLTAG_polygon_offset_fill, GL_POLYGON_OFFSET_FILL},
78 {MLTAG_polygon_offset_line, GL_POLYGON_OFFSET_LINE},
79 {MLTAG_polygon_offset_point, GL_POLYGON_OFFSET_POINT},
80 {MLTAG_polygon_smooth, GL_POLYGON_SMOOTH},
81 {MLTAG_polygon_stipple, GL_POLYGON_STIPPLE},
82 {MLTAG_scissor_test, GL_SCISSOR_TEST},
83 {MLTAG_stencil_test, GL_STENCIL_TEST},
84 {MLTAG_texture_1d, GL_TEXTURE_1D},
85 {MLTAG_texture_2d, GL_TEXTURE_2D},
86 {MLTAG_texture_gen_q, GL_TEXTURE_GEN_Q},
87 {MLTAG_texture_gen_r, GL_TEXTURE_GEN_R},
88 {MLTAG_texture_gen_s, GL_TEXTURE_GEN_S},
89 {MLTAG_texture_gen_t, GL_TEXTURE_GEN_T},
90 {MLTAG_flat, GL_FLAT},
91 {MLTAG_smooth, GL_SMOOTH},
92 {MLTAG_ambient, GL_AMBIENT},
93 {MLTAG_diffuse, GL_DIFFUSE},
94 {MLTAG_specular, GL_SPECULAR},
95 {MLTAG_position, GL_POSITION},
96 {MLTAG_spot_direction, GL_SPOT_DIRECTION},
97 {MLTAG_spot_exponent, GL_SPOT_EXPONENT},
98 {MLTAG_spot_cutoff, GL_SPOT_CUTOFF},
99 {MLTAG_constant_attenuation, GL_CONSTANT_ATTENUATION},
100 {MLTAG_linear_attenuation, GL_LINEAR_ATTENUATION},
101 {MLTAG_quadratic_attenuation, GL_QUADRATIC_ATTENUATION},
102 {MLTAG_emission, GL_EMISSION},
103 {MLTAG_shininess, GL_SHININESS},
104 {MLTAG_ambient_and_diffuse, GL_AMBIENT_AND_DIFFUSE},
105 {MLTAG_color_indexes, GL_COLOR_INDEXES},
106 {MLTAG_never, GL_NEVER},
107 {MLTAG_less, GL_LESS},
108 {MLTAG_equal, GL_EQUAL},
109 {MLTAG_lequal, GL_LEQUAL},
110 {MLTAG_greater, GL_GREATER},
111 {MLTAG_notequal, GL_NOTEQUAL},
112 {MLTAG_gequal, GL_GEQUAL},
113 {MLTAG_always, GL_ALWAYS},
114 {MLTAG_zero, GL_ZERO},
115 {MLTAG_one, GL_ONE},
116 {MLTAG_dst_color, GL_DST_COLOR},
117 {MLTAG_one_minus_dst_color, GL_ONE_MINUS_DST_COLOR},
118 {MLTAG_src_alpha, GL_SRC_ALPHA},
119 {MLTAG_one_minus_src_alpha, GL_ONE_MINUS_SRC_ALPHA},
120 {MLTAG_dst_alpha, GL_DST_ALPHA},
121 {MLTAG_one_minus_dst_alpha, GL_ONE_MINUS_DST_ALPHA},
122 {MLTAG_src_alpha_saturate, GL_SRC_ALPHA_SATURATE},
123 {MLTAG_src_color, GL_SRC_COLOR},
124 {MLTAG_one_minus_src_color, GL_ONE_MINUS_SRC_COLOR},
125 {MLTAG_linear, GL_LINEAR},
126 {MLTAG_exp, GL_EXP},
127 {MLTAG_exp2, GL_EXP2},
128 {MLTAG_compile, GL_COMPILE},
129 {MLTAG_compile_and_execute, GL_COMPILE_AND_EXECUTE},
130 {MLTAG_bitmap, GL_BITMAP},
131 {MLTAG_byte, GL_BYTE},
132 {MLTAG_short, GL_SHORT},
133 {MLTAG_int, GL_INT},
134 {MLTAG_float, GL_FLOAT},
135 {MLTAG_double, GL_DOUBLE},
136 {MLTAG_ubyte, GL_UNSIGNED_BYTE},
137 {MLTAG_ushort, GL_UNSIGNED_SHORT},
138 {MLTAG_uint, GL_UNSIGNED_INT},
139 {MLTAG_load, GL_LOAD},
140 {MLTAG_add, GL_ADD},
141 {MLTAG_mult, GL_MULT},
142 {MLTAG_return, GL_RETURN},
143 {MLTAG_color_index, GL_COLOR_INDEX},
144 {MLTAG_stencil_index, GL_STENCIL_INDEX},
145 {MLTAG_depth_component, GL_DEPTH_COMPONENT},
146 {MLTAG_rgb, GL_RGB},
147 {MLTAG_bgr, GL_BGR},
148 {MLTAG_rgba, GL_RGBA},
149 {MLTAG_bgra, GL_BGRA},
150 {MLTAG_red, GL_RED},
151 {MLTAG_green, GL_GREEN},
152 {MLTAG_blue, GL_BLUE},
153 {MLTAG_alpha, GL_ALPHA},
154 {MLTAG_luminance, GL_LUMINANCE},
155 {MLTAG_luminance_alpha, GL_LUMINANCE_ALPHA},
156 {MLTAG_dont_care, GL_DONT_CARE},
157 {MLTAG_fastest, GL_FASTEST},
158 {MLTAG_nicest, GL_NICEST},
159 {MLTAG_clear, GL_CLEAR},
160 {MLTAG_set, GL_SET},
161 {MLTAG_copy, GL_COPY},
162 {MLTAG_copy_inverted, GL_COPY_INVERTED},
163 {MLTAG_noop, GL_NOOP},
164 {MLTAG_invert, GL_INVERT},
165 {MLTAG_And, GL_AND},
166 {MLTAG_nand, GL_NAND},
167 {MLTAG_Or, GL_OR},
168 {MLTAG_nor, GL_NOR},
169 {MLTAG_xor, GL_XOR},
170 {MLTAG_equiv, GL_EQUIV},
171 {MLTAG_and_reverse, GL_AND_REVERSE},
172 {MLTAG_and_inverted, GL_AND_INVERTED},
173 {MLTAG_or_reverse, GL_OR_REVERSE},
174 {MLTAG_or_inverted, GL_OR_INVERTED},
175 {MLTAG_alpha_bias, GL_ALPHA_BIAS},
176 {MLTAG_alpha_scale, GL_ALPHA_SCALE},
177 {MLTAG_blue_bias, GL_BLUE_BIAS},
178 {MLTAG_blue_scale, GL_BLUE_SCALE},
179 {MLTAG_depth_bias, GL_DEPTH_BIAS},
180 {MLTAG_depth_scale, GL_DEPTH_SCALE},
181 {MLTAG_green_bias, GL_GREEN_BIAS},
182 {MLTAG_green_scale, GL_GREEN_SCALE},
183 {MLTAG_index_offset, GL_INDEX_OFFSET},
184 {MLTAG_index_shift, GL_INDEX_SHIFT},
185 {MLTAG_map_color, GL_MAP_COLOR},
186 {MLTAG_map_stencil, GL_MAP_STENCIL},
187 {MLTAG_red_bias, GL_RED_BIAS},
188 {MLTAG_red_scale, GL_RED_SCALE},
189 {MLTAG_i_to_i, GL_PIXEL_MAP_I_TO_I},
190 {MLTAG_i_to_r, GL_PIXEL_MAP_I_TO_R},
191 {MLTAG_i_to_g, GL_PIXEL_MAP_I_TO_G},
192 {MLTAG_i_to_b, GL_PIXEL_MAP_I_TO_B},
193 {MLTAG_i_to_a, GL_PIXEL_MAP_I_TO_A},
194 {MLTAG_s_to_s, GL_PIXEL_MAP_S_TO_S},
195 {MLTAG_r_to_r, GL_PIXEL_MAP_R_TO_R},
196 {MLTAG_g_to_g, GL_PIXEL_MAP_G_TO_G},
197 {MLTAG_b_to_b, GL_PIXEL_MAP_B_TO_B},
198 {MLTAG_a_to_a, GL_PIXEL_MAP_A_TO_A},
199 {MLTAG_pack_swap_bytes, GL_PACK_SWAP_BYTES},
200 {MLTAG_pack_lsb_first, GL_PACK_LSB_FIRST},
201 {MLTAG_pack_row_length, GL_PACK_ROW_LENGTH},
202 {MLTAG_pack_skip_pixels, GL_PACK_SKIP_PIXELS},
203 {MLTAG_pack_skip_rows, GL_PACK_SKIP_ROWS},
204 {MLTAG_pack_alignment, GL_PACK_ALIGNMENT},
205 {MLTAG_unpack_swap_bytes, GL_UNPACK_SWAP_BYTES},
206 {MLTAG_unpack_lsb_first, GL_UNPACK_LSB_FIRST},
207 {MLTAG_unpack_row_length, GL_UNPACK_ROW_LENGTH},
208 {MLTAG_unpack_skip_pixels, GL_UNPACK_SKIP_PIXELS},
209 {MLTAG_unpack_skip_rows, GL_UNPACK_SKIP_ROWS},
210 {MLTAG_unpack_alignment, GL_UNPACK_ALIGNMENT},
211 {MLTAG_front_left, GL_FRONT_LEFT},
212 {MLTAG_front_right, GL_FRONT_RIGHT},
213 {MLTAG_back_left, GL_BACK_LEFT},
214 {MLTAG_back_right, GL_BACK_RIGHT},
215 {MLTAG_left, GL_LEFT},
216 {MLTAG_right, GL_RIGHT},
217 {MLTAG_none, GL_NONE},
218 {MLTAG_keep, GL_KEEP},
219 {MLTAG_replace, GL_REPLACE},
220 {MLTAG_incr, GL_INCR},
221 {MLTAG_decr, GL_DECR},
222 {MLTAG_modulate, GL_MODULATE},
223 {MLTAG_decal, GL_DECAL},
224 {MLTAG_s, GL_S},
225 {MLTAG_t, GL_T},
226 {MLTAG_r, GL_R},
227 {MLTAG_q, GL_Q},
228 {MLTAG_object_plane, GL_OBJECT_PLANE},
229 {MLTAG_eye_plane, GL_EYE_PLANE},
230 {MLTAG_eye_linear, GL_EYE_LINEAR},
231 {MLTAG_object_linear, GL_OBJECT_LINEAR},
232 {MLTAG_sphere_map, GL_SPHERE_MAP},
233 {MLTAG_min_filter, GL_TEXTURE_MIN_FILTER},
234 {MLTAG_mag_filter, GL_TEXTURE_MAG_FILTER},
235 {MLTAG_wrap_s, GL_TEXTURE_WRAP_S},
236 {MLTAG_wrap_t, GL_TEXTURE_WRAP_T},
237 {MLTAG_border_color, GL_TEXTURE_BORDER_COLOR},
238 {MLTAG_priority, GL_TEXTURE_PRIORITY},
239 {MLTAG_nearest, GL_NEAREST},
240 {MLTAG_nearest_mipmap_nearest, GL_NEAREST_MIPMAP_NEAREST},
241 {MLTAG_linear_mipmap_nearest, GL_LINEAR_MIPMAP_NEAREST},
242 {MLTAG_nearest_mipmap_linear, GL_NEAREST_MIPMAP_LINEAR},
243 {MLTAG_linear_mipmap_linear, GL_LINEAR_MIPMAP_LINEAR},
244 {MLTAG_generate_mipmap, GL_GENERATE_MIPMAP},
245 {MLTAG_clamp, GL_CLAMP},
246 {MLTAG_repeat, GL_REPEAT},
247 {MLTAG_vendor, GL_VENDOR},
248 {MLTAG_renderer, GL_RENDERER},
249 {MLTAG_version, GL_VERSION},
250 {MLTAG_extensions, GL_EXTENSIONS},
251 {MLTAG_render, GL_RENDER},
252 {MLTAG_select, GL_SELECT},
253 {MLTAG_feedback, GL_FEEDBACK},
254 {MLTAG__2d, GL_2D},
255 {MLTAG__3d, GL_3D},
256 {MLTAG__3d_color, GL_3D_COLOR},
257 {MLTAG__3d_color_texture, GL_3D_COLOR_TEXTURE},
258 {MLTAG__4d_color_texture, GL_4D_COLOR_TEXTURE},
259 #define TAG_NUMBER 258