summaryrefslogtreecommitdiff
path: root/game/geoData.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-03 18:37:09 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-03 18:37:09 +0000
commitd33f528f17ed1be17aca82e5c0bc9f39c1d496ae (patch)
tree17f37991e09d8d7345557e6a6d24a16ab8032d87 /game/geoData.h
parentMore complete and tested stream output support (diff)
downloadilt-d33f528f17ed1be17aca82e5c0bc9f39c1d496ae.tar.bz2
ilt-d33f528f17ed1be17aca82e5c0bc9f39c1d496ae.tar.xz
ilt-d33f528f17ed1be17aca82e5c0bc9f39c1d496ae.zip
Support for querying terrain height in GeoData
Diffstat (limited to 'game/geoData.h')
-rw-r--r--game/geoData.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/geoData.h b/game/geoData.h
index 39c149c..e5057c3 100644
--- a/game/geoData.h
+++ b/game/geoData.h
@@ -20,6 +20,8 @@ public:
void generateRandom();
void loadFromImages(const std::filesystem::path &, float scale);
+ [[nodiscard]] glm::vec3 positionAt(glm::vec2) const;
+
[[nodiscard]] unsigned int at(glm::ivec2) const;
[[nodiscard]] unsigned int at(int x, int y) const;