blob: 26761704f1c2c876a9ef67434c678f3cb9c3ae37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef API_DAW_H
#define API_DAW_H
#ifdef __cplusplus
extern "C" {
#endif
#include <daw/types.h>
#include <daw/window.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
|