X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fui.h;h=ed229cb791c56f48379362f53f398205cb027742;hp=1ed6c279a45e29465b6e79071df49ff3878a9b27;hb=7ffa5c50d9254af9bd746fc5e6bc8e5db8eda675;hpb=c64bd959ffb4034cb288780f13a351b00fb22ca0 diff --git a/src/ui.h b/src/ui.h index 1ed6c27..ed229cb 100644 --- a/src/ui.h +++ b/src/ui.h @@ -1,8 +1,20 @@ #ifndef UI_H_ #define UI_H_ +#include +#include + +struct dtx_font; +extern dtx_font *ui_font; +extern int ui_font_size; + void set_message_timeout(long timeout); void show_message(const char *fmt, ...); +void show_message(long timeout, const Vec3 &color, const char *fmt, ...); +void show_messagev(long timeout, const Vec3 &color, const char *fmt, va_list ap); + +void print_text(const Vec2 &pos, const Vec3 &color, const char *fmt, ...); +void print_textv(const Vec2 &pos, const Vec3 &color, const char *fmt, va_list ap); void draw_ui();