IMG_ReadXPMFromArrayToRGB8883
Load an xpm image from a memory array.
Usage
#include "SDL3_image/SDL_image.h"
SDL_Surface * IMG_ReadXPMFromArrayToRGB888(char **xpm);
Header file
Defined in SDL3_image/SDL_image.h
Overview
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.