20 void save(
size_t width, std::span<const void*> rowPointers,
21 const PixelFormat& format,
const std::string& filename);
22 void save(
size_t width, std::span<const void*> rowPointers,
23 const std::string& filename);
24 void saveGrayscale(
size_t width, std::span<const void*> rowPointers,
25 const std::string& filename);
Wrapper around a SDL_Surface.
Utility functions to hide the complexity of saving to a PNG file.
void saveGrayscale(size_t width, std::span< 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(size_t width, std::span< const void * > rowPointers, const PixelFormat &format, const std::string &filename)