Bindings for [[ SDL2 Image; https://wiki.libsdl.org/SDL2_image/FrontPage ]].

Collection Info

View Source
Collection
vendor
Path
sdl2/image
Entries
61

Source Files

Constants

7

Types

4

Procedures

50

isICO #

Source
isICO :: proc "c" (src: ^RWops) -> bool ---

Functions to detect a file type, given a seekable source

LoadTyped_RW #

Source
LoadTyped_RW :: proc "c" (src: ^RWops, freesrc: bool, type: cstring) -> ^Surface ---

Load an image from an SDL data source. The 'type' may be one of: "BMP", "GIF", "PNG", etc. If the image format supports a transparent pixel, SDL will set the colorkey for the surface. You can enable RLE acceleration on the surface afterwards by calling: SDL_SetColorKey(image, SDL_RLEACCEL, image->format->colorkey);