diff options
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) { |