diff options
Diffstat (limited to 'src/crepe/ParticleSystem.hpp')
-rw-r--r-- | src/crepe/ParticleSystem.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crepe/ParticleSystem.hpp b/src/crepe/ParticleSystem.hpp new file mode 100644 index 0000000..f670415 --- /dev/null +++ b/src/crepe/ParticleSystem.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <vector> +#include "ParticleEmitter.hpp" + +class ParticleSystem { +public: + ParticleSystem(); + void update(float deltaTime, std::vector<ParticleEmitter>& emitters); +private: + void emitParticle(ParticleEmitter &emitter); //emits a new particle + + float m_elapsedTime; //elapsed time since the last emission +}; |