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

Comparing libgender/test.C (file contents):
Revision 1.60 by root, Mon Oct 11 00:05:48 2004 UTC vs.
Revision 1.61 by root, Sat Oct 16 14:48:48 2004 UTC

332 camera.u = vec3 (0, 1, 0); 332 camera.u = vec3 (0, 1, 0);
333 camera.w = w; camera.h = h; 333 camera.w = w; camera.h = h;
334 camera.fov = 35; 334 camera.fov = 35;
335 camera.z_near = 1.; 335 camera.z_near = 1.;
336 336
337 glMatrixMode (GL_MODELVIEW);
338 glLoadIdentity ();
339
340 glEnable (GL_CULL_FACE); 337 glEnable (GL_CULL_FACE);
341 glEnable (GL_DEPTH_TEST);
342
343 glShadeModel (GL_SMOOTH);
344
345 glEnable (GL_LIGHTING);
346 glEnable (GL_LIGHT0);
347 338
348 init_shaders (); 339 init_shaders ();
349 340
350 osama_material osa_mat; 341 osama_material osa_mat;
351 342
372 363
373 osa_mat.begin (); 364 osa_mat.begin ();
374 365
375 camera.begin (); 366 camera.begin ();
376 camera.pass (view::DEPTH); 367 camera.pass (view::DEPTH);
368 camera.pass (view::POSTDEPTH);
377 camera.pass (view::LIGHTED); 369 camera.pass (view::LIGHTED);
378 camera.end (); 370 camera.end ();
379 371
380 SDL_GL_SwapBuffers (); 372 SDL_GL_SwapBuffers ();
381 timer.frame (); 373 timer.frame ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines