First step of the "really low" patch. This also fixes a bug where the number of verti...
[crack-attack.git] / src / obj_block.cxx
blobb417b3149d55c4b87f57fd84dedd44a3a7ce10d0
1 /*
2 * block.cxx
3 * Daniel Nelson - 8/31/0
5 * Copyright (C) 2000 Daniel Nelson
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * Daniel Nelson - aluminumangel.org
22 * 174 W. 18th Ave.
23 * Columbus, OH 43210
25 * OpenGL code generated by AC3D plug-in
26 * Created by Wade Lutgen October 1999
28 * Generates the block's two display lists.
31 #include <GL/glut.h>
33 #ifndef _WIN32
34 #else
35 # include <glext.h>
36 #endif
38 #include <cstring>
40 using namespace std;
42 #include "Game.h"
43 #include "Displayer.h"
45 GLuint Displayer::block_list;
46 GLuint Displayer::small_block_list;
47 GLuint Displayer::special_block_list;
49 GLuint Displayer::special_block_lightmap;
51 void Displayer::generateBlockDisplayList ( )
53 glEnableClientState(GL_VERTEX_ARRAY);
54 if (!(MetaState::mode & CM_REALLY_LOW_GRAPHICS))
55 glEnableClientState(GL_NORMAL_ARRAY);
57 block_list = glGenLists(1);
58 glNewList(block_list, GL_COMPILE);
60 GLfloat vertices_high[1512] =
62 -0.774253, -0.707686, -0.903997,
63 -0.774253, 0.707686, -0.903997,
64 -0.111631, 0.000000, -0.986824,
65 -0.800000, -0.800000, -0.800000,
66 -0.800000, 0.800000, -0.800000,
67 -0.774253, 0.707686, -0.903997,
68 -0.800000, -0.800000, -0.800000,
69 -0.774253, 0.707686, -0.903997,
70 -0.774253, -0.707686, -0.903997,
71 -0.800000, 0.800000, -0.800000,
72 0.000000, 0.000000, -0.900000,
73 -0.111631, 0.000000, -0.986824,
74 -0.800000, 0.800000, -0.800000,
75 -0.111631, 0.000000, -0.986824,
76 -0.774253, 0.707686, -0.903997,
77 0.000000, 0.000000, -0.900000,
78 -0.800000, -0.800000, -0.800000,
79 -0.774253, -0.707686, -0.903997,
80 0.000000, 0.000000, -0.900000,
81 -0.774253, -0.707686, -0.903997,
82 -0.111631, 0.000000, -0.986824,
83 -0.707686, 0.774253, -0.903997,
84 0.707686, 0.774253, -0.903997,
85 0.000000, 0.111631, -0.986824,
86 -0.800000, 0.800000, -0.800000,
87 0.800000, 0.800000, -0.800000,
88 0.707686, 0.774253, -0.903997,
89 -0.800000, 0.800000, -0.800000,
90 0.707686, 0.774253, -0.903997,
91 -0.707686, 0.774253, -0.903997,
92 0.800000, 0.800000, -0.800000,
93 0.000000, 0.000000, -0.900000,
94 0.000000, 0.111631, -0.986824,
95 0.800000, 0.800000, -0.800000,
96 0.000000, 0.111631, -0.986824,
97 0.707686, 0.774253, -0.903997,
98 0.000000, 0.000000, -0.900000,
99 -0.800000, 0.800000, -0.800000,
100 -0.707686, 0.774253, -0.903997,
101 0.000000, 0.000000, -0.900000,
102 -0.707686, 0.774253, -0.903997,
103 0.000000, 0.111631, -0.986824,
104 0.774253, 0.707686, -0.903997,
105 0.774253, -0.707686, -0.903997,
106 0.111631, 0.000000, -0.986824,
107 0.800000, 0.800000, -0.800000,
108 0.800000, -0.800000, -0.800000,
109 0.774253, -0.707686, -0.903997,
110 0.800000, 0.800000, -0.800000,
111 0.774253, -0.707686, -0.903997,
112 0.774253, 0.707686, -0.903997,
113 0.800000, -0.800000, -0.800000,
114 0.000000, 0.000000, -0.900000,
115 0.111631, 0.000000, -0.986824,
116 0.800000, -0.800000, -0.800000,
117 0.111631, 0.000000, -0.986824,
118 0.774253, -0.707686, -0.903997,
119 0.000000, 0.000000, -0.900000,
120 0.800000, 0.800000, -0.800000,
121 0.774253, 0.707686, -0.903997,
122 0.000000, 0.000000, -0.900000,
123 0.774253, 0.707686, -0.903997,
124 0.111631, 0.000000, -0.986824,
125 0.707686, -0.774253, -0.903997,
126 -0.707686, -0.774253, -0.903997,
127 0.000000, -0.111631, -0.986824,
128 0.800000, -0.800000, -0.800000,
129 -0.800000, -0.800000, -0.800000,
130 -0.707686, -0.774253, -0.903997,
131 0.800000, -0.800000, -0.800000,
132 -0.707686, -0.774253, -0.903997,
133 0.707686, -0.774253, -0.903997,
134 -0.800000, -0.800000, -0.800000,
135 0.000000, 0.000000, -0.900000,
136 0.000000, -0.111631, -0.986824,
137 -0.800000, -0.800000, -0.800000,
138 0.000000, -0.111631, -0.986824,
139 -0.707686, -0.774253, -0.903997,
140 0.000000, 0.000000, -0.900000,
141 0.800000, -0.800000, -0.800000,
142 0.707686, -0.774253, -0.903997,
143 0.000000, 0.000000, -0.900000,
144 0.707686, -0.774253, -0.903997,
145 0.000000, -0.111631, -0.986824,
146 0.903997, 0.707686, 0.774253,
147 0.903997, -0.707686, 0.774253,
148 0.986824, 0.000000, 0.111631,
149 0.800000, 0.800000, 0.800000,
150 0.800000, -0.800000, 0.800000,
151 0.903997, -0.707686, 0.774253,
152 0.800000, 0.800000, 0.800000,
153 0.903997, -0.707686, 0.774253,
154 0.903997, 0.707686, 0.774253,
155 0.800000, -0.800000, 0.800000,
156 0.900000, 0.000000, 0.000000,
157 0.986824, 0.000000, 0.111631,
158 0.800000, -0.800000, 0.800000,
159 0.986824, 0.000000, 0.111631,
160 0.903997, -0.707686, 0.774253,
161 0.900000, 0.000000, 0.000000,
162 0.800000, 0.800000, 0.800000,
163 0.903997, 0.707686, 0.774253,
164 0.900000, 0.000000, 0.000000,
165 0.903997, 0.707686, 0.774253,
166 0.986824, 0.000000, 0.111631,
167 0.903997, -0.774253, 0.707686,
168 0.903997, -0.774253, -0.707686,
169 0.986824, -0.111631, 0.000000,
170 0.800000, -0.800000, 0.800000,
171 0.800000, -0.800000, -0.800000,
172 0.903997, -0.774253, -0.707686,
173 0.800000, -0.800000, 0.800000,
174 0.903997, -0.774253, -0.707686,
175 0.903997, -0.774253, 0.707686,
176 0.800000, -0.800000, -0.800000,
177 0.900000, 0.000000, 0.000000,
178 0.986824, -0.111631, 0.000000,
179 0.800000, -0.800000, -0.800000,
180 0.986824, -0.111631, 0.000000,
181 0.903997, -0.774253, -0.707686,
182 0.900000, 0.000000, 0.000000,
183 0.800000, -0.800000, 0.800000,
184 0.903997, -0.774253, 0.707686,
185 0.900000, 0.000000, 0.000000,
186 0.903997, -0.774253, 0.707686,
187 0.986824, -0.111631, 0.000000,
188 0.903997, -0.707686, -0.774253,
189 0.903997, 0.707686, -0.774253,
190 0.986824, 0.000000, -0.111631,
191 0.800000, -0.800000, -0.800000,
192 0.800000, 0.800000, -0.800000,
193 0.903997, 0.707686, -0.774253,
194 0.800000, -0.800000, -0.800000,
195 0.903997, 0.707686, -0.774253,
196 0.903997, -0.707686, -0.774253,
197 0.800000, 0.800000, -0.800000,
198 0.900000, 0.000000, 0.000000,
199 0.986824, 0.000000, -0.111631,
200 0.800000, 0.800000, -0.800000,
201 0.986824, 0.000000, -0.111631,
202 0.903997, 0.707686, -0.774253,
203 0.900000, 0.000000, 0.000000,
204 0.800000, -0.800000, -0.800000,
205 0.903997, -0.707686, -0.774253,
206 0.900000, 0.000000, 0.000000,
207 0.903997, -0.707686, -0.774253,
208 0.986824, 0.000000, -0.111631,
209 0.903997, 0.774253, -0.707686,
210 0.903997, 0.774253, 0.707686,
211 0.986824, 0.111631, 0.000000,
212 0.800000, 0.800000, -0.800000,
213 0.800000, 0.800000, 0.800000,
214 0.903997, 0.774253, 0.707686,
215 0.800000, 0.800000, -0.800000,
216 0.903997, 0.774253, 0.707686,
217 0.903997, 0.774253, -0.707686,
218 0.800000, 0.800000, 0.800000,
219 0.900000, 0.000000, 0.000000,
220 0.986824, 0.111631, 0.000000,
221 0.800000, 0.800000, 0.800000,
222 0.986824, 0.111631, 0.000000,
223 0.903997, 0.774253, 0.707686,
224 0.900000, 0.000000, 0.000000,
225 0.800000, 0.800000, -0.800000,
226 0.903997, 0.774253, -0.707686,
227 0.900000, 0.000000, 0.000000,
228 0.903997, 0.774253, -0.707686,
229 0.986824, 0.111631, 0.000000,
230 0.774253, -0.707686, 0.903997,
231 0.774253, 0.707686, 0.903997,
232 0.111631, 0.000000, 0.986824,
233 0.800000, -0.800000, 0.800000,
234 0.800000, 0.800000, 0.800000,
235 0.774253, 0.707686, 0.903997,
236 0.800000, -0.800000, 0.800000,
237 0.774253, 0.707686, 0.903997,
238 0.774253, -0.707686, 0.903997,
239 0.800000, 0.800000, 0.800000,
240 0.000000, 0.000000, 0.900000,
241 0.111631, 0.000000, 0.986824,
242 0.800000, 0.800000, 0.800000,
243 0.111631, 0.000000, 0.986824,
244 0.774253, 0.707686, 0.903997,
245 0.000000, 0.000000, 0.900000,
246 0.800000, -0.800000, 0.800000,
247 0.774253, -0.707686, 0.903997,
248 0.000000, 0.000000, 0.900000,
249 0.774253, -0.707686, 0.903997,
250 0.111631, 0.000000, 0.986824,
251 0.707686, 0.774253, 0.903997,
252 -0.707686, 0.774253, 0.903997,
253 0.000000, 0.111631, 0.986824,
254 0.800000, 0.800000, 0.800000,
255 -0.800000, 0.800000, 0.800000,
256 -0.707686, 0.774253, 0.903997,
257 0.800000, 0.800000, 0.800000,
258 -0.707686, 0.774253, 0.903997,
259 0.707686, 0.774253, 0.903997,
260 -0.800000, 0.800000, 0.800000,
261 0.000000, 0.000000, 0.900000,
262 0.000000, 0.111631, 0.986824,
263 -0.800000, 0.800000, 0.800000,
264 0.000000, 0.111631, 0.986824,
265 -0.707686, 0.774253, 0.903997,
266 0.000000, 0.000000, 0.900000,
267 0.800000, 0.800000, 0.800000,
268 0.707686, 0.774253, 0.903997,
269 0.000000, 0.000000, 0.900000,
270 0.707686, 0.774253, 0.903997,
271 0.000000, 0.111631, 0.986824,
272 -0.774253, 0.707686, 0.903997,
273 -0.774253, -0.707686, 0.903997,
274 -0.111631, 0.000000, 0.986824,
275 -0.800000, 0.800000, 0.800000,
276 -0.800000, -0.800000, 0.800000,
277 -0.774253, -0.707686, 0.903997,
278 -0.800000, 0.800000, 0.800000,
279 -0.774253, -0.707686, 0.903997,
280 -0.774253, 0.707686, 0.903997,
281 -0.800000, -0.800000, 0.800000,
282 0.000000, 0.000000, 0.900000,
283 -0.111631, 0.000000, 0.986824,
284 -0.800000, -0.800000, 0.800000,
285 -0.111631, 0.000000, 0.986824,
286 -0.774253, -0.707686, 0.903997,
287 0.000000, 0.000000, 0.900000,
288 -0.800000, 0.800000, 0.800000,
289 -0.774253, 0.707686, 0.903997,
290 0.000000, 0.000000, 0.900000,
291 -0.774253, 0.707686, 0.903997,
292 -0.111631, 0.000000, 0.986824,
293 -0.707686, -0.774253, 0.903997,
294 0.707686, -0.774253, 0.903997,
295 0.000000, -0.111631, 0.986824,
296 -0.800000, -0.800000, 0.800000,
297 0.800000, -0.800000, 0.800000,
298 0.707686, -0.774253, 0.903997,
299 -0.800000, -0.800000, 0.800000,
300 0.707686, -0.774253, 0.903997,
301 -0.707686, -0.774253, 0.903997,
302 0.800000, -0.800000, 0.800000,
303 0.000000, 0.000000, 0.900000,
304 0.000000, -0.111631, 0.986824,
305 0.800000, -0.800000, 0.800000,
306 0.000000, -0.111631, 0.986824,
307 0.707686, -0.774253, 0.903997,
308 0.000000, 0.000000, 0.900000,
309 -0.800000, -0.800000, 0.800000,
310 -0.707686, -0.774253, 0.903997,
311 0.000000, 0.000000, 0.900000,
312 -0.707686, -0.774253, 0.903997,
313 0.000000, -0.111631, 0.986824,
314 -0.903997, -0.707686, 0.774253,
315 -0.903997, 0.707686, 0.774253,
316 -0.986824, 0.000000, 0.111631,
317 -0.800000, -0.800000, 0.800000,
318 -0.800000, 0.800000, 0.800000,
319 -0.903997, 0.707686, 0.774253,
320 -0.800000, -0.800000, 0.800000,
321 -0.903997, 0.707686, 0.774253,
322 -0.903997, -0.707686, 0.774253,
323 -0.800000, 0.800000, 0.800000,
324 -0.900000, 0.000000, 0.000000,
325 -0.986824, 0.000000, 0.111631,
326 -0.800000, 0.800000, 0.800000,
327 -0.986824, 0.000000, 0.111631,
328 -0.903997, 0.707686, 0.774253,
329 -0.900000, 0.000000, 0.000000,
330 -0.800000, -0.800000, 0.800000,
331 -0.903997, -0.707686, 0.774253,
332 -0.900000, 0.000000, 0.000000,
333 -0.903997, -0.707686, 0.774253,
334 -0.986824, 0.000000, 0.111631,
335 -0.903997, 0.774253, 0.707686,
336 -0.903997, 0.774253, -0.707686,
337 -0.986824, 0.111631, 0.000000,
338 -0.800000, 0.800000, 0.800000,
339 -0.800000, 0.800000, -0.800000,
340 -0.903997, 0.774253, -0.707686,
341 -0.800000, 0.800000, 0.800000,
342 -0.903997, 0.774253, -0.707686,
343 -0.903997, 0.774253, 0.707686,
344 -0.800000, 0.800000, -0.800000,
345 -0.900000, 0.000000, 0.000000,
346 -0.986824, 0.111631, 0.000000,
347 -0.800000, 0.800000, -0.800000,
348 -0.986824, 0.111631, 0.000000,
349 -0.903997, 0.774253, -0.707686,
350 -0.900000, 0.000000, 0.000000,
351 -0.800000, 0.800000, 0.800000,
352 -0.903997, 0.774253, 0.707686,
353 -0.900000, 0.000000, 0.000000,
354 -0.903997, 0.774253, 0.707686,
355 -0.986824, 0.111631, 0.000000,
356 -0.903997, 0.707686, -0.774253,
357 -0.903997, -0.707686, -0.774253,
358 -0.986824, 0.000000, -0.111631,
359 -0.800000, 0.800000, -0.800000,
360 -0.800000, -0.800000, -0.800000,
361 -0.903997, -0.707686, -0.774253,
362 -0.800000, 0.800000, -0.800000,
363 -0.903997, -0.707686, -0.774253,
364 -0.903997, 0.707686, -0.774253,
365 -0.800000, -0.800000, -0.800000,
366 -0.900000, 0.000000, 0.000000,
367 -0.986824, 0.000000, -0.111631,
368 -0.800000, -0.800000, -0.800000,
369 -0.986824, 0.000000, -0.111631,
370 -0.903997, -0.707686, -0.774253,
371 -0.900000, 0.000000, 0.000000,
372 -0.800000, 0.800000, -0.800000,
373 -0.903997, 0.707686, -0.774253,
374 -0.900000, 0.000000, 0.000000,
375 -0.903997, 0.707686, -0.774253,
376 -0.986824, 0.000000, -0.111631,
377 -0.903997, -0.774253, -0.707686,
378 -0.903997, -0.774253, 0.707686,
379 -0.986824, -0.111631, 0.000000,
380 -0.800000, -0.800000, -0.800000,
381 -0.800000, -0.800000, 0.800000,
382 -0.903997, -0.774253, 0.707686,
383 -0.800000, -0.800000, -0.800000,
384 -0.903997, -0.774253, 0.707686,
385 -0.903997, -0.774253, -0.707686,
386 -0.800000, -0.800000, 0.800000,
387 -0.900000, 0.000000, 0.000000,
388 -0.986824, -0.111631, 0.000000,
389 -0.800000, -0.800000, 0.800000,
390 -0.986824, -0.111631, 0.000000,
391 -0.903997, -0.774253, 0.707686,
392 -0.900000, 0.000000, 0.000000,
393 -0.800000, -0.800000, -0.800000,
394 -0.903997, -0.774253, -0.707686,
395 -0.900000, 0.000000, 0.000000,
396 -0.903997, -0.774253, -0.707686,
397 -0.986824, -0.111631, 0.000000,
398 -0.774253, 0.903997, -0.707686,
399 -0.774253, 0.903997, 0.707686,
400 -0.111631, 0.986824, 0.000000,
401 -0.800000, 0.800000, -0.800000,
402 -0.800000, 0.800000, 0.800000,
403 -0.774253, 0.903997, 0.707686,
404 -0.800000, 0.800000, -0.800000,
405 -0.774253, 0.903997, 0.707686,
406 -0.774253, 0.903997, -0.707686,
407 -0.800000, 0.800000, 0.800000,
408 0.000000, 0.900000, 0.000000,
409 -0.111631, 0.986824, 0.000000,
410 -0.800000, 0.800000, 0.800000,
411 -0.111631, 0.986824, 0.000000,
412 -0.774253, 0.903997, 0.707686,
413 0.000000, 0.900000, 0.000000,
414 -0.800000, 0.800000, -0.800000,
415 -0.774253, 0.903997, -0.707686,
416 0.000000, 0.900000, 0.000000,
417 -0.774253, 0.903997, -0.707686,
418 -0.111631, 0.986824, 0.000000,
419 -0.707686, 0.903997, 0.774253,
420 0.707686, 0.903997, 0.774253,
421 0.000000, 0.986824, 0.111631,
422 -0.800000, 0.800000, 0.800000,
423 0.800000, 0.800000, 0.800000,
424 0.707686, 0.903997, 0.774253,
425 -0.800000, 0.800000, 0.800000,
426 0.707686, 0.903997, 0.774253,
427 -0.707686, 0.903997, 0.774253,
428 0.800000, 0.800000, 0.800000,
429 0.000000, 0.900000, 0.000000,
430 0.000000, 0.986824, 0.111631,
431 0.800000, 0.800000, 0.800000,
432 0.000000, 0.986824, 0.111631,
433 0.707686, 0.903997, 0.774253,
434 0.000000, 0.900000, 0.000000,
435 -0.800000, 0.800000, 0.800000,
436 -0.707686, 0.903997, 0.774253,
437 0.000000, 0.900000, 0.000000,
438 -0.707686, 0.903997, 0.774253,
439 0.000000, 0.986824, 0.111631,
440 0.774253, 0.903997, 0.707686,
441 0.774253, 0.903997, -0.707686,
442 0.111631, 0.986824, 0.000000,
443 0.800000, 0.800000, 0.800000,
444 0.800000, 0.800000, -0.800000,
445 0.774253, 0.903997, -0.707686,
446 0.800000, 0.800000, 0.800000,
447 0.774253, 0.903997, -0.707686,
448 0.774253, 0.903997, 0.707686,
449 0.800000, 0.800000, -0.800000,
450 0.000000, 0.900000, 0.000000,
451 0.111631, 0.986824, 0.000000,
452 0.800000, 0.800000, -0.800000,
453 0.111631, 0.986824, 0.000000,
454 0.774253, 0.903997, -0.707686,
455 0.000000, 0.900000, 0.000000,
456 0.800000, 0.800000, 0.800000,
457 0.774253, 0.903997, 0.707686,
458 0.000000, 0.900000, 0.000000,
459 0.774253, 0.903997, 0.707686,
460 0.111631, 0.986824, 0.000000,
461 0.707686, 0.903997, -0.774253,
462 -0.707686, 0.903997, -0.774253,
463 0.000000, 0.986824, -0.111631,
464 0.800000, 0.800000, -0.800000,
465 -0.800000, 0.800000, -0.800000,
466 -0.707686, 0.903997, -0.774253,
467 0.800000, 0.800000, -0.800000,
468 -0.707686, 0.903997, -0.774253,
469 0.707686, 0.903997, -0.774253,
470 -0.800000, 0.800000, -0.800000,
471 0.000000, 0.900000, 0.000000,
472 0.000000, 0.986824, -0.111631,
473 -0.800000, 0.800000, -0.800000,
474 0.000000, 0.986824, -0.111631,
475 -0.707686, 0.903997, -0.774253,
476 0.000000, 0.900000, 0.000000,
477 0.800000, 0.800000, -0.800000,
478 0.707686, 0.903997, -0.774253,
479 0.000000, 0.900000, 0.000000,
480 0.707686, 0.903997, -0.774253,
481 0.000000, 0.986824, -0.111631,
482 -0.774253, -0.903997, 0.707686,
483 -0.774253, -0.903997, -0.707686,
484 -0.111631, -0.986824, 0.000000,
485 -0.800000, -0.800000, 0.800000,
486 -0.800000, -0.800000, -0.800000,
487 -0.774253, -0.903997, -0.707686,
488 -0.800000, -0.800000, 0.800000,
489 -0.774253, -0.903997, -0.707686,
490 -0.774253, -0.903997, 0.707686,
491 -0.800000, -0.800000, -0.800000,
492 0.000000, -0.900000, 0.000000,
493 -0.111631, -0.986824, 0.000000,
494 -0.800000, -0.800000, -0.800000,
495 -0.111631, -0.986824, 0.000000,
496 -0.774253, -0.903997, -0.707686,
497 0.000000, -0.900000, 0.000000,
498 -0.800000, -0.800000, 0.800000,
499 -0.774253, -0.903997, 0.707686,
500 0.000000, -0.900000, 0.000000,
501 -0.774253, -0.903997, 0.707686,
502 -0.111631, -0.986824, 0.000000,
503 -0.707686, -0.903997, -0.774253,
504 0.707686, -0.903997, -0.774253,
505 0.000000, -0.986824, -0.111631,
506 -0.800000, -0.800000, -0.800000,
507 0.800000, -0.800000, -0.800000,
508 0.707686, -0.903997, -0.774253,
509 -0.800000, -0.800000, -0.800000,
510 0.707686, -0.903997, -0.774253,
511 -0.707686, -0.903997, -0.774253,
512 0.800000, -0.800000, -0.800000,
513 0.000000, -0.900000, 0.000000,
514 0.000000, -0.986824, -0.111631,
515 0.800000, -0.800000, -0.800000,
516 0.000000, -0.986824, -0.111631,
517 0.707686, -0.903997, -0.774253,
518 0.000000, -0.900000, 0.000000,
519 -0.800000, -0.800000, -0.800000,
520 -0.707686, -0.903997, -0.774253,
521 0.000000, -0.900000, 0.000000,
522 -0.707686, -0.903997, -0.774253,
523 0.000000, -0.986824, -0.111631,
524 0.774253, -0.903997, -0.707686,
525 0.774253, -0.903997, 0.707686,
526 0.111631, -0.986824, 0.000000,
527 0.800000, -0.800000, -0.800000,
528 0.800000, -0.800000, 0.800000,
529 0.774253, -0.903997, 0.707686,
530 0.800000, -0.800000, -0.800000,
531 0.774253, -0.903997, 0.707686,
532 0.774253, -0.903997, -0.707686,
533 0.800000, -0.800000, 0.800000,
534 0.000000, -0.900000, 0.000000,
535 0.111631, -0.986824, 0.000000,
536 0.800000, -0.800000, 0.800000,
537 0.111631, -0.986824, 0.000000,
538 0.774253, -0.903997, 0.707686,
539 0.000000, -0.900000, 0.000000,
540 0.800000, -0.800000, -0.800000,
541 0.774253, -0.903997, -0.707686,
542 0.000000, -0.900000, 0.000000,
543 0.774253, -0.903997, -0.707686,
544 0.111631, -0.986824, 0.000000,
545 0.707686, -0.903997, 0.774253,
546 -0.707686, -0.903997, 0.774253,
547 0.000000, -0.986824, 0.111631,
548 0.800000, -0.800000, 0.800000,
549 -0.800000, -0.800000, 0.800000,
550 -0.707686, -0.903997, 0.774253,
551 0.800000, -0.800000, 0.800000,
552 -0.707686, -0.903997, 0.774253,
553 0.707686, -0.903997, 0.774253,
554 -0.800000, -0.800000, 0.800000,
555 0.000000, -0.900000, 0.000000,
556 0.000000, -0.986824, 0.111631,
557 -0.800000, -0.800000, 0.800000,
558 0.000000, -0.986824, 0.111631,
559 -0.707686, -0.903997, 0.774253,
560 0.000000, -0.900000, 0.000000,
561 0.800000, -0.800000, 0.800000,
562 0.707686, -0.903997, 0.774253,
563 0.000000, -0.900000, 0.000000,
564 0.707686, -0.903997, 0.774253,
565 0.000000, -0.986824, 0.111631,
568 GLfloat normals_high[1512] =
570 -0.261528, -0.355900, -0.897183,
571 -0.289940, 0.282913, -0.914273,
572 0.428513, -0.035815, -0.902825,
573 -0.577350, -0.577350, -0.577350,
574 -0.577350, 0.577350, -0.577350,
575 -0.289940, 0.282913, -0.914273,
576 -0.577350, -0.577350, -0.577350,
577 -0.289940, 0.282913, -0.914273,
578 -0.261528, -0.355900, -0.897183,
579 -0.577350, 0.577350, -0.577350,
580 0.000000, -0.000000, -1.000000,
581 0.428513, -0.035815, -0.902825,
582 -0.577350, 0.577350, -0.577350,
583 0.428513, -0.035815, -0.902825,
584 -0.289940, 0.282913, -0.914273,
585 0.000000, -0.000000, -1.000000,
586 -0.577350, -0.577350, -0.577350,
587 -0.261528, -0.355900, -0.897183,
588 0.000000, -0.000000, -1.000000,
589 -0.261528, -0.355900, -0.897183,
590 0.428513, -0.035815, -0.902825,
591 -0.355900, 0.261528, -0.897183,
592 0.282913, 0.289940, -0.914273,
593 -0.035815, -0.428513, -0.902825,
594 -0.577350, 0.577350, -0.577350,
595 0.577350, 0.577350, -0.577350,
596 0.282913, 0.289940, -0.914273,
597 -0.577350, 0.577350, -0.577350,
598 0.282913, 0.289940, -0.914273,
599 -0.355900, 0.261528, -0.897183,
600 0.577350, 0.577350, -0.577350,
601 0.000000, -0.000000, -1.000000,
602 -0.035815, -0.428513, -0.902825,
603 0.577350, 0.577350, -0.577350,
604 -0.035815, -0.428513, -0.902825,
605 0.282913, 0.289940, -0.914273,
606 0.000000, -0.000000, -1.000000,
607 -0.577350, 0.577350, -0.577350,
608 -0.355900, 0.261528, -0.897183,
609 0.000000, -0.000000, -1.000000,
610 -0.355900, 0.261528, -0.897183,
611 -0.035815, -0.428513, -0.902825,
612 0.261528, 0.355900, -0.897183,
613 0.289940, -0.282913, -0.914273,
614 -0.428513, 0.035815, -0.902825,
615 0.577350, 0.577350, -0.577350,
616 0.577350, -0.577350, -0.577350,
617 0.289940, -0.282913, -0.914273,
618 0.577350, 0.577350, -0.577350,
619 0.289940, -0.282913, -0.914273,
620 0.261528, 0.355900, -0.897183,
621 0.577350, -0.577350, -0.577350,
622 0.000000, -0.000000, -1.000000,
623 -0.428513, 0.035815, -0.902825,
624 0.577350, -0.577350, -0.577350,
625 -0.428513, 0.035815, -0.902825,
626 0.289940, -0.282913, -0.914273,
627 0.000000, -0.000000, -1.000000,
628 0.577350, 0.577350, -0.577350,
629 0.261528, 0.355900, -0.897183,
630 0.000000, -0.000000, -1.000000,
631 0.261528, 0.355900, -0.897183,
632 -0.428513, 0.035815, -0.902825,
633 0.355900, -0.261528, -0.897183,
634 -0.282913, -0.289940, -0.914273,
635 0.035815, 0.428513, -0.902825,
636 0.577350, -0.577350, -0.577350,
637 -0.577350, -0.577350, -0.577350,
638 -0.282913, -0.289940, -0.914273,
639 0.577350, -0.577350, -0.577350,
640 -0.282913, -0.289940, -0.914273,
641 0.355900, -0.261528, -0.897183,
642 -0.577350, -0.577350, -0.577350,
643 0.000000, -0.000000, -1.000000,
644 0.035815, 0.428513, -0.902825,
645 -0.577350, -0.577350, -0.577350,
646 0.035815, 0.428513, -0.902825,
647 -0.282913, -0.289940, -0.914273,
648 0.000000, -0.000000, -1.000000,
649 0.577350, -0.577350, -0.577350,
650 0.355900, -0.261528, -0.897183,
651 0.000000, -0.000000, -1.000000,
652 0.355900, -0.261528, -0.897183,
653 0.035815, 0.428513, -0.902825,
654 0.897183, 0.355900, 0.261528,
655 0.914273, -0.282913, 0.289940,
656 0.902825, 0.035815, -0.428513,
657 0.577350, 0.577350, 0.577350,
658 0.577350, -0.577350, 0.577350,
659 0.914273, -0.282913, 0.289940,
660 0.577350, 0.577350, 0.577350,
661 0.914273, -0.282913, 0.289940,
662 0.897183, 0.355900, 0.261528,
663 0.577350, -0.577350, 0.577350,
664 1.000000, 0.000000, -0.000000,
665 0.902825, 0.035815, -0.428513,
666 0.577350, -0.577350, 0.577350,
667 0.902825, 0.035815, -0.428513,
668 0.914273, -0.282913, 0.289940,
669 1.000000, 0.000000, -0.000000,
670 0.577350, 0.577350, 0.577350,
671 0.897183, 0.355900, 0.261528,
672 1.000000, 0.000000, -0.000000,
673 0.897183, 0.355900, 0.261528,
674 0.902825, 0.035815, -0.428513,
675 0.897183, -0.261528, 0.355900,
676 0.914273, -0.289940, -0.282913,
677 0.902825, 0.428513, 0.035815,
678 0.577350, -0.577350, 0.577350,
679 0.577350, -0.577350, -0.577350,
680 0.914273, -0.289940, -0.282913,
681 0.577350, -0.577350, 0.577350,
682 0.914273, -0.289940, -0.282913,
683 0.897183, -0.261528, 0.355900,
684 0.577350, -0.577350, -0.577350,
685 1.000000, 0.000000, -0.000000,
686 0.902825, 0.428513, 0.035815,
687 0.577350, -0.577350, -0.577350,
688 0.902825, 0.428513, 0.035815,
689 0.914273, -0.289940, -0.282913,
690 1.000000, 0.000000, -0.000000,
691 0.577350, -0.577350, 0.577350,
692 0.897183, -0.261528, 0.355900,
693 1.000000, 0.000000, -0.000000,
694 0.897183, -0.261528, 0.355900,
695 0.902825, 0.428513, 0.035815,
696 0.897183, -0.355900, -0.261528,
697 0.914273, 0.282913, -0.289940,
698 0.902825, -0.035815, 0.428513,
699 0.577350, -0.577350, -0.577350,
700 0.577350, 0.577350, -0.577350,
701 0.914273, 0.282913, -0.289940,
702 0.577350, -0.577350, -0.577350,
703 0.914273, 0.282913, -0.289940,
704 0.897183, -0.355900, -0.261528,
705 0.577350, 0.577350, -0.577350,
706 1.000000, 0.000000, -0.000000,
707 0.902825, -0.035815, 0.428513,
708 0.577350, 0.577350, -0.577350,
709 0.902825, -0.035815, 0.428513,
710 0.914273, 0.282913, -0.289940,
711 1.000000, 0.000000, -0.000000,
712 0.577350, -0.577350, -0.577350,
713 0.897183, -0.355900, -0.261528,
714 1.000000, 0.000000, -0.000000,
715 0.897183, -0.355900, -0.261528,
716 0.902825, -0.035815, 0.428513,
717 0.897183, 0.261528, -0.355900,
718 0.914273, 0.289940, 0.282913,
719 0.902825, -0.428513, -0.035815,
720 0.577350, 0.577350, -0.577350,
721 0.577350, 0.577350, 0.577350,
722 0.914273, 0.289940, 0.282913,
723 0.577350, 0.577350, -0.577350,
724 0.914273, 0.289940, 0.282913,
725 0.897183, 0.261528, -0.355900,
726 0.577350, 0.577350, 0.577350,
727 1.000000, 0.000000, -0.000000,
728 0.902825, -0.428513, -0.035815,
729 0.577350, 0.577350, 0.577350,
730 0.902825, -0.428513, -0.035815,
731 0.914273, 0.289940, 0.282913,
732 1.000000, 0.000000, -0.000000,
733 0.577350, 0.577350, -0.577350,
734 0.897183, 0.261528, -0.355900,
735 1.000000, 0.000000, -0.000000,
736 0.897183, 0.261528, -0.355900,
737 0.902825, -0.428513, -0.035815,
738 0.261528, -0.355900, 0.897183,
739 0.289940, 0.282913, 0.914273,
740 -0.428513, -0.035815, 0.902825,
741 0.577350, -0.577350, 0.577350,
742 0.577350, 0.577350, 0.577350,
743 0.289940, 0.282913, 0.914273,
744 0.577350, -0.577350, 0.577350,
745 0.289940, 0.282913, 0.914273,
746 0.261528, -0.355900, 0.897183,
747 0.577350, 0.577350, 0.577350,
748 -0.000000, -0.000000, 1.000000,
749 -0.428513, -0.035815, 0.902825,
750 0.577350, 0.577350, 0.577350,
751 -0.428513, -0.035815, 0.902825,
752 0.289940, 0.282913, 0.914273,
753 -0.000000, -0.000000, 1.000000,
754 0.577350, -0.577350, 0.577350,
755 0.261528, -0.355900, 0.897183,
756 -0.000000, -0.000000, 1.000000,
757 0.261528, -0.355900, 0.897183,
758 -0.428513, -0.035815, 0.902825,
759 0.355900, 0.261528, 0.897183,
760 -0.282913, 0.289940, 0.914273,
761 0.035815, -0.428513, 0.902825,
762 0.577350, 0.577350, 0.577350,
763 -0.577350, 0.577350, 0.577350,
764 -0.282913, 0.289940, 0.914273,
765 0.577350, 0.577350, 0.577350,
766 -0.282913, 0.289940, 0.914273,
767 0.355900, 0.261528, 0.897183,
768 -0.577350, 0.577350, 0.577350,
769 -0.000000, -0.000000, 1.000000,
770 0.035815, -0.428513, 0.902825,
771 -0.577350, 0.577350, 0.577350,
772 0.035815, -0.428513, 0.902825,
773 -0.282913, 0.289940, 0.914273,
774 -0.000000, -0.000000, 1.000000,
775 0.577350, 0.577350, 0.577350,
776 0.355900, 0.261528, 0.897183,
777 -0.000000, -0.000000, 1.000000,
778 0.355900, 0.261528, 0.897183,
779 0.035815, -0.428513, 0.902825,
780 -0.261528, 0.355900, 0.897183,
781 -0.289940, -0.282913, 0.914273,
782 0.428513, 0.035815, 0.902825,
783 -0.577350, 0.577350, 0.577350,
784 -0.577350, -0.577350, 0.577350,
785 -0.289940, -0.282913, 0.914273,
786 -0.577350, 0.577350, 0.577350,
787 -0.289940, -0.282913, 0.914273,
788 -0.261528, 0.355900, 0.897183,
789 -0.577350, -0.577350, 0.577350,
790 -0.000000, -0.000000, 1.000000,
791 0.428513, 0.035815, 0.902825,
792 -0.577350, -0.577350, 0.577350,
793 0.428513, 0.035815, 0.902825,
794 -0.289940, -0.282913, 0.914273,
795 -0.000000, -0.000000, 1.000000,
796 -0.577350, 0.577350, 0.577350,
797 -0.261528, 0.355900, 0.897183,
798 -0.000000, -0.000000, 1.000000,
799 -0.261528, 0.355900, 0.897183,
800 0.428513, 0.035815, 0.902825,
801 -0.355900, -0.261528, 0.897183,
802 0.282913, -0.289940, 0.914273,
803 -0.035815, 0.428513, 0.902825,
804 -0.577350, -0.577350, 0.577350,
805 0.577350, -0.577350, 0.577350,
806 0.282913, -0.289940, 0.914273,
807 -0.577350, -0.577350, 0.577350,
808 0.282913, -0.289940, 0.914273,
809 -0.355900, -0.261528, 0.897183,
810 0.577350, -0.577350, 0.577350,
811 -0.000000, -0.000000, 1.000000,
812 -0.035815, 0.428513, 0.902825,
813 0.577350, -0.577350, 0.577350,
814 -0.035815, 0.428513, 0.902825,
815 0.282913, -0.289940, 0.914273,
816 -0.000000, -0.000000, 1.000000,
817 -0.577350, -0.577350, 0.577350,
818 -0.355900, -0.261528, 0.897183,
819 -0.000000, -0.000000, 1.000000,
820 -0.355900, -0.261528, 0.897183,
821 -0.035815, 0.428513, 0.902825,
822 -0.897183, -0.355900, 0.261528,
823 -0.914273, 0.282913, 0.289940,
824 -0.902825, -0.035815, -0.428513,
825 -0.577350, -0.577350, 0.577350,
826 -0.577350, 0.577350, 0.577350,
827 -0.914273, 0.282913, 0.289940,
828 -0.577350, -0.577350, 0.577350,
829 -0.914273, 0.282913, 0.289940,
830 -0.897183, -0.355900, 0.261528,
831 -0.577350, 0.577350, 0.577350,
832 -1.000000, -0.000000, -0.000000,
833 -0.902825, -0.035815, -0.428513,
834 -0.577350, 0.577350, 0.577350,
835 -0.902825, -0.035815, -0.428513,
836 -0.914273, 0.282913, 0.289940,
837 -1.000000, -0.000000, -0.000000,
838 -0.577350, -0.577350, 0.577350,
839 -0.897183, -0.355900, 0.261528,
840 -1.000000, -0.000000, -0.000000,
841 -0.897183, -0.355900, 0.261528,
842 -0.902825, -0.035815, -0.428513,
843 -0.897183, 0.261528, 0.355900,
844 -0.914273, 0.289940, -0.282913,
845 -0.902825, -0.428513, 0.035815,
846 -0.577350, 0.577350, 0.577350,
847 -0.577350, 0.577350, -0.577350,
848 -0.914273, 0.289940, -0.282913,
849 -0.577350, 0.577350, 0.577350,
850 -0.914273, 0.289940, -0.282913,
851 -0.897183, 0.261528, 0.355900,
852 -0.577350, 0.577350, -0.577350,
853 -1.000000, -0.000000, -0.000000,
854 -0.902825, -0.428513, 0.035815,
855 -0.577350, 0.577350, -0.577350,
856 -0.902825, -0.428513, 0.035815,
857 -0.914273, 0.289940, -0.282913,
858 -1.000000, -0.000000, -0.000000,
859 -0.577350, 0.577350, 0.577350,
860 -0.897183, 0.261528, 0.355900,
861 -1.000000, -0.000000, -0.000000,
862 -0.897183, 0.261528, 0.355900,
863 -0.902825, -0.428513, 0.035815,
864 -0.897183, 0.355900, -0.261528,
865 -0.914273, -0.282913, -0.289940,
866 -0.902825, 0.035815, 0.428513,
867 -0.577350, 0.577350, -0.577350,
868 -0.577350, -0.577350, -0.577350,
869 -0.914273, -0.282913, -0.289940,
870 -0.577350, 0.577350, -0.577350,
871 -0.914273, -0.282913, -0.289940,
872 -0.897183, 0.355900, -0.261528,
873 -0.577350, -0.577350, -0.577350,
874 -1.000000, -0.000000, -0.000000,
875 -0.902825, 0.035815, 0.428513,
876 -0.577350, -0.577350, -0.577350,
877 -0.902825, 0.035815, 0.428513,
878 -0.914273, -0.282913, -0.289940,
879 -1.000000, -0.000000, -0.000000,
880 -0.577350, 0.577350, -0.577350,
881 -0.897183, 0.355900, -0.261528,
882 -1.000000, -0.000000, -0.000000,
883 -0.897183, 0.355900, -0.261528,
884 -0.902825, 0.035815, 0.428513,
885 -0.897183, -0.261528, -0.355900,
886 -0.914273, -0.289940, 0.282913,
887 -0.902825, 0.428513, -0.035815,
888 -0.577350, -0.577350, -0.577350,
889 -0.577350, -0.577350, 0.577350,
890 -0.914273, -0.289940, 0.282913,
891 -0.577350, -0.577350, -0.577350,
892 -0.914273, -0.289940, 0.282913,
893 -0.897183, -0.261528, -0.355900,
894 -0.577350, -0.577350, 0.577350,
895 -1.000000, -0.000000, -0.000000,
896 -0.902825, 0.428513, -0.035815,
897 -0.577350, -0.577350, 0.577350,
898 -0.902825, 0.428513, -0.035815,
899 -0.914273, -0.289940, 0.282913,
900 -1.000000, -0.000000, -0.000000,
901 -0.577350, -0.577350, -0.577350,
902 -0.897183, -0.261528, -0.355900,
903 -1.000000, -0.000000, -0.000000,
904 -0.897183, -0.261528, -0.355900,
905 -0.902825, 0.428513, -0.035815,
906 -0.261528, 0.897183, -0.355900,
907 -0.289940, 0.914273, 0.282913,
908 0.428513, 0.902825, -0.035815,
909 -0.577350, 0.577350, -0.577350,
910 -0.577350, 0.577350, 0.577350,
911 -0.289940, 0.914273, 0.282913,
912 -0.577350, 0.577350, -0.577350,
913 -0.289940, 0.914273, 0.282913,
914 -0.261528, 0.897183, -0.355900,
915 -0.577350, 0.577350, 0.577350,
916 0.000000, 1.000000, -0.000000,
917 0.428513, 0.902825, -0.035815,
918 -0.577350, 0.577350, 0.577350,
919 0.428513, 0.902825, -0.035815,
920 -0.289940, 0.914273, 0.282913,
921 0.000000, 1.000000, -0.000000,
922 -0.577350, 0.577350, -0.577350,
923 -0.261528, 0.897183, -0.355900,
924 0.000000, 1.000000, -0.000000,
925 -0.261528, 0.897183, -0.355900,
926 0.428513, 0.902825, -0.035815,
927 -0.355900, 0.897183, 0.261528,
928 0.282913, 0.914273, 0.289940,
929 -0.035815, 0.902825, -0.428513,
930 -0.577350, 0.577350, 0.577350,
931 0.577350, 0.577350, 0.577350,
932 0.282913, 0.914273, 0.289940,
933 -0.577350, 0.577350, 0.577350,
934 0.282913, 0.914273, 0.289940,
935 -0.355900, 0.897183, 0.261528,
936 0.577350, 0.577350, 0.577350,
937 0.000000, 1.000000, -0.000000,
938 -0.035815, 0.902825, -0.428513,
939 0.577350, 0.577350, 0.577350,
940 -0.035815, 0.902825, -0.428513,
941 0.282913, 0.914273, 0.289940,
942 0.000000, 1.000000, -0.000000,
943 -0.577350, 0.577350, 0.577350,
944 -0.355900, 0.897183, 0.261528,
945 0.000000, 1.000000, -0.000000,
946 -0.355900, 0.897183, 0.261528,
947 -0.035815, 0.902825, -0.428513,
948 0.261528, 0.897183, 0.355900,
949 0.289940, 0.914273, -0.282913,
950 -0.428513, 0.902825, 0.035815,
951 0.577350, 0.577350, 0.577350,
952 0.577350, 0.577350, -0.577350,
953 0.289940, 0.914273, -0.282913,
954 0.577350, 0.577350, 0.577350,
955 0.289940, 0.914273, -0.282913,
956 0.261528, 0.897183, 0.355900,
957 0.577350, 0.577350, -0.577350,
958 0.000000, 1.000000, -0.000000,
959 -0.428513, 0.902825, 0.035815,
960 0.577350, 0.577350, -0.577350,
961 -0.428513, 0.902825, 0.035815,
962 0.289940, 0.914273, -0.282913,
963 0.000000, 1.000000, -0.000000,
964 0.577350, 0.577350, 0.577350,
965 0.261528, 0.897183, 0.355900,
966 0.000000, 1.000000, -0.000000,
967 0.261528, 0.897183, 0.355900,
968 -0.428513, 0.902825, 0.035815,
969 0.355900, 0.897183, -0.261528,
970 -0.282913, 0.914273, -0.289940,
971 0.035815, 0.902825, 0.428513,
972 0.577350, 0.577350, -0.577350,
973 -0.577350, 0.577350, -0.577350,
974 -0.282913, 0.914273, -0.289940,
975 0.577350, 0.577350, -0.577350,
976 -0.282913, 0.914273, -0.289940,
977 0.355900, 0.897183, -0.261528,
978 -0.577350, 0.577350, -0.577350,
979 0.000000, 1.000000, -0.000000,
980 0.035815, 0.902825, 0.428513,
981 -0.577350, 0.577350, -0.577350,
982 0.035815, 0.902825, 0.428513,
983 -0.282913, 0.914273, -0.289940,
984 0.000000, 1.000000, -0.000000,
985 0.577350, 0.577350, -0.577350,
986 0.355900, 0.897183, -0.261528,
987 0.000000, 1.000000, -0.000000,
988 0.355900, 0.897183, -0.261528,
989 0.035815, 0.902825, 0.428513,
990 -0.261528, -0.897183, 0.355900,
991 -0.289940, -0.914273, -0.282913,
992 0.428513, -0.902825, 0.035815,
993 -0.577350, -0.577350, 0.577350,
994 -0.577350, -0.577350, -0.577350,
995 -0.289940, -0.914273, -0.282913,
996 -0.577350, -0.577350, 0.577350,
997 -0.289940, -0.914273, -0.282913,
998 -0.261528, -0.897183, 0.355900,
999 -0.577350, -0.577350, -0.577350,
1000 0.000000, -1.000000, 0.000000,
1001 0.428513, -0.902825, 0.035815,
1002 -0.577350, -0.577350, -0.577350,
1003 0.428513, -0.902825, 0.035815,
1004 -0.289940, -0.914273, -0.282913,
1005 0.000000, -1.000000, 0.000000,
1006 -0.577350, -0.577350, 0.577350,
1007 -0.261528, -0.897183, 0.355900,
1008 0.000000, -1.000000, 0.000000,
1009 -0.261528, -0.897183, 0.355900,
1010 0.428513, -0.902825, 0.035815,
1011 -0.355900, -0.897183, -0.261528,
1012 0.282913, -0.914273, -0.289940,
1013 -0.035815, -0.902825, 0.428513,
1014 -0.577350, -0.577350, -0.577350,
1015 0.577350, -0.577350, -0.577350,
1016 0.282913, -0.914273, -0.289940,
1017 -0.577350, -0.577350, -0.577350,
1018 0.282913, -0.914273, -0.289940,
1019 -0.355900, -0.897183, -0.261528,
1020 0.577350, -0.577350, -0.577350,
1021 0.000000, -1.000000, 0.000000,
1022 -0.035815, -0.902825, 0.428513,
1023 0.577350, -0.577350, -0.577350,
1024 -0.035815, -0.902825, 0.428513,
1025 0.282913, -0.914273, -0.289940,
1026 0.000000, -1.000000, 0.000000,
1027 -0.577350, -0.577350, -0.577350,
1028 -0.355900, -0.897183, -0.261528,
1029 0.000000, -1.000000, 0.000000,
1030 -0.355900, -0.897183, -0.261528,
1031 -0.035815, -0.902825, 0.428513,
1032 0.261528, -0.897183, -0.355900,
1033 0.289940, -0.914273, 0.282913,
1034 -0.428513, -0.902825, -0.035815,
1035 0.577350, -0.577350, -0.577350,
1036 0.577350, -0.577350, 0.577350,
1037 0.289940, -0.914273, 0.282913,
1038 0.577350, -0.577350, -0.577350,
1039 0.289940, -0.914273, 0.282913,
1040 0.261528, -0.897183, -0.355900,
1041 0.577350, -0.577350, 0.577350,
1042 0.000000, -1.000000, 0.000000,
1043 -0.428513, -0.902825, -0.035815,
1044 0.577350, -0.577350, 0.577350,
1045 -0.428513, -0.902825, -0.035815,
1046 0.289940, -0.914273, 0.282913,
1047 0.000000, -1.000000, 0.000000,
1048 0.577350, -0.577350, -0.577350,
1049 0.261528, -0.897183, -0.355900,
1050 0.000000, -1.000000, 0.000000,
1051 0.261528, -0.897183, -0.355900,
1052 -0.428513, -0.902825, -0.035815,
1053 0.355900, -0.897183, 0.261528,
1054 -0.282913, -0.914273, 0.289940,
1055 0.035815, -0.902825, -0.428513,
1056 0.577350, -0.577350, 0.577350,
1057 -0.577350, -0.577350, 0.577350,
1058 -0.282913, -0.914273, 0.289940,
1059 0.577350, -0.577350, 0.577350,
1060 -0.282913, -0.914273, 0.289940,
1061 0.355900, -0.897183, 0.261528,
1062 -0.577350, -0.577350, 0.577350,
1063 0.000000, -1.000000, 0.000000,
1064 0.035815, -0.902825, -0.428513,
1065 -0.577350, -0.577350, 0.577350,
1066 0.035815, -0.902825, -0.428513,
1067 -0.282913, -0.914273, 0.289940,
1068 0.000000, -1.000000, 0.000000,
1069 0.577350, -0.577350, 0.577350,
1070 0.355900, -0.897183, 0.261528,
1071 0.000000, -1.000000, 0.000000,
1072 0.355900, -0.897183, 0.261528,
1073 0.035815, -0.902825, -0.428513,
1076 #if 1
1077 GLfloat vertices_low[216] =
1079 -0.850000, -0.850000, -0.850000,
1080 -0.850000, 0.850000, -0.850000,
1081 0.000000, 0.000000, -1.000000,
1082 -0.850000, 0.850000, -0.850000,
1083 0.850000, 0.850000, -0.850000,
1084 0.000000, 0.000000, -1.000000,
1085 0.850000, 0.850000, -0.850000,
1086 0.850000, -0.850000, -0.850000,
1087 0.000000, 0.000000, -1.000000,
1088 0.850000, -0.850000, -0.850000,
1089 -0.850000, -0.850000, -0.850000,
1090 0.000000, 0.000000, -1.000000,
1091 0.850000, 0.850000, 0.850000,
1092 0.850000, -0.850000, 0.850000,
1093 1.000000, 0.000000, -0.000000,
1094 0.850000, -0.850000, 0.850000,
1095 0.850000, -0.850000, -0.850000,
1096 1.000000, 0.000000, -0.000000,
1097 0.850000, -0.850000, -0.850000,
1098 0.850000, 0.850000, -0.850000,
1099 1.000000, 0.000000, -0.000000,
1100 0.850000, 0.850000, -0.850000,
1101 0.850000, 0.850000, 0.850000,
1102 1.000000, 0.000000, -0.000000,
1103 0.850000, -0.850000, 0.850000,
1104 0.850000, 0.850000, 0.850000,
1105 0.000000, 0.000000, 1.000000,
1106 0.850000, 0.850000, 0.850000,
1107 -0.850000, 0.850000, 0.850000,
1108 0.000000, 0.000000, 1.000000,
1109 -0.850000, 0.850000, 0.850000,
1110 -0.850000, -0.850000, 0.850000,
1111 0.000000, 0.000000, 1.000000,
1112 -0.850000, -0.850000, 0.850000,
1113 0.850000, -0.850000, 0.850000,
1114 0.000000, 0.000000, 1.000000,
1115 -0.850000, -0.850000, 0.850000,
1116 -0.850000, 0.850000, 0.850000,
1117 -1.000000, 0.000000, -0.000000,
1118 -0.850000, 0.850000, 0.850000,
1119 -0.850000, 0.850000, -0.850000,
1120 -1.000000, 0.000000, -0.000000,
1121 -0.850000, 0.850000, -0.850000,
1122 -0.850000, -0.850000, -0.850000,
1123 -1.000000, 0.000000, -0.000000,
1124 -0.850000, -0.850000, -0.850000,
1125 -0.850000, -0.850000, 0.850000,
1126 -1.000000, 0.000000, -0.000000,
1127 -0.850000, 0.850000, -0.850000,
1128 -0.850000, 0.850000, 0.850000,
1129 0.000000, 1.000000, -0.000000,
1130 -0.850000, 0.850000, 0.850000,
1131 0.850000, 0.850000, 0.850000,
1132 0.000000, 1.000000, -0.000000,
1133 0.850000, 0.850000, 0.850000,
1134 0.850000, 0.850000, -0.850000,
1135 0.000000, 1.000000, -0.000000,
1136 0.850000, 0.850000, -0.850000,
1137 -0.850000, 0.850000, -0.850000,
1138 0.000000, 1.000000, -0.000000,
1139 -0.850000, -0.850000, 0.850000,
1140 -0.850000, -0.850000, -0.850000,
1141 0.000000, -1.000000, -0.000000,
1142 -0.850000, -0.850000, -0.850000,
1143 0.850000, -0.850000, -0.850000,
1144 0.000000, -1.000000, -0.000000,
1145 0.850000, -0.850000, -0.850000,
1146 0.850000, -0.850000, 0.850000,
1147 0.000000, -1.000000, -0.000000,
1148 0.850000, -0.850000, 0.850000,
1149 -0.850000, -0.850000, 0.850000,
1150 0.000000, -1.000000, -0.000000,
1153 GLfloat normals_low[216] =
1155 -0.242536, 0.000000, -0.970143,
1156 -0.242536, 0.000000, -0.970143,
1157 0.000000, 0.000000, -1.000000,
1158 0.000000, 0.242536, -0.970143,
1159 0.000000, 0.242536, -0.970143,
1160 0.000000,0.000000,-1.000000,
1161 0.000000, 0.242536, -0.970143,
1162 0.242536, 0.000000, -0.970143,
1163 0.000000,0.000000,-1.000000,
1164 0.242536, 0.000000, -0.970143,
1165 -0.000000, -0.242536, -0.970143,
1166 0.000000,0.000000, -1.000000,
1167 0.970142, 0.000000, 0.242536,
1168 0.970142, 0.000000, 0.242536,
1169 1.000000,0.000000,0.000000,
1170 0.970142, -0.242536, 0.000000,
1171 0.970142, -0.242536, 0.000000,
1172 1.000000, 0.000000, 0.000000,
1173 0.970142, 0.000000, -0.242536,
1174 0.970142, 0.000000, -0.242536,
1175 1.000000, 0.000000, 0.000000,
1176 0.970142, 0.242536, -0.000000,
1177 0.970142, 0.242536, -0.000000,
1178 1.000000, 0.000000, 0.000000,
1179 0.242536, -0.000000, 0.970143,
1180 0.242536, -0.000000, 0.970143,
1181 0.000000, 0.000000, 1.000000,
1182 0.000000, 0.242536, 0.970143,
1183 0.000000, 0.242536, 0.970143,
1184 0.000000, 0.000000, 1.000000,
1185 -0.242536, 0.000000, 0.970143,
1186 -0.242536, 0.000000, 0.970143,
1187 0.000000, 0.000000, 1.000000,
1188 0.000000, -0.242536, 0.970143,
1189 0.000000, -0.242536, 0.970143,
1190 0.000000, 0.000000, 1.000000,
1191 -0.970142, 0.000000, 0.242536,
1192 -0.970142, 0.000000, 0.242536,
1193 -1.000000, 0.000000, 0.000000,
1194 -0.970142, 0.242536, 0.000000,
1195 -0.970142, 0.242536, 0.000000,
1196 -1.000000, 0.000000, 0.000000,
1197 -0.970142, -0.000000, -0.242536,
1198 -0.970142, -0.000000, -0.242536,
1199 -1.000000, 0.000000, 0.000000,
1200 -0.970142, -0.242536, 0.000000,
1201 -0.970142, -0.242536, 0.000000,
1202 -1.000000, 0.000000, 0.000000,
1203 -0.242536, 0.970142, 0.000000,
1204 -0.242536, 0.970142, 0.000000,
1205 0.000000, 1.000000, 0.000000,
1206 -0.000000, 0.970142, 0.242536,
1207 -0.000000, 0.970142, 0.242536,
1208 0.000000, 1.000000, 0.000000,
1209 0.242536, 0.970142, 0.000000,
1210 0.242536, 0.970142, 0.000000,
1211 0.000000, 1.000000, 0.000000,
1212 0.000000, 0.970142, -0.242536,
1213 0.000000, 0.970142, -0.242536,
1214 0.000000, 1.000000, 0.000000,
1215 -0.242536, -0.970142, -0.000000,
1216 -0.242536, -0.970142, -0.000000,
1217 0.000000, -1.000000, 0.000000,
1218 0.000000, -0.970142, -0.242536,
1219 0.000000, -0.970142, -0.242536,
1220 0.000000, -1.000000, 0.000000,
1221 0.242536, -0.970142, 0.000000,
1222 0.242536, -0.970142, 0.000000,
1223 0.000000, -1.000000, 0.000000,
1224 0.000000, -0.970142, 0.242536,
1225 0.000000, -0.970142, 0.242536,
1226 0.000000, -1.000000, 0.000000,
1228 #else
1230 GLfloat vertices_low[216] =
1232 -0.850000, -0.850000, -0.850000,
1233 -0.850000, 0.850000, -0.850000,
1234 0.000000, 0.000000, -1.000000,
1235 -0.850000, 0.850000, -0.850000,
1236 0.850000, 0.850000, -0.850000,
1237 0.000000, 0.000000, -1.000000,
1238 0.850000, 0.850000, -0.850000,
1239 0.850000, -0.850000, -0.850000,
1240 0.000000, 0.000000, -1.000000,
1241 0.850000, -0.850000, -0.850000,
1242 -0.850000, -0.850000, -0.850000,
1243 0.000000, 0.000000, -1.000000,
1244 0.850000, 0.850000, 0.850000,
1245 0.850000, -0.850000, 0.850000,
1246 1.000000, 0.000000, -0.000000,
1247 0.850000, -0.850000, 0.850000,
1248 0.850000, -0.850000, -0.850000,
1249 1.000000, 0.000000, -0.000000,
1250 0.850000, -0.850000, -0.850000,
1251 0.850000, 0.850000, -0.850000,
1252 1.000000, 0.000000, -0.000000,
1253 0.850000, 0.850000, -0.850000,
1254 0.850000, 0.850000, 0.850000,
1255 1.000000, 0.000000, -0.000000,
1256 0.850000, -0.850000, 0.850000,
1257 0.850000, 0.850000, 0.850000,
1258 0.000000, 0.000000, 1.000000,
1259 0.850000, 0.850000, 0.850000,
1260 -0.850000, 0.850000, 0.850000,
1261 0.000000, 0.000000, 1.000000,
1262 -0.850000, 0.850000, 0.850000,
1263 -0.850000, -0.850000, 0.850000,
1264 0.000000, 0.000000, 1.000000,
1265 -0.850000, -0.850000, 0.850000,
1266 0.850000, -0.850000, 0.850000,
1267 0.000000, 0.000000, 1.000000,
1268 -0.850000, -0.850000, 0.850000,
1269 -0.850000, 0.850000, 0.850000,
1270 -1.000000, 0.000000, -0.000000,
1271 -0.850000, 0.850000, 0.850000,
1272 -0.850000, 0.850000, -0.850000,
1273 -1.000000, 0.000000, -0.000000,
1274 -0.850000, 0.850000, -0.850000,
1275 -0.850000, -0.850000, -0.850000,
1276 -1.000000, 0.000000, -0.000000,
1277 -0.850000, -0.850000, -0.850000,
1278 -0.850000, -0.850000, 0.850000,
1279 -1.000000, 0.000000, -0.000000,
1280 -0.850000, 0.850000, -0.850000,
1281 -0.850000, 0.850000, 0.850000,
1282 0.000000, 1.000000, -0.000000,
1283 -0.850000, 0.850000, 0.850000,
1284 0.850000, 0.850000, 0.850000,
1285 0.000000, 1.000000, -0.000000,
1286 0.850000, 0.850000, 0.850000,
1287 0.850000, 0.850000, -0.850000,
1288 0.000000, 1.000000, -0.000000,
1289 0.850000, 0.850000, -0.850000,
1290 -0.850000, 0.850000, -0.850000,
1291 0.000000, 1.000000, -0.000000,
1292 -0.850000, -0.850000, 0.850000,
1293 -0.850000, -0.850000, -0.850000,
1294 0.000000, -1.000000, -0.000000,
1295 -0.850000, -0.850000, -0.850000,
1296 0.850000, -0.850000, -0.850000,
1297 0.000000, -1.000000, -0.000000,
1298 0.850000, -0.850000, -0.850000,
1299 0.850000, -0.850000, 0.850000,
1300 0.000000, -1.000000, -0.000000,
1301 0.850000, -0.850000, 0.850000,
1302 -0.850000, -0.850000, 0.850000,
1303 0.000000, -1.000000, -0.000000,
1306 GLfloat normals_low[216] =
1308 -0.577350, -0.577350, -0.577350,
1309 -0.577350, 0.577350, -0.577350,
1310 0.000000, 0.000000, -1.000000,
1311 -0.577350, 0.577350, -0.577350,
1312 0.577350, 0.577350, -0.577350,
1313 0.000000, 0.000000, -1.000000,
1314 0.577350, 0.577350, -0.577350,
1315 0.577350, -0.577350, -0.577350,
1316 0.000000, 0.000000, -1.000000,
1317 0.577350, -0.577350, -0.577350,
1318 -0.577350, -0.577350, -0.577350,
1319 0.000000, 0.000000, -1.000000,
1320 0.577350, 0.577350, 0.577350,
1321 0.577350, -0.577350, 0.577350,
1322 1.000000, 0.000000, 0.000000,
1323 0.577350, -0.577350, 0.577350,
1324 0.577350, -0.577350, -0.577350,
1325 1.000000, 0.000000, 0.000000,
1326 0.577350, -0.577350, -0.577350,
1327 0.577350, 0.577350, -0.577350,
1328 1.000000, 0.000000, 0.000000,
1329 0.577350, 0.577350, -0.577350,
1330 0.577350, 0.577350, 0.577350,
1331 1.000000, 0.000000, 0.000000,
1332 0.577350, -0.577350, 0.577350,
1333 0.577350, 0.577350, 0.577350,
1334 0.000000, 0.000000, 1.000000,
1335 0.577350, 0.577350, 0.577350,
1336 -0.577350, 0.577350, 0.577350,
1337 0.000000, 0.000000, 1.000000,
1338 -0.577350, 0.577350, 0.577350,
1339 -0.577350, -0.577350, 0.577350,
1340 0.000000, 0.000000, 1.000000,
1341 -0.577350, -0.577350, 0.577350,
1342 0.577350, -0.577350, 0.577350,
1343 0.000000, 0.000000, 1.000000,
1344 -0.577350, -0.577350, 0.577350,
1345 -0.577350, 0.577350, 0.577350,
1346 -1.000000, 0.000000, 0.000000,
1347 -0.577350, 0.577350, 0.577350,
1348 -0.577350, 0.577350, -0.577350,
1349 -1.000000, 0.000000, 0.000000,
1350 -0.577350, 0.577350, -0.577350,
1351 -0.577350, -0.577350, -0.577350,
1352 -1.000000, 0.000000, 0.000000,
1353 -0.577350, -0.577350, -0.577350,
1354 -0.577350, -0.577350, 0.577350,
1355 -1.000000, 0.000000, 0.000000,
1356 -0.577350, 0.577350, -0.577350,
1357 -0.577350, 0.577350, 0.577350,
1358 0.000000, 1.000000, 0.000000,
1359 -0.577350, 0.577350, 0.577350,
1360 0.577350, 0.577350, 0.577350,
1361 0.000000, 1.000000, 0.000000,
1362 0.577350, 0.577350, 0.577350,
1363 0.577350, 0.577350, -0.577350,
1364 0.000000, 1.000000, 0.000000,
1365 0.577350, 0.577350, -0.577350,
1366 -0.577350, 0.577350, -0.577350,
1367 0.000000, 1.000000, 0.000000,
1368 -0.577350, -0.577350, 0.577350,
1369 -0.577350, -0.577350, -0.577350,
1370 0.000000, -1.000000, 0.000000,
1371 -0.577350, -0.577350, -0.577350,
1372 0.577350, -0.577350, -0.577350,
1373 0.000000, -1.000000, 0.000000,
1374 0.577350, -0.577350, -0.577350,
1375 0.577350, -0.577350, 0.577350,
1376 0.000000, -1.000000, 0.000000,
1377 0.577350, -0.577350, 0.577350,
1378 -0.577350, -0.577350, 0.577350,
1379 0.000000, -1.000000, 0.000000,
1381 #endif
1382 GLfloat vertices_rlow[18] =
1384 -0.85f,-0.85f,1.0f, // bottom left
1385 0.85f,-0.85f,1.0f, // bottom right
1386 0.85f,0.85f,1.0f, // upper right
1387 -0.85f,0.85f,1.0f, // upper left
1388 -0.85f,-0.85f,1.0f, // bottom left
1389 0.85f,0.85f,1.0f // upper right
1392 GLfloat *vertices, *normals;
1393 int n_vertices;
1395 if (MetaState::mode & CM_REALLY_LOW_GRAPHICS) {
1396 vertices = vertices_rlow;
1397 n_vertices = 6;
1398 } else if (MetaState::mode & CM_LOW_GRAPHICS) {
1399 vertices = vertices_low;
1400 normals = normals_low;
1401 n_vertices = 72;
1402 } else {
1403 vertices = vertices_high;
1404 normals = normals_high;
1405 n_vertices = 504;
1408 glVertexPointer(3, GL_FLOAT, 0, vertices);
1409 if (!(MetaState::mode & CM_REALLY_LOW_GRAPHICS))
1410 glNormalPointer(GL_FLOAT, 0, normals);
1412 glDrawArrays(GL_TRIANGLES, 0, n_vertices);
1414 glEndList();
1416 // Now let's make one for pulsing blocks
1418 glEnableClientState(GL_TEXTURE_COORD_ARRAY);
1420 GLfloat tex_coords[3 * n_vertices];
1421 for (int n = 3 * n_vertices; n--; )
1422 tex_coords[n] = vertices[n] * 0.5f;
1424 special_block_list = glGenLists(1);
1425 glNewList(special_block_list, GL_COMPILE);
1427 glTexCoordPointer(3, GL_FLOAT, 0, tex_coords);
1428 glDrawArrays(GL_TRIANGLES, 0, n_vertices);
1430 glEndList();
1432 glDisableClientState(GL_TEXTURE_COORD_ARRAY);
1434 // Now let's make one at half that size and rotated
1436 float v[3];
1437 const GLfloat M[16]
1438 = { 0.707107f, 0.5f, -0.5f, 0.0f,
1439 0.0f, 0.707107f, 0.707107f, 0.0f,
1440 0.707107f, -0.5f, 0.5f, 0.0f,
1441 0.0f, 0.0f, 0.0f, 1.0f };
1443 for (int n = 3 * n_vertices; n -=3; ) {
1444 v[0] = vertices[n + 0];
1445 v[1] = vertices[n + 1];
1446 v[2] = vertices[n + 2];
1448 vertices[n + 0] = 0.5 * (M[0] * v[0] + M[4] * v[1] + M[8] * v[2]);
1449 vertices[n + 1] = 0.5 * (M[1] * v[0] + M[5] * v[1] + M[9] * v[2]);
1450 vertices[n + 2] = 0.5 * (M[2] * v[0] + M[6] * v[1] + M[10] * v[2]);
1452 if (!(MetaState::mode & CM_REALLY_LOW_GRAPHICS)) {
1453 v[0] = normals[n + 0];
1454 v[1] = normals[n + 1];
1455 v[2] = normals[n + 2];
1457 normals[n + 0] = M[0] * v[0] + M[4] * v[1] + M[8] * v[2];
1458 normals[n + 1] = M[1] * v[0] + M[5] * v[1] + M[9] * v[2];
1459 normals[n + 2] = M[2] * v[0] + M[6] * v[1] + M[10] * v[2];
1463 small_block_list = glGenLists(1);
1464 glNewList(small_block_list, GL_COMPILE);
1466 glVertexPointer(3, GL_FLOAT, 0, vertices);
1467 if (!(MetaState::mode & CM_REALLY_LOW_GRAPHICS))
1468 glNormalPointer(GL_FLOAT, 0, normals);
1470 glDrawArrays(GL_TRIANGLES, 0, n_vertices);
1472 glEndList();
1474 glDisableClientState(GL_VERTEX_ARRAY);
1475 if (!(MetaState::mode & CM_REALLY_LOW_GRAPHICS))
1476 glDisableClientState(GL_NORMAL_ARRAY);
1478 // Now we build the special color blocks' gleam texture. A texture value of
1479 // 0.6f seems to cause the special color blocks to match their standard
1480 // siblings, given the specials' double color values.
1482 GLubyte texture[32];
1483 for (int n = 32; n--; )
1484 texture[n]
1485 = (GLubyte) (255.0f * (0.8f - 0.2f * cos((2.0f * PI / 32.0f) * n)));
1487 glGenTextures(1, &special_block_lightmap);
1489 glBindTexture(GL_TEXTURE_1D, special_block_lightmap);
1491 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_REPEAT);
1492 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
1493 glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
1495 const GLubyte* renderer = glGetString(GL_RENDERER);
1496 if (strstr((char*) renderer, "DRI 20020221 Voodoo3")) {
1497 cerr << "**********\nWARNING:"
1498 "disabling call to 1d texturing on DRI 20020221 Voodoo3 renderer "
1499 "since it segfaults\n**********" << endl;
1500 return;
1503 glTexImage1D(GL_TEXTURE_1D, 0, GL_LUMINANCE, 32, GL_FALSE, GL_LUMINANCE,
1504 GL_UNSIGNED_BYTE, texture);