]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16text.h
cleanings~
[16.git] / src / lib / 16text.h
diff --git a/src/lib/16text.h b/src/lib/16text.h
new file mode 100644 (file)
index 0000000..98c3b90
--- /dev/null
@@ -0,0 +1,28 @@
+/*\r
+ * This is the text subsystem for project 16.\r
+ * These functions provide for the rendering of text strings\r
+ * using the BIOS fonts.\r
+ * They copy the font characters directly to VGA.\r
+ */\r
+#ifndef TEXT_H\r
+#define TEXT_H\r
+#include "types.h"\r
+\r
+/* font information type */\r
+typedef struct font {\r
+    word  seg;       //segment for the font\r
+    word  off;       //offset in the segment for the font\r
+    byte  charSize;  //bytes in each character\r
+} font_t;\r
+\r
+/* storage for the rom fonts */\r
+extern font_t romFonts[4];\r
+#define ROM_FONT_8x14     0\r
+#define ROM_FONT_8x8_LOW  1\r
+#define ROM_FONT_8x8_HIGH 2\r
+#define ROM_FONT_8x16     3\r
+\r
+/* This function initializes the text engine */\r
+void textInit();\r
+\r
+#endif\r