From d33f528f17ed1be17aca82e5c0bc9f39c1d496ae Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 3 Jan 2022 18:37:09 +0000 Subject: Support for querying terrain height in GeoData --- game/geoData.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'game/geoData.h') 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; -- cgit v1.2.3