From 4a4bca88f5c13a5d55f64ae4ebf09a5076f982d0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 29 May 2007 13:28:40 +0000 Subject: [PATCH] Added support for specifying which screen number to place the window --- examples/osgsimulation/osgsimulation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/osgsimulation/osgsimulation.cpp b/examples/osgsimulation/osgsimulation.cpp index 257910d8f..0f9ddd08e 100644 --- a/examples/osgsimulation/osgsimulation.cpp +++ b/examples/osgsimulation/osgsimulation.cpp @@ -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.