On 6/21/07, Mike Connell <[EMAIL PROTECTED]> wrote:
Should it be that the (x,y) refer to the window position, but the (width,height) refer to the desired client area - not window's size?
This is a good question... window decoration changes the window size, and the viewports and internal most computation all need to be in the internal window dimensions not the window+decoration dimensions. With windowing toolkits when you set the size it tends to be in dimensions with decorations and one doesn't know how big the decoration is up front, so you need to set a size and the react when it decides to give you a working area smaller than that. The GraphicsContext::resized(x,y,width,height) method is what is designed to handle the setting of the viewports and camera aspect ratios automatically, but the this method has to be called in response to resize events, including ones where a setWindowRectangle sets the size desired, but then the window manage gives one back smaller than that due to window decoration... Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
