]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Aabb.hh
revamped scene drawing in preparation for octree
[chaz/yoink] / src / Moof / Aabb.hh
index b43e194784df06c96892f11d8b7129fe8fef4587..f51531a49d49db13e1fd3f87b77510c59ed747c4 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef _MOOF_AABB_HH_
 #define _MOOF_AABB_HH_
 
+#include <Moof/Cullable.hh>
 #include <Moof/Drawable.hh>
 #include <Moof/Math.hh>
 
@@ -40,7 +41,7 @@ namespace Mf {
  * Axis-aligned Bounding Box
  */
 
-struct Aabb : public Drawable
+struct Aabb : public Cullable, public Drawable
 {
        Vector3 min;
        Vector3 max;
@@ -103,7 +104,8 @@ struct Aabb : public Drawable
                                           (min[2] + max[2]) / 2.0);
        }
 
-       void draw(Scalar alpha) const;
+       void draw(Scalar alpha = 0.0) const;
+       bool isVisible(const Camera& cam) const;
 };
 
 
This page took 0.023644 seconds and 4 git commands to generate.