X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FAabb.hh;h=f51531a49d49db13e1fd3f87b77510c59ed747c4;hp=b43e194784df06c96892f11d8b7129fe8fef4587;hb=493ddb59a8620b49dfa0ff62ce93395ebfd02e86;hpb=bc5448947f45c0ba4d22b5ad736b7c545d8ec075 diff --git a/src/Moof/Aabb.hh b/src/Moof/Aabb.hh index b43e194..f51531a 100644 --- a/src/Moof/Aabb.hh +++ b/src/Moof/Aabb.hh @@ -29,6 +29,7 @@ #ifndef _MOOF_AABB_HH_ #define _MOOF_AABB_HH_ +#include #include #include @@ -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; };