OSDN Git Service

cleanings~
[proj16/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\r
9 #include "types.h"\r
10 \r
11 /* font information type */\r
12 typedef struct font {\r
13     word  seg;       //segment for the font\r
14     word  off;       //offset in the segment for the font\r
15     byte  charSize;  //bytes in each character\r
16 } font_t;\r
17 \r
18 /* storage for the rom fonts */\r
19 extern font_t romFonts[4];\r
20 #define ROM_FONT_8x14     0\r
21 #define ROM_FONT_8x8_LOW  1\r
22 #define ROM_FONT_8x8_HIGH 2\r
23 #define ROM_FONT_8x16     3\r
24 \r
25 /* This function initializes the text engine */\r
26 void textInit();\r
27 \r
28 #endif\r