aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ParticleEmitter.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-11-10 18:30:10 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-11-10 18:30:10 +0100
commit0006e959643f0150acd230b174287a85d4cb3255 (patch)
tree533780aa22de1e1768a22224e4626107ef71a62b /src/crepe/api/ParticleEmitter.h
parent08d48aabac838a641ef918da92d9827b214e5da6 (diff)
added forward declaration and const reference sprite
Diffstat (limited to 'src/crepe/api/ParticleEmitter.h')
-rw-r--r--src/crepe/api/ParticleEmitter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/ParticleEmitter.h b/src/crepe/api/ParticleEmitter.h
index 2cda1bb..e81ed3b 100644
--- a/src/crepe/api/ParticleEmitter.h
+++ b/src/crepe/api/ParticleEmitter.h
@@ -5,9 +5,9 @@
#include "Component.h"
#include "Particle.h"
-#include "Transform.h"
+#include "Sprite.h"
-class Sprite;
+// class Sprite;
namespace crepe {
@@ -70,7 +70,7 @@ public:
//! collection of particles
std::vector<Particle> particles;
//! sprite reference
- const Sprite* sprite;
+ const Sprite& sprite;
};
public:
/**