Add static methods for better architecture (wip)

This commit is contained in:
Émi Lefèvre
2026-04-21 13:03:55 +02:00
parent 506cef572d
commit 84abf9f447

View File

@@ -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 <stdlib.h>
//------------------------------------------------------------------------------------
// 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();
}