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.
◆ MetaDataList
List of available scene manager types as meta data.
◆ MetaDataIterator
◆ SceneManagerIterator
◆ SceneManagerEnumerator()
Ogre::SceneManagerEnumerator::SceneManagerEnumerator |
( |
| ) |
|
◆ ~SceneManagerEnumerator()
Ogre::SceneManagerEnumerator::~SceneManagerEnumerator |
( |
| ) |
|
◆ addFactory()
◆ removeFactory()
◆ getMetaData() [1/2]
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. |
◆ getMetaData() [2/2]
const MetaDataList& Ogre::SceneManagerEnumerator::getMetaData |
( |
void |
| ) |
const |
|
inline |
get all types of SceneManager available for construction
providing some information about each one.
◆ getMetaDataIterator()
MetaDataIterator Ogre::SceneManagerEnumerator::getMetaDataIterator |
( |
void |
| ) |
const |
◆ 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. |
- Deprecated:
- obsolete API - SceneTypeMask leads to arbitrary results. In doubt use createSceneManager() instead
◆ destroySceneManager()
void Ogre::SceneManagerEnumerator::destroySceneManager |
( |
SceneManager * |
sm | ) |
|
◆ 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. |
◆ 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. |
◆ getSceneManagerIterator()
◆ getSceneManagers()
const Instances& Ogre::SceneManagerEnumerator::getSceneManagers |
( |
| ) |
const |
◆ setRenderSystem()
void Ogre::SceneManagerEnumerator::setRenderSystem |
( |
RenderSystem * |
rs | ) |
|
Notifies all SceneManagers of the destination rendering system.
◆ shutdownAll()
void Ogre::SceneManagerEnumerator::shutdownAll |
( |
void |
| ) |
|
Utility method to control shutdown of the managers.
◆ getSingleton()
Get the singleton instance.
◆ getSingletonPtr()
Get the singleton instance.
The documentation for this class was generated from the following file: