diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-22 07:52:33 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-22 07:52:33 +0000 |
| commit | 8b3c16e6152a527f9aec1a88a9eed74119de7000 (patch) | |
| tree | f0bde5cea15e696e42cade06a3b12ff6b13acc57 /src/engine/client/ui.h | |
| parent | 9899666a7ce6679a3b9667ab09f615f4d0769c16 (diff) | |
| download | zcatch-8b3c16e6152a527f9aec1a88a9eed74119de7000.tar.gz zcatch-8b3c16e6152a527f9aec1a88a9eed74119de7000.zip | |
major engine cleanup. dependency on baselib removed. engine is now C code (not ansi tho). some other cruft removed aswell
Diffstat (limited to 'src/engine/client/ui.h')
| -rw-r--r-- | src/engine/client/ui.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/client/ui.h b/src/engine/client/ui.h index fb9208c1..31757b3b 100644 --- a/src/engine/client/ui.h +++ b/src/engine/client/ui.h @@ -1,12 +1,9 @@ #ifndef _UI_H #define _UI_H -/* -extern void *hot_item; -extern void *active_item; -extern void *becomming_hot_item; -extern float mouse_x, mouse_y; // in gui space -extern float mouse_wx, mouse_wy; // in world space -extern unsigned mouse_buttons;*/ + +#ifdef __cplusplus +extern "C" { +#endif int ui_update(float mx, float my, float mwx, float mwy, int buttons); @@ -30,6 +27,9 @@ typedef void (*draw_button_callback)(void *id, const char *text, int checked, fl void ui_do_image(int texture, float x, float y, float w, float h); void ui_do_label(float x, float y, const char *text, float size); int ui_do_button(void *id, const char *text, int checked, float x, float y, float w, float h, draw_button_callback draw_func, void *extra); -int ui_do_button(void *id, const char *text, int checked, float x, float y, float w, float h, draw_button_callback draw_func); + +#ifdef __cplusplus +} +#endif #endif |