Pioneer
PngWriter.h
Go to the documentation of this file.
1 // Copyright © 2008-2023 Pioneer Developers. See AUTHORS.txt for details
2 // Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
3 
4 #ifndef PNGWRITER_H
5 #define PNGWRITER_H
6 
7 #include <SDL_stdinc.h>
8 #include <string>
9 
10 namespace FileSystem {
11  class FileSourceFS;
12 }
13 
14 namespace Graphics {
15  struct ScreendumpState;
16 }
17 
18 // stride is in bytes (bytes per row)
19 void write_png(FileSystem::FileSourceFS &fs, const std::string &path, const Uint8 *bytes, int width, int height, int stride, int bytes_per_pixel);
20 
21 void write_screenshot(const Graphics::ScreendumpState &sd, const char *destFile);
22 
23 #endif
void write_screenshot(const Graphics::ScreendumpState &sd, const char *destFile)
Definition: PngWriter.cpp:53
void write_png(FileSystem::FileSourceFS &fs, const std::string &path, const Uint8 *bytes, int width, int height, int stride, int bytes_per_pixel)
Definition: PngWriter.cpp:9
Definition: FileSystem.h:221
Definition: CityOnPlanet.h:27
Definition: Background.h:14
Definition: Graphics.h:134