summaryrefslogtreecommitdiff
path: root/game/terrain.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:17:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-17 01:17:09 +0000
commita498e83b1587027fdf0eb11e14e38363d3c00470 (patch)
treeec1b4d2141b0d389b879affd0bcb46ecb1abed51 /game/terrain.h
parentSupport multiple shader programs, set by model (diff)
downloadilt-a498e83b1587027fdf0eb11e14e38363d3c00470.tar.bz2
ilt-a498e83b1587027fdf0eb11e14e38363d3c00470.tar.xz
ilt-a498e83b1587027fdf0eb11e14e38363d3c00470.zip
Don't keep the terrain vertex and index vectors
Diffstat (limited to 'game/terrain.h')
-rw-r--r--game/terrain.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/game/terrain.h b/game/terrain.h
index 81ee128..9b5e25e 100644
--- a/game/terrain.h
+++ b/game/terrain.h
@@ -25,13 +25,9 @@ public:
private:
static constexpr unsigned int NUM_BUFFERS {4};
- void finish(unsigned int width, unsigned int height, unsigned int resolution);
-
- Vertex & v(unsigned int width, unsigned int x, unsigned int z);
+ void finish(unsigned int width, unsigned int height, unsigned int resolution, std::vector<Vertex> &);
Collection<Mesh, false> meshes;
- std::vector<Vertex> vertices;
- std::vector<unsigned int> indices;
std::shared_ptr<Texture> texture;
};