Changeset 1414 for code/branches/network/src/orxonox/hud
- Timestamp:
- May 24, 2008, 10:08:42 PM (17 years ago)
- Location:
- code/branches/network/src/orxonox/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/HUD.cc
r1411 r1414 38 38 #include "core/ConsoleCommand.h" 39 39 #include "objects/SpaceShip.h" 40 #include "GraphicsEngine.h" 40 41 #include "BarOverlayElement.h" 41 42 #include "RadarObject.h" … … 129 130 130 131 nav->update(); 131 }132 132 133 void HUD::setFPS(float fps){133 float fps = GraphicsEngine::getSingleton().getAverageFPS(); 134 134 fpsText->setCaption("FPS: " + Ogre::StringConverter::toString(fps)); 135 135 } -
code/branches/network/src/orxonox/hud/HUD.h
r1411 r1414 58 58 public: 59 59 virtual void tick(float); 60 void setFPS(float fps);61 60 void addRadarObject(Vector3 pos); 62 61 RadarObject* getFirstRadarObject();
Note: See TracChangeset
for help on using the changeset viewer.