summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-11 14:30:12 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-11 15:19:29 +0000
commit82effe4e4d4a6b22f77055875d046304a86541eb (patch)
treea7aa7edc299b5dc9771300a635a6cb0199aff478 /src/core
parentc4e69d0d8653c59853fe53f07c07823495e5d04b (diff)
Include model rendering in rendering functionality
Diffstat (limited to 'src/core')
-rw-r--r--src/core/include/engine/core/platform.h2
-rw-r--r--src/core/src/loop.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/include/engine/core/platform.h b/src/core/include/engine/core/platform.h
index 2e74fbe..9dc9a8b 100644
--- a/src/core/include/engine/core/platform.h
+++ b/src/core/include/engine/core/platform.h
@@ -17,7 +17,7 @@
*/
typedef struct Platform {
- Window window;
+ Window* window;
bool quit;
u64 frame;
diff --git a/src/core/src/loop.c b/src/core/src/loop.c
index f29ef25..642f771 100644
--- a/src/core/src/loop.c
+++ b/src/core/src/loop.c
@@ -85,7 +85,7 @@ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight
v2_i32 windowsize = (v2_i32){.x = windowWidth, .y = windowHeight};
Platform* p = (Platform*)malloc(sizeof(Platform));
- Window w = (Window)malloc(sizeof(Window));
+ Window* w = (Window*)malloc(sizeof(Window));
/* initialize resources */
Resources* resources = malloc(sizeof(Resources));
@@ -395,7 +395,7 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) {
if (now - last_fps_measurement > 1.000) {
last_fps_measurement = now;
- //printf("\n FPS: %.1f \t ticks: %lu", (double)ticks / now, ticks);
+ printf("\n FPS: %.1f \t ticks: %lu", (double)ticks / now, ticks);
}
glfwPollEvents();