Falcon
Public Member Functions | Public Attributes | List of all members
ParticleEmitterComponent Struct Reference

#include <ParticleEmitterComponent.h>

Inheritance diagram for ParticleEmitterComponent:
BasicComponent

Public Member Functions

 ParticleEmitterComponent ()
 
 ~ParticleEmitterComponent ()
 
void SetMaxParticles (u32 maxParticles)
 

Public Attributes

boost::circular_buffer< ParticleDatam_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...
 
Particlem_particle = nullptr
 If the particle effect is active. More...
 

Detailed Description

Structure definition for particle components

Constructor & Destructor Documentation

◆ ParticleEmitterComponent()

ParticleEmitterComponent::ParticleEmitterComponent ( )
inline

◆ ~ParticleEmitterComponent()

ParticleEmitterComponent::~ParticleEmitterComponent ( )
inline

Member Function Documentation

◆ SetMaxParticles()

void ParticleEmitterComponent::SetMaxParticles ( u32  maxParticles)
inline

Member Data Documentation

◆ m_active

bool ParticleEmitterComponent::m_active = true

If the particle effect should loop.

◆ m_emissionRate

u32 ParticleEmitterComponent::m_emissionRate = 5

◆ m_endSize

float ParticleEmitterComponent::m_endSize = 3.0f

The starting size of a particle.

◆ m_fadeTo

float ParticleEmitterComponent::m_fadeTo = 0.0f

The ending size of a particle.

◆ m_loop

bool ParticleEmitterComponent::m_loop = false

The maximum spawn distance for the particle.

◆ m_particle

Particle* ParticleEmitterComponent::m_particle = nullptr

If the particle effect is active.

◆ m_particleBuffer

boost::circular_buffer<ParticleData> ParticleEmitterComponent::m_particleBuffer

◆ m_particleLifetime

float ParticleEmitterComponent::m_particleLifetime = 5.0f

The progress of the particles playing time.

◆ m_particlePlayProgress

float ParticleEmitterComponent::m_particlePlayProgress = 0.0f

The timer for how long the particle effect should play for (if not looping)

◆ m_particlePlayTimer

float ParticleEmitterComponent::m_particlePlayTimer = 60.0f

The timer for spawning new particles.

◆ m_spawnRange

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.

◆ m_startSize

float ParticleEmitterComponent::m_startSize = 1.0f

The lifetime of one particle.

◆ m_timer

float ParticleEmitterComponent::m_timer = 0.0f

The velocity for the particles.

◆ m_velocity

glm::vec3 ParticleEmitterComponent::m_velocity = glm::vec3(0.0f, 1.0f, 0.0f)

The rate of emmision of new particles.


The documentation for this struct was generated from the following file: