]> git.localhorst.tv Git - blank.git/blob - src/app/Assets.hpp
centralize fonts
[blank.git] / src / app / Assets.hpp
1 #ifndef BLANK_APP_ASSETS_HPP_
2 #define BLANK_APP_ASSETS_HPP_
3
4 #include "../graphics/Font.hpp"
5
6 #include <string>
7
8
9 namespace blank {
10
11 class ArrayTexture;
12 class Sound;
13 class Texture;
14
15 class Assets {
16
17 public:
18         explicit Assets(const std::string &base);
19
20         Font LoadFont(const std::string &name, int size) const;
21         Sound LoadSound(const std::string &name) const;
22         Texture LoadTexture(const std::string &name) const;
23         void LoadTexture(const std::string &name, ArrayTexture &, int layer) const;
24
25 private:
26         std::string fonts;
27         std::string sounds;
28         std::string textures;
29
30 public:
31         // common assets shared by may states
32         Font large_ui_font;
33         Font small_ui_font;
34
35 };
36
37 }
38
39 #endif