… | |
… | |
13 | static GLuint global_texture = 0; |
13 | static GLuint global_texture = 0; |
14 | |
14 | |
15 | #include "util.h" |
15 | #include "util.h" |
16 | #include "entity.h" |
16 | #include "entity.h" |
17 | #include "txtprt_import.h" |
17 | #include "txtprt_import.h" |
|
|
18 | #include "randlvl.h" |
18 | |
19 | |
19 | bool doom3parse (const char *f); |
20 | bool doom3parse (const char *f); |
20 | |
21 | |
21 | #include "shader.h" |
22 | #include "shader.h" |
22 | |
23 | |
… | |
… | |
357 | entity *planet = new entity (new geometry_sphere (testmat, 4e15)); |
358 | entity *planet = new entity (new geometry_sphere (testmat, 4e15)); |
358 | planet->move (vec3 (0, 0, 1e17)); |
359 | planet->move (vec3 (0, 0, 1e17)); |
359 | planet->show (); |
360 | planet->show (); |
360 | } |
361 | } |
361 | |
362 | |
|
|
363 | { |
|
|
364 | RandomBuilding r; |
|
|
365 | entity *randlvl = r.draw (1000, 1000, 200); |
|
|
366 | randlvl->move (vec3 (0, 0, 0)); |
|
|
367 | randlvl->show (); |
|
|
368 | |
|
|
369 | entity *randlvl2 = r.draw (300, 100, 20); |
|
|
370 | randlvl2->move (vec3 (-2000, 0, 0)); |
|
|
371 | randlvl2->show (); |
|
|
372 | |
|
|
373 | entity *randlvl3 = r.draw (100, 30, 3); |
|
|
374 | randlvl3->move (vec3 (-1000, 0, 0)); |
|
|
375 | randlvl3->show (); |
|
|
376 | } |
|
|
377 | |
362 | //draw_floor (10, -500, -10, -1000); |
378 | //draw_floor (10, -500, -10, -1000); |
363 | draw_level (); |
379 | draw_level (); |
364 | |
380 | |
365 | #if 0 |
381 | #if 0 |
366 | { |
382 | { |