ScummVM API documentation
mcga.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 MADS_CORE_MCGA_H
23#define MADS_CORE_MCGA_H
24
25#include "mads/core/general.h"
26#include "mads/core/font.h"
27
28namespace MADS {
29
30extern int mcga_retrace_computed;
31extern word mcga_retrace_ticks;
32extern int mcga_retrace_max_colors;
33extern int mcga_retrace_max_bytes;
34
35extern word mcga_palette_update;
36extern int mcga_palette_fast;
37extern word mcga_shakes;
38
42extern void mcga_put_pixel(word x, word y, byte c);
43
47extern byte mcga_get_pixel(word x, word y);
48
56extern byte *mcga_open_window(word x, word y, word xsize, word ysize);
57
61extern void mcga_close_window(byte *win);
62
63extern void mcga_setpal(Palette *pal);
64
65extern void mcga_getpal(Palette *pal);
66
67extern void mcga_cls(byte inp);
68
69extern void mcga_retrace();
70
71extern void mcga_setpal_range(Palette *pal, int first_color, int num_colors);
72
73extern void mcga_compute_retrace_parameters();
74
75extern void mcga_reset();
76
77} // namespace MADS
78
79#endif
Definition: atari-screen.h:42