21 void saveRGBA(
size_t width, std::span<const uint32_t*> rowPointers,
22 const std::string& filename);
23 void saveGrayscale(
size_t width, std::span<const uint8_t*> rowPointers,
24 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 uint8_t * > rowPointers_, const std::string &filename)
void saveRGBA(size_t width, std::span< const uint32_t * > rowPointers, const std::string &filename)
SDLSurfacePtr load(const std::string &filename, bool want32bpp)
Load the given PNG file in a SDL_Surface.