table of contents
other versions
- unstable 3.1.0+ds-2
- experimental 3~git20241102~b1c8ec7+ds-1
IMG_ReadXPMFromArrayToRGB888(3) | SDL_image3 FUNCTIONS | IMG_ReadXPMFromArrayToRGB888(3) |
NAME¶
IMG_ReadXPMFromArrayToRGB888 - Load an XPM image from a memory array.
HEADER FILE¶
Defined in SDL3_image/SDL_image.h
SYNOPSIS¶
#include "SDL3_image/SDL_image.h"
SDL_Surface * IMG_ReadXPMFromArrayToRGB888(char **xpm);
DESCRIPTION¶
The returned surface will always be a 32-bit RGB surface. If you want 8-bit indexed colors (and the XPM data allows it), use
IMG_ReadXPMFromArray () instead.
When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface().
FUNCTION PARAMETERS¶
- xpm
- a null-terminated array of strings that comprise XPM data.
RETURN VALUE¶
Returns a new SDL surface, or NULL on error.
AVAILABILITY¶
This function is available since SDL_image 3.0.0.
SEE ALSO¶
•(3), IMG_ReadXPMFromArray(3)
SDL_image 3.1.0 | SDL_image |