summaryrefslogtreecommitdiff
path: root/game/terrain.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-03-07 20:35:42 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2025-03-11 01:13:59 +0000
commitaf6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88 (patch)
treef5b76d6ce4a08c53415cf1b72708f32c2cf5c506 /game/terrain.h
parentAxisAlignedBoundingBox construct from range instead of span (diff)
downloadilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.tar.bz2
ilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.tar.xz
ilt-af6b27fa0a3b16d7d0fe7f7be33109af1dcf5f88.zip
Construct terrain tile AxisAlignedBoundingBox during mesh generation
No surface is simply the tile bounds, but with a surface, it's constrained to just the bounds of the surface itself.
Diffstat (limited to 'game/terrain.h')
-rw-r--r--game/terrain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/game/terrain.h b/game/terrain.h
index 40a5989..1d00f97 100644
--- a/game/terrain.h
+++ b/game/terrain.h
@@ -35,6 +35,7 @@ private:
glVertexArray vertexArray;
glBuffer indicesBuffer;
GLsizei count;
+ AxisAlignedBoundingBox aabb;
mutable bool visible;
};