mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 10:14:35 +00:00
Merge pull request #1074 from szabolcsdombi/quaternion-constructor-parameters-fix
make quaternion constructor respect GLM_FORCE_QUAT_DATA_XYZW
This commit is contained in:
commit
f0066a2acf
@ -88,7 +88,12 @@ namespace glm
|
||||
// -- Explicit basic constructors --
|
||||
|
||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T s, vec<3, T, Q> const& v);
|
||||
|
||||
# ifdef GLM_FORCE_QUAT_DATA_XYZW
|
||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T x, T y, T z, T w);
|
||||
# else
|
||||
GLM_FUNC_DECL GLM_CONSTEXPR qua(T w, T x, T y, T z);
|
||||
# endif
|
||||
|
||||
// -- Conversion constructors --
|
||||
|
||||
|
@ -141,12 +141,13 @@ namespace detail
|
||||
{}
|
||||
|
||||
template <typename T, qualifier Q>
|
||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _w, T _x, T _y, T _z)
|
||||
# ifdef GLM_FORCE_QUAT_DATA_XYZW
|
||||
# ifdef GLM_FORCE_QUAT_DATA_XYZW
|
||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _x, T _y, T _z, T _w)
|
||||
: x(_x), y(_y), z(_z), w(_w)
|
||||
# else
|
||||
# else
|
||||
GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua<T, Q>::qua(T _w, T _x, T _y, T _z)
|
||||
: w(_w), x(_x), y(_y), z(_z)
|
||||
# endif
|
||||
# endif
|
||||
{}
|
||||
|
||||
// -- Conversion constructors --
|
||||
|
Loading…
Reference in New Issue
Block a user