From 1b5b70c2c0917aabf6595da63a59c5499d57963a Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 22 Jan 2024 22:04:50 +0100 Subject: Fix compilation I didn't quite get all the renames in the first pass. --- include/engine/dltools.h | 2 ++ include/engine/engine.h | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/engine/dltools.h b/include/engine/dltools.h index e883f20..5a53f49 100644 --- a/include/engine/dltools.h +++ b/include/engine/dltools.h @@ -1,6 +1,8 @@ #ifndef DLTOOLS_H #define DLTOOLS_H +#include + /* Utility functions for handling runtime linked shared libraries */ bool dynamic_library_close(void* shared_library); void* dynamic_library_open(const char* library_path); 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; -- cgit v1.3