Hi Robert,

On 25/5/09 2:55 PM, Robert Osfield wrote:
You'll also need makeCurrent and releaseContext methods as well to be
able to multiple graphics context work.  I don't recall SDL having
these - I looked for these when I wrote the osgviewersdl example but
couldn't implement a GaphicsWindowSDL purely because of these.

Basically SDL can't do multiple context work.

Okay, but OSG can, right? So if SDL thinks it's only dealing with a single context and OSG does the context work (make pbuffer context current, render, release) wouldn't that work?

The best you can do in your position is try to use the OSG's FBO
support at least then you could do everything from a single graphics
context.

But OSG and SDL would still get in each others way w.r.t. OpenGL state handling.
I was (still am) hoping that I can get OSG to create and manage a separate context alongside the SDL OpenGL context. Worst case the only linkage would be via glReadPixels from the OSG context and uploading to another context.

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

Reply via email to