kolibrios-gitea/contrib/sdk/sources/SDL-1.2.2/SDL_anim-0.2.1
Sergey Semyonov (Serge) 77815d548c SDL-1.2.2: cleanup
git-svn-id: svn://kolibrios.org@6335 a494cfbc-eb01-0410-851d-a64ba20cac60
2016-03-13 06:17:04 +00:00
..
anim.c autobuild sdlquake 2014-09-18 11:46:53 +00:00
LICENSE autobuild sdlquake 2014-09-18 11:46:53 +00:00
makeanim.c autobuild sdlquake 2014-09-18 11:46:53 +00:00
Makefile autobuild sdlquake 2014-09-18 11:46:53 +00:00
Makefile.demo autobuild sdlquake 2014-09-18 11:46:53 +00:00
README autobuild sdlquake 2014-09-18 11:46:53 +00:00
SDL_anim.h autobuild sdlquake 2014-09-18 11:46:53 +00:00
ship.ani autobuild sdlquake 2014-09-18 11:46:53 +00:00
showanim.c autobuild sdlquake 2014-09-18 11:46:53 +00:00

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