Create window

Program creates an OpenGL window that can be resized or go fullscreen. Nothing drawn inside the window yet.
This commit is contained in:
var
2026-03-29 22:48:55 -05:00
parent 72d68ffa91
commit 9a61a71b09
3 changed files with 126 additions and 1 deletions

12
src/game.h Normal file
View File

@@ -0,0 +1,12 @@
#include <stdbool.h>
typedef struct
{
bool running;
SDL_Window *window;
SDL_GLContext *glContext;
} GameState;
GameState *Game_New();
void Game_Update(GameState *gs);
void Game_Destroy(GameState *gs);