Pioneer
Loading...
Searching...
No Matches
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
10namespace FileSystem {
11 class FileSourceFS;
12}
13
14namespace Graphics {
15 struct ScreendumpState;
16}
17
18// stride is in bytes (bytes per row)
19void write_png(FileSystem::FileSourceFS &fs, const std::string &path, const Uint8 *bytes, int width, int height, int stride, int bytes_per_pixel);
20
21void 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