aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ParticleSystem.hpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:02:09 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:02:09 +0200
commit096e0d0a7199ec9a4059fd5ef8a06a3cf8fcae83 (patch)
treee88e612ac8836ad14abf6b6daff5f2508f0456b2 /src/crepe/ParticleSystem.hpp
parent094ce1806156e191ffb554d4e88e636421cb0242 (diff)
created a particel system
Diffstat (limited to 'src/crepe/ParticleSystem.hpp')
-rw-r--r--src/crepe/ParticleSystem.hpp14
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
+};