ScummVM API documentation
bitmap.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 STARTREK_BITMAP_H
23
#define STARTREK_BITMAP_H
24
25
#include "common/ptr.h"
26
#include "common/stream.h"
27
#include "common/memstream.h"
28
29
namespace
StarTrek
{
30
31
struct
Bitmap
{
32
int16 xoffset;
33
int16 yoffset;
34
int16 width;
35
int16 height;
36
byte *pixels;
37
38
Bitmap
(
Common::MemoryReadStreamEndian
*stream,
bool
closeStream =
true
);
39
Bitmap
(
const
Bitmap
&bitmap);
40
Bitmap
(
int
w,
int
h);
41
~
Bitmap
();
42
43
protected
:
44
int32 pixelsArraySize;
45
Bitmap
() : xoffset(0), yoffset(0), width(0), height(0), pixels(
nullptr
), pixelsArraySize(0) {}
46
};
47
48
55
struct
TextBitmap
:
Bitmap
{
56
TextBitmap
(
int
w,
int
h);
57
};
58
59
66
struct
StubBitmap
:
Bitmap
{
67
StubBitmap
(
int
w,
int
h);
68
};
69
70
}
// End of namespace StarTrek
71
72
#endif
StarTrek::StubBitmap
Definition:
bitmap.h:66
Common::MemoryReadStreamEndian
Definition:
memstream.h:103
StarTrek::Bitmap
Definition:
bitmap.h:31
StarTrek
Definition:
action.h:27
StarTrek::TextBitmap
Definition:
bitmap.h:55
engines
startrek
bitmap.h
Generated on Sun Dec 22 2024 09:09:27 for ScummVM API documentation by
1.8.13