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

Comparing libgender/test.C (file contents):
Revision 1.32 by root, Tue Oct 5 10:28:49 2004 UTC vs.
Revision 1.33 by root, Wed Oct 6 00:55:37 2004 UTC

397 397
398 /* Loop until done. */ 398 /* Loop until done. */
399 start_time = SDL_GetTicks (); 399 start_time = SDL_GetTicks ();
400 frames = 0; 400 frames = 0;
401 401
402 draw_context c (camera);
403
404 while (!done) 402 while (!done)
405 { 403 {
406 GLenum gl_error; 404 GLenum gl_error;
407 char *sdl_error; 405 char *sdl_error;
408 SDL_Event event; 406 SDL_Event event;
421 camera.d.x = cos (ry); 419 camera.d.x = cos (ry);
422 camera.d.z = sin (ry); 420 camera.d.z = sin (ry);
423 //camera.d.y = sin (ry * 0.1); 421 //camera.d.y = sin (ry * 0.1);
424#endif 422#endif
425 423
426 c.mode = draw_context::DEPTH; 424 camera.mode = view::DEPTH;
427 camera.draw (c); 425 camera.draw ();
428 c.mode = draw_context::LIGHTED; 426 camera.mode = view::LIGHTED;
429 camera.draw (c); 427 camera.draw ();
430 428
431 SDL_GL_SwapBuffers (); 429 SDL_GL_SwapBuffers ();
432 timer.frame (); 430 timer.frame ();
433 431
434 /* Check for error conditions. */ 432 /* Check for error conditions. */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines