From f4130c32fd94c438ff4653fb11b6d0bd56514a7e Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 10 Jan 2017 00:02:16 +0100 Subject: [PATCH] Added template alias for mat types --- glm/detail/type_mat.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/glm/detail/type_mat.hpp b/glm/detail/type_mat.hpp index 677ce605..8cabc378 100644 --- a/glm/detail/type_mat.hpp +++ b/glm/detail/type_mat.hpp @@ -12,6 +12,18 @@ namespace detail struct outerProduct_trait{}; }//namespace detail +#if GLM_HAS_TEMPLATE_ALIASES + template using tmat2x2 = mat<2, 2, T, P>; + template using tmat2x3 = mat<2, 3, T, P>; + template using tmat2x4 = mat<2, 4, T, P>; + template using tmat3x2 = mat<3, 2, T, P>; + template using tmat3x3 = mat<3, 3, T, P>; + template using tmat3x4 = mat<3, 4, T, P>; + template using tmat4x2 = mat<4, 2, T, P>; + template using tmat4x3 = mat<4, 3, T, P>; + template using tmat4x4 = mat<4, 4, T, P>; +#endif//GLM_HAS_TEMPLATE_ALIASES + template class matType> GLM_FUNC_DECL matType inverse(matType const & m);