From 660e768e64c2c30928c7f157d5ff34195a4347fa Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Mon, 12 Oct 2009 23:20:12 -0600 Subject: [PATCH] added missing octree method --- src/Moof/Octree.hh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()); -- 2.43.0