X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.cc;h=97298323a61efb9590c67ca7b0e84571403485d2;hp=352d58d503b419ec5cb7d77b5d0e9e30f0047f98;hb=7e898e8ec0ff716e2fc722b883a626a6c346f107;hpb=72d4af22710317acffab861421c4364b1780b6fe diff --git a/src/Moof/Sphere.cc b/src/Moof/Sphere.cc index 352d58d..9729832 100644 --- a/src/Moof/Sphere.cc +++ b/src/Moof/Sphere.cc @@ -26,9 +26,9 @@ *******************************************************************************/ -#include -#include -#include +#include "Frustum.hh" +#include "OpenGL.hh" +#include "Sphere.hh" namespace Mf { @@ -36,16 +36,17 @@ namespace Mf { void Sphere::encloseVertices(const Vector3 vertices[], unsigned count) { + // TODO } void Sphere::draw(Scalar alpha) const { - + // TODO } -bool Sphere::isVisible(const Camera& cam) const +bool Sphere::isVisible(const Frustum& frustum) const { - return cam.getFrustum().containsSphere(*this); + return frustum.contains(*this); }