summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-10 08:49:35 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-10 08:49:35 +0100
commit90b3b10170d7a7f278338b74d84ae6efceaacf77 (patch)
tree771e9fa22b6fa8c2b2720f1c47cc8182aeb69f67 /game/geoData.h
parentAdd GeoData face property for surface type (diff)
downloadilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.tar.bz2
ilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.tar.xz
ilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.zip
Introduce a basic terrain surface type asset
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/geoData.h b/game/geoData.h
index e3e9bcb..7a2344d 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -3,6 +3,7 @@
#include "collections.h" // IWYU pragma: keep IterableCollection
#include "config/types.h"
#include "ray.h"
+#include "surface.h"
#include <OpenMesh/Core/Mesh/TriMesh_ArrayKernelT.hh>
#include <filesystem>
#include <glm/vec2.hpp>
@@ -22,7 +23,7 @@ class GeoData : public OpenMesh::TriMesh_ArrayKernelT<GeoDataTraits> {
private:
GeoData();
- OpenMesh::FPropHandleT<int> surface;
+ OpenMesh::FPropHandleT<const Surface *> surface;
public:
static GeoData loadFromAsciiGrid(const std::filesystem::path &);