Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::particle::EmitterState Struct Reference

#include <ParticleSystem.hpp>

Public Member Functions

 EmitterState (u32 capacity)

Public Attributes

ParticlePool pool
f32 emission_accumulator = 0.0f
f32 elapsed_time = 0.0f
f32 burst_timer = 0.0f
f32 burst_clock = -1.0f
 Where the scheduled bursts last looked: the emitting clock of the previous step, below zero before the first.
f32 noise_time = 0.0f
bool playing = false
bool first_update = true
std::vector< glm::vec3 > trail_pos
std::vector< u8 > trail_count
u32 collisionCursor = 0
u32 collisionOrdinal = 0
bool gpu = false
u32 gpuCapacity = 0
f32 gpuDt = 0.0f
u32 gpuSmooth = 0
u32 gpuBurst = 0
u32 gpuSpawned = 0
bool gpuReset = false
bool gpuFed = false

Detailed Description

Definition at line 103 of file ParticleSystem.hpp.

Constructor & Destructor Documentation

◆ EmitterState()

esengine::particle::EmitterState::EmitterState ( u32 capacity)
inlineexplicit

Definition at line 135 of file ParticleSystem.hpp.

References pool.

Member Data Documentation

◆ burst_clock

f32 esengine::particle::EmitterState::burst_clock = -1.0f

Where the scheduled bursts last looked: the emitting clock of the previous step, below zero before the first.

Definition at line 109 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ burst_timer

f32 esengine::particle::EmitterState::burst_timer = 0.0f

Definition at line 107 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ collisionCursor

u32 esengine::particle::EmitterState::collisionCursor = 0

Definition at line 123 of file ParticleSystem.hpp.

◆ collisionOrdinal

u32 esengine::particle::EmitterState::collisionOrdinal = 0

Definition at line 123 of file ParticleSystem.hpp.

◆ elapsed_time

f32 esengine::particle::EmitterState::elapsed_time = 0.0f

Definition at line 106 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ emission_accumulator

f32 esengine::particle::EmitterState::emission_accumulator = 0.0f

Definition at line 105 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ first_update

bool esengine::particle::EmitterState::first_update = true

Definition at line 114 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ gpu

bool esengine::particle::EmitterState::gpu = false

◆ gpuBurst

◆ gpuCapacity

u32 esengine::particle::EmitterState::gpuCapacity = 0

◆ gpuDt

f32 esengine::particle::EmitterState::gpuDt = 0.0f

◆ gpuFed

bool esengine::particle::EmitterState::gpuFed = false

Definition at line 133 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::peekGpuStep().

◆ gpuReset

bool esengine::particle::EmitterState::gpuReset = false

◆ gpuSmooth

u32 esengine::particle::EmitterState::gpuSmooth = 0

◆ gpuSpawned

u32 esengine::particle::EmitterState::gpuSpawned = 0

◆ noise_time

f32 esengine::particle::EmitterState::noise_time = 0.0f

◆ playing

bool esengine::particle::EmitterState::playing = false

Definition at line 113 of file ParticleSystem.hpp.

Referenced by esengine::particle::ParticleSystem::update().

◆ pool

◆ trail_count

std::vector<u8> esengine::particle::EmitterState::trail_count

◆ trail_pos

std::vector<glm::vec3> esengine::particle::EmitterState::trail_pos

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