File: vga.h

package info (click to toggle)
chdrv 1.0.13-0.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,204 kB
  • ctags: 1,069
  • sloc: ansic: 8,972; perl: 412; asm: 234; makefile: 195; sh: 36
file content (65 lines) | stat: -rw-r--r-- 1,910 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
/* VGAlib version 1.0 - (c) 1992 Tommy Frandsen 		   */
/*								   */
/* This library is free software; you can redistribute it and/or   */
/* modify it without any restrictions. This library 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.					   */

#ifndef VGA1_H
#define VGA1_H

#define TEXT 	     0
#define G320x200x16  1
#define G640x200x16  2
#define G640x350x16  3
#define G640x480x16  4
#define G320x200x256 5
#define G320x240x256 6
#define G320x400x256 7
#define G360x480x256 8

extern int vga1_setmode(int mode);
extern int vga1_setflipchar(int c);

extern int vga1_clear();
extern int vga1_flip();

extern int vga1_getxdim();
extern int vga1_getydim();
extern int vga1_getcolors();

extern int vga1_setpalette(int index, int red, int green, int blue);
extern int vga1_getpalette(int index, int *red, int *green, int *blue);
extern int vga1_setpalvec(int start, int num, int *pal);
extern int vga1_getpalvec(int start, int num, int *pal);

extern int vga1_screenoff();
extern int vga1_screenon();

extern int inline vga1_setcolor(int color);
extern int inline vga1_drawpixel(int x, int y);
extern int vga1_drawline(int x1, int y1, int x2, int y2);
extern int vga1_drawscanline(int line, char* colors);

extern int vga1_getch();
extern void vga1_drawtext(int,int,char *);
extern void vga1_drawctext(int,int,char *);

#define SIGREL SIGUSR1
#define SIGACQ SIGUSR2
void vga1_drawtext(int,int,char *);
void vga1_drawctext(int,int,char *);
void vga1_clreol(int,int);
void vga1_scroll(int,int,int );
void vga1_rscroll(int,int,int);
void vga1_invert(int);
void vga1_clearblock(int,int,int,int);
void vga1_moveleft(int,int,int,int);
void vga1_moveright(int,int,int,int);
void vga1_cursor(int,int);
int vga1_curcolor();
void vga1_underline(int);

#endif /* VGA1_H */