diff options
| author | onelin <oscar@nelin.dk> | 2025-10-31 23:55:42 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-11-02 22:07:17 +0000 |
| commit | d38deeef3af2316a666f8fc0173940bd769b748e (patch) | |
| tree | 6e30d4a9eea18daa5705c894f28cd99ff047e8f9 /src/api | |
| parent | 6c077751982ea2c7bd2d9262b01b9f8602f80dc8 (diff) | |
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.
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/daw.h | 39 |
1 files changed, 39 insertions, 0 deletions
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 <daw/types.h> +#include <daw/window.h> +#include <daw/platform.h> + + +/* 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 |
