#include <OgreSceneManagerEnumerator.h>
Inheritance diagram for Ogre::SceneManagerEnumerator:
Public Methods | |
SceneManagerEnumerator () | |
~SceneManagerEnumerator () | |
void | setSceneManager (SceneType st, SceneManager *sm) |
Sets a SceneManager implementation. | |
SceneManager * | getSceneManager (SceneType st) |
Implementation of SceneManager retrieval. | |
void | setRenderSystem (RenderSystem *rs) |
Notifies all SceneManagers of the destination rendering system. | |
void | shutdownAll (void) |
Utility method to control shutdown of the managers. | |
Static Public Methods | |
SceneManagerEnumerator & | getSingleton (void) |
Override standard Singleton retrieval. | |
SceneManagerEnumerator * | getSingletonPtr (void) |
Static Protected Attributes | |
SceneManagerEnumerator * | ms_Singleton = 0 |
Private Types | |
typedef std::map< SceneType, SceneManager * > | SceneManagerList |
Private Attributes | |
std::set< SceneManager * > | mUniqueSceneMgrs |
SceneManagerList | mSceneManagers |
SceneManager * | mDefaultManager |
Standard scene manager for default management. |
In order to give applications easy access to these implementations, the Root object has a getSceneManager method to retrieve a SceneManager which is appropriate to the scene type. However, this is the class which implements this behaviour and defines the scene types, because it is intended that the Root class is not customised by everybody (and it may be restricted access in the future).
If you customise Ogre and want to add a new SceneManager implementation (e.g. an Octree-based scene manager for outside locations), feel free to customise this class so that it is passed back where required.
For this early release of Ogre, only the basic SceneManager implementation is passed back for all scene types. This is a highly generic and extremely unoptimised reference implementation.
Definition at line 69 of file OgreSceneManagerEnumerator.h.
|
Definition at line 75 of file OgreSceneManagerEnumerator.h. |
|
Definition at line 42 of file OgreSceneManagerEnumerator.cpp. References mDefaultManager, setSceneManager(), Ogre::ST_EXTERIOR_CLOSE, Ogre::ST_EXTERIOR_FAR, Ogre::ST_EXTERIOR_REAL_FAR, Ogre::ST_GENERIC, and Ogre::ST_INTERIOR. |
|
Definition at line 58 of file OgreSceneManagerEnumerator.cpp. References mDefaultManager. |
|
Implementation of SceneManager retrieval.
Definition at line 63 of file OgreSceneManagerEnumerator.cpp. References Except, mSceneManagers, and Ogre::SceneType. Referenced by Ogre::Root::getSceneManager(). |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< SceneManagerEnumerator >. Definition at line 128 of file OgreSceneManagerEnumerator.cpp. |
|
Definition at line 71 of file OgreSingleton.h. |
|
Notifies all SceneManagers of the destination rendering system.
Definition at line 80 of file OgreSceneManagerEnumerator.cpp. References mUniqueSceneMgrs. |
|
Sets a SceneManager implementation.
Definition at line 92 of file OgreSceneManagerEnumerator.cpp. References Ogre::SceneManager::_setDestinationRenderSystem(), mSceneManagers, mUniqueSceneMgrs, and Ogre::SceneType. Referenced by SceneManagerEnumerator(). |
|
Utility method to control shutdown of the managers.
Definition at line 118 of file OgreSceneManagerEnumerator.cpp. References mUniqueSceneMgrs. |
|
Standard scene manager for default management.
Definition at line 79 of file OgreSceneManagerEnumerator.h. Referenced by SceneManagerEnumerator(), and ~SceneManagerEnumerator(). |
|
Definition at line 39 of file OgreSceneManagerEnumerator.cpp. |
|
Definition at line 76 of file OgreSceneManagerEnumerator.h. Referenced by getSceneManager(), and setSceneManager(). |
|
Definition at line 73 of file OgreSceneManagerEnumerator.h. Referenced by setRenderSystem(), setSceneManager(), and shutdownAll(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:20:07 2004