X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FAssets.hpp;h=e6c209effdd7745b6c0d9ad6e798b47a131f1e9f;hb=ede25c0a2f59e21521d1cd962e6ea9d78169ca12;hp=d9ab3d443592c0c491079069418caf8f4f5a5c74;hpb=55dbd6b35a39888f245e247d2e140f141f918178;p=blank.git diff --git a/src/app/Assets.hpp b/src/app/Assets.hpp index d9ab3d4..e6c209e 100644 --- a/src/app/Assets.hpp +++ b/src/app/Assets.hpp @@ -1,22 +1,39 @@ #ifndef BLANK_APP_ASSETS_HPP_ #define BLANK_APP_ASSETS_HPP_ +#include "../graphics/Font.hpp" + #include namespace blank { -class Font; +class ArrayTexture; +class BlockTypeRegistry; +class Sound; +class Texture; class Assets { public: explicit Assets(const std::string &base); + void LoadBlockTypes(const std::string &set_name, BlockTypeRegistry &) 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; private: std::string fonts; + std::string sounds; + std::string textures; + std::string data; + +public: + // common assets shared by may states + Font large_ui_font; + Font small_ui_font; };