logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

IMG_ReadXPMFromArray - Load an XPM image from a memory array.

Availability

       This function is available since SDL_image 3.0.0.

Description

       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().

Function Parameters

xpm    a null-terminated array of strings that comprise XPM data.

Header File

       Defined in SDL3_image/SDL_image.h

Name

       IMG_ReadXPMFromArray - Load an XPM image from a memory array.

Return Value

       Returns a new SDL surface, or NULL on error.

See Also

(3), IMG_ReadXPMFromArrayToRGB888(3)

SDL_image                                        SDL_image 3.2.4                         IMG_ReadXPMFromArray(3)

Synopsis

#include"SDL3_image/SDL_image.h"SDL_Surface*IMG_ReadXPMFromArray(char**xpm);

See Also