Hi.

The WindowSizeHandler (in osgViewer/ViewerEventHandlers) does exactly this.
Look at the "toggleFullScreen" method.

Better yet, just add a WindowSizeHandler to your viewers event hander list
with

viewer.addEventHandler(new osgViewer::WindowSizeHandler());

Hope that helps,

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

Reply via email to