You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
387 B

#include <cstdio>
#include <string>
#include <SDL.h>
#include <expected.hpp>
#include "engine/surface.hpp"
namespace devilution {
/**
* @brief Writes the given surface to `dst` as PNG.
*
* Takes ownership of `dst` and closes it when done.
*/
tl::expected<void, std::string>
WriteSurfaceToFilePng(const Surface &buf, SDL_RWops *dst);
} // namespace devilution