AHA! So there IS a way to get a handle to an SDL window! Seeing as I'm writing Windows-only code, this will come quite in handy! Thank you very much, bobstevens!
I'm still going to use sdl_ttf, for the sake of seeing what it can do. I use my own font engine in all of my projects (well, more recent ones at least) and if this'll save me time, so much the better.
I'm done converting my first C game from DirectDraw to SDL. The code isn't 100% error-free and doesn't check for a lot of stuff (it assumes you WILL be able to provide 640x480x32 res, which isn't necessarily the case) but it works. The only thing SDL are the graphics; the rest is dumb Windows API usage (like GetAsyncKeyState; yuck). Here's a
link to it. I'll post the fully-SDL-converted version if anyone wants it.
(Hit enter to start. Move with the arrows, shoot with space. You can only go up and down and yes, there's no sound. I didn't know how to use DirectSound and DirectMusic back then
Probably choke-full of bugs but eh. If the timing's off, it's probably because I use GetTickCount as a timer... for now. Oh, and there's no text yet. Kinda bland because you can't see your score. Hit escape when you've had enough.)
Edit: screwed up the link.
[edited by - RuneLancer on March 28, 2004 6:30:28 PM]