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 ILLUSIONS_GRAPHICS_H
23#define ILLUSIONS_GRAPHICS_H
24
25#include "common/array.h"
26#include "common/rect.h"
27#include "common/stream.h"
28
29namespace Illusions {
30
32 int16 _width, _height;
33 void load(Common::SeekableReadStream &stream);
34
35 WidthHeight() : _width(0), _height(0) {}
36};
37
38struct SurfInfo {
39 uint32 _pixelSize;
40 WidthHeight _dimensions;
41 void load(Common::SeekableReadStream &stream);
42};
43
44struct WRect {
45 Common::Point _topLeft;
46 Common::Point _bottomRight;
47};
48
49struct RGB {
50 byte r, g, b;
51};
52
53struct NamedPoint {
54 uint32 _namedPointId;
55 Common::Point _pt;
56 void load(Common::SeekableReadStream &stream);
57};
58
60public:
61 bool findNamedPoint(uint32 namedPointId, Common::Point &pt);
62 void load(uint count, Common::SeekableReadStream &stream);
63protected:
65 typedef Items::iterator ItemsIterator;
66 Items _namedPoints;
67};
68
69void loadPoint(Common::SeekableReadStream &stream, Common::Point &pt);
70
71} // End of namespace Illusions
72
73#endif // ILLUSIONS_GRAPHICS_H
NamedPoint * iterator
Definition: array.h:54
Definition: stream.h:745
Definition: graphics.h:59
Definition: rect.h:144
Definition: graphics.h:53
Definition: graphics.h:49
Definition: graphics.h:38
Definition: graphics.h:44
Definition: graphics.h:31