From 17d2d2589694030f79f2a37732d72d4e433fd745 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Wed, 28 Jan 2026 14:20:23 -0600 Subject: 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 --- src/player.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/player.h (limited to 'src/player.h') 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; +}; -- cgit