I got SDL 1.3 to fully initialisize a window - without and use of 1.2-commands of course!
There's one problem though: The renderer seems to somehow get screwed when you user minimizes the window and then opens it again... I haven't found a decent solution yet.
If you want more information about the SDL-functions, justlook at the declaration - there's a big block of comment to tell you what it's for and how to use it.
Anyways, so far it's easy:
First, initialisize the video sub-system:
If the first argument is NULL then the default video driver is choosen; the second argumentdefines the flags to initialisize with. The only flag useable here is SDL_INIT_EVENTTHREAD, which puts the events into an own thread - but that's not supported by some OSs. If you try to initialisize with this flag, but the OS does not support it, SDL will throw an error and exit. On OSs where you have to have the events an an own thread, it's set automatically. As I use Win32 it's 0, because Windows does not support that.
To check if it is available on your platform (in the code) you can use CANT_THREAD_EVENTS in SDL_sysevents.h. So if you prefer threaded events, but also want platform independence, you just use that.
Now that we have initialisized the video sub-system, let's create a window:
I used some stuff defined in libbase.h; I think you can imagine what. I know the streams are not made for _T yet. And the codingstyle is not final at all; it's just something right now, close to what I normally use (for private code). I need to discuss with Ionenbombe how we will format our code.
EDIT: Blogger fucked of the formatation somehow. I wanted to give the code a different font... oh well, you have to live with that. It also fucked with the streaming-operators.. no big deal though.