devel/sdl2-image 2.8.10 OpenBSD
SDL2 image library
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Thomas Frohwein <[email protected]>
- Categories
- devel, graphics
Description
This is a simple library to load images of various formats as SDL2 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.
Install
Binary package:
pkg_add sdl2-image
From the ports tree:
cd /usr/ports/devel/sdl2-image && make install
Dependencies
Build dependencies 3
Run dependencies 8
Required by 55
- devel/flatzebra
- devel/pygame
- emulators/gsplus
- emulators/vice
- games/alephone/alephone
- games/blobwars
- games/brogue
- games/cataclysm-dda
- games/cdogs-sdl
- games/chromium-bsu
- games/colobot/colobot
- games/commandergenius
- games/devilutionx
- games/dsda-doom
- games/enigma
- games/exult
- games/fallingtime
- games/fifechan
- games/fifengine
- games/flare
- games/freedink/game
- games/freeserf
- games/freesynd
- games/gigalomania
- games/keeperrl
- games/koboredux
- games/lincity-ng
- games/manaplus
- games/mirrormagic
- games/naev
- games/pioneer
- games/redeclipse
- games/renpy
- games/rocksndiamonds
- games/sauerbraten
- games/sdlpop
- games/solarus/solarus
- games/starfighter
- games/stone-soup
- games/stratagus
- games/supertux
- games/tbftss
- games/tome4
- games/trackballs
- games/tuxpaint
- games/valyriatear
- games/vcmi
- games/vectoroids
- games/wesnoth
- games/widelands
- graphics/decker
- graphics/grafx2
- sysutils/gource
- sysutils/logstalgia
- x11/cegui