]> 4ch.mooo.com Git - 16.git/blob - src/lib/16text.h
ansii rendering is working ^^
[16.git] / src / lib / 16text.h
1 /*\r
2  * This is the text subsystem for project 16.\r
3  * These functions provide for the rendering of text strings\r
4  * using the BIOS fonts.\r
5  * They copy the font characters directly to VGA.\r
6  */\r
7 #ifndef TEXT_H\r
8 #define TEXT_H
9 #include <jstring.h>
10 #include <jctype.h>\r
11 #include "src/lib/types.h"\r
12 \r
13 /* font information type */\r
14 typedef struct font {\r
15     word  seg;       //segment for the font\r
16     word  off;       //offset in the segment for the font\r
17     byte  charSize;  //bytes in each character\r
18 } font_t;\r
19 \r
20 /* storage for the rom fonts */\r
21 extern font_t romFonts[4];\r
22 #define ROM_FONT_8x14     0\r
23 #define ROM_FONT_8x8_LOW  1\r
24 #define ROM_FONT_8x8_HIGH 2\r
25 #define ROM_FONT_8x16     3\r
26 \r
27 /* This function initializes the text engine */\r
28 void textInit();\r
29 \r
30 #endif\r