Re: [osg-users] How can I define the screen which show me my viewer?

2010-06-10 Thread Jean-Sébastien Guay
Hi Martin, I get the number of screens with the following lines: _wsi = _gc->getWindowingSystemInterface(); std::cout << "Detected Screens: " << _wsi->getNumScreens() << std::endl; My question is: How can I define the screen which show me my viewer? If you're creating your window yourself us

Re: [osg-users] How can I define the screen which show me my viewer?

2010-06-10 Thread Torben Dannhauer
Hi LittleG, you can control the screen which OSG should use with the env variable OSG_SCREEN You could set this env variable in your software with putenv. Thank you! Cheers, Torben -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28773#28773

Re: [osg-users] How can I define the screen which show me my viewer?

2010-06-10 Thread Trajce (Nick) Nikolov
looks in the traits for setup your viewer. osgcompositeviewer example shows usage of traits -Nick 2010/6/10 Martin Großer > Hello, > > I get the number of screens with the following lines: > > _wsi = _gc->getWindowingSystemInterface(); > std::cout << "Detected Screens: " << _wsi->getNumScreens

[osg-users] How can I define the screen which show me my viewer?

2010-06-10 Thread Martin Großer
Hello, I get the number of screens with the following lines: _wsi = _gc->getWindowingSystemInterface(); std::cout << "Detected Screens: " << _wsi->getNumScreens() << std::endl; My question is: How can I define the screen which show me my viewer? Cheers Martin _