diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2024-01-22 21:04:50 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2024-01-29 11:58:44 +0000 |
| commit | 1b5b70c2c0917aabf6595da63a59c5499d57963a (patch) | |
| tree | d402604d4b682b3a8b5da783c47a951f27b04c2e /include/engine/engine.h | |
| parent | 241bf4dcda9518633cb2990adc27eda40fd42c77 (diff) | |
Fix compilation
I didn't quite get all the renames in the first pass.
Diffstat (limited to 'include/engine/engine.h')
| -rw-r--r-- | include/engine/engine.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/engine/engine.h b/include/engine/engine.h index a8b5459..6943538 100644 --- a/include/engine/engine.h +++ b/include/engine/engine.h @@ -58,8 +58,8 @@ typedef struct { /* Essential functions */ Platform* engine_init(const char* windowtitle, v2_i32 windowsize, const f32 render_scale, const u32 flags, - const usize initial_memory, const FontSpec* fonts[], - const TextureSpec* textures[]); + const usize initial_memory, const Asset_FontSpec* fonts[], + const Asset_TextureSpec* textures[]); i32 engine_run(Platform* p, StateType initial_state); @@ -76,6 +76,11 @@ u32 get_time(void); v2_i32 get_windowsize(void); v2_i32* get_mousepos(void); +/* Input handling */ +void engine_input_ctx_push(i_ctx* ctx); +void engine_input_ctx_pop(void); +void engine_input_ctx_reset(void); + #include "rendering.h" #ifdef ENGINE_INTERNALS @@ -110,8 +115,8 @@ struct Resources { usize fontpaths_len; /* Paths for our sources, kept in case the user wants to reload them */ - TextureSpec** texture_paths; - FontSpec** font_paths; + Asset_TextureSpec** texture_paths; + Asset_FontSpec** font_paths; /* Our actual sources */ Texture** textures; |
