diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:36:54 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2009-06-07 14:36:54 +0000 |
| commit | cdc5f26900dc10e10679ba76a30f195e8b3f5505 (patch) | |
| tree | 415b28219072589b09031c145d34def8e0f8956b /src/engine/e_if_gfx.h | |
| parent | 4bb1df318905f491740f4298c69cda317fb53fcb (diff) | |
| download | zcatch-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.h | 12 |
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 |