Load a .XPM image from an array.
a pointer to the image as a new SDL_Surface. NULL is returned on errors, like if XPM is not supported, or a read error.
Binds to C-function in SDL_image.h
SDL_Surface *IMG_ReadXPMFromArray(char **xpm)
// load sample.xpm into image #include "sample.xpm" SDL_Surface *image; image=IMG_ReadXPMFromArray(sample_xpm); if(!image) { printf("IMG_ReadXPMFromArray: %s\n", IMG_GetError()); // handle error }
SdlImage Class | Tao.Sdl Namespace | IMG_LoadXPM_RW