summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-10-07 18:38:51 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:32 +0100
commitdb696bc49c4a9198abe9670548f90a6123d556b9 (patch)
tree93007add416ec253b258c0846a67bc581f1809c2 /src/RendererWorld.hpp
parent2017-09-30 (diff)
downloadAltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar.gz
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar.bz2
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar.lz
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar.xz
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.tar.zst
AltCraft-db696bc49c4a9198abe9670548f90a6123d556b9.zip
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