Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
ParticleSystem.h File Reference

Pool-allocated CPU particles drawn as additive billboards. More...

#include <cstddef>
#include <memory>
#include <vector>
#include "Types.h"
+ Include dependency graph for ParticleSystem.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mnd::Particle
 
class  mnd::ParticleSystem
 

Namespaces

namespace  mnd
 

Detailed Description

Pool-allocated CPU particles drawn as additive billboards.

The Engine owns one ParticleSystem. Emitter components push particles into it via Spawn(); each frame Update() ages them, then Render() issues one billboarded draw per live particle right after the lit pass.

Scope: hundreds of particles, no instancing yet. Cheap enough for the boomer-shooter FX budget (sparks, blood, muzzle flash, torches). If counts grow into the thousands, the obvious upgrade is a single instanced draw with a streaming VBO of per-particle data.

Definition in file ParticleSystem.h.