From 4bd628fc4a9a8244c70fc241f9e6576e4af2d35e Mon Sep 17 00:00:00 2001 From: realtradam Date: Sat, 4 Mar 2023 19:52:09 -0500 Subject: fix build system and add emscripten --- include/rodeo.h | 11 +++++++++++ include/rodeo_types.h | 6 ++++++ 2 files changed, 17 insertions(+) (limited to 'include') diff --git a/include/rodeo.h b/include/rodeo.h index 7b29d17..97a5e61 100644 --- a/include/rodeo.h +++ b/include/rodeo.h @@ -35,10 +35,21 @@ void Rodeo__\ end(Rodeo__data_p state); +void +Rodeo__\ +execute_main_loop( + Rodeo__data_p state, + Rodeo__main_loop_p main_loop_function +); + bool Rodeo__\ should_quit(Rodeo__data_p state); +void +Rodeo__\ +set_quit(Rodeo__data_p state, bool quit); + void Rodeo__\ draw_debug_text(uint16_t x, uint16_t y, const char *format, ...); diff --git a/include/rodeo_types.h b/include/rodeo_types.h index fd4ed82..47d2db9 100644 --- a/include/rodeo_types.h +++ b/include/rodeo_types.h @@ -34,3 +34,9 @@ struct Rodeo__data *Rodeo__\ data_p; + +typedef +void +(*Rodeo__\ +main_loop_p) +(void); -- cgit v1.2.3