]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Aabb.cc
refactoring the scene class
[chaz/yoink] / src / Moof / Aabb.cc
index 842d9d8a51b3fbfec7b8d1bd9f62ecf950bb1ea8..df09cdd6e37b8b121d180b367adb4c6ae6f0e7c1 100644 (file)
@@ -27,7 +27,7 @@
 *******************************************************************************/
 
 #include "Aabb.hh"
-#include "Camera.hh"
+#include "Frustum.hh"
 #include "OpenGL.hh"
 #include "Texture.hh"
 
@@ -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().contains(*this);
+       return frustum.contains(*this);
 }
 
 
This page took 0.017384 seconds and 4 git commands to generate.