1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/graphics/sdl_image/pkg-descr
Sunpoet Po-Chuan Hsieh 8f47a48540 Update MASTER_SITES and WWW
Approved by:	portmgr (blanket)
2019-04-21 19:09:28 +00:00

19 lines
590 B
Plaintext

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: https://www.libsdl.org/projects/SDL_image/