1 /*
2  * OpenBOR - http://www.LavaLit.com
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in OpenBOR root for details.
5  *
6  * Copyright (c) 2004 - 2011 OpenBOR Team
7  */
8 
9 #ifndef		VGA_H
10 #define		VGA_H
11 
12 // Set video mode
13 void vga_setmode(int m);
14 
15 // Wait for new vertical retrace (interrupts stay ON)
16 void vga_vwait(void);
17 
18 // Set VGA-type palette
19 void vga_setpalette(char*p);
20 
21 // Set VGA border colour index
22 void vga_setborderindex(int n);
23 
24 // Set mode X (320x240x256 planar VGA)
25 void vga_setmodex(void);
26 
27 // Clear video RAM in mode X
28 void vga_clearmodex(void);
29 
30 // Activate one of the 3 video pages in mode X.
31 // Returns a pointer to the active video page (the active video RAM)
32 // or NULL if the page does not exist.
33 char *vga_xpageflip(int p);
34 
35 // Set widescreen mode (320x204x256 linear VGA)
36 void vga_setwidemode(void);
37 
38 // Set mode T (288x216x256 VGA)
39 void vga_setmodet(void);
40 
41 #endif
42 
43 
44