Go to the documentation of this file.
28 #ifndef __SceneManagerEnumerator_H__
29 #define __SceneManagerEnumerator_H__
46 class _OgreExport DefaultSceneManagerFactory :
public SceneManagerFactory
Defines the functionality of a 3D API.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
~DefaultSceneManagerFactory()
void destroySceneManager(SceneManager *sm)
Destroy an instance of a SceneManager.
DefaultSceneManagerFactory()
DefaultSceneManager(const String &name)
MetaDataList mMetaDataList
Stored separately to allow iteration.
ConstVectorIterator< MetaDataList > MetaDataIterator
unsigned long mInstanceCreateCount
Count of creations for auto-naming.
MetaDataIterator getMetaDataIterator(void) const
Iterate over all types of SceneManager available for construction, providing some information about e...
void removeFactory(SceneManagerFactory *fact)
Remove a SceneManagerFactory.
static SceneManagerEnumerator * getSingletonPtr(void)
Override standard Singleton retrieval.
uint16 SceneTypeMask
Bitmask containing scene types.
static const String FACTORY_TYPE_NAME
Factory type name.
Class which will create instances of a given SceneManager.
vector< const SceneManagerMetaData * >::type MetaDataList
List of available scene manager types as meta data.
SceneManager * createSceneManager(const String &typeName, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance of a given type.
Factory for default scene manager.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
Manages the organisation and rendering of a 'scene' i.e.
const String & getTypeName(void) const
Retrieve the type name of this scene manager.
Template class for creating single-instance global classes.
void shutdownAll(void)
Utility method to control shutdown of the managers.
map< String, SceneManager * >::type Instances
Scene manager instances, indexed by instance name.
SceneManager * getSceneManager(const String &instanceName) const
Get an existing SceneManager instance that has already been created, identified by the instance name.
void destroyInstance(SceneManager *instance)
Destroy an instance of a SceneManager.
static SceneManagerEnumerator & getSingleton(void)
Override standard Singleton retrieval.
SceneManager * createSceneManager(SceneTypeMask typeMask, const String &instanceName=StringUtil::BLANK)
Create a SceneManager instance based on scene type support.
list< SceneManagerFactory * >::type Factories
Scene manager factories.
void setRenderSystem(RenderSystem *rs)
Notifies all SceneManagers of the destination rendering system.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
~SceneManagerEnumerator()
void initMetaData(void) const
Internal method to initialise the metadata, must be implemented.
DefaultSceneManagerFactory mDefaultFactory
Factory for default scene manager.
void addFactory(SceneManagerFactory *fact)
Register a new SceneManagerFactory.
MapIterator< Instances > SceneManagerIterator
RenderSystem * mCurrentRenderSystem
Currently assigned render system.
SceneManager * createInstance(const String &instanceName)
Create a new instance of a SceneManager.
Enumerates the SceneManager classes available to applications.
bool hasSceneManager(const String &instanceName) const
Identify if a SceneManager instance already exists.
const SceneManagerMetaData * getMetaData(const String &typeName) const
Get more information about a given type of SceneManager.
SceneManagerIterator getSceneManagerIterator(void)
Get an iterator over all the existing SceneManager instances.
Concrete IteratorWrapper for const access to the underlying container.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.