OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
Predefined controller value for getting the latest frame time. More...
#include <OgrePredefinedControllers.h>
Public Member Functions | |
FrameTimeControllerValue () | |
bool | frameEnded (const FrameEvent &evt) override |
Called just after a frame has been rendered. More... | |
bool | frameStarted (const FrameEvent &evt) override |
Called when a frame is about to begin rendering. More... | |
Real | getElapsedTime () const |
Real | getFrameDelay () const |
Real | getTimeFactor () const |
Real | getValue () const override |
void | setElapsedTime (Real elapsedTime) |
void | setFrameDelay (Real fd) |
void | setTimeFactor (Real tf) |
void | setValue (Real value) override |
Public Member Functions inherited from Ogre::ControllerValue< Real > | |
virtual | ~ControllerValue () |
Public Member Functions inherited from Ogre::FrameListener | |
virtual | ~FrameListener () |
virtual bool | frameRenderingQueued (const FrameEvent &evt) |
Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over. More... | |
Predefined controller value for getting the latest frame time.
Ogre::FrameTimeControllerValue::FrameTimeControllerValue | ( | ) |
|
overridevirtual |
Called just after a frame has been rendered.
Reimplemented from Ogre::FrameListener.
|
overridevirtual |
Called when a frame is about to begin rendering.
Reimplemented from Ogre::FrameListener.
Real Ogre::FrameTimeControllerValue::getElapsedTime | ( | ) | const |
Real Ogre::FrameTimeControllerValue::getFrameDelay | ( | ) | const |
Real Ogre::FrameTimeControllerValue::getTimeFactor | ( | ) | const |
|
overridevirtual |
Implements Ogre::ControllerValue< Real >.
void Ogre::FrameTimeControllerValue::setElapsedTime | ( | Real | elapsedTime | ) |
void Ogre::FrameTimeControllerValue::setFrameDelay | ( | Real | fd | ) |
void Ogre::FrameTimeControllerValue::setTimeFactor | ( | Real | tf | ) |
|
overridevirtual |
Implements Ogre::ControllerValue< Real >.