From 65d74bdb26af833b5380046dec204f685f745cc1 Mon Sep 17 00:00:00 2001 From: Omniscient Date: Thu, 11 Jul 2024 18:03:29 +1000 Subject: changing styles plus simplifying a bit --- src/camera.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/camera.h (limited to 'src/camera.h') diff --git a/src/camera.h b/src/camera.h deleted file mode 100644 index ec867c5..0000000 --- a/src/camera.h +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @file camera.h - * @author your name (you@domain.com) - * @brief - * @version 0.1 - * @date 2024-02-24 - * - * @copyright Copyright (c) 2024 - * - */ -#pragma once - -#include "maths_types.h" - -typedef struct camera { - vec3 position; - vec3 front; - vec3 up; - f32 fov; -} camera; - -/** @brief create a camera */ -camera camera_create(vec3 pos, vec3 front, vec3 up, f32 fov); - -/** @brief get a 4x4 transform matrix for the view and perspective projection */ -void camera_view_projection(camera *c, f32 screen_height, f32 screen_width, mat4 *out_view, - mat4 *out_proj); - -// TODO: Basic reusable camera controls -/* -Right click + move = pan -Left click = orbit camera -WASD = forward/backward/left/right -*/ \ No newline at end of file -- cgit v1.2.3-70-g09d2