Changeset 1625 for code/trunk/src/orxonox/GraphicsEngine.h
- Timestamp:
- Jun 26, 2008, 2:13:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/GraphicsEngine.h
r1563 r1625 47 47 48 48 49 namespace orxonox {50 49 namespace orxonox 50 { 51 51 /** 52 52 @brief Graphics engine manager class … … 72 72 int getWindowHeight() const; 73 73 float getWindowAspectRatio() const; 74 float getAverageFPS() const 75 { if (renderWindow_) return this->renderWindow_->getAverageFPS(); else return 0.0f; } 74 float getAverageFramesPerSecond() const { return this->avgFramesPerSecond_; } 75 float getAverageTickTime() const { return this->avgTickTime_; } 76 void setAverageTickTime(float tickTime) { this->avgTickTime_ = tickTime; } 77 void setAverageFramesPerSecond(float fps) { this->avgFramesPerSecond_ = fps; } 78 79 void setWindowActivity(bool activity) 80 { if (this->renderWindow_) this->renderWindow_->setActive(activity); } 76 81 77 82 void windowMoved (Ogre::RenderWindow* rw); … … 108 113 int ogreLogLevelCritical_; //!< Corresponding Orxonx debug level for LL_CRITICAL 109 114 unsigned int detailLevelParticle_; //!< Detail level of particle effects (0: off, 1: low, 2: normal, 3: high) 115 float avgTickTime_; //!< time in ms to tick() one frame 116 float avgFramesPerSecond_; //!< number of frames processed in one second 110 117 }; 111 118 }
Note: See TracChangeset
for help on using the changeset viewer.