]> git.localhorst.tv Git - gong.git/blob - src/app/AssetLoader.hpp
code, assets, and other stuff stolen from blank
[gong.git] / src / app / AssetLoader.hpp
1 #ifndef GONG_APP_ASSETLOADER_HPP_
2 #define GONG_APP_ASSETLOADER_HPP_
3
4 #include <string>
5
6
7 namespace gong {
8 namespace audio {
9         class Sound;
10 }
11 namespace graphics {
12         class ArrayTexture;
13         class CubeMap;
14         class Font;
15         class Texture;
16 }
17
18 namespace app {
19
20 class AssetLoader {
21
22 public:
23         explicit AssetLoader(const std::string &base);
24
25         graphics::CubeMap LoadCubeMap(const std::string &name) const;
26         graphics::Font LoadFont(const std::string &name, int size) const;
27         audio::Sound LoadSound(const std::string &name) const;
28         graphics::Texture LoadTexture(const std::string &name) const;
29         void LoadTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
30
31 private:
32         std::string fonts;
33         std::string sounds;
34         std::string textures;
35         std::string data;
36
37 };
38
39 }
40 }
41
42 #endif