#include <SDL_video.h>
Go to the source code of this file.
Macros | |
#define | SDL_SavePNG(surface, file) SDL_SavePNG_RW(surface, SDL_RWFromFile(file, "wb"), 1) |
Functions | |
int | SDL_SavePNG_RW (SDL_Surface *surface, SDL_RWops *rw, int freedst) |
SDL_Surface * | SDL_PNGFormatAlpha (SDL_Surface *src) |
#define SDL_SavePNG | ( | surface, | |
file | |||
) | SDL_SavePNG_RW(surface, SDL_RWFromFile(file, "wb"), 1) |
Definition at line 16 of file savepng.h.
Referenced by image::save_image().
SDL_Surface* SDL_PNGFormatAlpha | ( | SDL_Surface * | src | ) |
Definition at line 65 of file savepng.cpp.
References bmask, gmask, i, png_error_SDL(), png_write_SDL(), rmask, SAVEPNG_ERROR, and SAVEPNG_SUCCESS.