Added new osgcallback demo, and updated small API changes to improve the

flexiblity of callbacks.

Added beginings of convex planer occlusions culling.
This commit is contained in:
Robert Osfield
2002-05-28 23:43:22 +00:00
parent a5a267d305
commit ae5e4f848f
22 changed files with 658 additions and 33 deletions

View File

@@ -20,6 +20,8 @@ Geode::Geode(const Geode& geode,const CopyOp& copyop):
Drawable* drawable = copyop(itr->get());
if (drawable) addDrawable(drawable);
}
_occluder = dynamic_cast<ConvexPlanerOccluder*>(copyop(geode.getOccluder()));
}
Geode::~Geode()
@@ -101,6 +103,8 @@ const bool Geode::computeBound() const
{
BoundingBox bb;
// if (_occluder.valid()) _occluder->computeBound(bb);
DrawableList::const_iterator itr;
for(itr=_drawables.begin();
itr!=_drawables.end();
@@ -126,6 +130,8 @@ const bool Geode::computeBound() const
}
}
// if (_occluder.valid()) _occluder->computeBound(_bsphere);
_bsphere_computed=true;
return true;
}