diff options
| author | hachem <im@hachem.wtf> | 2026-08-25 04:08:12 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-25 04:08:12 +0200 |
| commit | 4be19ce68041b813c04f91cb39fed7e2a7bef2e6 (patch) | |
| tree | 5e42539e07508abe0e7e65b381592ca59dc74f54 /src/core/application.h | |
| parent | 5f6e1d8a85988de603c507c0f0663c5349ba61ee (diff) | |
feat: window seperation and run loop
Diffstat (limited to 'src/core/application.h')
| -rw-r--r-- | src/core/application.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <GLFW/glfw3.h> + +#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*); |
