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

Comparing libgender/util.C (file contents):
Revision 1.16 by root, Wed Oct 6 16:52:48 2004 UTC vs.
Revision 1.17 by root, Wed Oct 6 17:04:06 2004 UTC

335 SDL_FreeSurface (image); /* No longer needed */ 335 SDL_FreeSurface (image); /* No longer needed */
336 336
337 return texture; 337 return texture;
338} 338}
339 339
340void draw_some_random_funky_floor_dance_music (int size, int dx, int dy, int dz) { 340void draw_some_random_funky_floor_dance_music (int size, int dx, int dy, int dz)
341{
341 int x, z, ry; 342 int x, z, ry;
342 343
343 vector<vertex2d> pts;
344 for (x = 0; x < 100; x++) { 344 for (x = 0; x < 100; x++)
345 {
345 for (z = 0; z < 100; z++) { 346 for (z = 0; z < 100; z++)
346 pts.push_back (vertex2d (point (dx + (x * size), dy, dz + ((z + 1) * size)), vec3 (0, 0, 1), texc (0, 1))); 347 {
347 pts.push_back (vertex2d (point (dx + ((x + 1) * size), dy, dz + ((z + 1) * size)), vec3 (0, 0, 1), texc (1, 1))); 348 vector<vertex2d> pts;
348 pts.push_back (vertex2d (point (dx + ((x + 1) * size), dy, dz + (z * size)), vec3 (0, 0, 1), texc (1, 0)));
349 pts.push_back (vertex2d (point (dx + (x * size), dy, dz + (z * size)), vec3 (0, 0, 1), texc (0, 0))); 349 pts.push_back (vertex2d (point (dx + (x * size), dy, dz + (z * size)), vec3 (0, 1, 0), texc (0, 0)));
350 pts.push_back (vertex2d (point (dx + (x * size), dy, dz + ((z + 1) * size)), vec3 (0, 1, 0), texc (0, 1)));
351 pts.push_back (vertex2d (point (dx + ((x + 1) * size), dy, dz + ((z + 1) * size)), vec3 (0, 1, 0), texc (1, 1)));
352 pts.push_back (vertex2d (point (dx + ((x + 1) * size), dy, dz + (z * size)), vec3 (0, 1, 0), texc (1, 0)));
350 353
351 entity_quads *q = new entity_quads; 354 entity_quads *q = new entity_quads;
352 q->set (pts); 355 q->set (pts);
353 pts.clear ();
354 q->show (); 356 q->show ();
355 } 357 }
356 } 358 }
357} 359}
358 360
359//skedjuhlar main_scheduler; 361//skedjuhlar main_scheduler;
362

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines