]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Assets.hpp
collect and load textures required by block types
[blank.git] / src / app / Assets.hpp
index e6c209effdd7745b6c0d9ad6e798b47a131f1e9f..65c72fe04d73ad30a1fcf9d215244ad3dfe4ec66 100644 (file)
@@ -12,17 +12,19 @@ class ArrayTexture;
 class BlockTypeRegistry;
 class Sound;
 class Texture;
+class TextureIndex;
 
 class Assets {
 
 public:
        explicit Assets(const std::string &base);
 
-       void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &) const;
+       void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &, TextureIndex &) const;
        Font LoadFont(const std::string &name, int size) const;
        Sound LoadSound(const std::string &name) const;
        Texture LoadTexture(const std::string &name) const;
        void LoadTexture(const std::string &name, ArrayTexture &, int layer) const;
+       void LoadTextures(const TextureIndex &, ArrayTexture &) const;
 
 private:
        std::string fonts;