|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#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 |
Definition at line 103 of file ParticleSystem.hpp.
|
inlineexplicit |
Definition at line 135 of file ParticleSystem.hpp.
References pool.
| 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().
| f32 esengine::particle::EmitterState::burst_timer = 0.0f |
Definition at line 107 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::update().
| u32 esengine::particle::EmitterState::collisionCursor = 0 |
Definition at line 123 of file ParticleSystem.hpp.
| u32 esengine::particle::EmitterState::collisionOrdinal = 0 |
Definition at line 123 of file ParticleSystem.hpp.
| f32 esengine::particle::EmitterState::elapsed_time = 0.0f |
Definition at line 106 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::update().
| f32 esengine::particle::EmitterState::emission_accumulator = 0.0f |
Definition at line 105 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::update().
| bool esengine::particle::EmitterState::first_update = true |
Definition at line 114 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::update().
| bool esengine::particle::EmitterState::gpu = false |
Definition at line 127 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::emitAt(), and esengine::particle::ParticleSystem::update().
| u32 esengine::particle::EmitterState::gpuBurst = 0 |
Definition at line 130 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::commitGpuStep(), esengine::particle::ParticleSystem::peekGpuStep(), and esengine::particle::ParticleSystem::update().
| u32 esengine::particle::EmitterState::gpuCapacity = 0 |
Definition at line 128 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep(), and esengine::particle::ParticleSystem::update().
| f32 esengine::particle::EmitterState::gpuDt = 0.0f |
Definition at line 129 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::commitGpuStep(), and esengine::particle::ParticleSystem::peekGpuStep().
| bool esengine::particle::EmitterState::gpuFed = false |
Definition at line 133 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep().
| bool esengine::particle::EmitterState::gpuReset = false |
Definition at line 132 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::commitGpuStep(), and esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::EmitterState::gpuSmooth = 0 |
Definition at line 130 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::commitGpuStep(), and esengine::particle::ParticleSystem::peekGpuStep().
| u32 esengine::particle::EmitterState::gpuSpawned = 0 |
Definition at line 131 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::commitGpuStep(), and esengine::particle::ParticleSystem::peekGpuStep().
| f32 esengine::particle::EmitterState::noise_time = 0.0f |
Definition at line 112 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::peekGpuStep(), and esengine::particle::ParticleSystem::update().
| bool esengine::particle::EmitterState::playing = false |
Definition at line 113 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::update().
| ParticlePool esengine::particle::EmitterState::pool |
Definition at line 104 of file ParticleSystem.hpp.
Referenced by EmitterState(), esengine::particle::ParticleSystem::emitAt(), esengine::particle::ParticleSystem::resolveCollisions(), and esengine::particle::ParticleSystem::update().
| std::vector<u8> esengine::particle::EmitterState::trail_count |
Definition at line 121 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::resolveCollisions().
| std::vector<glm::vec3> esengine::particle::EmitterState::trail_pos |
Definition at line 120 of file ParticleSystem.hpp.
Referenced by esengine::particle::ParticleSystem::resolveCollisions().