From 0afc784511ccd10cd0ede233a44ed8e2757ba1e4 Mon Sep 17 00:00:00 2001 From: Yuri Kilochek Date: Sun, 7 Jan 2018 00:05:12 +0300 Subject: [PATCH] Add definitions for `glm::type` members, so that they can be used outside of constant expressions. --- glm/gtx/type_trait.inl | 62 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/glm/gtx/type_trait.inl b/glm/gtx/type_trait.inl index e69de29b..1cdf3322 100644 --- a/glm/gtx/type_trait.inl +++ b/glm/gtx/type_trait.inl @@ -0,0 +1,62 @@ +/// @ref gtx_type_trait +/// @file glm/gtx/type_trait.inl + +namespace glm +{ + template + bool const type::is_vec; + template + bool const type::is_mat; + template + bool const type::is_quat; + template + length_t const type::components; + template + length_t const type::cols; + template + length_t const type::rows; + + // vec + template + bool const type >::is_vec; + template + bool const type >::is_mat; + template + bool const type >::is_quat; + template + length_t const type >::components; + + // mat + template + bool const type >::is_vec; + template + bool const type >::is_mat; + template + bool const type >::is_quat; + template + length_t const type >::components; + template + length_t const type >::cols; + template + length_t const type >::rows; + + // tquat + template + bool const type >::is_vec; + template + bool const type >::is_mat; + template + bool const type >::is_quat; + template + length_t const type >::components; + + // tdualquat + template + bool const type >::is_vec; + template + bool const type >::is_mat; + template + bool const type >::is_quat; + template + length_t const type >::components; +}//namespace glm