Hi Eric, To get he screen resolution you need to the osg::GraphicsContext::WindowSystemInterface and query the getScreenResolution methods. Have a look at the osgcamera example for guidance.
Robert. On Thu, May 29, 2008 at 9:17 PM, eheft <[EMAIL PROTECTED]> wrote: > I have a camera drawback and have some legacy OpenGL code that needs > to know the size of the viewport. I've tried various combinations of > Viewer->GetCamera() in the main. And the callback class does not seem > to have anything that can get to the viewport. > > Currently I am just using win32 api calls to get the screen > resolution, which works when in full screen mode. > > This has got to be so trivial that no one has posted on the subject, > at least that I could find. > > Thank you, > Eric > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

