diff --git a/glm/gtc/type_ptr.inl b/glm/gtc/type_ptr.inl index ac14036a..304f3e6e 100644 --- a/glm/gtc/type_ptr.inl +++ b/glm/gtc/type_ptr.inl @@ -284,6 +284,17 @@ namespace glm return &(mat[0].x); } + //! Return the constant address to the data of the input parameter. + /// @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