[SDL] sdlmain
Daniel Bünzli
daniel.buenzli at epfl.ch
Tue Jul 4 10:42:02 PDT 2006
Le 4 juil. 06 à 17:46, Torsten Giebl a écrit :
> SDLmain can be used, it makes your life easier,
> but you do not have to use it. You have the freedom.
This is not true. On osx you have to use it because sdl is based on
Cocoa which requires control inversion (i.e. Cocoa forces you to
enter a function that never returns to handle input). Would the osx
driver be based on Carbon you wouldn't be forced to use sdlmain.
I have nothing against sdlmain if it simplifies multiplatform setup.
However when you are forced to use it, it can get in the way in some
cases, one example being in bindings to higher level languages that
have toplevel loops (ocaml, lisp, python, etc).
Daniel
P.S. I could give a hand on a carbon based driver for 1.3.
More information about the SDL
mailing list