summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-12 00:03:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-12 00:03:15 +0100
commitb44c2d85bb8e46c4a6c65aacd23157c07cb80eca (patch)
tree0674470bfacdc6a5314886e088a2be2dfdb346be /game/geoData.h
parentIntroduce a basic terrain surface type asset (diff)
downloadilt-b44c2d85bb8e46c4a6c65aacd23157c07cb80eca.tar.bz2
ilt-b44c2d85bb8e46c4a6c65aacd23157c07cb80eca.tar.xz
ilt-b44c2d85bb8e46c4a6c65aacd23157c07cb80eca.zip
Create terrain vertices per surface type
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 7a2344d..5586023 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -150,6 +150,13 @@ public:
return std::tie(lowerExtent, upperExtent);
}
+ template<typename HandleT>
+ [[nodiscard]] auto
+ get_surface(const HandleT h)
+ {
+ return property(surface, h);
+ }
+
protected:
template<glm::length_t Dim>
[[nodiscard]] Triangle<Dim>