12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef _SDL_SAVEPNG
- #define _SDL_SAVEPNG
- #include <SDL_video.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define SDL_SavePNG(surface, file) \
- SDL_SavePNG_RW(surface, SDL_RWFromFile(file, "wb"), 1)
- extern int SDL_SavePNG_RW(SDL_Surface *surface, SDL_RWops *rw, int freedst);
- extern SDL_Surface *SDL_PNGFormatAlpha(SDL_Surface *src);
- #ifdef __cplusplus
- }
- #endif
- #endif
|