Added support for sharing arrays in the .osg format for osg::Geometry.

Fixed the osgUtil::Optimizater so it takes into account sharing of arrays when
deciding whether an geometry can be merged or not.
This commit is contained in:
Robert Osfield
2003-01-07 16:29:07 +00:00
parent 53204898f3
commit e6b64a5550
3 changed files with 214 additions and 95 deletions

View File

@@ -188,6 +188,8 @@ class OSGUTIL_EXPORT Optimizer
static bool mergeGeode(osg::Geode& geode);
static bool geometryContainsSharedArrays(osg::Geometry& geom);
static bool mergeGeometry(osg::Geometry& lhs,osg::Geometry& rhs);
static bool mergePrimitive(osg::DrawArrays& lhs,osg::DrawArrays& rhs);