diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-18 08:15:13 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-05-18 08:15:13 -0400 |
commit | d27a975710cf7ef02f755ef768f133e19df69fa5 (patch) | |
tree | 45c21460afb3b964863607dc014343f2e17031f6 /include | |
parent | 3c51eb91645fb9ab6e6cbe49b354408a6e77d1d1 (diff) |
Z INDEXING
Diffstat (limited to 'include')
-rw-r--r-- | include/common.hpp | 2 | ||||
-rw-r--r-- | include/entities.hpp | 2 | ||||
-rw-r--r-- | include/ui.hpp | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/include/common.hpp b/include/common.hpp index 153c46e..d080652 100644 --- a/include/common.hpp +++ b/include/common.hpp @@ -197,7 +197,7 @@ void useShader(GLuint *sh, GLint *tu, GLint *ca, GLint *ta); * A function to draw a colored box for opengl * To use it, the lower left hand and upper right hand coords are passed along */ -void drawRect(vec2 ll, vec2 ur); +void drawRect(vec2 ll, vec2 ur, float z); // gets the length of `n` HLINEs template<typename T> diff --git a/include/entities.hpp b/include/entities.hpp index 83b47b9..93c1caa 100644 --- a/include/entities.hpp +++ b/include/entities.hpp @@ -150,7 +150,7 @@ public: ~Particles(void){} // draws the particle - void draw(std::vector<GLfloat> &p) const; + void draw(GLfloat*& p) const; // updates a particle void update(float _gravity, float ground_y); diff --git a/include/ui.hpp b/include/ui.hpp index 099bebf..f1b44bb 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -81,6 +81,7 @@ namespace ui { void setFontFace(const char *ttf); void setFontSize(unsigned int size); void setFontColor(unsigned char r,unsigned char g,unsigned char b, unsigned char a); + void setFontZ(float z); /* * Draw a centered string. |