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