diff options
| author | DrNuget <drnuget@outlook.com> | 2026-01-04 22:12:24 +0200 |
|---|---|---|
| committer | DrNuget <drnuget@outlook.com> | 2026-01-04 22:12:24 +0200 |
| commit | 510f1bac9b71ba240d30bb5bc5df6501e70fafc9 (patch) | |
| tree | 7bc48763071a8c315b82e638a267411c3453dd09 /src/main.h | |
| download | opengl-test-510f1bac9b71ba240d30bb5bc5df6501e70fafc9.tar.gz | |
Working 3D with .obj file loading
Diffstat (limited to 'src/main.h')
| -rw-r--r-- | src/main.h | 26 |
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); |
