diff options
author | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-14 03:31:40 -0400 |
---|---|---|
committer | Andy Belle-Isle <drumsetmonkey@gmail.com> | 2019-09-14 03:31:40 -0400 |
commit | 534f6f57e930020eb1ad726f4de4e90cf487e584 (patch) | |
tree | 0dedd0deaa7556e6f9e8fd316017413f59de7996 /src/render.hpp | |
parent | 4bf539d953871dbddddcc00275ffdcaddece5091 (diff) |
World can now draw
Diffstat (limited to 'src/render.hpp')
-rw-r--r-- | src/render.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render.hpp b/src/render.hpp index 8dcb434..82ca844 100644 --- a/src/render.hpp +++ b/src/render.hpp @@ -35,6 +35,7 @@ #include <glm/gtc/noise.hpp> #include "shader.hpp" +#include "world.hpp" class RenderSystem : public entityx::System<RenderSystem> { @@ -48,10 +49,12 @@ private: Shader worldShader; glm::vec3 camPos; + GLuint world_vbo; + WorldSystem &worldSystem; public: - RenderSystem(void) : - window(nullptr, SDL_DestroyWindow) {} + RenderSystem(WorldSystem & _ws) : + window(nullptr, SDL_DestroyWindow), worldSystem(_ws) {} ~RenderSystem(void) { |