blob: 259c743912d7dc8218f0aa313be87f01f22eee8b (
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
|
#ifndef API_DAW_H
#define API_DAW_H
#ifdef __cplusplus
extern "C" {
#endif
#include <daw/types.h>
#include <daw/state.h>
typedef struct Instance Instance;
/* 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);
#ifdef __cplusplus
}
#endif
#endif
|