[haiku-gsoc] Re: SDL Patch 01

  • From: "Ryan C. Gordon" <icculus@xxxxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Mon, 27 Jun 2011 05:21:40 -0400


nothing about the SDL port, but I am wondering what thread runs the SDL
event loop? If main() eventually runs the SDL event loop, then it's the

Stephan's advice is correct.

I'll mention here too that moving the 1.2 code to 1.3 is going to be painful as there are almost no 1-to-1 mappings. Use the 1.3 Windows, Mac, or X11 code as a template for the SDL API, and the 1.2 BeOS code for a starting point on how to talk to the OS, and write it from scratch. Your email mentioned a rewrite, so you're probably already on this path, but in case you're not, you should seriously consider it.

Some good news, though: the BeOS audio code was already ported to the new 1.3 API, so assuming there aren't any Haiku-specific additions to be made to it, that part should already work. :) (that's in SDL/src/audio/baudio, if anyone is curious. I'm not against renaming this "haiku" or something, though!).

--ryan.


Other related posts: