Hi Ulrich,

On Mon, May 25, 2009 at 1:39 PM, Ulrich Hertlein <[email protected]> wrote:
> Hi Robert,
> Indeed it does.  I was hoping to use the various *GetCurrentContext()
> functions available on Carbon, Unix, and Windows.


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.

>> For this type of work you really should not use SDL, it really isn't
>> and API that scales well to handling things like threading or
>> multi-context work.  The inbuilt features of osgViewer are much better
>> for doing this, SDL offers nothing extra - only restrictives relative
>> to what the inbuilt window support can provide.
>
> I hear you :-)
> But this is for an existing framework/API that otherwise wouldn't have a
> dependency on OSG and there probably would be a few unhappy people if I
> suddenly introduce a new dependency as complex as OSG 'just' for the
> windowing...

We'll if you want advanced rendering support such as handling multiple
rendering contexts then SDL just won't cut the mustard, you'll have to
look to a more advanced toolkit.

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.

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

Reply via email to