diff --git a/glm/gtc/type_ptr.inl b/glm/gtc/type_ptr.inl index fb4c4a49..6b3e1ac0 100644 --- a/glm/gtc/type_ptr.inl +++ b/glm/gtc/type_ptr.inl @@ -295,6 +295,17 @@ namespace glm /// Return the constant address to the data of the quaternion input. /// @see gtc_type_ptr template + GLM_FUNC_QUALIFIER T * value_ptr + ( + detail::tquat & q + ) + { + return &(q[0]); + } + + //! Return the constant address to the data of the input parameter. + /// @see gtc_type_ptr + template GLM_FUNC_QUALIFIER T const * value_ptr ( detail::tquat const & q