OGRE  1.9
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::PageManager::EventRouter Class Reference

#include <OgrePageManager.h>

+ Inheritance diagram for Ogre::PageManager::EventRouter:
+ Collaboration diagram for Ogre::PageManager::EventRouter:

Public Member Functions

 EventRouter ()
 
 ~EventRouter ()
 
void cameraDestroyed (Camera *cam)
 Called when the camera is being destroyed. More...
 
virtual void cameraPostRenderScene (Camera *cam)
 Called after the scene has been rendered with this camera. More...
 
void cameraPreRenderScene (Camera *cam)
 Called prior to the scene being rendered with this camera. More...
 
bool frameEnded (const FrameEvent &evt)
 Called just after a frame has been rendered. More...
 
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...
 
bool frameStarted (const FrameEvent &evt)
 Called when a frame is about to begin rendering. More...
 

Public Attributes

CameraListpCameraList
 
PageManagerpManager
 
WorldMappWorldMap
 

Detailed Description

Definition at line 440 of file OgrePageManager.h.

Constructor & Destructor Documentation

Ogre::PageManager::EventRouter::EventRouter ( )
inline

Definition at line 447 of file OgrePageManager.h.

Ogre::PageManager::EventRouter::~EventRouter ( )
inline

Definition at line 448 of file OgrePageManager.h.

Member Function Documentation

void Ogre::PageManager::EventRouter::cameraDestroyed ( Camera cam)
virtual

Called when the camera is being destroyed.

Reimplemented from Ogre::Camera::Listener.

virtual void Ogre::Camera::Listener::cameraPostRenderScene ( Camera cam)
inlinevirtualinherited

Called after the scene has been rendered with this camera.

Definition at line 102 of file OgreCamera.h.

void Ogre::PageManager::EventRouter::cameraPreRenderScene ( Camera cam)
virtual

Called prior to the scene being rendered with this camera.

Reimplemented from Ogre::Camera::Listener.

bool Ogre::PageManager::EventRouter::frameEnded ( const FrameEvent evt)
virtual

Called just after a frame has been rendered.

Remarks
This event happens after all render targets have been fully updated and the buffers switched.
Returns
True to continue with the next frame, false to drop out of the rendering loop.

Reimplemented from Ogre::FrameListener.

virtual bool Ogre::FrameListener::frameRenderingQueued ( const FrameEvent evt)
inlinevirtualinherited

Called after all render targets have had their rendering commands issued, but before render windows have been asked to flip their buffers over.

Remarks
The usefulness of this event comes from the fact that rendering commands are queued for the GPU to process. These can take a little while to finish, and so while that is happening the CPU can be doing useful things. Once the request to 'flip buffers' happens, the thread requesting it will block until the GPU is ready, which can waste CPU cycles. Therefore, it is often a good idea to use this callback to perform per-frame processing. Of course because the frame's rendering commands have already been issued, any changes you make will only take effect from the next frame, but in most cases that's not noticeable.
Returns
True to continue rendering, false to drop out of the rendering loop.

Definition at line 116 of file OgreFrameListener.h.

bool Ogre::PageManager::EventRouter::frameStarted ( const FrameEvent evt)
virtual

Called when a frame is about to begin rendering.

Remarks
This event happens before any render targets have begun updating.
Returns
True to go ahead, false to abort rendering and drop out of the rendering loop.

Reimplemented from Ogre::FrameListener.

Member Data Documentation

CameraList* Ogre::PageManager::EventRouter::pCameraList

Definition at line 445 of file OgrePageManager.h.

PageManager* Ogre::PageManager::EventRouter::pManager

Definition at line 443 of file OgrePageManager.h.

WorldMap* Ogre::PageManager::EventRouter::pWorldMap

Definition at line 444 of file OgrePageManager.h.


The documentation for this class was generated from the following file: