aboutsummaryrefslogtreecommitdiffstats
path: root/src/render.cpp
diff options
context:
space:
mode:
authorAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-01 02:24:21 -0400
committerAndy Belle-Isle <drumsetmonkey@gmail.com>2019-09-01 02:24:21 -0400
commitfe0e56fb268996f59d96bd9862170c9cf5779031 (patch)
tree78fa04df0a2b486b52bb739ae7a3f6c2b8df4ede /src/render.cpp
parent5b879ae253e71398880c7303539740be7b524ddb (diff)
All 3 entities now play with idle functions and rendering a bit SUPER BETA
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 5b3a1f1..7c047f6 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -79,9 +79,11 @@ void RenderSystem::update([[maybe_unused]] entityx::EntityManager& entities,
* DRAWING *
*************/
-
entities.each<Render, Position>(
- [this, a](entityx::Entity, Render, Position &p){
+ [this, a](entityx::Entity, Render &r, Position &p){
+
+ if (!r.visible)
+ return;
GLuint tri_vbo;
GLfloat tri_data[] = {