projects
/
chaz
/
yoink
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
542e50a
)
added missing octree method
author
Charles McGarvey
<chazmcgarvey@brokenzipper.com>
Tue, 13 Oct 2009 05:20:12 +0000
(23:20 -0600)
committer
Charles McGarvey
<chazmcgarvey@brokenzipper.com>
Tue, 13 Oct 2009 05:20:12 +0000
(23:20 -0600)
src/Moof/Octree.hh
patch
|
blob
|
history
diff --git
a/src/Moof/Octree.hh
b/src/Moof/Octree.hh
index e69e1edf817b67e7b4567ac508e88883ea7de52c..e3e2225f03299636137b21aa3a54aeb38fd25b38 100644
(file)
--- a/
src/Moof/Octree.hh
+++ b/
src/Moof/Octree.hh
@@
-100,7
+100,7
@@
struct OctreeNode : public Entity
if (!objects.empty())
{
aabb_.draw();
if (!objects.empty())
{
aabb_.draw();
- sphere_.draw();
+
//
sphere_.draw();
}
}
}
}
@@
-166,6
+166,11
@@
public:
OctreeNodeP reinsert(EntityP entity, OctreeNodeP node);
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());
void drawIfVisible(Scalar alpha, const Frustum& frustum)
{
drawIfVisible(alpha, frustum, tree_.root());
This page took
0.018048 seconds
and
4
git commands to generate.