From: Charles McGarvey Date: Tue, 13 Oct 2009 05:20:12 +0000 (-0600) Subject: added missing octree method X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=660e768e64c2c30928c7f157d5ff34195a4347fa;p=chaz%2Fyoink added missing octree method --- diff --git a/src/Moof/Octree.hh b/src/Moof/Octree.hh index e69e1ed..e3e2225 100644 --- a/src/Moof/Octree.hh +++ b/src/Moof/Octree.hh @@ -100,7 +100,7 @@ struct OctreeNode : public Entity if (!objects.empty()) { aabb_.draw(); - sphere_.draw(); + //sphere_.draw(); } } @@ -166,6 +166,11 @@ public: OctreeNodeP reinsert(EntityP entity, OctreeNodeP node); + void draw(Scalar alpha) + { + draw(alpha, tree_.root()); + } + void drawIfVisible(Scalar alpha, const Frustum& frustum) { drawIfVisible(alpha, frustum, tree_.root());