ScummVM API documentation
graphics.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 M4_GRAPHICS_GRAPHICS_H
23#define M4_GRAPHICS_GRAPHICS_H
24
25namespace M4 {
26
27constexpr int SCREEN_WIDTH = 640;
28constexpr int SCREEN_HEIGHT = 480;
29
30#define FILL_INTERIOR 1 // a flag for use by DrawTile
31#define BORDER 0
32
33//SS FILE DATA DEFINITIONS...
34#define HEAD_M4SS 0x4D345353 //'M4SS'
35#define HEAD_SS4M 0x5353344D //'SS4M'
36#define SS_FORMAT 101 //if it ever has to be printed, divide by 100
37
38#define CELS__PAL 0x2050414C //' PAL'
39#define CELS_LAP_ 0x4C415020 //INTEL ' PAL'
40#define CELS___SS 0x20205353 //' SS'
41#define CELS_SS__ 0x53532020 //INTEL ' SS'
42
43#define CELS_SRC_SIZE 1
44
45#define CELS_FRAME_RATE 3
46#define CELS_PIX_SPEED 4
47#define CELS_SS_MAX_W 5
48#define CELS_SS_MAX_H 6
49
50#define CELS_COUNT 13
51#define SS_HEAD_SIZE 14 //includes all the previous dwords
52#define CELS_OFFSETS 14
53
54#define CELS_STREAM 1
55#define CELS_X 2
56#define CELS_Y 3
57#define CELS_W 4
58#define CELS_H 5
59#define CELS_COMP 6
60
61#define SS_INDV_HEAD 15 //includes all the previous dwords
62#define CELS_DATA 15
63
64} // namespace M4
65
66#endif
Definition: database.h:28