aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-03-17 22:17:40 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-03-17 22:17:40 -0400
commit2e67f6d04f79a3b9338466d289df0074cf4c454e (patch)
treee64004d2b36188db39e6c90f1b0ca10eceaca7bf /src
parent19ade83b74aa66c80129409d97c2c98fa8b8534c (diff)
parent9b0c9df77ad5ba97ffc8d591c8f8aa20ba09cd90 (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'src')
-rw-r--r--src/components.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/components.cpp b/src/components.cpp
index 6571e2f..732e21f 100644
--- a/src/components.cpp
+++ b/src/components.cpp
@@ -144,18 +144,17 @@ void RenderSystem::render(void)
sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y,
sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y + sp.size_tex.y,
+ sp.offset_tex.x, sp.offset_tex.y,
sp.offset_tex.x + sp.size_tex.x, sp.offset_tex.y + sp.size_tex.y,
- sp.offset_tex.x, sp.offset_tex.y + sp.size_tex.y,
- sp.offset_tex.x, sp.offset_tex.y};
-
-
+ sp.offset_tex.x, sp.offset_tex.y + sp.size_tex.y};
+
GLfloat coords[] = {loc.x, loc.y, visible.z + its,
loc.x + size.x, loc.y, visible.z + its,
loc.x + size.x, loc.y + size.y, visible.z + its,
- loc.x + size.x, loc.y + size.y, visible.z + its,
- loc.x, loc.y + size.y, visible.z + its,
- loc.x, loc.y, visible.z + its};
+ loc.x, loc.y, visible.z + its,
+ loc.x + size.x, loc.y + size.y, visible.z + its,
+ loc.x, loc.y + size.y, visible.z + its};
// make the entity hit flash red