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 | postFindVisibleObjects (SceneManager *source, IlluminationRenderStage irs, Viewport *v) |
Called after searching for visible objects 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 | preUpdateSceneGraph (SceneManager *source, Camera *camera) |
Called prior to updating the scene graph in this SceneManager. | |
virtual void | sceneManagerDestroyed (SceneManager *source) |
Event notifying the listener of the SceneManager's destruction. | |
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 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 bool | sortLightsAffectingFrustum (LightList &lightList) |
Hook to allow the listener to override the ordering of lights for the entire frustum. | |
Class that allows listening in on the various stages of SceneManager processing, so that custom behaviour can be implemented from outside.
Definition at line 222 of file OgreSceneManager.h.
Ogre::SceneManager::Listener::Listener | ( | ) |
Definition at line 225 of file OgreSceneManager.h.
|
virtual |
Definition at line 226 of file OgreSceneManager.h.
|
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 269 of file OgreSceneManager.h.
|
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 243 of file OgreSceneManager.h.
|
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::RTShader::ShaderGenerator::SGSceneManagerListener, and Ogre::Terrain.
Definition at line 255 of file OgreSceneManager.h.
|
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 234 of file OgreSceneManager.h.
|
virtual |
Event notifying the listener of the SceneManager's destruction.
Reimplemented in Ogre::Terrain.
Definition at line 350 of file OgreSceneManager.h.
|
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 303 of file OgreSceneManager.h.
|
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 320 of file OgreSceneManager.h.
|
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 287 of file OgreSceneManager.h.
|
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 346 of file OgreSceneManager.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.