]> git.localhorst.tv Git - blank.git/blobdiff - src/app/Assets.hpp
actually load shapes
[blank.git] / src / app / Assets.hpp
index 65c72fe04d73ad30a1fcf9d215244ad3dfe4ec66..b9d62e2e04ae7ba284dd9fe69aa058208ad7627a 100644 (file)
@@ -10,17 +10,21 @@ namespace blank {
 
 class ArrayTexture;
 class BlockTypeRegistry;
+class CubeMap;
+class ShapeRegistry;
 class Sound;
 class Texture;
 class TextureIndex;
 
-class Assets {
+class AssetLoader {
 
 public:
-       explicit Assets(const std::string &base);
+       explicit AssetLoader(const std::string &base);
 
        void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &, TextureIndex &) const;
+       CubeMap LoadCubeMap(const std::string &name) const;
        Font LoadFont(const std::string &name, int size) const;
+       void LoadShapes(const std::string &set_name, ShapeRegistry &) 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;
@@ -32,11 +36,15 @@ private:
        std::string textures;
        std::string data;
 
-public:
-       // common assets shared by may states
+};
+
+struct Assets {
+
        Font large_ui_font;
        Font small_ui_font;
 
+       Assets(const AssetLoader &);
+
 };
 
 }