mirror of
https://github.com/g-truc/glm.git
synced 2025-04-06 14:05:01 +00:00
Add definitions for glm::type<T>
members, so that they can be used outside of constant expressions.
This commit is contained in:
parent
5441bc7a93
commit
0afc784511
1 changed files with 62 additions and 0 deletions
|
@ -0,0 +1,62 @@
|
|||
/// @ref gtx_type_trait
|
||||
/// @file glm/gtx/type_trait.inl
|
||||
|
||||
namespace glm
|
||||
{
|
||||
template<typename T>
|
||||
bool const type<T>::is_vec;
|
||||
template<typename T>
|
||||
bool const type<T>::is_mat;
|
||||
template<typename T>
|
||||
bool const type<T>::is_quat;
|
||||
template<typename T>
|
||||
length_t const type<T>::components;
|
||||
template<typename T>
|
||||
length_t const type<T>::cols;
|
||||
template<typename T>
|
||||
length_t const type<T>::rows;
|
||||
|
||||
// vec
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
bool const type<vec<L, T, Q> >::is_vec;
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
bool const type<vec<L, T, Q> >::is_mat;
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
bool const type<vec<L, T, Q> >::is_quat;
|
||||
template<length_t L, typename T, qualifier Q>
|
||||
length_t const type<vec<L, T, Q> >::components;
|
||||
|
||||
// mat
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
bool const type<mat<C, R, T, Q> >::is_vec;
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
bool const type<mat<C, R, T, Q> >::is_mat;
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
bool const type<mat<C, R, T, Q> >::is_quat;
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
length_t const type<mat<C, R, T, Q> >::components;
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
length_t const type<mat<C, R, T, Q> >::cols;
|
||||
template<length_t C, length_t R, typename T, qualifier Q>
|
||||
length_t const type<mat<C, R, T, Q> >::rows;
|
||||
|
||||
// tquat
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tquat<T, Q> >::is_vec;
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tquat<T, Q> >::is_mat;
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tquat<T, Q> >::is_quat;
|
||||
template<typename T, qualifier Q>
|
||||
length_t const type<tquat<T, Q> >::components;
|
||||
|
||||
// tdualquat
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tdualquat<T, Q> >::is_vec;
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tdualquat<T, Q> >::is_mat;
|
||||
template<typename T, qualifier Q>
|
||||
bool const type<tdualquat<T, Q> >::is_quat;
|
||||
template<typename T, qualifier Q>
|
||||
length_t const type<tdualquat<T, Q> >::components;
|
||||
}//namespace glm
|
Loading…
Add table
Reference in a new issue