#include <Renderer_Ogre_Renderer.h>
An instance of this class is always created and managed by OgreRenderer.
During the "frameStarted" event this class will update OpenGUI's internal timer via System::updateTime(), then inject time delta events into each Screen that is auto timing via ScreenManager::updateTime().
Additionally, this object initiates automatic buffer reclamation processing at the end of frames via OgreRenderer::reclaimBufferMemory().
This FrameListener will always return true, and should never cause unintended exiting from Ogre::Root::startRendering()
Public Member Functions | |
| virtual bool | frameStarted (const Ogre::FrameEvent &evt) |
| performs the timing updates as specified in the class documentation | |
| virtual bool | frameEnded (const Ogre::FrameEvent &evt) |
| calls OgreRenderer::reclaimBufferMemory() once per frame | |
Private Member Functions | |
| OgreFrameListener (OgreRenderer *renderer) | |
| virtual | ~OgreFrameListener () |
Private Attributes | |
| OgreRenderer * | mRenderer |
Friends | |
| class | OgreRenderer |
|
|
|
|
|
|
|
|
calls OgreRenderer::reclaimBufferMemory() once per frame
|
|
|
performs the timing updates as specified in the class documentation
|
|
|
|
|
|
|