X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;fp=src%2FMoof%2FSphere.cc;h=97298323a61efb9590c67ca7b0e84571403485d2;hp=d8d089dec0adb0b28235b4ab0449132def0183d0;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=df541170776dc4ac4f241ca480812bd70bcb6eca diff --git a/src/Moof/Sphere.cc b/src/Moof/Sphere.cc index d8d089d..9729832 100644 --- a/src/Moof/Sphere.cc +++ b/src/Moof/Sphere.cc @@ -26,7 +26,7 @@ *******************************************************************************/ -#include "Camera.hh" +#include "Frustum.hh" #include "OpenGL.hh" #include "Sphere.hh" @@ -44,9 +44,9 @@ void Sphere::draw(Scalar alpha) const // TODO } -bool Sphere::isVisible(const Camera& cam) const +bool Sphere::isVisible(const Frustum& frustum) const { - return cam.getFrustum().contains(*this); + return frustum.contains(*this); }