[osg-users] Window resize

Stephan Maximilian Huber ratzfatz at digitalmind.de
Mon Oct 15 04:48:09 PDT 2007


Johan Johnsson schrieb:
> Platform: Mindows OS
>
>
>   // Fill the traits structure and get the GraphicsContext for the MAIN  
> window
>   osg::ref_ptr<osg::GraphicsContext::Traits> traits = new  
> osg::GraphicsContext::Traits;
>   traits->screenNum = 0;
>   traits->doubleBuffer = true;
>   traits->sharedContext = 0;
>   traits->windowDecoration = true;
>   traits->width = vd->process.scrnRes.x;
>   traits->height = vd->process.scrnRes.y;
>   traits->x = 0;
>   traits->y = windowHeight - vd->process.scrnRes.y;
>   traits->vsync = true;
add a

traits->supportsResize = true;

and the window should be resizeable,

cheers,

Stephan



More information about the osg-users mailing list