Renderer/DebugDrawer: Add support for Frustum

This commit is contained in:
SirLynix
2022-11-20 15:43:31 +01:00
committed by Jérôme Leclercq
parent f572d229d9
commit a5d4b8f28d
6 changed files with 72 additions and 3 deletions

View File

@@ -32,6 +32,8 @@ namespace Nz
Frustum(const Frustum& frustum) = default;
~Frustum() = default;
Vector3<T> ComputeCorner(BoxCorner corner) const;
bool Contains(const BoundingVolume<T>& volume) const;
bool Contains(const Box<T>& box) const;
bool Contains(const OrientedBox<T>& orientedBox) const;
@@ -47,8 +49,6 @@ namespace Nz
IntersectionSide Intersect(const Sphere<T>& sphere) const;
IntersectionSide Intersect(const Vector3<T>* points, std::size_t pointCount) const;
template<typename U> Frustum& Set(const Frustum<U>& frustum);
std::string ToString() const;
Frustum& operator=(const Frustum& other) = default;