diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-17 01:22:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-17 01:22:57 +0000 |
commit | 54f0ffccb2bd6032e978f94250f157b87e7f812f (patch) | |
tree | 71d9861513ffd96eed7b381fd796be421654a7d8 /game/terrain.h | |
parent | Don't keep the terrain vertex and index vectors (diff) | |
download | ilt-54f0ffccb2bd6032e978f94250f157b87e7f812f.tar.bz2 ilt-54f0ffccb2bd6032e978f94250f157b87e7f812f.tar.xz ilt-54f0ffccb2bd6032e978f94250f157b87e7f812f.zip |
Split landmass and water meshes
Diffstat (limited to 'game/terrain.h')
-rw-r--r-- | game/terrain.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/terrain.h b/game/terrain.h index 9b5e25e..ff3f92e 100644 --- a/game/terrain.h +++ b/game/terrain.h @@ -25,7 +25,8 @@ public: private: static constexpr unsigned int NUM_BUFFERS {4}; - void finish(unsigned int width, unsigned int height, unsigned int resolution, std::vector<Vertex> &); + void finish(unsigned int width, unsigned int height, std::vector<Vertex> &); + void addWater(unsigned int width, unsigned int height, unsigned int resolution); Collection<Mesh, false> meshes; std::shared_ptr<Texture> texture; |