]> git.localhorst.tv Git - blobs.git/blobdiff - src/app/Assets.hpp
basic creature model
[blobs.git] / src / app / Assets.hpp
index ed3c2e2605d8dd6bda3c16f0d4962d34fcfb1fd7..4ea7f57458f1f8c2435114eb561f40688c364bbc 100644 (file)
@@ -2,7 +2,11 @@
 #define BLOBS_APP_ASSETS_HPP_
 
 #include "../graphics/ArrayTexture.hpp"
+#include "../graphics/CreatureSkin.hpp"
 #include "../graphics/PlanetSurface.hpp"
+#include "../graphics/SunSurface.hpp"
+
+#include <string>
 
 
 namespace blobs {
@@ -10,12 +14,19 @@ namespace app {
 
 struct Assets {
 
+       std::string path;
+       std::string tile_path;
+       std::string skin_path;
+
        struct {
                graphics::ArrayTexture tiles;
+               graphics::ArrayTexture skins;
        } textures;
 
        struct {
                graphics::PlanetSurface planet_surface;
+               graphics::SunSurface sun_surface;
+               graphics::CreatureSkin creature_skin;
        } shaders;
 
        Assets();
@@ -27,6 +38,9 @@ struct Assets {
        Assets(Assets &&) = delete;
        Assets &operator =(Assets &&) = delete;
 
+       void LoadTileTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
+       void LoadSkinTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
+
 };
 
 }