X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FAssets.hpp;h=4ea7f57458f1f8c2435114eb561f40688c364bbc;hb=196f02bdbbd372b77141201f045fcfea318093b1;hp=c80726a07c05adbd50058e6a41d6eea65e18cca9;hpb=c5556cf5f6813887a3503433c021ccd2e7fae865;p=blobs.git diff --git a/src/app/Assets.hpp b/src/app/Assets.hpp index c80726a..4ea7f57 100644 --- a/src/app/Assets.hpp +++ b/src/app/Assets.hpp @@ -2,22 +2,31 @@ #define BLOBS_APP_ASSETS_HPP_ #include "../graphics/ArrayTexture.hpp" +#include "../graphics/CreatureSkin.hpp" #include "../graphics/PlanetSurface.hpp" #include "../graphics/SunSurface.hpp" +#include + namespace blobs { 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(); @@ -29,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; + }; }