From 510f1bac9b71ba240d30bb5bc5df6501e70fafc9 Mon Sep 17 00:00:00 2001 From: DrNuget Date: Sun, 4 Jan 2026 22:12:24 +0200 Subject: Working 3D with .obj file loading --- src/main.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.h (limited to 'src/main.h') 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); -- cgit v1.2.3