Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::ParticleSystem Class Reference

#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
 

Detailed Description

Definition at line 46 of file ParticleSystem.h.

Member Function Documentation

◆ Clear()

void mnd::ParticleSystem::Clear ( )
inline

Definition at line 61 of file ParticleSystem.h.

◆ GetAliveCount()

std::size_t mnd::ParticleSystem::GetAliveCount ( ) const
inline

Definition at line 63 of file ParticleSystem.h.

◆ GetCapacity()

std::size_t mnd::ParticleSystem::GetCapacity ( ) const
inline

Definition at line 65 of file ParticleSystem.h.

◆ Init()

◆ IsPaused()

bool mnd::ParticleSystem::IsPaused ( ) const
inline

Definition at line 69 of file ParticleSystem.h.

◆ Render()

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().

◆ SetPaused()

void mnd::ParticleSystem::SetPaused ( bool  paused)
inline

Definition at line 67 of file ParticleSystem.h.

◆ Shutdown()

void mnd::ParticleSystem::Shutdown ( )

Definition at line 48 of file ParticleSystem.cpp.

Referenced by mnd::Engine::Destroy().

◆ Spawn()

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.

◆ Update()

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().


The documentation for this class was generated from the following files: