[…]
The only real issues I can see is that
-
the SDL API lacks “context” arguments. (You need explicit
context switches as for OpenGL in similar situations.)
-
SDL is not thread safe. (Which is also the case with many
OpenGL implementations, and many other libraries.)
Those two are not that simple issues. And I assume your definition of
"real issue" is “issue caused by fundamental things”. It does not
cover, however, real world issues like: no backend provides support
for multiple windows, so they need to be changed all.
The idea is to use “multiple backends”, rather than extending one or more
of them to support multiple windows. The advantage is that you may open
entirely independent contexts, using different backends. (Although that
would require some fiddling with system variables, as it is now.
Sure, it is possible, but what you end up with it not SDL anymore
but some new thing that is based on SDL.
Well, I don’t think so, but even if that’s the case, I might well do it,
if I really need it before SDL 1.3 is usable. Even if I’d be sort of
wasting my time on a dead-end branch, it beats reimplementing SDL from
scratch, doesn’t it? heh
So I would rather like to see this effort and energy spent on making
a proper new SDL verion (i.e. work on TNG / 1.3) than hacking away at
SDL 1.2 like this.
Of course, that would be much more worthwhile - and unless I manage to
get up to the same speed with the toolkit as I did with Kobo Deluxe, I
probably won’t need it soon enougd to warrant “messing” with 1.2.
Of course, if you feel like it, nobody will held you back
Yeah, I know; no one cares to keep me from wasting my time!
Another issue might be that the ones who have wanted this feature so
far don’t want to/can’t hack it, while the ones that might do that
kind of stuff are convinced that SDL 1.2 can’t do multiple contexts,
period.
Well, the current SDL can’t do it. The APIs don’t support it. Period.
Of course, you could add new APIs (and even if you only “modify” old
APIs, the result is essentially a new API). Sure.
Modifying stuff will just break things and cause confusion - the changes
would only be visible in the form of some entirely new calls.
However, note that the real issue here might well be that I need to
read the code more carefully.
=)
Hmm… You know something I won’t like, don’t you!?
//David Olofson — Programmer, Reologica Instruments AB
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |
-------------------------------------> http://olofson.net -'On Thursday 11 October 2001 17:03, Max Horn wrote: