![]() |
OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Enumerates the SceneManager classes available to applications. More...
#include <OgreSceneManagerEnumerator.h>
Public Types | |
typedef map< String, SceneManager * >::type | Instances |
Scene manager instances, indexed by instance name. | |
typedef ConstVectorIterator< MetaDataList > | MetaDataIterator |
typedef vector< constSceneManagerMetaData * >::type | MetaDataList |
List of available scene manager types as meta data. | |
typedef MapIterator< Instances > | SceneManagerIterator |
Static Public Member Functions | |
static SceneManagerEnumerator & | getSingleton (void) |
Override standard Singleton retrieval. | |
static SceneManagerEnumerator * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Enumerates the SceneManager classes available to applications.
Scene manager instances, indexed by instance name.
List of available scene manager types as meta data.
Ogre::SceneManagerEnumerator::SceneManagerEnumerator | ( | ) |
Ogre::SceneManagerEnumerator::~SceneManagerEnumerator | ( | ) |
void Ogre::SceneManagerEnumerator::addFactory | ( | SceneManagerFactory * | fact | ) |
Register a new SceneManagerFactory.
SceneManager * Ogre::SceneManagerEnumerator::createSceneManager | ( | const String & | typeName, |
size_t | numWorkerThreads, | ||
InstancingThreadedCullingMethod | threadedCullingMethod, | ||
const String & | instanceName = BLANKSTRING |
||
) |
Create a SceneManager instance of a given type.
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. |
SceneManager * Ogre::SceneManagerEnumerator::createSceneManager | ( | SceneTypeMask | typeMask, |
size_t | numWorkerThreads, | ||
InstancingThreadedCullingMethod | threadedCullingMethod, | ||
const String & | instanceName = BLANKSTRING |
||
) |
Create a SceneManager instance based on scene type support.
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. |
void Ogre::SceneManagerEnumerator::destroySceneManager | ( | SceneManager * | sm | ) |
Destroy an instance of a SceneManager.
const SceneManagerMetaData * Ogre::SceneManagerEnumerator::getMetaData | ( | const String & | typeName | ) | const |
Get more information about a given type of SceneManager.
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. |
MetaDataIterator Ogre::SceneManagerEnumerator::getMetaDataIterator | ( | void | ) | const |
Iterate over all types of SceneManager available for construction, providing some information about each one.
SceneManager * Ogre::SceneManagerEnumerator::getSceneManager | ( | const String & | instanceName | ) | const |
Get an existing SceneManager instance that has already been created, identified by the instance name.
instanceName | The name of the instance to retrieve. |
SceneManagerIterator Ogre::SceneManagerEnumerator::getSceneManagerIterator | ( | void | ) |
Get an iterator over all the existing SceneManager instances.
|
static |
Override standard Singleton retrieval.
|
static |
Override standard Singleton retrieval.
Identify if a SceneManager instance already exists.
instanceName | The name of the instance to retrieve. |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::SceneManagerEnumerator::removeFactory | ( | SceneManagerFactory * | fact | ) |
Remove a SceneManagerFactory.
void Ogre::SceneManagerEnumerator::setRenderSystem | ( | RenderSystem * | rs | ) |
Notifies all SceneManagers of the destination rendering system.
Utility method to control shutdown of the managers.