summaryrefslogtreecommitdiff
path: root/game/water.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/water.h')
-rw-r--r--game/water.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/water.h b/game/water.h
index 20796d7..ceb7bd2 100644
--- a/game/water.h
+++ b/game/water.h
@@ -2,6 +2,7 @@
#include "chronology.h"
#include "collection.h"
+#include "config/types.h"
#include "game/worldobject.h"
#include <gfx/models/mesh.h>
#include <gfx/renderable.h>
@@ -20,10 +21,14 @@ public:
void tick(TickDuration) override;
float waveCycle {0.F};
+ struct Vertex {
+ GlobalPosition3D pos;
+ };
+
private:
void generateMeshes();
std::shared_ptr<GeoData> geoData;
- Collection<Mesh, false> meshes;
+ Collection<MeshT<Vertex>, false> meshes;
std::shared_ptr<Texture> water;
};