Re: [osg-users] window position and size

2011-12-12 Thread Guy Volckaert
you caj also use the environment variable OSG_WINDOW, e.g.: set OSG_WINDOW = 40 40 640 480 Note: space delimited. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44341#44341 ___ osg-users mailing

Re: [osg-users] window position and size

2009-06-30 Thread Robert Osfield
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

Re: [osg-users] window position and size

2009-06-30 Thread Guy Volckaert
You're the man!!! Thanks. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=14697#14697 ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] window position and size

2009-06-29 Thread Guy Volckaert
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