vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::LiveParticles Struct Reference

Every emitter's live particles: ParticleSystem's per-frame product. More...

#include <live_particles.h>

Public Member Functions

const Pool * poolOf (EntityId emitter) const
 The pool of emitter, or null when it has none.

Public Attributes

std::unordered_map< uint32_t, Pool > pools
 By emitter entity slot.

Static Public Attributes

static constexpr uint32_t TRAIL_POINTS = 12
 Points a particle's trail keeps, its own position aside.

Detailed Description

Every emitter's live particles: ParticleSystem's per-frame product.

Kept off the ParticleEmitter component, which travels with undo snapshots, duplicates and the play-mode snapshot: a pool there would make each a bulk copy, and an undo would rewind the particles.

Member Function Documentation

◆ poolOf()

const Pool * Vkm::Engine::LiveParticles::poolOf ( EntityId emitter) const
inline

The pool of emitter, or null when it has none.

Parameters
emitterAn entity carrying a ParticleEmitter.
Returns
Its pool, or null.

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