Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1.  
  2. SDL_anim 0.2
  3.  
  4. The latest version of this library is available from:
  5. http://tamale.net/SDL_anim/
  6.  
  7. This is a simple library to load animations and blit them to SDL surfaces.
  8. This library supports PNG anim files.
  9.  
  10. API:
  11. #include "SDL_anim.h"
  12.  
  13.         SDL_Animation *Anim_Load( const char *file );
  14.         int Anim_Free( SDL_Animation *anim );
  15.         int Anim_GetFrameNum( float start, float now );
  16.         int Anim_GetFrameRect( int frame, SDL_Rect *rect );
  17.         int Anim_BlitFrame( SDL_Surface dest, float start, float now );
  18.         int Anim_BlitFrameNum( SDL_Surface dest, int frame );
  19.         int Anim_DisplayFormat( SDL_Animation *anim );
  20.  
  21. Two programs are included:
  22.  
  23.         `showanim' is an example program that uses SDL_anim.
  24.         `makeanim' creates PNG anim files.
  25.  
  26. SDL_anim requires:
  27.         libpng http://www.cdrom.com/pub/png/
  28.         zlib http://www.cdrom.com/pub/infozip/zlib/
  29.  
  30. This library is under the GNU Library General Public License, see the file
  31. "LICENSE" for details.
  32.  
  33. To build under unix:
  34.  
  35. gcc -I/home/mike/include/SDL/ -L/home/mike/lib Anim.c makeanim.c -o makeanim -lpng -lz -lSDL -lSDLmain -lpthread
  36.