ScummVM API documentation
screen.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 DRACI_SCREEN_H
23#define DRACI_SCREEN_H
24
25#include "common/scummsys.h"
26
27namespace Draci {
28
29enum ScreenParameters {
30 kScreenWidth = 320,
31 kScreenHeight = 200,
32 kNumColors = 256,
33 kDefaultTransparent = 255
34};
35
36class DraciEngine;
37class Surface;
38
39class Screen {
40
41public:
43 ~Screen();
44
45 void setPalette(const byte *data, uint16 start, uint16 num);
46 void interpolatePalettes(const byte *first, const byte *second, uint16 start, uint16 num, int index, int number);
47 const byte *getPalette() const { return _palette; }
48 void copyToScreen();
49 void clearScreen();
50 Surface *getSurface() { return _surface; }
51
52private:
53 int interpolate(int first, int second, int index, int number);
54
55 Surface *_surface;
56 byte *_palette;
57 byte *_blackPalette;
58 DraciEngine *_vm;
59};
60
61} // End of namespace Draci
62
63#endif // DRACI_SCREEN_H
Definition: draci.h:122
Definition: screen.h:39
Definition: surface.h:31
Definition: animation.h:30