ScummVM API documentation
gui.h
1
2
/* ScummVM - Graphic Adventure Engine
3
*
4
* ScummVM is the legal property of its developers, whose names
5
* are too numerous to list here. Please refer to the COPYRIGHT
6
* file distributed with this source distribution.
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*
21
*/
22
23
#ifndef M4_GUI_GUI_H
24
#define M4_GUI_GUI_H
25
26
#include "m4/m4_types.h"
27
#include "m4/graphics/gr_buff.h"
28
29
namespace
M4
{
30
31
struct
M4sprite
{
32
M4sprite
*next =
nullptr
;
33
M4sprite
*prev =
nullptr
;
34
int32 x = 0;
35
int32 y = 0;
36
int32 w = 0;
37
int32 h = 0;
38
int32 xOffset = 0;
// the "hotspot" of the sprite, ie: the registration point
39
int32 yOffset = 0;
40
uint8 encoding = 0;
41
uint8 *data =
nullptr
;
42
MemHandle sourceHandle =
nullptr
;
43
int32 sourceOffset = 0;
44
};
45
46
struct
transSprite
{
47
M4sprite
*srcSprite =
nullptr
;
48
Buffer
*scrnBuffer =
nullptr
;
49
};
50
51
52
struct
M4Rect
{
53
int32 x1 = 0;
54
int32 y1 = 0;
55
int32 x2 = 0;
56
int32 y2 = 0;
57
};
58
59
struct
RectList
{
60
RectList
*next =
nullptr
;
61
RectList
*prev =
nullptr
;
62
int32 x1 = 0;
63
int32 y1 = 0;
64
int32 x2 = 0;
65
int32 y2 = 0;
66
};
67
68
struct
matte
{
69
matte
*nextMatte =
nullptr
;
70
void
*myScreen =
nullptr
;
71
int32 x1 = 0;
72
int32 y1 = 0;
73
int32 x2 = 0;
74
int32 y2 = 0;
75
int32 w = 0;
76
int32 h = 0;
77
uint8 *SrcBuffer =
nullptr
;
78
uint32 SrcPitch = 0;
79
};
80
81
}
// End of namespace M4
82
83
#endif
M4::RectList
Definition:
gui.h:59
M4::transSprite
Definition:
gui.h:46
M4::matte
Definition:
gui.h:68
M4::Buffer
Definition:
m4_types.h:54
M4
Definition:
database.h:28
M4::M4sprite
Definition:
gui.h:31
M4::M4Rect
Definition:
gui.h:52
engines
m4
gui
gui.h
Generated on Mon Mar 9 2026 09:10:37 for ScummVM API documentation by
1.8.13