1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 04:23:20 +01:00

implement OpenGL screenshot

This commit is contained in:
Ted John
2016-06-11 03:06:30 +01:00
parent b0b0b82fd1
commit db01547ae6
7 changed files with 108 additions and 2 deletions

View File

@@ -115,6 +115,22 @@ int screenshot_dump_png(rct_drawpixelinfo *dpi)
}
}
int screenshot_dump_png_32bpp(sint32 width, sint32 height, const void *pixels)
{
// Get a free screenshot path
int index;
char path[MAX_PATH] = "";
if ((index = screenshot_get_next_path(path)) == -1) {
return -1;
}
if (image_io_png_write_32bpp(width, height, pixels, path)) {
return index;
} else {
return -1;
}
}
void screenshot_giant()
{
int originalRotation = get_current_rotation();

View File

@@ -22,6 +22,7 @@
void screenshot_check();
int screenshot_dump();
int screenshot_dump_png(rct_drawpixelinfo *dpi);
int screenshot_dump_png_32bpp(sint32 width, sint32 height, const void *pixels);
void screenshot_giant();
int cmdline_for_screenshot(const char **argv, int argc);