mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 20:02:35 +03:00
3cf7852e03
git-svn-id: svn://kolibrios.org@5131 a494cfbc-eb01-0410-851d-a64ba20cac60 |
||
---|---|---|
.. | ||
anim.c | ||
anim.c.BAK | ||
LICENSE | ||
makeanim.c | ||
makeanim.c.BAK | ||
Makefile | ||
Makefile.demo | ||
README | ||
SDL_anim.h | ||
ship.ani | ||
showanim.c |
SDL_anim 0.2 The latest version of this library is available from: http://tamale.net/SDL_anim/ This is a simple library to load animations and blit them to SDL surfaces. This library supports PNG anim files. API: #include "SDL_anim.h" SDL_Animation *Anim_Load( const char *file ); int Anim_Free( SDL_Animation *anim ); int Anim_GetFrameNum( float start, float now ); int Anim_GetFrameRect( int frame, SDL_Rect *rect ); int Anim_BlitFrame( SDL_Surface dest, float start, float now ); int Anim_BlitFrameNum( SDL_Surface dest, int frame ); int Anim_DisplayFormat( SDL_Animation *anim ); Two programs are included: `showanim' is an example program that uses SDL_anim. `makeanim' creates PNG anim files. SDL_anim requires: libpng http://www.cdrom.com/pub/png/ zlib http://www.cdrom.com/pub/infozip/zlib/ This library is under the GNU Library General Public License, see the file "LICENSE" for details. To build under unix: gcc -I/home/mike/include/SDL/ -L/home/mike/lib Anim.c makeanim.c -o makeanim -lpng -lz -lSDL -lSDLmain -lpthread