![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
The particle system manager. More...
#include <ParticleSystemManager.h>
Public Member Functions | |
ParticleSystemManager () | |
Constructor. More... | |
~ParticleSystemManager () | |
Constructor. More... | |
ParticleSystem * | CreateParticleSystemTemplate (const Ogre::String &name) |
Creates a particle system template. More... | |
ParticleSystem * | GetParticleSystemTemplate (const Ogre::String &template_name) |
Retrieves a particle system template. More... | |
void | ParticleSystemTemplateNames (std::vector< Ogre::String > &v) |
Gets all template names. More... | |
ParticleSystem * | CreateParticleSystem (const Ogre::String &name, const Ogre::String &template_name) |
Creates a particle system. More... | |
void | DestroyParticleSystem (ParticleSystem *particle_system) |
Destroys a particle system. More... | |
ParticleTechnique * | CreateTechnique () |
Creates a new technique. More... | |
ParticleTechnique * | CloneTechnique (ParticleTechnique *technique) |
Duplicates a technique. More... | |
void | DestroyTechnique (ParticleTechnique *technique) |
Destroys a technique. More... | |
ParticleEmitter * | CreateEmitter (const Ogre::String &emitter_type) |
Creates a new particle emitter. More... | |
ParticleEmitter * | CloneEmitter (ParticleEmitter *emitter) |
Duplicates a particle emitter. More... | |
void | DestroyEmitter (ParticleEmitter *emitter) |
Destroys a particle emitter. More... | |
ParticleRenderer * | CreateRenderer (const Ogre::String &renderer_type) |
Creates a new particle renderer. More... | |
ParticleRenderer * | CloneRenderer (ParticleRenderer *renderer) |
Duplicates a renderer. More... | |
void | DestroyRenderer (ParticleRenderer *renderer) |
Destroys a renderer. More... | |
Private Types | |
typedef std::map< Ogre::String, ParticleSystem * > | ParticleSystemTemplateMap |
typedef std::map< Ogre::String, ParticleEmitterFactory * > | EmitterFactoryMap |
typedef std::map< Ogre::String, ParticleRendererFactory * > | RendererFactoryMap |
Private Member Functions | |
void | AddEmitterFactory (ParticleEmitterFactory *factory) |
Adds a new {. More... | |
void | AddRendererFactory (ParticleRendererFactory *factory) |
Adds a new {. More... | |
Private Attributes | |
ParticleSystemFactory * | particle_system_factory_ |
The particle system factory. More... | |
ParticleSystemTranslatorManager * | translator_manager_ |
The translator manager. More... | |
ParticleSystemTemplateMap | particle_system_templates_ |
The particle system template map. More... | |
EmitterFactoryMap | emitter_factories_ |
List of particle emitter factories. More... | |
RendererFactoryMap | renderer_factories_ |
List of renderer factories. More... | |
The particle system manager.
|
private |
|
private |
|
private |
ParticleSystemManager::ParticleSystemManager | ( | ) |
Constructor.
ParticleSystemManager::~ParticleSystemManager | ( | ) |
Constructor.
|
private |
Adds a new {.
[in] | factory | The factory to add to the manager. |
|
private |
Adds a new {.
[in] | factory | The factory to add to the manager. |
ParticleEmitter * ParticleSystemManager::CloneEmitter | ( | ParticleEmitter * | emitter | ) |
Duplicates a particle emitter.
[in] | emitter | Emitter to duplicate. |
ParticleRenderer * ParticleSystemManager::CloneRenderer | ( | ParticleRenderer * | renderer | ) |
Duplicates a renderer.
[in] | renderer | renderer to duplicate. |
ParticleTechnique * ParticleSystemManager::CloneTechnique | ( | ParticleTechnique * | technique | ) |
Duplicates a technique.
[in] | technique | Technique to duplicate. |
ParticleEmitter * ParticleSystemManager::CreateEmitter | ( | const Ogre::String & | emitter_type | ) |
Creates a new particle emitter.
[in] | emitter_type | Type for the emitter. |
ParticleSystem * ParticleSystemManager::CreateParticleSystem | ( | const Ogre::String & | name, |
const Ogre::String & | template_name | ||
) |
Creates a particle system.
[in] | name | Name for the template system. |
[in] | template_name | Name for the system template. |
ParticleSystem * ParticleSystemManager::CreateParticleSystemTemplate | ( | const Ogre::String & | name | ) |
Creates a particle system template.
[in] | name | Name for the template. |
ParticleRenderer * ParticleSystemManager::CreateRenderer | ( | const Ogre::String & | renderer_type | ) |
Creates a new particle renderer.
[in] | renderer_type | Type for the renderer. |
ParticleTechnique * ParticleSystemManager::CreateTechnique | ( | ) |
Creates a new technique.
void ParticleSystemManager::DestroyEmitter | ( | ParticleEmitter * | emitter | ) |
Destroys a particle emitter.
[out] | emitter | Emitter to destroy. |
void ParticleSystemManager::DestroyParticleSystem | ( | ParticleSystem * | particle_system | ) |
Destroys a particle system.
[out] | particle_system | Particle system to destroy. |
void ParticleSystemManager::DestroyRenderer | ( | ParticleRenderer * | renderer | ) |
Destroys a renderer.
[out] | renderer | The renderer to destroy. |
void ParticleSystemManager::DestroyTechnique | ( | ParticleTechnique * | technique | ) |
Destroys a technique.
[out] | technique | Technique to destroy. |
ParticleSystem * ParticleSystemManager::GetParticleSystemTemplate | ( | const Ogre::String & | template_name | ) |
Retrieves a particle system template.
[in] | template_name | The name of the template to retrieve. |
void ParticleSystemManager::ParticleSystemTemplateNames | ( | std::vector< Ogre::String > & | v | ) |
Gets all template names.
[out] | v | List where the names will be loaded. |
|
private |
List of particle emitter factories.
|
private |
The particle system factory.
|
private |
The particle system template map.
|
private |
List of renderer factories.
|
private |
The translator manager.