YourGameLib
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
yourgame::math::Particles Class Reference

#include <particles.h>

Inheritance diagram for yourgame::math::Particles:
Inheritance graph
[legend]
Collaboration diagram for yourgame::math::Particles:
Collaboration graph
[legend]

Classes

struct  Config
 Particle system configuration. More...
 

Public Member Functions

 Particles (const Config cfg)
 
virtual void tick (float dt)
 ticks the particle system
 
void reset ()
 

Public Attributes

Config m_cfg
 
std::vector< glm::vec4 > m_positionData
 
std::vector< float > m_progressData
 

Detailed Description

Todo:

change count during runtime?

prevent scatterOnSpawn during spawn() on init

communicate that the system is eventually "finished" if respawn == false

depth sorting?

Constructor & Destructor Documentation

◆ Particles()

yourgame::math::Particles::Particles ( const Config  cfg)

Member Function Documentation

◆ reset()

void yourgame::math::Particles::reset ( )

◆ tick()

void yourgame::math::Particles::tick ( float  dt)
virtual

ticks the particle system

Parameters
dttime delta

Reimplemented in yourgame::gl::Particles.

Member Data Documentation

◆ m_cfg

Config yourgame::math::Particles::m_cfg

◆ m_positionData

std::vector<glm::vec4> yourgame::math::Particles::m_positionData

◆ m_progressData

std::vector<float> yourgame::math::Particles::m_progressData

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