added missing octree method
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 13 Oct 2009 05:20:12 +0000 (23:20 -0600)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Tue, 13 Oct 2009 05:20:12 +0000 (23:20 -0600)
src/Moof/Octree.hh

index e69e1edf817b67e7b4567ac508e88883ea7de52c..e3e2225f03299636137b21aa3a54aeb38fd25b38 100644 (file)
@@ -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());
This page took 0.019275 seconds and 4 git commands to generate.