Falcon
|
#include <ParticleEmitterComponent.h>
Public Member Functions | |
ParticleEmitterComponent () | |
~ParticleEmitterComponent () | |
void | SetMaxParticles (u32 maxParticles) |
Public Attributes | |
boost::circular_buffer< ParticleData > | m_particleBuffer |
u32 | m_emissionRate = 5 |
glm::vec3 | m_velocity = glm::vec3(0.0f, 1.0f, 0.0f) |
The rate of emmision of new particles. More... | |
float | m_timer = 0.0f |
The velocity for the particles. More... | |
float | m_particlePlayTimer = 60.0f |
The timer for spawning new particles. More... | |
float | m_particlePlayProgress = 0.0f |
The timer for how long the particle effect should play for (if not looping) More... | |
float | m_particleLifetime = 5.0f |
The progress of the particles playing time. More... | |
float | m_startSize = 1.0f |
The lifetime of one particle. More... | |
float | m_endSize = 3.0f |
The starting size of a particle. More... | |
float | m_fadeTo = 0.0f |
The ending size of a particle. More... | |
glm::vec3 | m_spawnRange = glm::vec3(0.0f, 0.0f, 0.0f) |
The value to fade the particle alpha to as it progresses over time. More... | |
bool | m_loop = false |
The maximum spawn distance for the particle. More... | |
bool | m_active = true |
If the particle effect should loop. More... | |
Particle * | m_particle = nullptr |
If the particle effect is active. More... | |
Structure definition for particle components
|
inline |
|
inline |
|
inline |
bool ParticleEmitterComponent::m_active = true |
If the particle effect should loop.
u32 ParticleEmitterComponent::m_emissionRate = 5 |
float ParticleEmitterComponent::m_endSize = 3.0f |
The starting size of a particle.
float ParticleEmitterComponent::m_fadeTo = 0.0f |
The ending size of a particle.
bool ParticleEmitterComponent::m_loop = false |
The maximum spawn distance for the particle.
Particle* ParticleEmitterComponent::m_particle = nullptr |
If the particle effect is active.
boost::circular_buffer<ParticleData> ParticleEmitterComponent::m_particleBuffer |
float ParticleEmitterComponent::m_particleLifetime = 5.0f |
The progress of the particles playing time.
float ParticleEmitterComponent::m_particlePlayProgress = 0.0f |
The timer for how long the particle effect should play for (if not looping)
float ParticleEmitterComponent::m_particlePlayTimer = 60.0f |
The timer for spawning new particles.
glm::vec3 ParticleEmitterComponent::m_spawnRange = glm::vec3(0.0f, 0.0f, 0.0f) |
The value to fade the particle alpha to as it progresses over time.
float ParticleEmitterComponent::m_startSize = 1.0f |
The lifetime of one particle.
float ParticleEmitterComponent::m_timer = 0.0f |
The velocity for the particles.
glm::vec3 ParticleEmitterComponent::m_velocity = glm::vec3(0.0f, 1.0f, 0.0f) |
The rate of emmision of new particles.