Changeset 9406 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r8740 r9406 50 50 #include "static_model.h" 51 51 #endif 52 using namespace std;53 52 54 53 SHELL_COMMAND(wireframe, GraphicsEngine, wireframe); 55 54 SHELL_COMMAND(fps, GraphicsEngine, toggleFPSdisplay); 56 55 57 56 /** … … 67 66 this->bDisplayFPS = false; 68 67 this->bAntialiasing = false; 68 this->bDedicated = false; 69 69 this->minFPS = 9999; 70 70 this->maxFPS = 0; … … 164 164 MultiType textures = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO_ADVANCED, CONFIG_NAME_TEXTURES, "1"); 165 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(); 166 170 167 171 // searching for a usefull resolution … … 604 608 } 605 609 610 /** 611 * this draws the graphics engines graphics effecs 612 */ 606 613 void GraphicsEngine::draw() const 607 614 { 608 // LightManager::getInstance()->draw(); 609 610 if (this->graphicsEffects != NULL) 615 if( this->graphicsEffects != NULL) 611 616 { 612 617 //draw the graphics effects 613 list<BaseObject*>::const_iterator it;618 std::list<BaseObject*>::const_iterator it; 614 619 for (it = this->graphicsEffects->begin(); it != this->graphicsEffects->end(); it++) 615 620 dynamic_cast<GraphicsEffect*>(*it)->draw(); … … 618 623 Render2D::getInstance()->draw(E2D_LAYER_BOTTOM, E2D_LAYER_ABOVE_ALL); 619 624 Shader::restoreShader(); 625 } 626 627 628 void GraphicsEngine::toggleFPSdisplay() 629 { 630 this->displayFPS(!this->bDisplayFPS); 620 631 } 621 632
Note: See TracChangeset
for help on using the changeset viewer.