File: graphics.h

package info (click to toggle)
scummvm 2.9.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 450,268 kB
  • sloc: cpp: 4,297,604; asm: 28,322; python: 12,901; sh: 11,219; java: 8,477; xml: 7,843; perl: 2,633; ansic: 2,465; yacc: 1,670; javascript: 1,020; makefile: 933; lex: 578; awk: 275; objc: 82; sed: 11; php: 1
file content (88 lines) | stat: -rw-r--r-- 2,498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* ScummVM - Graphic Adventure Engine
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program 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, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef M4_GRAPHICS_GRAPHICS_H
#define M4_GRAPHICS_GRAPHICS_H

#include "common/scummsys.h"

namespace M4 {

constexpr int SCREEN_WIDTH = 640;
constexpr int SCREEN_HEIGHT = 480;

#define FILL_INTERIOR 1	// a flag for use by DrawTile
#define BORDER 0

#define COLOR_MAX_SHADOW_COLORS			3

#define FONT_SIZE       128
#define FONT_MAX_WIDTH  255
#define FONT_MAX_HEIGHT 200

//SS FILE DATA DEFINITIONS...
#define HEAD_M4SS		0x4D345353	//'M4SS'
#define HEAD_SS4M		0x5353344D	//'SS4M'
#define SS_FORMAT		101			//if it ever has to be printed, divide by 100

#define CELS__PAL		0x2050414C	//' PAL'
#define CELS_LAP_		0x4C415020	//INTEL ' PAL'
#define CELS___SS		0x20205353	//'  SS'
#define CELS_SS__		0x53532020	//INTEL '  SS'

#define CELS_HEADER			0
#define CELS_SRC_SIZE		1
#define CELS_PACKING			2
#define CELS_FRAME_RATE		3
#define CELS_PIX_SPEED		4
#define CELS_SS_MAX_W		5
#define CELS_SS_MAX_H		6
#define CELS_RSVD_3			7
#define CELS_RSVD_4			8
#define CELS_RSVD_5			9
#define CELS_RSVD_6			10
#define CELS_RSVD_7			11
#define CELS_RSVD_8			12
#define CELS_COUNT			13
#define SS_HEAD_SIZE			14	//includes all the previous dwords
#define CELS_OFFSETS			14

#define CELS_PACK				0
#define CELS_STREAM			1
#define CELS_X					2
#define CELS_Y					3
#define CELS_W					4
#define CELS_H					5
#define CELS_COMP				6
#define INDV_RSVD_1			8
#define INDV_RSVD_2			8
#define INDV_RSVD_3			9
#define INDV_RSVD_4			10
#define INDV_RSVD_5			11
#define INDV_RSVD_6			12
#define INDV_RSVD_7			13
#define INDV_RSVD_8			14
#define SS_INDV_HEAD			15	//includes all the previous dwords
#define CELS_DATA				15

} // namespace M4

#endif