Changeset 8322 in orxonox.OLD for branches/bsp_model/src/lib
- Timestamp:
- Jun 11, 2006, 11:22:13 PM (18 years ago)
- Location:
- branches/bsp_model/src/lib/graphics
- Files:
-
- 2 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); -
branches/bsp_model/src/lib/graphics/graphics_engine.h
r7840 r8322 46 46 static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0); 47 47 48 inline void setAntialiasing(bool flag) { this->bAntialiasing = flag; } 49 inline bool getAntialiasing() { return this->bAntialiasing; } 48 50 49 51 /** @returns the x resolution */ … … 109 111 bool shadowsEnabled; //!< If Shadows should be enabled. 110 112 bool particlesEnabled; //!< If particles should be enabled. 113 bool bAntialiasing; //!< true if antialiasing enabled 114 111 115 int particlesValue; //!< How many particles 112 116 int textureQuality; //!< the quality of Textures
Note: See TracChangeset
for help on using the changeset viewer.