summaryrefslogtreecommitdiff
path: root/src/core/camera.h
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-12 12:47:07 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-12 12:47:07 +1000
commitf74cf52946f4e569a26bc81105537b40be95c2c7 (patch)
tree1d000367350d0e28eb7cfbc800286a0ed30a4e6c /src/core/camera.h
parentfedba7ff68924ff50022405fc9103a5acf7013fe (diff)
wip: big makeover
Diffstat (limited to 'src/core/camera.h')
-rw-r--r--src/core/camera.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/camera.h b/src/core/camera.h
index 233f5f3..bacbca9 100644
--- a/src/core/camera.h
+++ b/src/core/camera.h
@@ -8,14 +8,14 @@
#include "maths_types.h"
typedef struct Camera {
- vec3 position;
- vec3 front;
- vec3 up;
+ Vec3 position;
+ Vec3 front;
+ Vec3 up;
f32 fov;
} Camera;
/** @brief create a camera */
-Camera Camera_Create(vec3 pos, vec3 front, vec3 up, f32 fov);
+Camera Camera_Create(Vec3 pos, Vec3 front, Vec3 up, f32 fov);
/**
* @brief Get 3D camera transform matrix
@@ -23,10 +23,10 @@ Camera Camera_Create(vec3 pos, vec3 front, vec3 up, f32 fov);
* @param out_proj optionally stores just the projection matrix
* @returns the camera's view projection matrix pre-multiplied
*/
-PUB mat4 Camera_ViewProj(Camera* c, f32 lens_height, f32 lens_width, mat4* out_view, mat4* out_proj);
+PUB Mat4 Camera_ViewProj(Camera* c, f32 lens_height, f32 lens_width, Mat4* out_view, Mat4* out_proj);
/** @brief Get 2D camera transform matrix */
-PUB mat4 Camera_View2D(Camera* c); // TODO: 2D cameras
+PUB Mat4 Camera_View2D(Camera* c); // TODO: 2D cameras
// TODO: Basic reusable camera controls