#include <FrameTimer.h>

Public Member Functions | |
| float | getFPS () |
| unsigned int | getLastStateCount () |
| unsigned int | getLastTris () |
| unsigned int | getLastTextureSets () |
| virtual void | draw (const unsigned state) |
| virtual void | simulate (const unsigned state, float frameTime) |
Static Public Member Functions | |
| static FrameTimer * | instance () |
Protected Attributes | |
| float | totalTime_ |
| int | frameCount_ |
| Clock | frameClock_ |
| unsigned int | lastStateCount_ |
| unsigned int | lastTris_ |
| unsigned int | lastTextureSets_ |
| float | fps_ |
Static Protected Attributes | |
| static FrameTimer * | instance_ = 0 |
Private Member Functions | |
| FrameTimer () | |
| virtual | ~FrameTimer () |
Definition at line 27 of file FrameTimer.h.
| FrameTimer::FrameTimer | ( | ) | [private] |
Definition at line 41 of file FrameTimer.cpp.
| FrameTimer::~FrameTimer | ( | ) | [private, virtual] |
Definition at line 50 of file FrameTimer.cpp.
| FrameTimer * FrameTimer::instance | ( | ) | [static] |
Definition at line 31 of file FrameTimer.cpp.
References instance_.
Referenced by ClientState::addMandatoryComponents(), and HelpButtonDialog::PerformanceMenu::getMenuToolTip().
| float FrameTimer::getFPS | ( | ) | [inline] |
| unsigned int FrameTimer::getLastStateCount | ( | ) | [inline] |
| unsigned int FrameTimer::getLastTris | ( | ) | [inline] |
| unsigned int FrameTimer::getLastTextureSets | ( | ) | [inline] |
| void FrameTimer::draw | ( | const unsigned | state | ) | [virtual] |
Reimplemented from GameStateI.
Definition at line 55 of file FrameTimer.cpp.
References frameCount_, GLInfo::getNoTriangles(), GLState::getStateSwitches(), GLTexture::getTextureSets(), lastStateCount_, lastTextureSets_, lastTris_, GLInfo::resetNoTriangles(), GLState::resetStateSwitches(), and GLTexture::resetTextureSets().
| void FrameTimer::simulate | ( | const unsigned | state, | |
| float | frameTime | |||
| ) | [virtual] |
Reimplemented from GameStateI.
Definition at line 69 of file FrameTimer.cpp.
References ChannelText::eNoLog, ChannelText::eNoSound, S3D::formatStringBuffer(), fps_, frameClock_, frameCount_, Clock::getTimeDifference(), ClientChannelManager::instance(), OptionsDisplay::instance(), LANG_RESOURCE_1, ChannelText::setFlags(), ClientChannelManager::showText(), and totalTime_.
FrameTimer * FrameTimer::instance_ = 0 [static, protected] |
float FrameTimer::totalTime_ [protected] |
int FrameTimer::frameCount_ [protected] |
Clock FrameTimer::frameClock_ [protected] |
unsigned int FrameTimer::lastStateCount_ [protected] |
unsigned int FrameTimer::lastTris_ [protected] |
unsigned int FrameTimer::lastTextureSets_ [protected] |
float FrameTimer::fps_ [protected] |
1.5.3