Save a surface to a file.
Defined in SDL_surface.h
#define SDL_SaveBMP(surface, file) \
SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, "wb"), 1)
Convenience macro.
/* ... */
/* = ... */;
SDL_Surface *sfc
/* ... */
if (SDL_SaveBMP(sfc, "somefile.bmp") != 0)
{// Error saving bitmap
"SDL_SaveBMP failed: %s\n", SDL_GetError());
printf( }
CategoryAPI, CategoryAPIMacro, CategorySurface