From 84abf9f44755a9086fc19774c7c2931990e83fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mi=20Lef=C3=A8vre?= Date: Tue, 21 Apr 2026 13:03:55 +0200 Subject: [PATCH] Add static methods for better architecture (wip) --- src/main.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/main.c b/src/main.c index e54052b..815c13b 100644 --- a/src/main.c +++ b/src/main.c @@ -12,6 +12,16 @@ by Jeffery Myers is marked with CC0 1.0. To view a copy of this license, visit h #include "resource_dir.h" // utility header for SearchAndSetResourceDir #include +//------------------------------------------------------------------------------------ +// Module Functions Declaration (local) +//------------------------------------------------------------------------------------ +static void InitGame(void); // Initialize game +static void UpdateGame(void); // Update game (one frame) +static void DrawGame(void); // Draw game (one frame) +static void UnloadGame(void); // Unload game +static void UpdateDrawFrame(void); // Update and Draw (one frame) + + int main () { // Tell the window to use vsync and work on high DPI displays @@ -110,3 +120,29 @@ int main () CloseWindow(); return 0; } + +void InitGame(void) +{ + return; +} + +void UpdateGame(void) +{ + return; +} + +void DrawGame(void) +{ + return; +} + +void UnloadGame(void) +{ + return; +} + +void UpdateDrawFrame(void) +{ + UpdateGame(); + DrawGame(); +}