Hi Simon, You don't need to create a graphics window let alone realize it to get the window dimensions. The ScreenIdentifier is simply a structure that holds the display name, display number and screen number, and for most computers a default constructed ScreenIdentifier that sets a 0,0 for display and screen number will be just fine. The osgcamera.cpp example has an example of how one would typically use getScreenResolution.
osg::GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsi) { osg::notify(osg::NOTICE)<<"Error, no WindowSystemInterface available, cannot create windows."<<std::endl; return; } unsigned int width, height; wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height); Robert. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org