From 9b0c9df77ad5ba97ffc8d591c8f8aa20ba09cd90 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Wed, 15 Mar 2017 21:18:15 -0400 Subject: Better triangles for entities --- src/components.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/components.cpp') diff --git a/src/components.cpp b/src/components.cpp index af746ab..dcb123e 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 -- cgit v1.2.3