-
Notifications
You must be signed in to change notification settings - Fork 6
/
graphics.h
55 lines (49 loc) · 1.88 KB
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* $Id$
* MegaZeux
*
* Copyright (C) 1996 Greg Janson
* Copyright (C) 1998 Matthew D. Williams - dbwilli@scsn.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* GRAPHICS.H- Declarations for GRAPHICS.ASM */
#ifndef __GRAPHICS_H
#define __GRAPHICS_H
#ifdef __cplusplus
extern "C" {
#endif
//Note- NONE of these functions preserve the mouse cursor
void color_string(char far *string,int x_start,int y_start,
unsigned char color,unsigned int segment);
void write_string(char far *string,int x_start,int y_start,
unsigned char color,unsigned int segment,char taballowed=1);
void write_line(char far *string,int x_start,int y_start,
unsigned char color,unsigned int segment,char taballowed=1);
void color_line(int length,int x_start,int y_start,unsigned char color,
unsigned int segment);
void fill_line(int length,int x_start,int y_start,unsigned int char_col,
unsigned int segment);
void draw_char(int chr,int color,int x_pos,int y_pos,unsigned int segment);
void clear_screen(int with,unsigned int segment);
void page_flip(unsigned int page);
/* Page segments-
0 is at segment 0xB800
1 is at segment 0xB900
2 is at segment 0xBA00
3 is at segment 0xBB00 */
#ifdef __cplusplus
}
#endif
#endif