Hi Martin, RenderSurface and osg::GraphicsContext/osgViewer::GraphicsWindow are kinda equivalent. With osgViewer rather than pack all the platform support into a single class like Producer does it has a series of subclasses, so your get osgViewer::PixelBufferWin32 subclassed from osg::GraphicContext, and osgViewer::GraphicsWindowWin32 subclassed from osgViewer::GraphicsWindow.
If you want to get the window handles then you can do it by doing a dynamic_cast<GraphicsWindowWin32> of the Camera::getGraphicsContext() and then getHWND()/getHDC/getWGLContext() or equivalent for X11,Carbon or Cocoa. When setting the inherited window details you will create the graphics context according to a set of osg::GraphicsContext::Traits, which you can pass in the window details. See the examples like osgviewerMFC for a guide. Robert. On Thu, Feb 18, 2010 at 10:54 PM, Martin Naylor <[email protected]> wrote: > Hi all, > > Another stupid quick question: > > What is the equivalent of the old producer call in the latest CVS osg? > > > > viewer.getCamera()-> getRenderSurface()->setWindow(hScrWindow); > > > > I am trying to find it but think i am going around circles.. > > > > Thanks > > > > Martin. > > _______________________________________________ > 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

