]> git.localhorst.tv Git - blank.git/blobdiff - src/world/ChunkRenderer.hpp
some annotations
[blank.git] / src / world / ChunkRenderer.hpp
index d45d0fd415f3f57f05ad209299fd0f0a7d256d4e..7234941b7a472128d8f685355b2eb0161213a55c 100644 (file)
@@ -4,7 +4,7 @@
 #include "Block.hpp"
 #include "Chunk.hpp"
 #include "../graphics/ArrayTexture.hpp"
-#include "../model/BlockModel.hpp"
+#include "../graphics/BlockMesh.hpp"
 
 #include <vector>
 
@@ -12,9 +12,9 @@
 namespace blank {
 
 class AssetLoader;
-class BlockModel;
+class BlockMesh;
 class ChunkIndex;
-class TextureIndex;
+class ResourceIndex;
 class Viewport;
 
 class ChunkRenderer {
@@ -23,7 +23,7 @@ public:
        explicit ChunkRenderer(ChunkIndex &);
        ~ChunkRenderer();
 
-       void LoadTextures(const AssetLoader &, const TextureIndex &);
+       void LoadTextures(const AssetLoader &, const ResourceIndex &);
        void FogDensity(float d) noexcept { fog_density = d; }
 
        int MissingChunks() const noexcept;
@@ -34,7 +34,7 @@ public:
 
 private:
        ChunkIndex &index;
-       std::vector<BlockModel> models;
+       std::vector<BlockMesh> models;
 
        ArrayTexture block_tex;