4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
10 /** @file screenshot.h Functions to make screenshots. */
15 void InitializeScreenshotFormats();
17 const char *GetScreenshotFormatDesc(int i
);
18 void SetScreenshotFormat(uint i
);
19 const char *GetCurrentScreenshotExtension();
21 /** Type of requested screenshot */
23 SC_VIEWPORT
, ///< Screenshot of viewport.
24 SC_RAW
, ///< Raw screenshot from blitter buffer.
25 SC_ZOOMEDIN
, ///< Zoomed in screenshot of the visible area.
26 SC_WORLD
, ///< World screenshot.
27 SC_HEIGHTMAP
, ///< Heightmap of the world.
30 bool MakeHeightmapScreenshot(const char *filename
);
31 bool MakeScreenshot(ScreenshotType t
, const char *name
);
33 extern char _screenshot_format_name
[8];
34 extern uint _num_screenshot_formats
;
35 extern uint _cur_screenshot_format
;
36 extern char _full_screenshot_name
[MAX_PATH
];
38 #endif /* SCREENSHOT_H */