summary refs log tree commit diff
path: root/src/Math/MVP.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-26 04:05:47 +0200
committerMel <einebeere@gmail.com>2022-10-26 04:05:47 +0200
commite66f7011fb23e3509ad95accec581f6269813266 (patch)
tree2535a617d10f76318dc4a3ae923258186fd9bac5 /src/Math/MVP.hpp
parentdc2af6a6fb7ae3cf1b9f917058889329d4652491 (diff)
downloadmeowcraft-e66f7011fb23e3509ad95accec581f6269813266.tar.zst
meowcraft-e66f7011fb23e3509ad95accec581f6269813266.zip
Fixed attribute double free
Diffstat (limited to 'src/Math/MVP.hpp')
-rw-r--r--src/Math/MVP.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Math/MVP.hpp b/src/Math/MVP.hpp
index c3fb64f..0abad66 100644
--- a/src/Math/MVP.hpp
+++ b/src/Math/MVP.hpp
@@ -6,6 +6,7 @@ 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);
+Matrix<4, 4> perspective_projection(float aspect, float fov, float near, float far);
+Matrix<4, 4> orthographic_projection(float width, float height, float near, float far);
 
 }