diff options
Diffstat (limited to 'game/terrain.h')
-rw-r--r-- | game/terrain.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/game/terrain.h b/game/terrain.h index c32f092..4775dff 100644 --- a/game/terrain.h +++ b/game/terrain.h @@ -7,17 +7,14 @@ #include <gfx/models/mesh.h> #include <gfx/renderable.h> #include <memory> -#include <string> -#include <vector> class Shader; class Texture; -class Vertex; +class GeoData; class Terrain : public WorldObject, public Renderable { public: - Terrain(); - explicit Terrain(const std::string &); + explicit Terrain(std::shared_ptr<GeoData>); void render(const Shader & shader) const override; @@ -25,10 +22,9 @@ public: float waveCycle {0.F}; private: - static constexpr unsigned int NUM_BUFFERS {4}; - - void finish(unsigned int width, unsigned int height, std::vector<Vertex> &); + void generateMeshes(); + std::shared_ptr<GeoData> geoData; Collection<Mesh, false> meshes; std::shared_ptr<Texture> grass, water; }; |