[osg-users] background color fills all the window (not only the given viewport)

Frederic Marmond fmarmond at gmail.com
Wed Mar 25 07:06:41 PDT 2009

hello world,

on a win32 project, I would like to display an osg Viewer in a part of
the window.
I set my osg::GraphicsContext::Traits with coords I want, set the
inheritedWindowData with osgViewer::GraphicsWindowWin32::WindowData(
hwnd )

my model is well placed and displayed (in the area I wanted), but the
entire window is filled with background color.
Is there any way to avoid this? any suggestion ?

thanks in advance


More information about the osg-users mailing list