diff options
| author | realtradam <[email protected]> | 2023-03-04 19:52:09 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-03-04 19:52:09 -0500 |
| commit | 4bd628fc4a9a8244c70fc241f9e6576e4af2d35e (patch) | |
| tree | c008f3cde4a5197084d55115cdf272b2796a8527 /include | |
| parent | b172c2a6b22796dc16c059979d2ec6108b0402e4 (diff) | |
| download | RodeoKit-4bd628fc4a9a8244c70fc241f9e6576e4af2d35e.tar.gz RodeoKit-4bd628fc4a9a8244c70fc241f9e6576e4af2d35e.zip | |
fix build system and add emscripten
Diffstat (limited to 'include')
| -rw-r--r-- | include/rodeo.h | 11 | ||||
| -rw-r--r-- | include/rodeo_types.h | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/include/rodeo.h b/include/rodeo.h index 7b29d17..97a5e61 100644 --- a/include/rodeo.h +++ b/include/rodeo.h @@ -35,12 +35,23 @@ 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, ...); const char * 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); |
