X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FAabb.cc;h=df09cdd6e37b8b121d180b367adb4c6ae6f0e7c1;hp=1fb382f7fab7069bd8e1b8378f5d42a4daa6ce78;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=bfa6212d09d8735d8fd5e2638188e4a99f21ada4 diff --git a/src/Moof/Aabb.cc b/src/Moof/Aabb.cc index 1fb382f..df09cdd 100644 --- a/src/Moof/Aabb.cc +++ b/src/Moof/Aabb.cc @@ -27,7 +27,7 @@ *******************************************************************************/ #include "Aabb.hh" -#include "Camera.hh" +#include "Frustum.hh" #include "OpenGL.hh" #include "Texture.hh" @@ -138,9 +138,9 @@ void Aabb::draw(Scalar alpha) const glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); } -bool Aabb::isVisible(const Camera& cam) const +bool Aabb::isVisible(const Frustum& frustum) const { - return cam.getFrustum().containsAabb(*this); + return frustum.contains(*this); }