]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Planet.hpp
separate tile type and texture
[blobs.git] / src / world / Planet.hpp
index efc804dae6a88e91cbbacafcbfd2c3cd38798bab..a95238a914338851df9dee7120c494310c2c684a 100644 (file)
@@ -15,7 +15,7 @@
 namespace blobs {
 namespace world {
 
-struct Tile;
+class TileSet;
 
 /// A planet has six surfaces, numbered 0 to 5, each filled with
 /// sidelength² tiles.
@@ -63,7 +63,7 @@ public:
 
        glm::dvec3 TileCenter(int surface, int x, int y) const noexcept;
 
-       void BuildVAOs();
+       void BuildVAOs(const TileSet &);
        void Draw(app::Assets &, graphics::Viewport &) override;
 
 private:
@@ -78,8 +78,8 @@ private:
 
 };
 
-void GenerateEarthlike(Planet &) noexcept;
-void GenerateTest(Planet &) noexcept;
+void GenerateEarthlike(const TileSet &, Planet &) noexcept;
+void GenerateTest(const TileSet &, Planet &) noexcept;
 
 }
 }