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

Comparing libgender/test.C (file contents):
Revision 1.68 by root, Thu Oct 21 21:20:09 2004 UTC vs.
Revision 1.69 by root, Sat Oct 23 02:27:51 2004 UTC

243 } 243 }
244 244
245 SDL_GL_SetAttribute (SDL_GL_RED_SIZE, rgb_size[0]); 245 SDL_GL_SetAttribute (SDL_GL_RED_SIZE, rgb_size[0]);
246 SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, rgb_size[1]); 246 SDL_GL_SetAttribute (SDL_GL_GREEN_SIZE, rgb_size[1]);
247 SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, rgb_size[2]); 247 SDL_GL_SetAttribute (SDL_GL_BLUE_SIZE, rgb_size[2]);
248 SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 16); 248 SDL_GL_SetAttribute (SDL_GL_DEPTH_SIZE, 24);
249 SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1); 249 SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1);
250 250
251 if (fsaa) 251 if (fsaa)
252 { 252 {
253 SDL_GL_SetAttribute (SDL_GL_MULTISAMPLEBUFFERS, 1); 253 SDL_GL_SetAttribute (SDL_GL_MULTISAMPLEBUFFERS, 1);
259 fprintf (stderr, "Couldn't set GL mode: %s\n", SDL_GetError ()); 259 fprintf (stderr, "Couldn't set GL mode: %s\n", SDL_GetError ());
260 SDL_Quit (); 260 SDL_Quit ();
261 exit (1); 261 exit (1);
262 } 262 }
263 263
264 printf ("Screen BPP: %d\n", SDL_GetVideoSurface ()->format->BitsPerPixel); 264 //printf ("Screen BPP: %d\n", SDL_GetVideoSurface ()->format->BitsPerPixel);
265 printf ("\n"); 265 //printf ("\n");
266 printf ("Vendor : %s\n", glGetString (GL_VENDOR)); 266 //printf ("Vendor : %s\n", glGetString (GL_VENDOR));
267 printf ("Renderer : %s\n", glGetString (GL_RENDERER)); 267 //printf ("Renderer : %s\n", glGetString (GL_RENDERER));
268 printf ("Version : %s\n", glGetString (GL_VERSION)); 268 //printf ("Version : %s\n", glGetString (GL_VERSION));
269 printf ("Extensions : %s\n", glGetString (GL_EXTENSIONS)); 269 //printf ("Extensions : %s\n", glGetString (GL_EXTENSIONS));
270 printf ("\n"); 270 printf ("\n");
271 271
272 SDL_GL_GetAttribute (SDL_GL_RED_SIZE, &value); 272 SDL_GL_GetAttribute (SDL_GL_RED_SIZE, &value);
273 printf ("SDL_GL_RED_SIZE: requested %d, got %d\n", rgb_size[0], value); 273 printf ("SDL_GL_RED_SIZE: requested %d, got %d\n", rgb_size[0], value);
274 SDL_GL_GetAttribute (SDL_GL_GREEN_SIZE, &value); 274 SDL_GL_GetAttribute (SDL_GL_GREEN_SIZE, &value);
297 SDL_SetGamma (gamma, gamma, gamma); 297 SDL_SetGamma (gamma, gamma, gamma);
298 298
299 entity *planet = new entity (new geometry_sphere (10)); 299 entity *planet = new entity (new geometry_sphere (10));
300 planet->move (vec3 (0, 0, -20)); 300 planet->move (vec3 (0, 0, -20));
301 planet->show (); 301 planet->show ();
302
303 shader::debdebdebdebug ();//D
302 304
303#if 1 305#if 1
304 for (int i = 0; i < 20; i++) 306 for (int i = 0; i < 20; i++)
305 { 307 {
306 // load a entity 308 // load a entity
437 int slowly; 439 int slowly;
438 float gamma = 0.0; 440 float gamma = 0.0;
439 int noframe = 0; 441 int noframe = 0;
440 int fsaa = 0; 442 int fsaa = 0;
441 443
442 shader::debdebdebdebug ();//D
443
444 logo = 0; 444 logo = 0;
445 slowly = 0; 445 slowly = 0;
446 numtests = 1; 446 numtests = 1;
447 for (i = 1; argv[i]; ++i) 447 for (i = 1; argv[i]; ++i)
448 { 448 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines