[SDL] sdlmain

Torsten Giebl wizard at syntheticsw.com
Tue Jul 4 08:46:03 PDT 2006


Hello !


If SDLmain has bugs or problems, they should be fixed.

For me SDLmain is perfect and also other
Toolkits use some kind of SDLmain for example FLTK.

SDLmain can be used, it makes your life easier,
but you do not have to use it. You have the freedom.

If not your main function would look like this:

#ifdef _WIN32
int WinMain .....
#else if BEOS
int BeMain ...
#else
.
.
.
#endif

I would suggest to add an option to sdl-config to let
out SDLmain and the other things then, for example
--no-SDLmain

sdl-config --cxxflags --libs --no-SDLmain


CU





More information about the SDL mailing list