OpenTTD
zoom_type.h
Go to the documentation of this file.
1 /* $Id: zoom_type.h 27134 2015-02-01 20:54:24Z frosch $ */
2 
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  */
9 
12 #ifndef ZOOM_TYPE_H
13 #define ZOOM_TYPE_H
14 
15 #include "core/enum_type.hpp"
16 
17 static int const ZOOM_LVL_SHIFT = 2;
18 static int const ZOOM_LVL_BASE = 1 << ZOOM_LVL_SHIFT;
19 
21 enum ZoomLevel {
22  /* Our possible zoom-levels */
31 
33 
34  /* Here we define in which zoom viewports are */
44 
46 
49 };
51 
52 
54 
55 extern ZoomLevelByte _gui_zoom;
56 #define ZOOM_LVL_GUI (_gui_zoom)
57 
58 #endif /* ZOOM_TYPE_H */