On 10/9/06, Serge Lages <[EMAIL PROTECTED]> wrote:
Hi all,
Sorry for this basic question, but I can't manage to get the screen
resolution of my app during run-time. I tried to use the display
settings but the values returned don't seem correct (something like
0.6 where I need 1024 for example).
Have I missed something ?
If by "resolution" you mean the physical dimensions of the window, then you can do:
int x,y;
unsigned int width, height;
Producer::RenderSurface* rs = viewer.getCamera(0)->getRenderSurface();
rs->getWindowRectangle(x, y, width, height);
std::cout << "Window size & pos: " << width << "x" << height << " at " << x << "," << y << std::endl;
Thibault
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
