2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file screenshot.h Functions to make screenshots. */
13 void InitializeScreenshotFormats();
15 const char *GetCurrentScreenshotExtension();
17 /** Type of requested screenshot */
19 SC_VIEWPORT
, ///< Screenshot of viewport.
20 SC_CRASHLOG
, ///< Raw screenshot from blitter buffer.
21 SC_ZOOMEDIN
, ///< Fully zoomed in screenshot of the visible area.
22 SC_DEFAULTZOOM
, ///< Zoomed to default zoom level screenshot of the visible area.
23 SC_WORLD
, ///< World screenshot.
24 SC_HEIGHTMAP
, ///< Heightmap of the world.
25 SC_MINIMAP
, ///< Minimap screenshot.
28 void SetupScreenshotViewport(ScreenshotType t
, struct Viewport
*vp
, uint32 width
= 0, uint32 height
= 0);
29 bool MakeHeightmapScreenshot(const char *filename
);
30 void MakeScreenshotWithConfirm(ScreenshotType t
);
31 bool MakeScreenshot(ScreenshotType t
, std::string name
, uint32 width
= 0, uint32 height
= 0);
32 bool MakeMinimapWorldScreenshot();
34 extern std::string _screenshot_format_name
;
35 extern uint _num_screenshot_formats
;
36 extern uint _cur_screenshot_format
;
37 extern char _full_screenshot_name
[MAX_PATH
];
39 #endif /* SCREENSHOT_H */