OGRE-Next  3.0.0
Object-Oriented Graphics Rendering Engine
Ogre::MovableObjectFactory Class Referenceabstract

Interface definition for a factory class which produces a certain kind of MovableObject, and can be registered with Root in order to allow all clients to produce new instances of this object, integrated with the standard Ogre processing. More...

#include <OgreMovableObject.h>

+ Inheritance diagram for Ogre::MovableObjectFactory:

Public Member Functions

 MovableObjectFactory ()
 
virtual ~MovableObjectFactory ()
 
virtual MovableObjectcreateInstance (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *manager, const NameValuePairList *params=0)
 Create a new instance of the object. More...
 
virtual void destroyInstance (MovableObject *obj)=0
 Destroy an instance of the object. More...
 
virtual const StringgetType () const =0
 Get the type of the object to be created. More...
 

Detailed Description

Interface definition for a factory class which produces a certain kind of MovableObject, and can be registered with Root in order to allow all clients to produce new instances of this object, integrated with the standard Ogre processing.

Constructor & Destructor Documentation

◆ MovableObjectFactory()

Ogre::MovableObjectFactory::MovableObjectFactory ( )
inline

◆ ~MovableObjectFactory()

virtual Ogre::MovableObjectFactory::~MovableObjectFactory ( )
inlinevirtual

Member Function Documentation

◆ createInstance()

virtual MovableObject* Ogre::MovableObjectFactory::createInstance ( IdType  id,
ObjectMemoryManager objectMemoryManager,
SceneManager manager,
const NameValuePairList params = 0 
)
virtual

Create a new instance of the object.

Parameters
managerThe SceneManager instance that will be holding the instance once created.
paramsName/value pair list of additional parameters required to construct the object (defined per subtype). Optional.

◆ destroyInstance()

◆ getType()


The documentation for this class was generated from the following file: