I sat down for three hours this evening after a pleasant night out with
three young ladies and patiently started ripping apart SDL to see how it
works. My compliments to you, Sam, for developing such an easily-expandable
engine, although some documentation may well be useful. Everything appears
to be very nicely laid out, and easy to expand.
I also had a gander at the glX specifications and sort of plodded my way
through the archives, and am pleased to report that, (A) yes, combining SDL
and glX is possible, and (B) yes, I could probably do it. AFAICT what is
needed is to rip the video code right out of the X driver and to plug in glX
code, since the input/threading/audio code doesn’t seem like it would tangle
The problems are first and foremost that implementing some of the issues
surrounding converting bitmaps on the fly, but this can probably be dealt
with by blitting them in certain modes and by using Hermes a lot, the end
result of which would be rather an interesting kludge… but if you don’t
mind putting up with poor performance on that end, glX can be integrated.
Besides, if the 3D is fast and furious, who’d care about the bitmaps?
Anyways, this will probably be my sort of Christmas-break project. Usually,
come break times, I hole myself up with a hefty supply of Coke, tea, coffee,
sugar, and chips, go nocturnal, and bash out code in 8 hour shifts until
burn out ensues, usually a month later. My one problem with doing it,
however, is that I’m not sure how good glX support is for my second hand
3Dfx Voodoo 1, so if anybody’d like to buy me a Matrox (which AFAIK are
supported very well) that would speed up development time . I doubt
anybody will, though. I do know that John Carmack was threatening to hand
out video cards to anybody who wanted to become a gl Nazi and monitor
standards, which is very nifty of him.
The only other concern I have, which maybe somebody like Sam Lantinga can
answer is will there be any objections from Loki Software higher-ups if I do
this myself, and attempt to get it integrated into SDL as a whole? I’m
serious about doing this, mainly because I’d like to use SDL for my own
sinister GL projects!
Nicholas Vining (Mordred)
e-mail: vining at pacificcoast.net