matrix: default to f32 for projections and affines
This commit is contained in:
parent
b1e99acaab
commit
134b8a9fa9
@ -209,10 +209,10 @@ namespace cruft {
|
|||||||
|
|
||||||
|
|
||||||
// Perspective matrices
|
// 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 = f32> 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 = f32> 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 = f32> 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> look_at (point<3,T> eye, point<3,T> target, vector<3,T> up);
|
||||||
|
|
||||||
// Affine matrices
|
// Affine matrices
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user