Changeset 8490 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Jun 15, 2006, 9:34:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r8316 r8490 66 66 67 67 this->bDisplayFPS = false; 68 this->bAntialiasing = false; 68 69 this->minFPS = 9999; 69 70 this->maxFPS = 0; … … 283 284 SDL_GL_SetAttribute( SDL_GL_ACCUM_ALPHA_SIZE, 0); 284 285 285 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5); 286 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5); 287 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); 288 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); 286 SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5); //Use at least 5 bits of Red 287 SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5); //Use at least 5 bits of Green 288 SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5); //Use at least 5 bits of Blue 289 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); //Use at least 16 bits for the depth buffer 289 290 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); //Enable double buffering 291 292 // enable antialiasing? 293 if( this->bAntialiasing) 294 { 295 SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES,4); 296 SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS,1); 297 } 290 298 291 299 glEnable(GL_CULL_FACE);
Note: See TracChangeset
for help on using the changeset viewer.