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