[SDL] SDL 1.3 Compatibility
Edgar Simo
bobbens at gmail.com
Sat Jan 3 00:49:32 PST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I've tried to compile my game for SDL 1.3. I've found a couple things
namely:
- Deprecation of SDLK_* macros in favour of scancodes.
- SDL_PixelFormat changes.
- SDL_Mixer not working as expected.
SDLK_* macros have had some changes, notably both SDLK_FIRST and
SDLK_LAST have been removed (which I both use) and it seems like the
scancodes don't map to ASCII anymore. Is this definitive? Is there a
little howto or something on moving from SDL 1.2 keyboard system to SDL
1.3 keyboard system? This has got me a bit confused.
SDL_PixelFormat seems to be completely different. Will some
compatibility be added for 1.2's SDL_PixelFormat? or will there be a
rough "conversion" guide made to upgrade code to 1.3? I prefer the
former, because I've never been a big fan of preprocessor #ifs in the code.
Other then that it looks pretty solid, haven't really gotten around to
test more functionality though. It seems like I'll have to compile a
new SDL_Mixer for SDL 1.3 since that looks broken, but SDL_Image is
working ok.
Will try to run more regression tests and such when I can get it working
natively without ugly hacks (and start looking at the new API stuff).
Edgar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAklfJpwACgkQolm4VNX3QTwZ6gCfaD9xMPRy8gqnuKOj8jPCHTly
tngAn0NetVETmgv5FevkHymC/AcLkTjD
=Sb9Q
-----END PGP SIGNATURE-----
More information about the SDL
mailing list