summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererWorld.hpp')
-rw-r--r--src/RendererWorld.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp
index 751f1a7..b020006 100644
--- a/src/RendererWorld.hpp
+++ b/src/RendererWorld.hpp
@@ -8,6 +8,8 @@
#include <glm/gtc/type_ptr.hpp>
+class Frustum;
+
class RendererWorld {
//General
std::shared_ptr<GameState> gs;
@@ -27,6 +29,7 @@ class RendererWorld {
std::map<Vector, RendererSection> sections;
Shader *blockShader;
void UpdateAllSections(VectorF playerPos);
+ std::unique_ptr<Frustum> frustum;
//Entities
Shader *entityShader;
std::vector<RendererEntity> entities;
@@ -46,4 +49,6 @@ public:
void Update(double timeToUpdate);
GameState *GameStatePtr();
+
+ int culledSections = 0;
}; \ No newline at end of file