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