19 void save(
unsigned width,
unsigned height,
const void** rowPointers,
20 const PixelFormat& format,
const std::string&
filename);
21 void save(
unsigned width,
unsigned height,
const void** rowPointers,
24 const void** rowPointers,
const std::string&
filename);
Wrapper around a SDL_Surface.
Utility functions to hide the complexity of saving to a PNG file.
void saveGrayscale(unsigned width, unsigned height, const void **rowPointers, const std::string &filename)
SDLSurfacePtr load(const std::string &filename, bool want32bpp)
Load the given PNG file in a SDL_Surface.
void save(unsigned width, unsigned height, const void **rowPointers, const PixelFormat &format, const std::string &filename)
constexpr const char *const filename