diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-15 21:25:41 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-15 21:25:41 -0400 |
commit | 0d4504017648b56a565216119a82166deb1f8d5d (patch) | |
tree | c2139ae55552009e176c7abfc8e98443784fb638 /include | |
parent | 23f3b1471b2bbfe92252456f32c9ae55a9d1f213 (diff) |
more efficient particles
Diffstat (limited to 'include')
-rw-r--r-- | include/common.hpp | 2 | ||||
-rw-r--r-- | include/entities.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/common.hpp b/include/common.hpp index 240cd01..fabf4c7 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -14,6 +14,8 @@ #include <vector> #include <cmath> #include <algorithm> +#include <list> +#include <iterator> #ifndef __WIN32__ # include <thread> diff --git a/include/entities.hpp b/include/entities.hpp index 1c3b6ff..83b47b9 100644 --- a/include/entities.hpp +++ b/include/entities.hpp @@ -150,7 +150,7 @@ public: ~Particles(void){} // draws the particle - void draw(std::vector<GLfloat> &verts, std::vector<GLfloat> &tex) const; + void draw(std::vector<GLfloat> &p) const; // updates a particle void update(float _gravity, float ground_y); |