]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Planet.hpp
basic creature model
[blobs.git] / src / world / Planet.hpp
index a95238a914338851df9dee7120c494310c2c684a..900ebbbe8ae4fb6412e337e43566fc7899df1da8 100644 (file)
@@ -8,7 +8,7 @@
 #include "../graphics/SimpleVAO.hpp"
 
 #include <cassert>
-#include <memory>
+#include <vector>
 #include <GL/glew.h>
 
 
@@ -63,12 +63,12 @@ public:
 
        glm::dvec3 TileCenter(int surface, int x, int y) const noexcept;
 
-       void BuildVAOs(const TileSet &);
+       void BuildVAO(const TileSet &);
        void Draw(app::Assets &, graphics::Viewport &) override;
 
 private:
        int sidelength;
-       std::unique_ptr<Tile []> tiles;
+       std::vector<Tile> tiles;
 
        struct Attributes {
                glm::vec3 position;