Browse Source

Merge pull request #99 from jarmond/0.9.5

Add missing non-const value_ptr for quat
Christophe Riccio 12 years ago
parent
commit
07d0077773
1 changed files with 11 additions and 0 deletions
  1. 11 0
      glm/gtc/type_ptr.inl

+ 11 - 0
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<typename T, precision P>
+	GLM_FUNC_QUALIFIER T * value_ptr
+	(
+		detail::tquat<T, P> & q
+	)
+	{
+		return &(q[0]);
+	}
+
 	//! Return the constant address to the data of the input parameter.
 	/// @see gtc_type_ptr
 	template<typename T, precision P>