diff options
| author | Aaditya Dhruv <[email protected]> | 2026-01-28 14:20:23 -0600 |
|---|---|---|
| committer | Aaditya Dhruv <[email protected]> | 2026-01-28 14:20:23 -0600 |
| commit | 17d2d2589694030f79f2a37732d72d4e433fd745 (patch) | |
| tree | 918cc9f51276c7401c273fe05ad12d10edfaa40f /src/player.h | |
| parent | 77dddef4153688218bec0b50f547622daa18903d (diff) | |
Add camera handling and movement
Camera related movements have been moved to camera.c - it tracks the
matrices as well so we don't have to call it in block_update
The player class is empty right now, but the camera will be a child of
the player, and the player a child of the engine
Diffstat (limited to 'src/player.h')
| -rw-r--r-- | src/player.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h new file mode 100644 index 0000000..2f47d73 --- /dev/null +++ b/src/player.h @@ -0,0 +1,8 @@ +#pragma once +#include "camera.h" +#include "cglm/cglm.h" + +struct player { + vec3 position; + struct camera* camera; +}; |
