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:
12
src/game.h
Normal file
12
src/game.h
Normal 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);
|
||||
Reference in New Issue
Block a user