void MakeScreenshotWithConfirm(ScreenshotType t)
Make a screenshot.
const char * GetCurrentScreenshotExtension()
Get filename extension of current screenshot file format.
std::string _screenshot_format_name
Extension of the current screenshot format (corresponds with #_cur_screenshot_format).
bool MakeHeightmapScreenshot(const char *filename)
Make a heightmap of the current map.
void InitializeScreenshotFormats()
Initialize screenshot format information on startup, with _screenshot_format_name filled from the loa...
bool MakeMinimapWorldScreenshot()
Make a minimap screenshot.
bool MakeScreenshot(ScreenshotType t, std::string name, uint32_t width=0, uint32_t height=0)
Schedule making a screenshot.
std::string _full_screenshot_path
Pathname of the screenshot file.
ScreenshotType
Type of requested screenshot.
@ SC_VIEWPORT
Screenshot of viewport.
@ SC_CRASHLOG
Raw screenshot from blitter buffer.
@ SC_ZOOMEDIN
Fully zoomed in screenshot of the visible area.
@ SC_HEIGHTMAP
Heightmap of the world.
@ SC_WORLD
World screenshot.
@ SC_MINIMAP
Minimap screenshot.
@ SC_DEFAULTZOOM
Zoomed to default zoom level screenshot of the visible area.
void SetupScreenshotViewport(ScreenshotType t, struct Viewport *vp, uint32_t width=0, uint32_t height=0)
Configure a Viewport for rendering (a part of) the map into a screenshot.
Data structure for viewport, display of a part of the world.