Hi Michael,

Does anyone know how I could go about stopping the View from doing a back 
buffer swap during the rendering traversals. I am outfitting OSG into current 
rendering engine, but I need the OSG view to not swap the back buffer at the 
end of the rendering traversals. Is there something I need to override or 
derive from one of the view classes? Any suggestions would be appreciated.

Whenever I needed to do something special when the buffers are swapped (in your case it would be just not do it) I subclassed the GraphicsWindowWin32 class and overrode the swapBuffersImplementation() method to do whatever I wanted before calling the base class version. In your case you just wouldn't.

Unfortunately if your app is cross-platform you need to subclass a few different classes and do the same thing in each one, but it's pretty easy.

Then you just explicitly create that type of GraphicsWindow instead of calling osg::GraphicsContext::create() when creating your context.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to