ScummVM API documentation
includes.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef DGDS_INCLUDES_H
23#define DGDS_INCLUDES_H
24
25namespace Dgds {
26
27#define MKTAG24(a0, a1, a2) ((uint32)((a2) | (a1) << 8 | ((a0) << 16)))
28
29#define ID_BIN MKTAG24('B', 'I', 'N')
30#define ID_CGA MKTAG24('C', 'G', 'A')
31#define ID_DAT MKTAG24('D', 'A', 'T')
32#define ID_DIM MKTAG24('D', 'I', 'M')
33#define ID_EGA MKTAG24('E', 'G', 'A')
34#define ID_FNM MKTAG24('F', 'N', 'M')
35#define ID_FNT MKTAG24('F', 'N', 'T')
36#define ID_GAD MKTAG24('G', 'A', 'D')
37#define ID_GDS MKTAG24('G', 'D', 'S')
38#define ID_INF MKTAG24('I', 'N', 'F')
39#define ID_MTX MKTAG24('M', 'T', 'X')
40#define ID_OFF MKTAG24('O', 'F', 'F')
41#define ID_PAG MKTAG24('P', 'A', 'G')
42#define ID_PAL MKTAG24('P', 'A', 'L')
43#define ID_RAW MKTAG24('R', 'A', 'W')
44#define ID_REQ MKTAG24('R', 'E', 'Q')
45#define ID_RES MKTAG24('R', 'E', 'S')
46#define ID_SCR MKTAG24('S', 'C', 'R')
47#define ID_SCN MKTAG24('S', 'C', 'N')
48#define ID_SDS MKTAG24('S', 'D', 'S')
49#define ID_SND MKTAG24('S', 'N', 'D')
50#define ID_SNG MKTAG24('S', 'N', 'G')
51#define ID_TAG MKTAG24('T', 'A', 'G')
52#define ID_TT3 MKTAG24('T', 'T', '3')
53#define ID_TTI MKTAG24('T', 'T', 'I')
54#define ID_VER MKTAG24('V', 'E', 'R')
55#define ID_VGA MKTAG24('V', 'G', 'A')
56#define ID_VQT MKTAG24('V', 'Q', 'T')
57
58/* Heart of China */
59#define ID_MA8 MKTAG24('M', 'A', '8')
60#define ID_DDS MKTAG24('D', 'D', 'S')
61#define ID_THD MKTAG24('T', 'H', 'D')
62
63/* EX_ are File extensions types */
64#define EX_ADH MKTAG24('A', 'D', 'H')
65#define EX_ADL MKTAG24('A', 'D', 'L')
66#define EX_ADS MKTAG24('A', 'D', 'S')
67#define EX_AMG MKTAG24('A', 'M', 'G')
68#define EX_BMP MKTAG24('B', 'M', 'P')
69#define EX_CDS MKTAG24('C', 'D', 'S')
70#define EX_FNT MKTAG24('F', 'N', 'T')
71#define EX_GDS MKTAG24('G', 'D', 'S')
72#define EX_INS MKTAG24('I', 'N', 'S')
73#define EX_PAL MKTAG24('P', 'A', 'L')
74#define EX_RAW MKTAG24('R', 'A', 'W')
75#define EX_REQ MKTAG24('R', 'E', 'Q')
76#define EX_RST MKTAG24('R', 'S', 'T')
77#define EX_SCR MKTAG24('S', 'C', 'R')
78#define EX_SDS MKTAG24('S', 'D', 'S')
79#define EX_SNG MKTAG24('S', 'N', 'G')
80#define EX_SX MKTAG24('S', 'X', 0)
81#define EX_TTM MKTAG24('T', 'T', 'M')
82#define EX_VIN MKTAG24('V', 'I', 'N')
83
84/* Heart of China */
85#define EX_DAT MKTAG24('D', 'A', 'T')
86#define EX_DDS MKTAG24('D', 'D', 'S')
87#define EX_TDS MKTAG24('T', 'D', 'S')
88
89#define EX_OVL MKTAG24('O', 'V', 'L')
90
91#define SCREEN_WIDTH (DgdsEngine::getInstance()->getGameId() != GID_CASTAWAY ? 320 : 640)
92#define SCREEN_HEIGHT (DgdsEngine::getInstance()->getGameId() != GID_CASTAWAY ? 200 : 480)
93#define SCREEN_HEIGHT_FIXED 200
94
95} // End of namespace Dgds
96
97#endif // DGDS_INCLUDES_H