Add IDENTITY constants for quat and simdQuat

- Why the hell am I not studying for the test I have tomorrow
This commit is contained in:
Jesse Talavera-Greenberg 2015-10-05 19:32:19 -04:00
parent 57e6ea071d
commit 5eb7ad5d47
4 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,7 @@ namespace glm
# ifdef GLM_STATIC_CONST_MEMBERS
static const type ZERO;
static const type IDENTITY;
static const type X;
static const type Y;
static const type Z;

View File

@ -54,6 +54,8 @@ namespace detail
const tquat<T, P> tquat<T, P>::ZERO
(static_cast<T>(0), static_cast<T>(0), static_cast<T>(0), static_cast<T>(0));
template <typename T, precision P> const tquat<T, P> tquat<T, P>::IDENTITY;
template <typename T, precision P>
const tquat<T, P> tquat<T, P>::X
(static_cast<T>(0), static_cast<T>(1), static_cast<T>(0), static_cast<T>(0));

View File

@ -93,6 +93,7 @@ namespace detail
# ifdef GLM_STATIC_CONST_MEMBERS
static const type ZERO;
static const type IDENTITY;
static const type X;
static const type Y;
static const type Z;

View File

@ -53,6 +53,7 @@ void print(const fvec4SIMD &v)
# ifdef GLM_STATIC_CONST_MEMBERS
const fquatSIMD fquatSIMD::ZERO(0, 0, 0, 0);
const fquatSIMD fquatSIMD::IDENTITY(1, 0, 0, 0);
const fquatSIMD fquatSIMD::X(0, 1, 0, 0);
const fquatSIMD fquatSIMD::Y(0, 0, 1, 0);
const fquatSIMD fquatSIMD::Z(0, 0, 0, 1);