wasm app, revive ui
This commit is contained in:
@@ -3,13 +3,20 @@
|
||||
#include "app/app.h"
|
||||
#include "app/app.c"
|
||||
// #include "debug.c"
|
||||
// #include "ui2.c"
|
||||
#include "ui2.c"
|
||||
|
||||
f64 delta_time;
|
||||
void app_update(app_event_t *events, i32 event_count) {
|
||||
if (event_count) delta_time = events[0].delta_time;
|
||||
draw_textf(v2f64(0,0), "delta time: %f", delta_time);
|
||||
|
||||
|
||||
for (i32 i = 0; i < event_count; i += 1) {
|
||||
ui_demo(events + i);
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
ma_scratch_scope(temp) {
|
||||
f64 offset = get_font_height() + 8;
|
||||
f64 pos = offset;
|
||||
@@ -24,5 +31,6 @@ void app_update(app_event_t *events, i32 event_count) {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user