blob: 389957bec39c1c759bae629d259bc89388dc8cec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include "includes.h"
typedef struct {
SDL_Window *window;
int window_width;
int window_height;
mat4 projection;
SDL_GLContext gpu;
int transform_loc, projection_loc;
int running;
Player player;
} Game;
void handleEvents(Game* game);
void setupProjection(float fov, Game* game);
int initGame(Game* game);
int killGame(Game* game);
|