Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/graphics
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (18 years ago)
- Location:
- branches/proxy/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/graphics/graphics_engine.cc
r9351 r9396 66 66 this->bDisplayFPS = false; 67 67 this->bAntialiasing = false; 68 this->bDedicated = false; 68 69 this->minFPS = 9999; 69 70 this->maxFPS = 0; … … 163 164 MultiType textures = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO_ADVANCED, CONFIG_NAME_TEXTURES, "1"); 164 165 Texture::setTextureEnableState(textures.getBool()); 166 167 // check it is a dedicated network node: so no drawings are made 168 MultiType dedicated = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO, CONFIG_NAME_NO_RENDER, "0"); 169 this->bDedicated = dedicated.getBool(); 165 170 166 171 // searching for a usefull resolution … … 603 608 } 604 609 610 /** 611 * this draws the graphics engines graphics effecs 612 */ 605 613 void GraphicsEngine::draw() const 606 614 { 607 // LightManager::getInstance()->draw(); 608 609 if (this->graphicsEffects != NULL) 615 if( this->graphicsEffects != NULL) 610 616 { 611 617 //draw the graphics effects -
branches/proxy/src/lib/graphics/graphics_engine.h
r9351 r9396 46 46 void toggleFullscreen(); 47 47 static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0); 48 inline bool isDedicated() { return this->bDedicated; } 48 49 49 50 inline void setAntialiasing(bool flag) { this->bAntialiasing = flag; } … … 114 115 bool particlesEnabled; //!< If particles should be enabled. 115 116 bool bAntialiasing; //!< true if antialiasing enabled 117 bool bDedicated; //!< true if this server is a dedicated server and should not render the scene 116 118 117 119 int particlesValue; //!< How many particles
Note: See TracChangeset
for help on using the changeset viewer.