about summary refs log tree commit diff
path: root/src/engine/e_if_gfx.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-07 14:36:54 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-06-07 14:36:54 +0000
commitcdc5f26900dc10e10679ba76a30f195e8b3f5505 (patch)
tree415b28219072589b09031c145d34def8e0f8956b /src/engine/e_if_gfx.h
parent4bb1df318905f491740f4298c69cda317fb53fcb (diff)
downloadzcatch-cdc5f26900dc10e10679ba76a30f195e8b3f5505.tar.gz
zcatch-cdc5f26900dc10e10679ba76a30f195e8b3f5505.zip
new font rendering system using freetype2. only compiles under linux for now
Diffstat (limited to 'src/engine/e_if_gfx.h')
-rw-r--r--src/engine/e_if_gfx.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/engine/e_if_gfx.h b/src/engine/e_if_gfx.h
index 8221c81d..61a76bad 100644
--- a/src/engine/e_if_gfx.h
+++ b/src/engine/e_if_gfx.h
@@ -11,6 +11,11 @@
 */
 
 /*
+	Structure: FONT
+*/
+struct FONT;
+
+/*
 	Structure: IMAGE_INFO
 */
 typedef struct
@@ -321,7 +326,7 @@ void gfx_text_color(float r, float g, float b, float a);
 	See Also:
 		<other_func>
 */
-void gfx_text_set_default_font(void *font);
+void gfx_text_set_default_font(struct FONT *font);
 
 /*
 	Group: Other
@@ -654,7 +659,8 @@ typedef struct
 	float start_y;
 	float line_width;
 	float x, y;
-	void *font_set;
+	
+	struct FONT *font;
 	float font_size;
 } TEXT_CURSOR;
 
@@ -662,6 +668,8 @@ void gfx_text_set_cursor(TEXT_CURSOR *cursor, float x, float y, float font_size,
 void gfx_text_ex(TEXT_CURSOR *cursor, const char *text, int length);
 
 
+struct FONT *gfx_font_load(const char *filename);
+void gfx_font_destroy(struct FONT *font);
 
 
 #endif