Hi Guy,
To set the size and position of a window you use the
osgViewer::GraphicsWindow method:
/** Set the window's position and size.*/
void setWindowRectangle(int x, int y, int width, int height)
The GraphicsContext::resized() method only informs the context that
the window has been resized and that it needs to update it's cameras
aspect ratios/viewports.
Robert.
On Tue, Jun 30, 2009 at 1:14 AM, Guy Volckaert<[email protected]> wrote:
> Hi,
>
> I've implemented the osg::GraphicsContext::ResizedCallback to get notified
> when the user resizes the window via the mouse. That work perfectly.
>
> However, I also need to change the window size programatically (when the user
> presses a button, for example). I tried calling
> osg::GraphicsContext::resized() function, but that does not always work.
>
> Apart from calling ::SetWindowPos(), is there an osg call that allow the
> windows position and size to be adjusted?
>
> Guy
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=14668#14668
>
>
>
>
>
> _______________________________________________
> 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