diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-13 20:42:33 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-13 20:42:33 +0000 |
commit | b9771cbeb80e5b540587a01be145154612bbc83d (patch) | |
tree | 6dff7eb8ff1deaa4b11697d7b5a27fac8bff3432 /game/geoData.h | |
parent | Split core view definition out of Camera into Frustum (diff) | |
parent | Split Terrain::generateMeshes into smaller functions (diff) | |
download | ilt-b9771cbeb80e5b540587a01be145154612bbc83d.tar.bz2 ilt-b9771cbeb80e5b540587a01be145154612bbc83d.tar.xz ilt-b9771cbeb80e5b540587a01be145154612bbc83d.zip |
Merge branch 'culling'
Diffstat (limited to 'game/geoData.h')
-rw-r--r-- | game/geoData.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/game/geoData.h b/game/geoData.h index b2a75bd..0ff0c42 100644 --- a/game/geoData.h +++ b/game/geoData.h @@ -2,6 +2,7 @@ #include "collections.h" // IWYU pragma: keep IterableCollection #include "geoDataMesh.h" +#include "gfx/aabb.h" #include "surface.h" #include <filesystem> #include <glm/vec2.hpp> @@ -57,10 +58,10 @@ public: std::set<FaceHandle> setHeights(std::span<const GlobalPosition3D> triangleStrip, const SetHeightsOpts &); - [[nodiscard]] auto + [[nodiscard]] auto & getExtents() const { - return std::tie(lowerExtent, upperExtent); + return extents; } template<typename HandleT> @@ -80,5 +81,5 @@ protected: virtual void afterChange(); private: - GlobalPosition3D lowerExtent {}, upperExtent {}; + AxisAlignedBoundingBox<GlobalDistance> extents; }; |