OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Abstract factory class. More...
#include <OgreFactoryObj.h>
Public Member Functions | |
virtual | ~FactoryObj () |
virtual T * | createInstance (const String &name)=0 |
Creates a new object. | |
virtual void | destroyInstance (T *ptr) |
Destroys an object which was created by this factory. | |
virtual const String & | getType () const =0 |
Returns the factory type. | |
Abstract factory class.
Does nothing by itself, but derived classes can add functionality.
|
inlinevirtual |
Returns the factory type.
Implemented in Ogre::BillboardParticleRendererFactory, Ogre::FileSystemArchiveFactory, Ogre::APKFileSystemArchiveFactory, Ogre::ZipArchiveFactory, and Ogre::EmbeddedZipArchiveFactory.
Creates a new object.
name | Name of the object to create |
Implemented in Ogre::ArchiveFactory, and Ogre::BillboardParticleRendererFactory.
Destroys an object which was created by this factory.
ptr | Pointer to the object to destroy |
Reimplemented in Ogre::EmbeddedZipArchiveFactory.