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
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
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
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
_
4 matches
Mail list logo