imgReadXpmFromArray function
Load an XPM image from a memory array.
The returned surface will be an 8bpp indexed surface, if possible, otherwise it will be 32bpp. If you always want 32-bit data, use IMG_ReadXPMFromArrayToRGB888() instead.
When done with the returned surface, the app should dispose of it with a call to SDL_DestroySurface().
\param xpm a null-terminated array of strings that comprise XPM data. \returns a new SDL surface, or NULL on error.
\since This function is available since SDL_image 3.0.0.
\sa IMG_ReadXPMFromArrayToRGB888
extern SDL_DECLSPEC SDL_Surface * SDLCALL IMG_ReadXPMFromArray(char **xpm)
Implementation
Pointer<SdlSurface> imgReadXpmFromArray(Pointer<Pointer<Int8>> xpm) {
final imgReadXpmFromArrayLookupFunction = libSdl3Image.lookupFunction<
Pointer<SdlSurface> Function(Pointer<Pointer<Int8>> xpm),
Pointer<SdlSurface> Function(
Pointer<Pointer<Int8>> xpm)>('IMG_ReadXPMFromArray');
return imgReadXpmFromArrayLookupFunction(xpm);
}