To get Fullscreen on one screen add the following to your viewer:
viewer.setUpViewOnSingleScreen(screenNr);  //Default is 0
 
If you want windowed mode use viewer.setUpViewInWindow(....) instead
 
Tip: Add a osgViewer::WindowSizeHandler to your viewer, then you can
switch between fullscreen(f) and windowed in different resolutions (> <)
 
Filip

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of wsacul
Sent: 6. juli 2007 01:35
To: osg-users@openscenegraph.net
Subject: [osg-users] Not going to two windows across two screens with
osgviewer?


Can anyone tell what code I would need to add into osgviewer.cpp so that
it starts up with a single window on a single monitor in windowed mode?
Currently I'm using Cygwin, when osgviewer starts it is in fullscreen
across two monitors (and also gets backwards which is left and right),
and when I minimize it minimizes it to two windowed views- I think I've
seen discussion of this previously, but I can't find the right search
terms to dig that up. 

Thanks,

Lucas

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to