]> git.localhorst.tv Git - blobs.git/blobdiff - src/app/Assets.hpp
basic sky box
[blobs.git] / src / app / Assets.hpp
index 5f971c689ddba201d7cbc700a6b1c1e79c975692..0d725ccef34a527e1c5c540a1df91f96256db9c8 100644 (file)
@@ -1,12 +1,15 @@
 #ifndef BLOBS_APP_ASSETS_HPP_
 #define BLOBS_APP_ASSETS_HPP_
 
+#include "../creature/NameGenerator.hpp"
 #include "../graphics/AlphaSprite.hpp"
 #include "../graphics/ArrayTexture.hpp"
 #include "../graphics/Canvas.hpp"
 #include "../graphics/CreatureSkin.hpp"
+#include "../graphics/CubeMap.hpp"
 #include "../graphics/Font.hpp"
 #include "../graphics/PlanetSurface.hpp"
+#include "../graphics/SkyBox.hpp"
 #include "../graphics/SunSurface.hpp"
 #include "../math/GaloisLFSR.hpp"
 #include "../world/Resource.hpp"
@@ -28,10 +31,13 @@ struct Assets {
        std::string data_path;
        std::string font_path;
        std::string skin_path;
+       std::string sky_path;
        std::string tile_path;
 
        math::GaloisLFSR random;
 
+       creature::NameGenerator name;
+
        struct {
                world::Set<world::Resource> resources;
                world::Set<world::TileType> tile_types;
@@ -46,6 +52,7 @@ struct Assets {
        struct {
                graphics::ArrayTexture tiles;
                graphics::ArrayTexture skins;
+               graphics::CubeMap sky;
        } textures;
 
        struct {
@@ -54,6 +61,7 @@ struct Assets {
                graphics::PlanetSurface planet_surface;
                graphics::SunSurface sun_surface;
                graphics::CreatureSkin creature_skin;
+               graphics::SkyBox sky_box;
        } shaders;
 
        Assets();
@@ -70,6 +78,7 @@ struct Assets {
 
        void LoadTileTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
        void LoadSkinTexture(const std::string &name, graphics::ArrayTexture &, int layer) const;
+       void LoadSkyTexture(const std::string &name, graphics::CubeMap &) const;
 
 };