Hi Amal,

Programmatically you can do it by either setting up a
GraphcsContext::Traits with the size of window you want and then
getting the OSG to create it for you, see osgcamera and osgwindows
examples for this, or use the osgViewer::View::setUpViewInWindow(...)
method which conveniently wraps it all up for you.

osgviewer also comes with support for reading a --window x y w h
commandline parameter.  All osgViewer::Viewer apps also read the
OSG_WINDOW env var on construction, this allow you to set the default
window dimensions.

Robert.

On 8/14/07, Amal <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>  How do I go about changing the viewer size in OSG. I dont want the default
> full screen. I want it just a smaller size .
>
> Amal.
>
> _______________________________________________
> 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

Reply via email to