CC: | CSJEWELL |
Subject: | Ext-lib: SDL |
Hi,
please find the first draft of SDL library for strawberry perl. To
install it simply unzip libsdl-1.2.13-bin_20090825.ZIP into your
c:\strawberry.
The SDL pack is based on the official binary release
SDL-devel-1.2.13-mingw32.tar.gz from http://www.libsdl.org with two changes:
1) lib\libSDL.dll.a renamed to SDL-1.2.13\lib\libSDL.a
2) include\SDL_rwops.h patched like this:
-#define SDL_RWseek(ctx, offset, whence) (ctx)->seek(ctx, offset,
whence)
-#define SDL_RWtell(ctx) (ctx)->seek(ctx, 0,
RW_SEEK_CUR)
-#define SDL_RWread(ctx, ptr, size, n) (ctx)->read(ctx, ptr, size, n)
-#define SDL_RWwrite(ctx, ptr, size, n) (ctx)->write(ctx, ptr,
size, n)
-#define SDL_RWclose(ctx) (ctx)->close(ctx)
+#define SDL_RWseek(ctx, offset, whence) ((ctx)->seek)(ctx,
offset, whence)
+#define SDL_RWtell(ctx) ((ctx)->seek)(ctx, 0,
RW_SEEK_CUR)
+#define SDL_RWread(ctx, ptr, size, n) ((ctx)->read)(ctx, ptr,
size, n)
+#define SDL_RWwrite(ctx, ptr, size, n) ((ctx)->write)(ctx, ptr,
size, n)
+#define SDL_RWclose(ctx) ((ctx)->close)(ctx)
It is just base SDL library - after we manage to make SDL_Perl module
Win32 compatible we can add additional libs e.g. SDL_mixer, SDL_image,
SDL_ttf, SDL_gfx ...
--
kmx