summaryrefslogtreecommitdiff
path: root/include/engine/engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/engine/engine.h')
-rw-r--r--include/engine/engine.h13
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;