From d38deeef3af2316a666f8fc0173940bd769b748e Mon Sep 17 00:00:00 2001 From: onelin Date: Sat, 1 Nov 2025 00:55:42 +0100 Subject: Flatten project structure This will make it easier to break up the code into smaller chunks again later. One would think doing this seems fun to me at this point. --- src/api/daw.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/api/daw.h (limited to 'src/api/daw.h') diff --git a/src/api/daw.h b/src/api/daw.h new file mode 100644 index 0000000..25ec177 --- /dev/null +++ b/src/api/daw.h @@ -0,0 +1,39 @@ +#ifndef API_DAW_H +#define API_DAW_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include + + +/* Essential functions */ +Instance* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight, + const u32 flags, + const usize initial_memory); + +i32 engine_run(Instance* p, StateType initial_state, void* state_arg); + +void engine_stop(Instance* p); + +/* Utility functions */ +void engine_fps_max(Instance* p, u16 cap); + +void render_set_zoom(f32 new_zoom); +void render_adjust_zoom(f32 diff); +void render_add_unit(RenderUnit* u); + +/* move this */ +void delay(uint64_t ms); + +// file operations +usize f_get_sz(FILE* f); + + +#ifdef __cplusplus +} +#endif +#endif -- cgit v1.3