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);


Oops. Just realized I missed the ScreenIdentifier parameter in the code above. You get the idea, though.

--"J"


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to