From a498e83b1587027fdf0eb11e14e38363d3c00470 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 17 Feb 2021 01:17:09 +0000 Subject: Don't keep the terrain vertex and index vectors --- game/terrain.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'game/terrain.h') 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 &); Collection meshes; - std::vector vertices; - std::vector indices; std::shared_ptr texture; }; -- cgit v1.2.3