Changeset 9351 in orxonox.OLD for branches/proxy/src/lib/graphics
- Timestamp:
- Jul 20, 2006, 12:06:50 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
r8740 r9351 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 /** … … 611 610 { 612 611 //draw the graphics effects 613 list<BaseObject*>::const_iterator it;612 std::list<BaseObject*>::const_iterator it; 614 613 for (it = this->graphicsEffects->begin(); it != this->graphicsEffects->end(); it++) 615 614 dynamic_cast<GraphicsEffect*>(*it)->draw(); … … 618 617 Render2D::getInstance()->draw(E2D_LAYER_BOTTOM, E2D_LAYER_ABOVE_ALL); 619 618 Shader::restoreShader(); 619 } 620 621 622 void GraphicsEngine::toggleFPSdisplay() 623 { 624 this->displayFPS(!this->bDisplayFPS); 620 625 } 621 626 -
branches/proxy/src/lib/graphics/graphics_engine.h
r8518 r9351 74 74 void drawBackgroundElements() const; 75 75 void draw() const; 76 void toggleFPSdisplay(); 76 77 void displayFPS(bool display); 77 78
Note: See TracChangeset
for help on using the changeset viewer.