X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;h=9a9690b245cd59c0fff0c14baa6c74800120b054;hb=7caa2326d25d4fc5ba98318dfccb508bb3e16820;hp=bcc9c9a0918ef1dabfe270441818340bc1f45104;hpb=8881c507009521d08648560984c0f50166224542;p=blank.git diff --git a/src/geometry.hpp b/src/geometry.hpp index bcc9c9a..9a9690b 100644 --- a/src/geometry.hpp +++ b/src/geometry.hpp @@ -7,6 +7,8 @@ namespace blank { +constexpr float PI = 3.141592653589793238462643383279502884; + struct AABB { glm::vec3 min; glm::vec3 max; @@ -30,6 +32,8 @@ bool Intersection( float *dist = nullptr, glm::vec3 *normal = nullptr); +bool CullTest(const AABB &box, const glm::mat4 &MVP); + } #endif