Feature: Minimap screenshot

This commit is contained in:
TELK
2020-01-05 01:47:37 +09:00
committed by Niels Martin Hansen
parent e7922cd078
commit e04ca904a9
9 changed files with 103 additions and 9 deletions

View File

@@ -22,11 +22,13 @@ enum ScreenshotType {
SC_DEFAULTZOOM, ///< Zoomed to default zoom level screenshot of the visible area.
SC_WORLD, ///< World screenshot.
SC_HEIGHTMAP, ///< Heightmap of the world.
SC_MINIMAP, ///< Minimap screenshot.
};
void SetupScreenshotViewport(ScreenshotType t, struct ViewPort *vp);
bool MakeHeightmapScreenshot(const char *filename);
bool MakeScreenshot(ScreenshotType t, const char *name);
bool MakeMinimapWorldScreenshot();
extern char _screenshot_format_name[8];
extern uint _num_screenshot_formats;