Zen 0.3.0
Loading...
Searching...
No Matches
Zen::ParticleSystem Class Reference

Public Member Functions

 ParticleSystem (size_t maxParticles=1000)
void emit (const ParticleProps &props)
void update (DeltaTime deltaTime)
void upload ()
void clear ()
const std::shared_ptr< VertexArray > & vao () const
std::shared_ptr< Shader > & shader ()
size_t capacity () const
void updateEmitter (ParticleEmitter &emitter, DeltaTime deltaTime)
void updateEmitters (std::vector< ParticleEmitter > &emitters, DeltaTime deltaTime)

Detailed Description

Definition at line 79 of file ZEN_ParticleSystem.h.

Constructor & Destructor Documentation

◆ ParticleSystem()

Zen::ParticleSystem::ParticleSystem ( size_t maxParticles = 1000)
explicit

Definition at line 6 of file ZEN_ParticleSystem.cpp.

Member Function Documentation

◆ capacity()

size_t Zen::ParticleSystem::capacity ( ) const
inline

Definition at line 93 of file ZEN_ParticleSystem.h.

◆ clear()

void Zen::ParticleSystem::clear ( )

Definition at line 105 of file ZEN_ParticleSystem.cpp.

◆ emit()

void Zen::ParticleSystem::emit ( const ParticleProps & props)

Definition at line 51 of file ZEN_ParticleSystem.cpp.

◆ shader()

std::shared_ptr< Shader > & Zen::ParticleSystem::shader ( )
inline

Definition at line 91 of file ZEN_ParticleSystem.h.

◆ update()

void Zen::ParticleSystem::update ( DeltaTime deltaTime)

Definition at line 66 of file ZEN_ParticleSystem.cpp.

◆ updateEmitter()

void Zen::ParticleSystem::updateEmitter ( ParticleEmitter & emitter,
DeltaTime deltaTime )

Definition at line 112 of file ZEN_ParticleSystem.cpp.

◆ updateEmitters()

void Zen::ParticleSystem::updateEmitters ( std::vector< ParticleEmitter > & emitters,
DeltaTime deltaTime )

Definition at line 128 of file ZEN_ParticleSystem.cpp.

◆ upload()

void Zen::ParticleSystem::upload ( )

Definition at line 98 of file ZEN_ParticleSystem.cpp.

◆ vao()

const std::shared_ptr< VertexArray > & Zen::ParticleSystem::vao ( ) const
inline

Definition at line 90 of file ZEN_ParticleSystem.h.


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