mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 12:34:35 +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,14 +101,22 @@ namespace detail
|
|||||||
# endif
|
# endif
|
||||||
}//namespace detail
|
}//namespace detail
|
||||||
|
|
||||||
typedef vec<1, float, highp> highp_vec1_t;
|
#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, mediump> mediump_vec1_t;
|
||||||
typedef vec<1, float, lowp> lowp_vec1_t;
|
typedef vec<1, float, lowp> lowp_vec1_t;
|
||||||
typedef vec<1, double, highp> highp_dvec1_t;
|
typedef vec<1, double, highp> highp_dvec1_t;
|
||||||
typedef vec<1, double, mediump> mediump_dvec1_t;
|
typedef vec<1, double, mediump> mediump_dvec1_t;
|
||||||
typedef vec<1, double, lowp> lowp_dvec1_t;
|
typedef vec<1, double, lowp> lowp_dvec1_t;
|
||||||
typedef vec<1, int, highp> highp_ivec1_t;
|
typedef vec<1, int, highp> highp_ivec1_t;
|
||||||
typedef vec<1, int, mediump> mediump_ivec1_t;
|
typedef vec<1, int, mediump> mediump_ivec1_t;
|
||||||
typedef vec<1, int, lowp> lowp_ivec1_t;
|
typedef vec<1, int, lowp> lowp_ivec1_t;
|
||||||
typedef vec<1, uint, highp> highp_uvec1_t;
|
typedef vec<1, uint, highp> highp_uvec1_t;
|
||||||
typedef vec<1, uint, mediump> mediump_uvec1_t;
|
typedef vec<1, uint, mediump> mediump_uvec1_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user