From 82effe4e4d4a6b22f77055875d046304a86541eb Mon Sep 17 00:00:00 2001 From: 0scar Date: Sun, 11 Feb 2024 15:30:12 +0100 Subject: Include model rendering in rendering functionality --- src/core/include/engine/core/platform.h | 2 +- src/core/src/loop.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') 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(); -- cgit v1.3