… | |
… | |
206 | RunGLTest (int argc, char *argv[], |
206 | RunGLTest (int argc, char *argv[], |
207 | int logo, int slowly, int bpp, float gamma, int noframe, int fsaa) |
207 | int logo, int slowly, int bpp, float gamma, int noframe, int fsaa) |
208 | { |
208 | { |
209 | int i; |
209 | int i; |
210 | int rgb_size[3]; |
210 | int rgb_size[3]; |
211 | int w = 1600; |
211 | int w = 800; |
212 | int h = 1200; |
212 | int h = 600; |
213 | int done = 0; |
213 | int done = 0; |
214 | int frames; |
214 | int frames; |
215 | Uint32 video_flags; |
215 | Uint32 video_flags; |
216 | int value; |
216 | int value; |
217 | GLenum gl_error; |
217 | GLenum gl_error; |
… | |
… | |
323 | testmat = new test_material; |
323 | testmat = new test_material; |
324 | testmat2 = new mat_gouraud_shaded (colour (1, 1, 0)); |
324 | testmat2 = new mat_gouraud_shaded (colour (1, 1, 0)); |
325 | testmat3 = new mat_timed (); |
325 | testmat3 = new mat_timed (); |
326 | debugmat = new mat_debug (); |
326 | debugmat = new mat_debug (); |
327 | |
327 | |
|
|
328 | #if 0 |
328 | entity_moveable *planet = new entity_moveable (new geometry_sphere (testmat2, 10)); |
329 | entity_moveable *planet = new entity_moveable (new geometry_sphere (testmat2, 10)); |
329 | planet->move (vec3 (0, 0, -20)); |
330 | planet->move (vec3 (0, 0, -20)); |
330 | planet->show (); |
331 | planet->show (); |
331 | |
332 | |
332 | planet->v = vec3 (10, 0, 0); |
333 | planet->v = vec3 (10, 0, 0); |
333 | moveables.push_back (planet); |
334 | moveables.push_back (planet); |
|
|
335 | #endif |
334 | |
336 | |
335 | doom3parse ("test.proc"); |
337 | doom3parse ("test.proc"); |
336 | |
338 | |
337 | skybox sb ( |
339 | skybox sb ( |
338 | "textures/skybox_mystery/1.jpg", |
340 | "textures/skybox_mystery/1.jpg", |
… | |
… | |
342 | "textures/skybox_mystery/5.jpg", |
344 | "textures/skybox_mystery/5.jpg", |
343 | "textures/skybox_mystery/6.jpg" |
345 | "textures/skybox_mystery/6.jpg" |
344 | ); |
346 | ); |
345 | world_skybox = &sb; |
347 | world_skybox = &sb; |
346 | |
348 | |
347 | for (int i = 0; i < 20; i++) |
349 | for (int i = 0; i <= 0; i++) |
348 | { |
350 | { |
349 | // load a entity |
351 | // load a entity |
350 | txtprt_parser p; |
352 | txtprt_parser p; |
351 | geometry *g; |
353 | geometry *g; |
352 | try |
354 | try |
… | |
… | |
361 | entity *e = new entity (g); |
363 | entity *e = new entity (g); |
362 | e->move (vec3 (i*5, -3, -i*10)); |
364 | e->move (vec3 (i*5, -3, -i*10)); |
363 | e->show (); |
365 | e->show (); |
364 | } |
366 | } |
365 | |
367 | |
|
|
368 | #if 0 |
366 | { |
369 | { |
367 | fisch (vec3 (0, 0, -2e9), 1e9, 8); |
370 | fisch (vec3 (0, 0, -2e9), 1e9, 8); |
368 | //entity *planet = new entity (new geometry_sphere (1e9)); |
371 | //entity *planet = new entity (new geometry_sphere (1e9)); |
369 | //planet->move (vec3 (0, 0, -1.5e9)); |
372 | //planet->move (vec3 (0, 0, -1.5e9)); |
370 | //planet->show (); |
373 | //planet->show (); |
… | |
… | |
395 | randlvl4->move (vec3 (0, -1001000, 0)); |
398 | randlvl4->move (vec3 (0, -1001000, 0)); |
396 | randlvl4->show (); |
399 | randlvl4->show (); |
397 | } |
400 | } |
398 | |
401 | |
399 | //draw_floor (10, -500, -10, -1000); |
402 | //draw_floor (10, -500, -10, -1000); |
|
|
403 | #endif |
400 | draw_level (); |
404 | draw_level (); |
401 | |
405 | |
402 | #if 0 |
406 | #if 0 |
403 | { |
407 | { |
404 | geometry_heightfield *hf = new geometry_heightfield (100000., 100000.); |
408 | geometry_heightfield *hf = new geometry_heightfield (100000., 100000.); |