OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
Abstract class defining the interface to be implemented by creators of ParticleEmitter subclasses. More...
#include <OgreParticleEmitterFactory.h>
Public Member Functions | |
ParticleEmitterFactory () | |
virtual | ~ParticleEmitterFactory () |
virtual ParticleEmitter * | createEmitter (ParticleSystem *psys)=0 |
Creates a new emitter instance. | |
virtual void | destroyEmitter (ParticleEmitter *e) |
Destroys the emitter pointed to by the parameter (for early clean up if required). | |
virtual String | getName () const =0 |
Returns the name of the factory, the name which identifies the particle emitter type this factory creates. | |
Abstract class defining the interface to be implemented by creators of ParticleEmitter subclasses.
Plugins or 3rd party applications can add new types of particle emitters to Ogre by creating subclasses of the ParticleEmitter class. Because multiple instances of these emitters may be required, a factory class to manage the instances is also required.
|
inline |
|
virtual |
Returns the name of the factory, the name which identifies the particle emitter type this factory creates.
|
pure virtual |
Creates a new emitter instance.
The subclass MUST add a pointer to the created instance to mEmitters.
|
virtual |
Destroys the emitter pointed to by the parameter (for early clean up if required).