OGRE  13.6
Object-Oriented Graphics Rendering Engine
Ogre::SceneManager::Listener Class Reference

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>

+ Inheritance diagram for Ogre::SceneManager::Listener:

Public Member Functions

 Listener ()
 
virtual ~Listener ()
 
virtual void postFindVisibleObjects (SceneManager *source, IlluminationRenderStage irs, Viewport *v)
 Called after searching for visible objects in this SceneManager. More...
 
virtual void postUpdateSceneGraph (SceneManager *source, Camera *camera)
 Called after updating the scene graph in this SceneManager. More...
 
virtual void preFindVisibleObjects (SceneManager *source, IlluminationRenderStage irs, Viewport *v)
 Called prior to searching for visible objects in this SceneManager. More...
 
virtual void preUpdateSceneGraph (SceneManager *source, Camera *camera)
 Called prior to updating the scene graph in this SceneManager. More...
 
virtual void sceneManagerDestroyed (SceneManager *source)
 Event notifying the listener of the SceneManager's destruction. More...
 

Detailed Description

Class that allows listening in on the various stages of SceneManager processing, so that custom behaviour can be implemented from outside.

Constructor & Destructor Documentation

◆ Listener()

Ogre::SceneManager::Listener::Listener ( )
inline

◆ ~Listener()

virtual Ogre::SceneManager::Listener::~Listener ( )
inlinevirtual

Member Function Documentation

◆ preUpdateSceneGraph()

virtual void Ogre::SceneManager::Listener::preUpdateSceneGraph ( SceneManager source,
Camera camera 
)
inlinevirtual

Called prior to updating the scene graph in this SceneManager.

Remarks
This is called before updating the scene graph for a camera.
Parameters
sourceThe SceneManager instance raising this event.
cameraThe camera being updated.

◆ postUpdateSceneGraph()

virtual void Ogre::SceneManager::Listener::postUpdateSceneGraph ( SceneManager source,
Camera camera 
)
inlinevirtual

Called after updating the scene graph in this SceneManager.

Remarks
This is called after updating the scene graph for a camera.
Parameters
sourceThe SceneManager instance raising this event.
cameraThe camera being updated.

◆ preFindVisibleObjects()

virtual void Ogre::SceneManager::Listener::preFindVisibleObjects ( SceneManager source,
IlluminationRenderStage  irs,
Viewport v 
)
inlinevirtual

Called prior to searching for visible objects in this SceneManager.

Remarks
Note that the render queue at this stage will be full of the last render's contents and will be cleared after this method is called.
Parameters
sourceThe SceneManager instance raising this event.
irsThe stage of illumination being dealt with. IRS_NONE for a regular render, IRS_RENDER_TO_TEXTURE for a shadow caster render.
vThe viewport being updated. You can get the camera from here.

Reimplemented in Ogre::Terrain.

◆ postFindVisibleObjects()

virtual void Ogre::SceneManager::Listener::postFindVisibleObjects ( SceneManager source,
IlluminationRenderStage  irs,
Viewport v 
)
inlinevirtual

Called after searching for visible objects in this SceneManager.

Remarks
Note that the render queue at this stage will be full of the current scenes contents, ready for rendering. You may manually add renderables to this queue if you wish.
Parameters
sourceThe SceneManager instance raising this event.
irsThe stage of illumination being dealt with. IRS_NONE for a regular render, IRS_RENDER_TO_TEXTURE for a shadow caster render.
vThe viewport being updated. You can get the camera from here.

◆ sceneManagerDestroyed()

virtual void Ogre::SceneManager::Listener::sceneManagerDestroyed ( SceneManager source)
inlinevirtual

Event notifying the listener of the SceneManager's destruction.

Reimplemented in Ogre::Terrain.


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