aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ParticleEmitter.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-12 22:04:49 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-12 22:04:49 +0100
commitd3a04fb1e8b119017375caab74c43674006a7348 (patch)
tree6fe8f16275318245c6cdcb925825587fbf076910 /src/crepe/api/ParticleEmitter.h
parent927aab8cf424d1f3bf25056ce4b4126ce9f4edab (diff)
broken particle test
Diffstat (limited to 'src/crepe/api/ParticleEmitter.h')
-rw-r--r--src/crepe/api/ParticleEmitter.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/crepe/api/ParticleEmitter.h b/src/crepe/api/ParticleEmitter.h
index cc54ffb..e0b117a 100644
--- a/src/crepe/api/ParticleEmitter.h
+++ b/src/crepe/api/ParticleEmitter.h
@@ -3,9 +3,11 @@
#include <cmath>
#include <vector>
+#include "system/ParticleSystem.h"
+#include "system/RenderSystem.h"
+
#include "Component.h"
#include "Particle.h"
-#include "system/ParticleSystem.h"
#include "types.h"
namespace crepe {
@@ -69,9 +71,6 @@ public:
vec2 force_over_time;
//! particle boundary
Boundary boundary;
- //! collection of particles
- std::vector<Particle> particles;
-
};
public:
@@ -87,7 +86,10 @@ public:
private:
//! Saves time left over from last update event.
friend ParticleSystem;
+ friend RenderSystem;
float spawn_accumulator = 0;
+ //! collection of particles
+ std::vector<Particle> particles;
};
} // namespace crepe