[SDL] SDL 1.3 sneak peek (July 2006)
Daniel Bünzli
daniel.buenzli at epfl.ch
Tue Jun 27 13:12:19 PDT 2006
Le 27 juin 06 à 21:23, Sam Lantinga a écrit :
>> What is the semantics for OpenGL contexts, a single context for all
>> windows ? Or do you plan to revamp the gl api (e.g. to allow multiple
>> contexts and resource sharing) ?
>
> I plan eventually for you to be able to create a context per window.
> Whether or not you can share them between windows will take some
> research,
> but I think you'll be able to.
Excellent.
In fact I wasn't talking about sharing contexts between windows, but
sharing resources -- that is textures, display lists, vertex buffers
and shaders -- between contexts. Context creation routines in agl and
glx (and wgl ?) allow you to specify another context to share
resources with.
A context per window, as does glut, would be fine with me (and maybe
simpler to implement) as long as I can share resources between them.
Especially interesting is sharing a windowed context with a
fullscreen one to allow seamless toggle between fullscreen and
windowed mode.
Best,
Daniel
More information about the SDL
mailing list