Nameless Engine
Loading...
Searching...
No Matches
Frustum.h
1#pragma once
2
3// Custom.
4#include "math/GLMath.hpp"
5#include "misc/shapes/Plane.h"
6#include "misc/shapes/AABB.h"
7#include "misc/shapes/Sphere.h"
8#include "misc/shapes/Cone.h"
9
10namespace ne {
12 struct Frustum {
24 bool isAabbInFrustum(const AABB& aabbInModelSpace, const glm::mat4x4& worldMatrix) const;
25
36 bool isSphereInFrustum(const Sphere& sphere) const;
37
48 bool isConeInFrustum(const Cone& cone) const;
49
52
55
58
61
64
67 };
68}
Definition: AABB.h:14
Definition: Cone.h:9
Definition: Frustum.h:12
bool isAabbInFrustum(const AABB &aabbInModelSpace, const glm::mat4x4 &worldMatrix) const
Definition: Frustum.cpp:8
Plane topFace
Definition: Frustum.h:51
Plane nearFace
Definition: Frustum.h:63
bool isConeInFrustum(const Cone &cone) const
Definition: Frustum.cpp:65
Plane farFace
Definition: Frustum.h:66
Plane bottomFace
Definition: Frustum.h:54
Plane rightFace
Definition: Frustum.h:57
bool isSphereInFrustum(const Sphere &sphere) const
Definition: Frustum.cpp:59
Plane leftFace
Definition: Frustum.h:60
Definition: Plane.h:8
Definition: Sphere.h:9