Enumerates the SceneManager classes available to applications.
More...
#include <OgreSceneManagerEnumerator.h>
Enumerates the SceneManager classes available to applications.
- In order to give applications easy access to these implementations, this class has a number of methods to create or retrieve a SceneManager which is appropriate to the scene type.
- SceneManagers are created by SceneManagerFactory instances. New factories for new types of SceneManager can be registered with this class to make them available to clients.
- Note that you can still plug in your own custom SceneManager without using a factory, should you choose, it's just not as flexible that way. Just instantiate your own SceneManager manually and use it directly.
◆ Instances
Scene manager instances, indexed by instance name.
◆ MetaDataIterator
◆ MetaDataList
List of available scene manager types as meta data.
◆ SceneManagerIterator
◆ SceneManagerEnumerator()
Ogre::SceneManagerEnumerator::SceneManagerEnumerator |
( |
| ) |
|
◆ ~SceneManagerEnumerator()
Ogre::SceneManagerEnumerator::~SceneManagerEnumerator |
( |
| ) |
|
◆ addFactory()
◆ createSceneManager() [1/2]
Create a SceneManager instance of a given type.
- Note
- This method throws an exception if the named type is not found.
- Parameters
-
typeName | String identifying a unique SceneManager type |
instanceName | Optional name to given the new instance that is created. If you leave this blank, an auto name will be assigned. |
◆ createSceneManager() [2/2]
Create a SceneManager instance based on scene type support.
- Note
- This method always succeeds, if a specific scene manager is not found, the default implementation is always returned.
- Parameters
-
typeMask | A mask containing one or more SceneType flags |
instanceName | Optional name to given the new instance that is created. If you leave this blank, an auto name will be assigned. |
◆ destroySceneManager()
void Ogre::SceneManagerEnumerator::destroySceneManager |
( |
SceneManager * |
sm | ) |
|
◆ getMetaData()
Get more information about a given type of SceneManager.
- Parameters
-
typeName | The type name of the SceneManager you want to enquire on. If you don't know the typeName already, you can iterate over the metadata for all types using getMetaDataIterator. |
◆ getMetaDataIterator()
Iterate over all types of SceneManager available for construction, providing some information about each one.
◆ getSceneManager()
SceneManager* Ogre::SceneManagerEnumerator::getSceneManager |
( |
const String & |
instanceName | ) |
const |
Get an existing SceneManager instance that has already been created, identified by the instance name.
- Parameters
-
instanceName | The name of the instance to retrieve. |
◆ getSceneManagerIterator()
Get an iterator over all the existing SceneManager instances.
◆ getSingleton()
Override standard Singleton retrieval.
- This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
◆ getSingletonPtr()
Override standard Singleton retrieval.
- This method just delegates to the template version anyway, but the implementation stays in this single compilation unit, preventing link errors.
◆ hasSceneManager()
bool Ogre::SceneManagerEnumerator::hasSceneManager |
( |
const String & |
instanceName | ) |
const |
Identify if a SceneManager instance already exists.
- Parameters
-
instanceName | The name of the instance to retrieve. |
◆ removeFactory()
◆ setRenderSystem()
void Ogre::SceneManagerEnumerator::setRenderSystem |
( |
RenderSystem * |
rs | ) |
|
Notifies all SceneManagers of the destination rendering system.
◆ shutdownAll()
void Ogre::SceneManagerEnumerator::shutdownAll |
( |
| ) |
|
Utility method to control shutdown of the managers.
The documentation for this class was generated from the following file: