summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
new file mode 100644
index 0000000..389957b
--- /dev/null
+++ b/src/main.h
@@ -0,0 +1,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);