Hi,
also have a look at what
osgViewer::WindowSizeHandler
does in e.g. osgviewer, you can switch between full screen and windowed.
jp
Clay, Bruce wrote:
Thanks Jason, I’ll dig down that path
Bruce
------------------------------------------------------------------------
*From:* [email protected]
[mailto:[email protected]] *On Behalf Of *Jason
Daly
*Sent:* Tuesday, September 08, 2009 5:02 PM
*To:* OpenSceneGraph Users
*Subject:* Re: [osg-users] version cross reference table
Clay, Bruce wrote:
Is there a cross reference table anywhere that identifies the changes
from one version of OSG to the next?
I am trying to update some OSG based applications I wrote 2 or 3 years
ago and am running into problems finding the new classes to do the old
function.
For example, I used RenderSurface to find the screen size and I believe
to toggle to and from full screen mode. What is the current recommend
method to work with the screen size since RenderSurface is no longer
available?
Welcome back, Bruce :-)
Short answer:
osg::GraphicsContext::WindowingSystemInterface *wsi;
int width, height;
wsi = osg::GraphicsContext::getWindowingSystemInterface();
wsi->getScreenResolution(&width, &height);
The window size and decorations settings (as well as many other
parameters) are handled through the Traits structure in
osg::GraphicsContext. Note that the osg::GraphicsContext API is
implemented by several classes in the osgViewer/api directory
(GraphicsWindowX11, for example).
Long answer:
The newer classes to look at are osg::Camera, osg::GraphicsContext,
osg::View, and all the classes in osgViewer. The functionality you're
missing is probably in one of those. osgUtil::SceneView is still in use
as well, but it's now considered an internal implementation detail.
--"J"
This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.
------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org