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 COMPOSER_GRAPHICS_H
23
#define COMPOSER_GRAPHICS_H
24
25
#include "common/rect.h"
26
#include "graphics/surface.h"
27
28
namespace
Composer
{
29
30
class
ComposerEngine;
31
32
struct
Sprite
{
33
uint16 _id;
34
uint16 _animId;
35
uint16 _zorder;
36
Common::Point
_pos;
37
Graphics::Surface
_surface;
38
39
bool
contains(
const
Common::Point
&pos)
const
;
40
};
41
42
struct
AnimationEntry
{
43
uint32 state;
44
uint16 op;
45
uint16 priority;
46
uint16 counter;
47
uint16 prevValue;
48
};
49
50
struct
Animation
{
51
Animation
(
Common::SeekableReadStream
*stream, uint16
id
,
Common::Point
basePos, uint32 eventParam);
52
~
Animation
();
53
54
void
seekToCurrPos();
55
56
uint16 _id;
57
Common::Point
_basePos;
58
uint32 _eventParam;
59
60
uint32 _state;
61
uint32 _size;
62
63
Common::Array<AnimationEntry>
_entries;
64
65
uint32 _offset;
66
Common::SeekableReadStream
*_stream;
67
};
68
69
}
// End of namespace Composer
70
71
#endif
Graphics::Surface
Definition:
surface.h:67
Common::Array< AnimationEntry >
Composer::Animation
Definition:
graphics.h:50
Common::SeekableReadStream
Definition:
stream.h:745
Composer::AnimationEntry
Definition:
graphics.h:42
Common::Point
Definition:
rect.h:45
Composer::Sprite
Definition:
graphics.h:32
Composer
Definition:
composer.h:52
engines
composer
graphics.h
Generated on Thu Nov 14 2024 09:03:37 for ScummVM API documentation by
1.8.13