ScummVM API documentation
amiga.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 CHAMBER_AMIGA_H
23#define CHAMBER_AMIGA_H
24
25#include "chamber/renderer.h"
26
27namespace Chamber {
28
29class AmigaRenderer : public EGARenderer {
30public:
31 void switchToGraphicsMode() override;
32 void colorSelect(byte csel) override; // csel is the real palette index
33 void selectCursor(uint16 num) override; // SOURI.BIN: big-endian cursor planes
34 void drawVLine(uint16 x, uint16 y, uint16 l, byte color, byte *target) override;
35 void drawHLine(uint16 x, uint16 y, uint16 l, byte color, byte *target) override;
36};
37
38#define AMIGA_NUM_PALETTES 31
39
40extern const byte *amiga_palette_table;
41
42// Master's-Orbit full 16-colour palette (the one scene not using base+delta)
43extern const byte *amiga_room_palette_table;
44
45void amigaApplyPalette(byte index);
46
47// Compose a room palette from the zone palette_index (base + per-index delta)
48void amigaApplyRoomPalette(byte index);
49
50// Slice the static resources out of the uncompressed KULT executable; returns 1 on success
51int16 loadAmigaStaticData();
52
53} // End of namespace Chamber
54
55#endif // CHAMBER_AMIGA_H
Definition: amiga.h:29
Definition: renderer.h:145