From faa13fe70371834c3e7e234875d32bb95d278c54 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 21 Mar 2008 16:45:26 +0000 Subject: fixed input problems. made better input in console and chat --- src/engine/e_if_gfx.h | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'src/engine/e_if_gfx.h') diff --git a/src/engine/e_if_gfx.h b/src/engine/e_if_gfx.h index 71a9628e..265d41d3 100644 --- a/src/engine/e_if_gfx.h +++ b/src/engine/e_if_gfx.h @@ -247,7 +247,7 @@ void gfx_lines_end(); See Also: */ -int gfx_text(void *font, float x, float y, float size, const char *text, int max_width); +void gfx_text(void *font, float x, float y, float size, const char *text, int max_width); /* Function: gfx_text_width @@ -575,4 +575,30 @@ void gfx_clip_enable(int x, int y, int w, int h); */ void gfx_clip_disable(); + +enum +{ + TEXTFLAG_RENDER=1, + TEXTFLAG_ALLOW_NEWLINE=2 +}; + +typedef struct +{ + int flags; + int line_count; + + float start_x; + float start_y; + float line_width; + float x, y; + void *font_set; + float font_size; +} TEXT_CURSOR; + +void gfx_text_set_cursor(TEXT_CURSOR *cursor, float x, float y, float font_size, int flags); +void gfx_text_ex(TEXT_CURSOR *cursor, const char *text, int length); + + + + #endif -- cgit 1.4.1