Clean up up osg::Geometry, removing long deprecated support for array indices and BIND_PER_PRIMITIVE binding that forced OpenGL slow paths. osg::Geometry is now smaller and only supports OpenGL fasts paths.
New methods osg::Geometry::containsDeprecatedData() and osg::Geometry::fixDeprecatedData() provide a means for converting geometries that still use the array indices and BIND_PER_PRIMITIVE across to complient versions. Cleaned up the rest of the OSG where use of array indices and BIND_PER_PRIMITIVE were accessed or used.
This commit is contained in:
@@ -527,19 +527,6 @@ void POVWriterNodeVisitor::processGeometry( const Geometry *g,
|
||||
if( g->getVertexArray() == NULL || g->getVertexArray()->getNumElements() == 0 )
|
||||
return;
|
||||
|
||||
if(( g->getVertexIndices() != NULL &&
|
||||
g->getVertexIndices()->getNumElements() != 0 ) ||
|
||||
( g->getNormalIndices() != NULL &&
|
||||
g->getNormalIndices()->getNumElements() != 0 ) ||
|
||||
( g->getTexCoordIndices(0) != NULL &&
|
||||
g->getTexCoordIndices(0)->getNumElements() != 0 ))
|
||||
{
|
||||
notify( WARN ) << "POV Writer WARNING: "
|
||||
"Geometry with indices is not " << endl <<
|
||||
"supported yet by POV plugin. Skipping geometry." << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
// mesh2
|
||||
_fout << "mesh2" << endl;
|
||||
_fout << "{" << endl;
|
||||
|
||||
Reference in New Issue
Block a user