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>2008-03-21 16:45:26 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-03-21 16:45:26 +0000
commitfaa13fe70371834c3e7e234875d32bb95d278c54 (patch)
tree2a1e52d2fde94993a9ea787dadeaec8416912f49 /src/engine/e_if_gfx.h
parenta339dcf731278656a57aceec02696b752e85f7b6 (diff)
downloadzcatch-faa13fe70371834c3e7e234875d32bb95d278c54.tar.gz
zcatch-faa13fe70371834c3e7e234875d32bb95d278c54.zip
fixed input problems. made better input in console and chat
Diffstat (limited to 'src/engine/e_if_gfx.h')
-rw-r--r--src/engine/e_if_gfx.h28
1 files changed, 27 insertions, 1 deletions
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:
 		<other_func>
 */
-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