]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
textures
[blank.git] / src / world / World.hpp
index b98efca544ef0969af3f056075b43f039986e80f..6bd8128dc9fb41073748952702ee071546306369 100644 (file)
@@ -5,6 +5,7 @@
 #include "ChunkLoader.hpp"
 #include "Entity.hpp"
 #include "Generator.hpp"
+#include "../graphics/ArrayTexture.hpp"
 #include "../model/shapes.hpp"
 
 #include <list>
@@ -14,6 +15,7 @@
 
 namespace blank {
 
+class Assets;
 class Viewport;
 class WorldCollision;
 
@@ -35,7 +37,7 @@ public:
                ChunkLoader::Config load = ChunkLoader::Config();
        };
 
-       explicit World(const Config &);
+       World(const Assets &, const Config &);
 
        bool Intersection(
                const Ray &,
@@ -67,6 +69,8 @@ private:
        StairShape stairShape;
        CuboidShape slabShape;
 
+       ArrayTexture block_tex;
+
        Generator generate;
        ChunkLoader chunks;