Moved the new osg::IndexedGeometry class over the top of the the existing
osg::Geometry class, and removed the temporary IndexedGeometry. Port the rest of the OSG across to account for the change in method calls - osg::Geometry::addPrimitive(..) becomes osg::addPrimitiveSet(..)
This commit is contained in:
@@ -187,7 +187,7 @@ void DynGeoSet::addToGeometry(osg::Geometry* geom)
|
||||
|
||||
if (_primtype!=osg::PrimitiveSet::POLYGON)
|
||||
{
|
||||
geom->addPrimitive(new osg::DrawArrays(_primtype,indexBase,_coordList.size()));
|
||||
geom->addPrimitiveSet(new osg::DrawArrays(_primtype,indexBase,_coordList.size()));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -195,7 +195,7 @@ void DynGeoSet::addToGeometry(osg::Geometry* geom)
|
||||
itr!=_primLenList.end();
|
||||
++itr)
|
||||
{
|
||||
geom->addPrimitive(new osg::DrawArrays(_primtype,indexBase,*itr));
|
||||
geom->addPrimitiveSet(new osg::DrawArrays(_primtype,indexBase,*itr));
|
||||
indexBase += *itr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user