Hi Mo,

On Thu, Oct 14, 2010 at 3:39 PM, Mo Flanders <[email protected]> wrote:
> Is it possible to use the osgwindows example with setUpViewerAsEmbeddedWindow?

No, for the viewer to handle multiple windows it has to have the
ability to do a makeCurrrent(), relaseContext() and swapBuffers() on
the graphics windows/contexts, and GraphicsWindowEmbedded deliberatly
implements these as a non op.

You should only consider using GraphicsWindowEmbedded when you a have
simple single threaded, single window application that has the OpenGL
graphics window setup via another API that doesn't easily enable one
to create a full GraphicsWindow integration.

> I need two windows one with the depth-buffer and one with the rendered image! 
> And I also want to control the bufferswap by my own!

Can't you just use the OSG's in built graphics window support? It
handles multi-threaded multi-context applications out of the box.

> And another question can i use FBOs in an embedded window?

Yes.

> Or is there a simple solution I did not see or idea how to realize that?

Just use osgViewer's built in functionality.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to