summaryrefslogtreecommitdiff
path: root/include/engine/engine.h
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-01 21:27:06 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-05 07:04:09 +0000
commit37a9f55ecd39f99aa800adc875555ecd613722c4 (patch)
treed7f5913db2cb11804c2d5aa564207678932ee5be /include/engine/engine.h
parentd8b46657425c6b806584d10fa50b11d49ba03850 (diff)
Fixme!
Diffstat (limited to 'include/engine/engine.h')
-rw-r--r--include/engine/engine.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/engine/engine.h b/include/engine/engine.h
index 6943538..4a1b6e3 100644
--- a/include/engine/engine.h
+++ b/include/engine/engine.h
@@ -52,6 +52,8 @@ typedef struct {
usize bindings_sz;
usize bindings_len;
+ struct RenderObject *testobject;
+
binding_t bindings_global[NUM_GLOBAL_BINDINGS];
} Platform;
@@ -85,12 +87,12 @@ void engine_input_ctx_reset(void);
#ifdef ENGINE_INTERNALS
-#define MAX(a, b) (a > b ? a : b)
+#define GLFW_INCLUDE_NONE
+#include <GLFW/glfw3.h>
/* Window */
struct Window {
- SDL_Window* window;
- SDL_Renderer* renderer;
+ GLFWwindow* window;
f32 render_scale;
v2_i32 windowsize;
@@ -100,7 +102,6 @@ struct Window {
};
typedef struct {
- SDL_Texture* texture;
const i32 tilesize;
const i32 width;
const i32 height;
@@ -120,7 +121,7 @@ struct Resources {
/* Our actual sources */
Texture** textures;
- TTF_Font** fonts;
+ //TTF_Font** fonts;
};
#endif