Hi Robert, all,
> ... but I just thought if the OS/driver can give us the info for the
> physical screen setup we could avoid having that in the config file too.
I just looked at src/osgViewer/GraphicsWindowWin32.cpp and noticed that
the Win32WindowingSystem (subclass of
osg::GraphicsContext::WindowingSystemInterface) has a method
getScreenPosition(si, x, y, w, h) which gives me the information I need
(i.e. the relative position of each screen, hence their physical
arrangement). In other words, for 2 side-by-side screens, it will return
screen 1 = 0, 0, 1280, 1024
screen 2 = 1280, 0, 1280, 1024
and for 2 screens one above the other, it will return
screen 1 = 0, 0, 1280, 1024
screen 2 = 0, 1024, 1280, 1024
The only problem is that this class is not exposed, so I cannot use that
method. I could copy the code into my project, but that's unclean, plus
I wouldn't get any support for other OSes...
Assuming the same thing is possible for X and/or MacOS, would it be
possible to expose this method in
osg::GraphicsContext::WindowingSystemInterface? It would then be
possible to get osgViewer to support screen arrangements other than a
basic horizontal linear setup, plus it would be nice for applications to
use as well :-)
Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org