X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FOctree.hh;h=e3e2225f03299636137b21aa3a54aeb38fd25b38;hp=e69e1edf817b67e7b4567ac508e88883ea7de52c;hb=660e768e64c2c30928c7f157d5ff34195a4347fa;hpb=542e50a284c7f5b144a5c97c17f6d89b2af0175c 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());