Merge branch 'master' of goat:git/laserbrain_demo
[laserbrain_demo] / src / ui.h
1 #ifndef UI_H_
2 #define UI_H_
3
4 #include <stdarg.h>
5 #include <gmath/gmath.h>
6
7 struct dtx_font;
8 extern dtx_font *ui_font;
9 extern int ui_font_size;
10
11 void set_message_timeout(long timeout);
12 void show_message(const char *fmt, ...);
13 void show_message(long timeout, const Vec3 &color, const char *fmt, ...);
14 void show_messagev(long timeout, const Vec3 &color, const char *fmt, va_list ap);
15
16 void print_text(const Vec2 &pos, const Vec3 &color, const char *fmt, ...);
17 void print_textv(const Vec2 &pos, const Vec3 &color, const char *fmt, va_list ap);
18
19 void draw_ui();
20
21 #endif  // UI_H_