ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/test.C
(Generate patch)

Comparing libgender/test.C (file contents):
Revision 1.95 by root, Thu Jan 6 03:09:00 2005 UTC vs.
Revision 1.96 by root, Sun Feb 6 01:17:15 2005 UTC

13static GLuint global_texture = 0; 13static 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
19bool doom3parse (const char *f); 20bool 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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines