]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Cullable.hh
improved new vorbisfile compatibility
[chaz/yoink] / src / Moof / Cullable.hh
index d543d0f07ecc040f6b744a00fcbb50ee5e16a024..64b43eb03197c5ec0a76ff20ee52507def0af81f 100644 (file)
 #ifndef _MOOF_CULLABLE_HH_
 #define _MOOF_CULLABLE_HH_
 
-#include <Moof/Camera.hh>
-
 
 namespace Mf {
 
 
+class Frustum;
+
 /**
- * Interface for anything that can be culled.  This can include more than just
- * frustrum culling.
+ * Interface for anything that can be culled.
  */
 
 class Cullable
 {
 public:
-       virtual bool isVisible(const Camera& cam) = 0;
+       virtual ~Cullable() {}
+
+       virtual bool isVisible(const Frustum& frustum) const
+       {
+               // unless determined otherwise, assume visible
+               return true;
+       }
 };
 
 
This page took 0.017245 seconds and 4 git commands to generate.