summaryrefslogtreecommitdiff
path: root/gfx/frustum.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/frustum.h')
-rw-r--r--gfx/frustum.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/frustum.h b/gfx/frustum.h
index 46f4108..5ee7d2c 100644
--- a/gfx/frustum.h
+++ b/gfx/frustum.h
@@ -4,6 +4,8 @@
#include <array>
#include <glm/mat4x4.hpp>
+class AxisAlignedBoundingBox;
+
class Frustum {
public:
Frustum(const GlobalPosition3D & pos, const glm::mat4 & view, const glm::mat4 & projection);
@@ -28,6 +30,8 @@ public:
void updateView(const glm::mat4 & view);
+ [[nodiscard]] bool contains(const AxisAlignedBoundingBox &) const;
+
protected:
static constexpr size_t FACES = 6;
void updateCache();