Added support for specifying which screen number to place the window

This commit is contained in:
Robert Osfield
2007-05-29 13:28:40 +00:00
parent f012e4516c
commit 4a4bca88f5

View File

@@ -270,7 +270,9 @@ int main(int argc, char **argv)
while (arguments.read("--object")) technique = osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
while (arguments.read("--ortho") || arguments.read("--orthographic")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY;
while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY;
unsigned int screenNum = 0;
while (arguments.read("--screen", screenNum) || arguments.read("-s", screenNum)) viewer.setUpViewOnSingleScreen(screenNum);
// if user request help write it out to cout.