summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-01-22 21:04:50 +0000
committer0scar <qgt268@alumni.ku.dk>2024-01-29 11:58:44 +0000
commit1b5b70c2c0917aabf6595da63a59c5499d57963a (patch)
treed402604d4b682b3a8b5da783c47a951f27b04c2e /include
parent241bf4dcda9518633cb2990adc27eda40fd42c77 (diff)
Fix compilation
I didn't quite get all the renames in the first pass.
Diffstat (limited to 'include')
-rw-r--r--include/engine/dltools.h2
-rw-r--r--include/engine/engine.h13
2 files changed, 11 insertions, 4 deletions
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 <stdbool.h>
+
/* 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;