X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FOctree.hh;h=e3e2225f03299636137b21aa3a54aeb38fd25b38;hb=ca0f7bdfba63140dca0bd20586d31980f3938eb2;hp=186961f00e7b3d28a55ea7e6bef9a69c7aceb945;hpb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;p=chaz%2Fyoink diff --git a/src/Moof/Octree.hh b/src/Moof/Octree.hh index 186961f..e3e2225 100644 --- a/src/Moof/Octree.hh +++ b/src/Moof/Octree.hh @@ -98,7 +98,10 @@ struct OctreeNode : public Entity } if (!objects.empty()) + { aabb_.draw(); + //sphere_.draw(); + } } @@ -163,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());