Added support for pruning old images, recording the Duration in the .osg file, and -o filename output support in osgimagesequence.

This commit is contained in:
Robert Osfield
2008-07-22 16:44:49 +00:00
parent 66c2add024
commit c9dc578186
4 changed files with 55 additions and 12 deletions

View File

@@ -104,7 +104,11 @@ int main(int argc, char **argv)
// create a model from the images and pass it to the viewer.
viewer.setSceneData(createModel());
//osgDB::writeNodeFile(*viewer.getSceneData(),"test.osg");
std::string filename;
if (arguments.read("-o",filename))
{
osgDB::writeNodeFile(*viewer.getSceneData(),filename);
}
return viewer.run();
}