diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp index 37df9a96..f5711c64 100644 --- a/glm/gtc/quaternion.hpp +++ b/glm/gtc/quaternion.hpp @@ -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; diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index a6ea6432..4ee7f802 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -54,6 +54,8 @@ namespace detail const tquat tquat::ZERO (static_cast(0), static_cast(0), static_cast(0), static_cast(0)); + template const tquat tquat::IDENTITY; + template const tquat tquat::X (static_cast(0), static_cast(1), static_cast(0), static_cast(0)); diff --git a/glm/gtx/simd_quat.hpp b/glm/gtx/simd_quat.hpp index 00b32239..16782081 100644 --- a/glm/gtx/simd_quat.hpp +++ b/glm/gtx/simd_quat.hpp @@ -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; diff --git a/glm/gtx/simd_quat.inl b/glm/gtx/simd_quat.inl index dfa5b3c1..c301988a 100644 --- a/glm/gtx/simd_quat.inl +++ b/glm/gtx/simd_quat.inl @@ -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);