pioneer/src/PngWriter.h

24 lines
597 B
C++

// Copyright © 2008-2021 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef PNGWRITER_H
#define PNGWRITER_H
#include <SDL_stdinc.h>
#include <string>
namespace FileSystem {
class FileSourceFS;
}
namespace Graphics {
struct ScreendumpState;
}
// stride is in bytes (bytes per row)
void write_png(FileSystem::FileSourceFS &fs, const std::string &path, const Uint8 *bytes, int width, int height, int stride, int bytes_per_pixel);
void write_screenshot(const Graphics::ScreendumpState &sd, const char *destFile);
#endif