Updates from Randall Hopper to fix build under IRIX.
This commit is contained in:
parent
f9ee0fe44a
commit
19bf04c205
@ -327,7 +327,7 @@ osg::Node* createModelFromImages(ImageList& imageList)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void write_usage(ostream& out,const std::string& name)
|
void write_usage(std::ostream& out,const std::string& name)
|
||||||
{
|
{
|
||||||
out << std::endl;
|
out << std::endl;
|
||||||
out <<"usage:"<< std::endl;
|
out <<"usage:"<< std::endl;
|
||||||
|
@ -921,8 +921,8 @@ osg::StateSet* ConvertFromPerformer::visitGeoState(osg::GeoSet* osgGeoSet,pfGeoS
|
|||||||
osgStateSet->setAttribute(osgTexGen);
|
osgStateSet->setAttribute(osgTexGen);
|
||||||
break;
|
break;
|
||||||
case(PFTG_EYE_LINEAR_IDENT) :
|
case(PFTG_EYE_LINEAR_IDENT) :
|
||||||
cerr << "TexGen Mode PFTG_EYE_LINEAR_IDENT not currently supported by the OSG,"<<std::endl;
|
std::cerr << "TexGen Mode PFTG_EYE_LINEAR_IDENT not currently supported by the OSG,"<<std::endl;
|
||||||
cerr << " assuming osg::TexGen::EYE_LINEAR."<<std::endl;
|
std::cerr << " assuming osg::TexGen::EYE_LINEAR."<<std::endl;
|
||||||
case(PFTG_EYE_LINEAR) :
|
case(PFTG_EYE_LINEAR) :
|
||||||
osgTexGen->setMode(osg::TexGen::EYE_LINEAR);
|
osgTexGen->setMode(osg::TexGen::EYE_LINEAR);
|
||||||
osgStateSet->setAttribute(osgTexGen);
|
osgStateSet->setAttribute(osgTexGen);
|
||||||
@ -935,15 +935,15 @@ osg::StateSet* ConvertFromPerformer::visitGeoState(osg::GeoSet* osgGeoSet,pfGeoS
|
|||||||
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
||||||
break;
|
break;
|
||||||
case(PFTG_OBJECT_DISTANCE_TO_LINE) :
|
case(PFTG_OBJECT_DISTANCE_TO_LINE) :
|
||||||
cerr << "TexGen Mode PFTG_OBJECT_DISTANCE_TO_LINE not currently supported by the OSG."<<std::endl;
|
std::cerr << "TexGen Mode PFTG_OBJECT_DISTANCE_TO_LINE not currently supported by the OSG."<<std::endl;
|
||||||
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
||||||
break;
|
break;
|
||||||
case(PFTG_EYE_DISTANCE_TO_LINE) :
|
case(PFTG_EYE_DISTANCE_TO_LINE) :
|
||||||
cerr << "TexGen Mode PFTG_EYE_DISTANCE_TO_LINE not currently supported by the OSG."<<std::endl;
|
std::cerr << "TexGen Mode PFTG_EYE_DISTANCE_TO_LINE not currently supported by the OSG."<<std::endl;
|
||||||
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cerr << "TexGen Mode "<<mode<<" not currently supported by the OSG."<<std::endl;
|
std::cerr << "TexGen Mode "<<mode<<" not currently supported by the OSG."<<std::endl;
|
||||||
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
osgTexGen->setStateSetModes(*osgStateSet,osg::StateAttribute::OFF);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user