Translations update
[openttd/fttd.git] / src / screenshot.h
blob7456a09de368909281eb197988a3a24472d81d29
1 /* $Id$ */
3 /*
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/>.
8 */
10 /** @file screenshot.h Functions to make screenshots. */
12 #ifndef SCREENSHOT_H
13 #define SCREENSHOT_H
15 void InitializeScreenshotFormats();
17 const char *GetScreenshotFormatDesc(int i);
18 bool GetScreenshotFormatSupports_32bpp(int i);
19 void SetScreenshotFormat(uint i);
20 const char *GetCurrentScreenshotExtension();
22 /** Type of requested screenshot */
23 enum ScreenshotType {
24 SC_VIEWPORT, ///< Screenshot of viewport.
25 SC_CRASHLOG, ///< Raw screenshot from blitter buffer.
26 SC_ZOOMEDIN, ///< Fully zoomed in screenshot of the visible area.
27 SC_DEFAULTZOOM, ///< Zoomed to default zoom level screenshot of the visible area.
28 SC_WORLD, ///< World screenshot.
29 SC_HEIGHTMAP, ///< Heightmap of the world.
32 void SetupScreenshotViewport(ScreenshotType t, struct ViewPort *vp);
33 bool MakeHeightmapScreenshot(const char *filename);
34 bool MakeScreenshot(ScreenshotType t, const char *name);
36 extern char _screenshot_format_name[8];
37 extern uint _num_screenshot_formats;
38 extern uint _cur_screenshot_format;
39 extern char _full_screenshot_name[MAX_PATH];
41 #endif /* SCREENSHOT_H */