mirror of
https://github.com/g-truc/glm.git
synced 2024-11-30 03:44:38 +00:00
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:
parent
39f775fa6c
commit
41cf89516e
@ -101,6 +101,14 @@ namespace detail
|
|||||||
# endif
|
# endif
|
||||||
}//namespace detail
|
}//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, highp> highp_vec1_t;
|
||||||
typedef vec<1, float, mediump> mediump_vec1_t;
|
typedef vec<1, float, mediump> mediump_vec1_t;
|
||||||
typedef vec<1, float, lowp> lowp_vec1_t;
|
typedef vec<1, float, lowp> lowp_vec1_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user