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"

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

Reply via email to