Class that allows listening in on the various stages of SceneManager processing, so that custom behaviour can be implemented from outside. More...
#include <OgreSceneManager.h>
Public Member Functions | |
Listener () | |
virtual | ~Listener () |
virtual void | preFindVisibleObjects (SceneManager *source, IlluminationRenderStage irs, Viewport *v) |
Called prior to searching for visible objects in this SceneManager. | |
virtual void | postFindVisibleObjects (SceneManager *source, IlluminationRenderStage irs, Viewport *v) |
Called after searching for visible objects in this SceneManager. | |
virtual void | shadowTexturesUpdated (size_t numberOfShadowTextures) |
Event raised after all shadow textures have been rendered into for all queues / targets but before any other geometry has been rendered (including main scene geometry and any additional shadow receiver passes). | |
virtual void | shadowTextureCasterPreViewProj (Light *light, Camera *camera, size_t iteration) |
This event occurs just before the view & projection matrices are set for rendering into a shadow texture. | |
virtual void | shadowTextureReceiverPreViewProj (Light *light, Frustum *frustum) |
This event occurs just before the view & projection matrices are set for re-rendering a shadow receiver. | |
virtual bool | sortLightsAffectingFrustum (LightList &lightList) |
Hook to allow the listener to override the ordering of lights for the entire frustum. | |
virtual void | sceneManagerDestroyed (SceneManager *source) |
Event notifying the listener of the SceneManager's destruction. |
Class that allows listening in on the various stages of SceneManager processing, so that custom behaviour can be implemented from outside.
Definition at line 218 of file OgreSceneManager.h.
Ogre::SceneManager::Listener::Listener | ( | ) |
Definition at line 221 of file OgreSceneManager.h.
virtual Ogre::SceneManager::Listener::~Listener | ( | ) | [virtual] |
Definition at line 222 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::postFindVisibleObjects | ( | SceneManager * | source, | |
IlluminationRenderStage | irs, | |||
Viewport * | v | |||
) | [virtual] |
Called after searching for visible objects in this SceneManager.
source | The SceneManager instance raising this event. | |
irs | The stage of illumination being dealt with. IRS_NONE for a regular render, IRS_RENDER_TO_TEXTURE for a shadow caster render. | |
v | The viewport being updated. You can get the camera from here. |
Definition at line 247 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::preFindVisibleObjects | ( | SceneManager * | source, | |
IlluminationRenderStage | irs, | |||
Viewport * | v | |||
) | [virtual] |
Called prior to searching for visible objects in this SceneManager.
source | The SceneManager instance raising this event. | |
irs | The stage of illumination being dealt with. IRS_NONE for a regular render, IRS_RENDER_TO_TEXTURE for a shadow caster render. | |
v | The viewport being updated. You can get the camera from here. |
Definition at line 233 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::sceneManagerDestroyed | ( | SceneManager * | source | ) | [virtual] |
Event notifying the listener of the SceneManager's destruction.
Definition at line 328 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::shadowTextureCasterPreViewProj | ( | Light * | light, | |
Camera * | camera, | |||
size_t | iteration | |||
) | [virtual] |
This event occurs just before the view & projection matrices are set for rendering into a shadow texture.
light | Pointer to the light for which shadows are being rendered | |
camera | Pointer to the camera being used to render | |
iteration | For lights that use multiple shadow textures, the iteration number |
Definition at line 281 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::shadowTextureReceiverPreViewProj | ( | Light * | light, | |
Frustum * | frustum | |||
) | [virtual] |
This event occurs just before the view & projection matrices are set for re-rendering a shadow receiver.
light | Pointer to the light for which shadows are being rendered | |
frustum | Pointer to the projection frustum being used to project the shadow texture |
Definition at line 298 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::shadowTexturesUpdated | ( | size_t | numberOfShadowTextures | ) | [virtual] |
Event raised after all shadow textures have been rendered into for all queues / targets but before any other geometry has been rendered (including main scene geometry and any additional shadow receiver passes).
numberOfShadowTextures | The number of shadow textures in use |
Definition at line 265 of file OgreSceneManager.h.
virtual bool Ogre::SceneManager::Listener::sortLightsAffectingFrustum | ( | LightList & | lightList | ) | [virtual] |
Hook to allow the listener to override the ordering of lights for the entire frustum.
lightList | The list of lights within range of the frustum which you may sort. |
Definition at line 324 of file OgreSceneManager.h.
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Nov 3 2010 19:25:00