This class provides information about the elapsed simulation frame. More...
#include <MultiWidgets/FrameInfo.hpp>
Public Member Functions | |
| Radiant::TimeStamp | applicationStartupTime () const |
| Radiant::TimeStamp | currentTime () const |
| float | dt () const |
| FrameInfo (const FrameInfo &frame) | |
| Makes a copy of FrameInfo object. More... | |
| FrameInfo (FrameInfo &&frame) | |
| Moves FrameInfo object. More... | |
| int | frameNumber () const |
| bool | isLastUpdate () const |
| Radiant::TimeStamp | nextFrameSwapTime () const |
| FrameInfo & | operator= (const FrameInfo &frame) |
| Makes a copy of FrameInfo object. More... | |
| FrameInfo & | operator= (FrameInfo &&frame) |
| Moves FrameInfo object. More... | |
| double | runningTime () const |
| int | updateStepNumber () const |
This class provides information about the elapsed simulation frame.
It contains data such as the elapsed frame time, simulation time-step, etc. With fixed timestep, one frame can be divided to multiple steps. For example, if the application is configured to run 100 fps, but it takes 20ms to process one frame (real fps is 50), update is called twice in a row every frame with dt 10ms, and with updateStepNumbers 0 and 1.
| MultiWidgets::FrameInfo::FrameInfo | ( | const FrameInfo & | frame | ) |
| MultiWidgets::FrameInfo::FrameInfo | ( | FrameInfo && | frame | ) |
Moves FrameInfo object.
| frame | object to move |
| Radiant::TimeStamp MultiWidgets::FrameInfo::applicationStartupTime | ( | ) | const |
| Radiant::TimeStamp MultiWidgets::FrameInfo::currentTime | ( | ) | const |
| float MultiWidgets::FrameInfo::dt | ( | ) | const |
| int MultiWidgets::FrameInfo::frameNumber | ( | ) | const |
| bool MultiWidgets::FrameInfo::isLastUpdate | ( | ) | const |
| Radiant::TimeStamp MultiWidgets::FrameInfo::nextFrameSwapTime | ( | ) | const |
| double MultiWidgets::FrameInfo::runningTime | ( | ) | const |
| int MultiWidgets::FrameInfo::updateStepNumber | ( | ) | const |