Add simdMat4 static constants

- Tests, too
This commit is contained in:
Jesse Talavera-Greenberg
2015-10-05 19:31:17 -04:00
parent ef320a2a2f
commit 57e6ea071d
3 changed files with 21 additions and 1 deletions

View File

@@ -83,6 +83,11 @@ namespace detail
static GLM_RELAXED_CONSTEXPR precision prec = defaultp;
# endif//GLM_META_PROG_HELPERS
# ifdef GLM_STATIC_CONST_MEMBERS
static const type ZERO;
static const type IDENTITY;
# endif
GLM_FUNC_DECL length_t length() const;
fvec4SIMD Data[4];

View File

@@ -61,6 +61,11 @@ GLM_FUNC_QUALIFIER fvec4SIMD const & fmat4x4SIMD::operator[]
return this->Data[i];
}
#ifdef GLM_STATIC_CONST_MEMBERS
const fmat4x4SIMD fmat4x4SIMD::ZERO(0);
const fmat4x4SIMD fmat4x4SIMD::IDENTITY(1);
#endif
//////////////////////////////////////////////////////////////
// Constructors