From 4be19ce68041b813c04f91cb39fed7e2a7bef2e6 Mon Sep 17 00:00:00 2001 From: hachem Date: Tue, 25 Aug 2026 04:08:12 +0200 Subject: feat: window seperation and run loop --- src/core/application.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/core/application.h (limited to 'src/core/application.h') diff --git a/src/core/application.h b/src/core/application.h new file mode 100644 index 0000000..4a2bc5c --- /dev/null +++ b/src/core/application.h @@ -0,0 +1,24 @@ +#pragma once + +#include + +#define GAME_WINDOW_WIDTH 1920 +#define GAME_WINDOW_HEIGHT 1080 + +#define DEBUG_WINDOW_WIDTH 800 +#define DEBUG_WINDOW_HEIGHT 800 + +struct Application +{ + struct GLFWwindow* game_window; + struct GLFWwindow* debug_window; +}; + +struct Application* application_create(void); + +void application_render_game(struct Application*); +void application_render_debug(struct Application*); +void application_update(struct Application*); +void application_run(struct Application*); + +void application_destroy(struct Application*); -- cgit v1.3