From 0631fb666d2a28a6eb9b8d1578675699b41a5de6 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 4 Oct 2022 01:18:19 +0200 Subject: Cube Rendering --- src/Math/MVP.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Math/MVP.hpp (limited to 'src/Math/MVP.hpp') diff --git a/src/Math/MVP.hpp b/src/Math/MVP.hpp new file mode 100644 index 0000000..c3fb64f --- /dev/null +++ b/src/Math/MVP.hpp @@ -0,0 +1,11 @@ +#pragma once + +#include "Math.hpp" + +namespace Math::MVP { + +Matrix<4, 4> model(Vector<3> position, Rotation angles); +Matrix<4, 4> view(Vector<3> position, Rotation angles); +Matrix<4, 4> projection(float aspect, float fov, float near, float far); + +} -- cgit 1.4.1