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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user