diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-20 07:16:53 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-20 07:16:53 +0000 |
commit | 604432fe139d273b0bdcd99f42b7ac1f42dfcb93 (patch) | |
tree | 972f6f3ce8a7d5eff2c9a68bd68348fe22dfdf81 /graphics/sdl_image/pkg-descr | |
parent | 7724974b65684888872ac839d65a224390810d25 (diff) | |
download | ports-604432fe139d273b0bdcd99f42b7ac1f42dfcb93.tar.gz ports-604432fe139d273b0bdcd99f42b7ac1f42dfcb93.zip |
Notes
Diffstat (limited to 'graphics/sdl_image/pkg-descr')
-rw-r--r-- | graphics/sdl_image/pkg-descr | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/sdl_image/pkg-descr b/graphics/sdl_image/pkg-descr new file mode 100644 index 000000000000..2e038f43be37 --- /dev/null +++ b/graphics/sdl_image/pkg-descr @@ -0,0 +1,18 @@ +This is a simple library to load images of various formats as SDL surfaces. +This library supports BMP, PPM, PCX, GIF, JPEG, PNG, TGA, and TIFF formats. + +API: +#include "SDL_image.h" + + SDL_Surface *IMG_Load(const char *file); +or + SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); +or + SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc, char *type); + +where type is a string specifying the format (i.e. "PNG" or "pcx"). +Note that IMG_Load_RW cannot load TGA images. + +An example program 'showimage' is included, with source in showimage.c + +WWW: http://www.devolution.com/~slouken/SDL/projects/SDL_image/ |