]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Sphere.cc
refactoring the scene class
[chaz/yoink] / src / Moof / Sphere.cc
index d8d089dec0adb0b28235b4ab0449132def0183d0..97298323a61efb9590c67ca7b0e84571403485d2 100644 (file)
@@ -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);
 }
 
 
This page took 0.016979 seconds and 4 git commands to generate.