Bring back compatibility with GLM 0.9.8 for project using tvec* with C++11 compiler that support template alias

This commit is contained in:
Christophe Riccio 2017-01-07 12:36:25 +01:00
parent 39f775fa6c
commit 41cf89516e

View File

@ -101,6 +101,14 @@ namespace detail
# endif
}//namespace detail
#if GLM_HAS_TEMPLATE_ALIASES
template <length_t L, typename T, precision P = defaultp> struct vec;
template <typename T, precision P = defaultp> using tvec1 = vec<1, T, P>;
template <typename T, precision P = defaultp> using tvec2 = vec<2, T, P>;
template <typename T, precision P = defaultp> using tvec3 = vec<3, T, P>;
template <typename T, precision P = defaultp> using tvec4 = vec<4, T, P>;
#endif//GLM_HAS_TEMPLATE_ALIASES
typedef vec<1, float, highp> highp_vec1_t;
typedef vec<1, float, mediump> mediump_vec1_t;
typedef vec<1, float, lowp> lowp_vec1_t;