X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FAabb.cc;h=df09cdd6e37b8b121d180b367adb4c6ae6f0e7c1;hp=c844251b1d0551b2fcf9c94a8ddf2929c11baf6e;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=72d4af22710317acffab861421c4364b1780b6fe 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); }