X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FAabb.cc;h=df09cdd6e37b8b121d180b367adb4c6ae6f0e7c1;hb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e;hp=c844251b1d0551b2fcf9c94a8ddf2929c11baf6e;hpb=72d4af22710317acffab861421c4364b1780b6fe;p=chaz%2Fyoink diff --git a/src/Moof/Aabb.cc b/src/Moof/Aabb.cc index c844251..df09cdd 100644 --- a/src/Moof/Aabb.cc +++ b/src/Moof/Aabb.cc @@ -26,10 +26,10 @@ *******************************************************************************/ -#include -#include -#include -#include +#include "Aabb.hh" +#include "Frustum.hh" +#include "OpenGL.hh" +#include "Texture.hh" namespace Mf { @@ -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); }