Added support for GrapicsOpeations that are reused each frame, cleaned up

osgcamera example.
This commit is contained in:
Robert Osfield
2005-08-30 22:28:30 +00:00
parent 994192657a
commit c02e91c1b4
5 changed files with 133 additions and 57 deletions

View File

@@ -838,6 +838,9 @@ unsigned int Geometry::getGLObjectSizeHint() const
void Geometry::drawImplementation(State& state) const
{
// osg::notify(osg::NOTICE)<<"Geometry::drawImplementation"<<std::endl;
if (_internalOptimizedGeometry.valid())
{
_internalOptimizedGeometry->drawImplementation(state);