Added osgViewer::View::setUpViewInWindow(...) method and command line option into

osgViewer::Viewer to allow you to specify the window dimentions and screen for
the window on startup.
This commit is contained in:
Robert Osfield
2007-06-13 10:38:40 +00:00
parent 8246a6018d
commit a9a55de053
4 changed files with 80 additions and 8 deletions

View File

@@ -118,12 +118,6 @@ int main(int argc, char** argv)
// add the record camera path handler
viewer.addEventHandler(new osgViewer::RecordCameraPathHandler);
unsigned int screenNum;
while (arguments.read("--screen",screenNum))
{
viewer.setUpViewOnSingleScreen(screenNum);
}
// load the data
osg::ref_ptr<osg::Node> loadedModel = osgDB::readNodeFiles(arguments);
if (!loadedModel)