summaryrefslogtreecommitdiff
path: root/game/terrain.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:22:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:22:57 +0000
commit54f0ffccb2bd6032e978f94250f157b87e7f812f (patch)
tree71d9861513ffd96eed7b381fd796be421654a7d8 /game/terrain.h
parentDon't keep the terrain vertex and index vectors (diff)
downloadilt-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.h3
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;