FreeBSD.software
Home/graphics/sdl_image

sdl_image

1.2.12_14

Simple library to load images of various formats as SDL surfaces

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

Origin: graphics/sdl_image
Category: graphics
Size: 166KiB
License: LGPL21
Maintainer: amdmi3@FreeBSD.org
Dependencies: 5 packages
Required by: 142 packages
$pkg install sdl_image

Dependencies (5)

Required By (142 packages)

More in graphics