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 | preUpdateSceneGraph (SceneManager *source, Camera *camera) |
Called prior to updating the scene graph in this SceneManager. | |
virtual void | postUpdateSceneGraph (SceneManager *source, Camera *camera) |
Called after updating the scene graph in this SceneManager. | |
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 219 of file OgreSceneManager.h.
Definition at line 222 of file OgreSceneManager.h.
virtual Ogre::SceneManager::Listener::~Listener | ( | ) | [virtual] |
Definition at line 223 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. |
Reimplemented in Ogre::RTShader::ShaderGenerator::SGSceneManagerListener.
Definition at line 266 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::postUpdateSceneGraph | ( | SceneManager * | source, |
Camera * | camera | ||
) | [virtual] |
Called after updating the scene graph in this SceneManager.
source | The SceneManager instance raising this event. |
camera | The camera being updated. |
Definition at line 240 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. |
Reimplemented in Ogre::Terrain, and Ogre::RTShader::ShaderGenerator::SGSceneManagerListener.
Definition at line 252 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::preUpdateSceneGraph | ( | SceneManager * | source, |
Camera * | camera | ||
) | [virtual] |
Called prior to updating the scene graph in this SceneManager.
source | The SceneManager instance raising this event. |
camera | The camera being updated. |
Definition at line 231 of file OgreSceneManager.h.
virtual void Ogre::SceneManager::Listener::sceneManagerDestroyed | ( | SceneManager * | source | ) | [virtual] |
Event notifying the listener of the SceneManager's destruction.
Reimplemented in Ogre::Terrain.
Definition at line 347 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 |
Reimplemented in Ogre::RTShader::ShaderGenerator::SGSceneManagerListener.
Definition at line 300 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 |
Reimplemented in Ogre::RTShader::ShaderGenerator::SGSceneManagerListener.
Definition at line 317 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 |
Reimplemented in Ogre::RTShader::ShaderGenerator::SGSceneManagerListener.
Definition at line 284 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 343 of file OgreSceneManager.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:05