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 /src/common.cpp | |
parent | 3c51eb91645fb9ab6e6cbe49b354408a6e77d1d1 (diff) |
Z INDEXING
Diffstat (limited to 'src/common.cpp')
-rw-r--r-- | src/common.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common.cpp b/src/common.cpp index 060da00..c643174 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -47,15 +47,15 @@ void useShader(GLuint *sh, GLint *tu, GLint *ca, GLint *ta) tex_attrib = ta; } -void drawRect(vec2 ll, vec2 ur) +void drawRect(vec2 ll, vec2 ur, float z) { - GLfloat verts[] = {ll.x, ll.y, 1.0, - ur.x, ll.y, 1.0, - ur.x, ur.y, 1.0, + GLfloat verts[] = {ll.x, ll.y, z, + ur.x, ll.y, z, + ur.x, ur.y, z, - ur.x, ur.y, 1.0, - ll.x, ur.y, 1.0, - ll.x, ll.y, 1.0}; + ur.x, ur.y, z, + ll.x, ur.y, z, + ll.x, ll.y, z}; GLfloat tex[] = {0.0, 1.0, 1.0, 1.0, |