summaryrefslogtreecommitdiffstats
path: root/matchblox/common/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/common/font.h')
-rw-r--r--matchblox/common/font.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/matchblox/common/font.h b/matchblox/common/font.h
new file mode 100644
index 0000000..ec84ccb
--- /dev/null
+++ b/matchblox/common/font.h
@@ -0,0 +1,30 @@
+#ifndef _CFONT_H
+#define _CFONT_H
+
+#define FONT_WIDTH 32 // width of a character (in the bitmap source!)
+#define FONT_HEIGHT 32 // height of a character (in the bitmap source!)
+#define FONT_SPACING 20 // spacing between characters when printing
+#define FONT_XCHAR 16 // number of characters aligned on the x-axis in the bitmap source
+#define FONT_COUNT 256 // number of characters in the bitmap source
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct ColorStruct {
+ double m_dRed;
+ double m_dGreen;
+ double m_dBlue;
+};
+
+void FontInit(int f_iWinWidth, int f_iWinHeight);
+void FontDelete(GLvoid);
+void glPrint(GLint x, GLint y, char *string, struct ColorStruct f_sColor);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif