A particle technique.
More...
#include <ParticleTechnique.h>
◆ ParticleTechnique()
ParticleTechnique::ParticleTechnique |
( |
| ) |
|
◆ ~ParticleTechnique()
ParticleTechnique::~ParticleTechnique |
( |
| ) |
|
|
virtual |
◆ AddEmitter()
Adds a particle emitter to the technique.
- Parameters
-
[in] | emitter | The emitter to add to the technique. |
◆ CopyAttributesTo()
Copy the technique attributes to another technique.
◆ CreateEmitter()
ParticleEmitter * ParticleTechnique::CreateEmitter |
( |
const Ogre::String & |
emitter_type | ) |
|
Creates a particle emitter for the technique.
The emitter gets added to the technique.
- Parameters
-
[in] | emitter_type | The type for the emitter. |
- Returns
- The newly created emitter.
◆ CreateRenderer()
ParticleRenderer * ParticleTechnique::CreateRenderer |
( |
const Ogre::String & |
renderer_type | ) |
|
Creates a renderer.
The renderer gets assigned to the technique.
- Parameters
-
[in] | renderer_type | The type for the renderer. |
- Returns
- The newly created renderer.
◆ DestroyAllEmitters()
void ParticleTechnique::DestroyAllEmitters |
( |
| ) |
|
Destroys all the technique's emitters.
◆ DestroyRenderer()
void ParticleTechnique::DestroyRenderer |
( |
| ) |
|
Destroys the technique renderer.
◆ EmissionChange()
void ParticleTechnique::EmissionChange |
( |
| ) |
|
Marks all emitters as emittables.
◆ ExecuteEmitParticles()
void ParticleTechnique::ExecuteEmitParticles |
( |
ParticleEmitter * |
emitter, |
|
|
int |
requested, |
|
|
Ogre::Real |
time_elapsed |
|
) |
| |
Initializes the particles of an emitter for emission.
- Parameters
-
[in] | emitter | The emited to mark. |
[in] | requested | The number of particles to emit. |
[in] | time_elapsed | Unused. |
- Todo:
- Understand and document properly.
◆ GetNumEmittableEmitters()
int ParticleTechnique::GetNumEmittableEmitters |
( |
| ) |
const |
Counts the number of emitters assigned to the techniques.
- Returns
- The number of emitters assigned to the techniques.
◆ GetParentSystem()
Retrieves the parent system.
- Returns
- The parent system.
◆ GetVisualParticlesQuota()
int ParticleTechnique::GetVisualParticlesQuota |
( |
| ) |
const |
|
inline |
Retrieves the visual particles quota.
- Returns
- The visual particles quota
- Todo:
- What is the quta for? How is it set?
◆ Initialize()
void ParticleTechnique::Initialize |
( |
| ) |
|
Initializes the tehnique.
◆ ResetVisualParticles()
void ParticleTechnique::ResetVisualParticles |
( |
| ) |
|
Locks all particles and removes all their additional data.
◆ SetParentSystem()
void ParticleTechnique::SetParentSystem |
( |
ParticleSystem * |
parent_system | ) |
|
|
inline |
Sets the parent system for the technique.
- Parameters
-
[in] | parent_system | The parent particle system. |
◆ SetRenderer()
Sets the renderer for the technique.
- Parameters
-
[in] | renderer | Renderer for the technique. |
◆ Update()
void ParticleTechnique::Update |
( |
Ogre::Real |
time_elapsed | ) |
|
Updates the technique.
Updates the technique status based on the elapsed time.
- Parameters
-
[in] | time_elapsed | The elapsed time. |
◆ UpdateRenderQueue()
void ParticleTechnique::UpdateRenderQueue |
( |
Ogre::RenderQueue * |
queue | ) |
|
Adds the technique to the scene render queue.
- Parameters
-
[in,out] | queue | The queue to update. |
◆ emitted_emitter_quota_
int ParticleTechnique::emitted_emitter_quota_ |
|
private |
The particle emitter quota.
◆ emitters_
List of particle emitters.
◆ parent_system_
The parent particle system.
◆ particle_emitter_pool_
◆ particle_emitter_pool_increased_
bool ParticleTechnique::particle_emitter_pool_increased_ |
|
private |
Indicates if the particle emitte quota has been increased.
◆ renderer_
◆ visual_particle_pool_increased_
bool ParticleTechnique::visual_particle_pool_increased_ |
|
private |
Indicates if the visual particle quota has been increased.
◆ visual_particle_quota_
int ParticleTechnique::visual_particle_quota_ |
|
private |
The visual particle quota.
◆ visual_particles_
List of visual particles.
◆ visual_particles_pool_
The visual particle pool.
The documentation for this class was generated from the following files: