Chunnel: Adjust z position of vehicles in chunnels to go "under" the water.
[openttd-joker.git] / src / screenshot.h
blob6ae1f571b7f86be14f26df605899face40f7802e
1 /* $Id: screenshot.h 24805 2012-12-09 16:53:01Z frosch $ */
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 *GetCurrentScreenshotExtension();
19 /** Type of requested screenshot */
20 enum ScreenshotType {
21 SC_VIEWPORT, ///< Screenshot of viewport.
22 SC_CRASHLOG, ///< Raw screenshot from blitter buffer.
23 SC_ZOOMEDIN, ///< Fully zoomed in screenshot of the visible area.
24 SC_DEFAULTZOOM, ///< Zoomed to default zoom level screenshot of the visible area.
25 SC_WORLD, ///< World screenshot.
26 SC_HEIGHTMAP, ///< Heightmap of the world.
27 SC_MINIMAP, ///< Flat screenshot of the minimap showing the routes.
28 SC_MINI_HEIGHTMAP, ///< Flat screenshot of the minimap showing only topography.
29 SC_MINI_INDUSTRYMAP, ///< Flat screenshot of the minimap showing color coded industries.
30 SC_MINI_OWNERMAP, ///< Flat screenshot of the minimap showing routes colored by owner.
33 class SmallMapWindow;
35 void SetupScreenshotViewport(ScreenshotType t, struct ViewPort *vp);
36 bool MakeHeightmapScreenshot(const char *filename);
37 bool MakeSmallMapScreenshot(unsigned int width, unsigned int height, SmallMapWindow *window);
38 bool MakeScreenshot(ScreenshotType t, const char *name);
40 extern char _screenshot_format_name[8];
41 extern uint _num_screenshot_formats;
42 extern uint _cur_screenshot_format;
43 extern char _full_screenshot_name[MAX_PATH];
45 #endif /* SCREENSHOT_H */