The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Functions
savepng.h File Reference
#include <SDL_video.h>
Include dependency graph for savepng.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

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

Function Documentation

SDL_Surface* SDL_PNGFormatAlpha ( SDL_Surface *  src)

Definition at line 44 of file savepng.cpp.

References surf.

Referenced by image::save_image().

int SDL_SavePNG_RW ( SDL_Surface *  surface,
SDL_RWops *  rw,
int  freedst 
)

Definition at line 65 of file savepng.cpp.

References bmask, gmask, i, png_error_SDL(), png_write_SDL(), rmask, SAVEPNG_ERROR, and SAVEPNG_SUCCESS.