|
Monad Engine da02fba2
> Undercity Codex_
|
#include <ParticleSystem.h>
Public Member Functions | |
| void | Init () |
| void | Shutdown () |
| void | Update (f32 deltaTime) |
| Step every live particle, swap-erase dead ones. | |
| void | Render (const CameraData &cameraData) |
| Camera-aligned billboard pass. Call after the lit pass, before UI. | |
| void | Spawn (const Particle &particle) |
| Push a fully-configured particle into the pool. Drops oldest if full. | |
| void | Clear () |
| std::size_t | GetAliveCount () const |
| std::size_t | GetCapacity () const |
| void | SetPaused (bool paused) |
| bool | IsPaused () const |
Definition at line 46 of file ParticleSystem.h.
|
inline |
Definition at line 61 of file ParticleSystem.h.
|
inline |
Definition at line 63 of file ParticleSystem.h.
|
inline |
Definition at line 65 of file ParticleSystem.h.
| void mnd::ParticleSystem::Init | ( | ) |
Definition at line 25 of file ParticleSystem.cpp.
References mnd::Builder::CreateRectangle(), mnd::GraphicsAPI::CreateShaderProgram(), mnd::Engine::GetFileSystem(), mnd::Engine::GetGraphicsAPI(), mnd::Engine::GetInstance(), mnd::FileSystem::LoadAssetFileText(), and LOG_ERROR.
Referenced by mnd::Engine::Init().
|
inline |
Definition at line 69 of file ParticleSystem.h.
| void mnd::ParticleSystem::Render | ( | const CameraData & | cameraData | ) |
Camera-aligned billboard pass. Call after the lit pass, before UI.
Definition at line 75 of file ParticleSystem.cpp.
References mnd::GraphicsAPI::BindMesh(), mnd::Engine::GetGraphicsAPI(), mnd::Engine::GetInstance(), mnd::CameraData::projectionMatrix, and mnd::CameraData::viewMatrix.
Referenced by mnd::Engine::Run().
|
inline |
Definition at line 67 of file ParticleSystem.h.
| void mnd::ParticleSystem::Shutdown | ( | ) |
Definition at line 48 of file ParticleSystem.cpp.
Referenced by mnd::Engine::Destroy().
| void mnd::ParticleSystem::Spawn | ( | const Particle & | particle | ) |
Push a fully-configured particle into the pool. Drops oldest if full.
Definition at line 136 of file ParticleSystem.cpp.
| void mnd::ParticleSystem::Update | ( | f32 | deltaTime | ) |
Step every live particle, swap-erase dead ones.
Definition at line 55 of file ParticleSystem.cpp.
Referenced by mnd::Engine::Run().