aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-01-08 17:42:07 -0500
committerClyne Sullivan <tullivan99@gmail.com>2017-01-08 17:42:07 -0500
commiteb6f6d035f0b4324d881f5057639474095a02858 (patch)
treebfacf7413fa86e24f6c5d1a6948075813bc09048 /include
parentc62c4eef57b78a8d5bf18cb3b2e8acfbc6cc30b6 (diff)
particle textures fixed
Diffstat (limited to 'include')
-rw-r--r--include/particle.hpp4
-rw-r--r--include/texture.hpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/particle.hpp b/include/particle.hpp
index a022583..63f23e3 100644
--- a/include/particle.hpp
+++ b/include/particle.hpp
@@ -19,8 +19,10 @@ struct Particle {
ParticleType type;
int timeLeft;
+ //const Texture& color; // TODO
+
Particle(vec2 p, ParticleType t = ParticleType::Drop, int tl = 3000)
- : location(p), type(t), timeLeft(tl) {} // TODO times
+ : location(p), type(t), timeLeft(tl) {}
} __attribute__ ((packed));
class ParticleSystem : public entityx::System<ParticleSystem> {
diff --git a/include/texture.hpp b/include/texture.hpp
index 878955e..3cb8d1f 100644
--- a/include/texture.hpp
+++ b/include/texture.hpp
@@ -19,7 +19,7 @@
* Handles a single texture, loaded from the given file.
*/
class Texture {
-private:
+protected:
std::string name; /**< The name (path) of the loaded file. */
GLuint tex; /**< The GLuint for the loaded texture. */
vec2 dim; /**< The dimensions of the loaded texture. */