ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
25
#include "common/scummsys.h"
26
27
namespace
M4
{
28
29
constexpr
int
SCREEN_WIDTH = 640;
30
constexpr
int
SCREEN_HEIGHT = 480;
31
32
#define FILL_INTERIOR 1 // a flag for use by DrawTile
33
#define BORDER 0
34
35
#define COLOR_MAX_SHADOW_COLORS 3
36
37
#define FONT_SIZE 128
38
#define FONT_MAX_WIDTH 255
39
#define FONT_MAX_HEIGHT 200
40
41
//SS FILE DATA DEFINITIONS...
42
#define HEAD_M4SS 0x4D345353 //'M4SS'
43
#define HEAD_SS4M 0x5353344D //'SS4M'
44
#define SS_FORMAT 101 //if it ever has to be printed, divide by 100
45
46
#define CELS__PAL 0x2050414C //' PAL'
47
#define CELS_LAP_ 0x4C415020 //INTEL ' PAL'
48
#define CELS___SS 0x20205353 //' SS'
49
#define CELS_SS__ 0x53532020 //INTEL ' SS'
50
51
#define CELS_HEADER 0
52
#define CELS_SRC_SIZE 1
53
#define CELS_PACKING 2
54
#define CELS_FRAME_RATE 3
55
#define CELS_PIX_SPEED 4
56
#define CELS_SS_MAX_W 5
57
#define CELS_SS_MAX_H 6
58
#define CELS_RSVD_3 7
59
#define CELS_RSVD_4 8
60
#define CELS_RSVD_5 9
61
#define CELS_RSVD_6 10
62
#define CELS_RSVD_7 11
63
#define CELS_RSVD_8 12
64
#define CELS_COUNT 13
65
#define SS_HEAD_SIZE 14 //includes all the previous dwords
66
#define CELS_OFFSETS 14
67
68
#define CELS_PACK 0
69
#define CELS_STREAM 1
70
#define CELS_X 2
71
#define CELS_Y 3
72
#define CELS_W 4
73
#define CELS_H 5
74
#define CELS_COMP 6
75
#define INDV_RSVD_1 8
76
#define INDV_RSVD_2 8
77
#define INDV_RSVD_3 9
78
#define INDV_RSVD_4 10
79
#define INDV_RSVD_5 11
80
#define INDV_RSVD_6 12
81
#define INDV_RSVD_7 13
82
#define INDV_RSVD_8 14
83
#define SS_INDV_HEAD 15 //includes all the previous dwords
84
#define CELS_DATA 15
85
86
}
// namespace M4
87
88
#endif
M4
Definition:
database.h:28
engines
m4
graphics
graphics.h
Generated on Fri Apr 11 2025 09:03:41 for ScummVM API documentation by
1.8.13