![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
A particle entity renderer. More...
#include <ParticleEntityRenderer.h>
Public Member Functions | |
ParticleEntityRenderer () | |
Constructor. More... | |
virtual | ~ParticleEntityRenderer () |
Destructor. More... | |
virtual void | CopyAttributesTo (ParticleRenderer *renderer) |
Copies the atributtes to other renderer. More... | |
const Ogre::String & | GetMeshName () const |
Retrieves the emitter's mesh name. More... | |
void | SetMeshName (const Ogre::String &mesh_name) |
Sets the emitter's mesh name. More... | |
void | Clear () |
Clears all data in the entity. More... | |
virtual void | SetVisible (bool visible) |
Toggles the particle entity visibility. More... | |
virtual void | Initialize () |
Initializes the particle. More... | |
virtual void | UpdateRenderQueue (Ogre::RenderQueue *queue, ParticlePool< VisualParticle > &pool) |
Adds the particle to the scene render queue. More... | |
![]() | |
ParticleRenderer () | |
Constructor. More... | |
virtual | ~ParticleRenderer () |
Destructor. More... | |
virtual void | CopyAttributesTo (ParticleRenderer *renderer) |
Copies the renderer attributes to other renderer. More... | |
void | SetRendererInitialised (bool renderer_initialised) |
Toggles renderer initialization state. More... | |
bool | IsRendererInitialised () const |
Checks the renderer initialization status. More... | |
void | SetRendererType (Ogre::String renderer_type) |
Sets the renderer type. More... | |
const Ogre::String & | GetRendererType () const |
Retrieves the renderer type. More... | |
void | SetParentTechnique (ParticleTechnique *parent_technique) |
Sets the renderer parent technique. More... | |
const ParticleTechnique * | GetParentTechnique () const |
Sets the renderer particle technique. More... | |
virtual void | SetVisible (bool visible=true)=0 |
Toggles the visibility of the particle renderer. More... | |
virtual void | Initialize ()=0 |
Initializes the renderer. More... | |
virtual void | UpdateRenderQueue (Ogre::RenderQueue *queue, ParticlePool< VisualParticle > &pool)=0 |
Adds the particle to the scene render queue. More... | |
Protected Attributes | |
std::vector< ParticleEntityAdditionalData * > | all_additional_data_ |
Additional data for the rendered. More... | |
std::vector< ParticleEntityAdditionalData * > | unassigned_additional_data_ |
Additional data for the rendered that is not yet assigned. More... | |
std::vector< Ogre::Entity * > | entities_ |
List of entities. More... | |
Ogre::String | mesh_name_ |
The mesh name for the particles. More... | |
![]() | |
bool | renderer_initialized_ |
Indicates if the renderer has been initialized. More... | |
Ogre::String | renderer_type_ |
The type of renderer. More... | |
ParticleTechnique * | parent_technique_ |
The renderer particle tchnique. More... | |
Static Protected Attributes | |
static ParticleEntityRendererDictionary::MeshName | mesh_name_dictionary_ |
A dictionary of mesh names. More... | |
A particle entity renderer.
ParticleEntityRenderer::ParticleEntityRenderer | ( | ) |
Constructor.
|
virtual |
Destructor.
void ParticleEntityRenderer::Clear | ( | ) |
Clears all data in the entity.
|
virtual |
Copies the atributtes to other renderer.
[out] | renderer | Renderer to copy the attributes to. |
Reimplemented from ParticleRenderer.
const Ogre::String & ParticleEntityRenderer::GetMeshName | ( | ) | const |
Retrieves the emitter's mesh name.
|
virtual |
Initializes the particle.
Implements ParticleRenderer.
void ParticleEntityRenderer::SetMeshName | ( | const Ogre::String & | mesh_name | ) |
Sets the emitter's mesh name.
[in] | mesh_name | The name for the emitter's mesh. |
|
virtual |
Toggles the particle entity visibility.
[in] | visible | True to make the particle visible, false to make it invisible. |
Implements ParticleRenderer.
|
virtual |
Adds the particle to the scene render queue.
[in] | queue | Unused. |
[in] | pool | The particle pool. |
Implements ParticleRenderer.
|
protected |
Additional data for the rendered.
|
protected |
List of entities.
|
protected |
The mesh name for the particles.
|
staticprotected |
A dictionary of mesh names.
|
protected |
Additional data for the rendered that is not yet assigned.