2005-07-24 16:12:37 +02:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 22:21:05 +02:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file screenshot.h Functions to make screenshots. */
|
2007-04-04 03:35:16 +02:00
|
|
|
|
2004-11-15 20:25:59 +01:00
|
|
|
#ifndef SCREENSHOT_H
|
|
|
|
#define SCREENSHOT_H
|
|
|
|
|
2007-03-07 12:47:46 +01:00
|
|
|
void InitializeScreenshotFormats();
|
2004-11-15 20:25:59 +01:00
|
|
|
|
|
|
|
const char *GetScreenshotFormatDesc(int i);
|
2010-07-01 00:17:53 +02:00
|
|
|
void SetScreenshotFormat(uint i);
|
2011-05-28 15:55:05 +02:00
|
|
|
const char *GetCurrentScreenshotExtension();
|
2004-11-15 20:25:59 +01:00
|
|
|
|
2009-11-18 00:08:55 +01:00
|
|
|
/** Type of requested screenshot */
|
2007-03-07 13:11:48 +01:00
|
|
|
enum ScreenshotType {
|
2011-05-28 15:54:18 +02:00
|
|
|
SC_VIEWPORT, ///< Screenshot of viewport.
|
|
|
|
SC_RAW, ///< Raw screenshot from blitter buffer.
|
|
|
|
SC_ZOOMEDIN, ///< Zoomed in screenshot of the visible area.
|
|
|
|
SC_WORLD, ///< World screenshot.
|
|
|
|
SC_HEIGHTMAP, ///< Heightmap of the world.
|
2007-03-07 13:11:48 +01:00
|
|
|
};
|
2006-07-28 23:51:00 +02:00
|
|
|
|
2011-05-28 15:54:18 +02:00
|
|
|
bool MakeHeightmapScreenshot(const char *filename);
|
2009-12-19 20:21:37 +01:00
|
|
|
bool MakeScreenshot(ScreenshotType t, const char *name);
|
2004-11-15 20:25:59 +01:00
|
|
|
|
2005-07-19 08:47:07 +02:00
|
|
|
extern char _screenshot_format_name[8];
|
|
|
|
extern uint _num_screenshot_formats;
|
|
|
|
extern uint _cur_screenshot_format;
|
2009-11-18 00:08:55 +01:00
|
|
|
extern char _full_screenshot_name[MAX_PATH];
|
2005-07-19 08:47:07 +02:00
|
|
|
|
2005-09-18 22:56:44 +02:00
|
|
|
#endif /* SCREENSHOT_H */
|