Added --keystone <filename> command line support into DisplaySettings, and added OSG_KEYSTONE_FILES env var support into osg::DisplaySettings.

This commit is contained in:
Robert Osfield
2013-05-10 11:56:09 +00:00
parent 9c1c34d765
commit 9eb5465ff5
2 changed files with 52 additions and 0 deletions

View File

@@ -64,6 +64,19 @@ int main( int argc, char **argv )
// add camera manipulator
viewer.setCameraManipulator(new osgGA::TrackballManipulator());
OSG_NOTICE<<"KeystoneFileNames.size()="<<osg::DisplaySettings::instance()->getKeystoneFileNames().size()<<std::endl;
for(osg::DisplaySettings::FileNames::iterator itr = osg::DisplaySettings::instance()->getKeystoneFileNames().begin();
itr != osg::DisplaySettings::instance()->getKeystoneFileNames().end();
++itr)
{
OSG_NOTICE<<" keystone ="<<*itr<<std::endl;
}
if (ds->getStereo())
{