2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00: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 15:11:33 +00:00
|
|
|
/** @file screenshot.h Functions to make screenshots. */
|
2007-04-04 01:35:16 +00:00
|
|
|
|
2004-11-15 19:25:59 +00:00
|
|
|
#ifndef SCREENSHOT_H
|
|
|
|
#define SCREENSHOT_H
|
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
void InitializeScreenshotFormats();
|
2004-11-15 19:25:59 +00:00
|
|
|
|
|
|
|
const char *GetScreenshotFormatDesc(int i);
|
|
|
|
void SetScreenshotFormat(int i);
|
|
|
|
|
2007-03-07 12:11:48 +00:00
|
|
|
enum ScreenshotType {
|
2006-07-28 21:51:00 +00:00
|
|
|
SC_NONE,
|
|
|
|
SC_VIEWPORT,
|
|
|
|
SC_WORLD
|
2007-03-07 12:11:48 +00:00
|
|
|
};
|
2006-07-28 21:51:00 +00:00
|
|
|
|
2007-03-07 11:47:46 +00:00
|
|
|
bool MakeScreenshot();
|
2009-11-01 18:15:35 +00:00
|
|
|
void RequestScreenshot(ScreenshotType t, const char *name);
|
2007-03-07 11:47:46 +00:00
|
|
|
bool IsScreenshotRequested();
|
2004-11-15 19:25:59 +00:00
|
|
|
|
2005-07-19 06:47:07 +00:00
|
|
|
extern char _screenshot_format_name[8];
|
|
|
|
extern uint _num_screenshot_formats;
|
|
|
|
extern uint _cur_screenshot_format;
|
2009-11-01 18:08:58 +00:00
|
|
|
extern char _screenshot_name[];
|
2005-07-19 06:47:07 +00:00
|
|
|
|
2005-09-18 20:56:44 +00:00
|
|
|
#endif /* SCREENSHOT_H */
|