matrix: default to f32 for projections and affines

This commit is contained in:
Danny Robson 2024-10-29 14:04:01 +10:00
parent b1e99acaab
commit 134b8a9fa9

View File

@ -209,10 +209,10 @@ namespace cruft {
// Perspective matrices
template <typename T> matrix<4,4,T> ortho (T left, T right, T bottom, T top, T near, T far);
template <typename T> matrix<4,4,T> ortho2D (T left, T right, T bottom, T top);
template <typename T> matrix<4,4,T> perspective (T fov, T aspect, range<T> Z);
template <typename T> matrix<4,4,T> look_at (point<3,T> eye, point<3,T> target, vector<3,T> up);
template <typename T = f32> matrix<4,4,T> ortho (T left, T right, T bottom, T top, T near, T far);
template <typename T = f32> matrix<4,4,T> ortho2D (T left, T right, T bottom, T top);
template <typename T = f32> matrix<4,4,T> perspective (T fov, T aspect, range<T> Z);
template <typename T = f32> matrix<4,4,T> look_at (point<3,T> eye, point<3,T> target, vector<3,T> up);
// Affine matrices
template <size_t S, typename T>