Back port fix for issue #99

This commit is contained in:
Christophe Riccio 2013-08-12 22:32:39 +02:00
parent 1375a99b83
commit 5b525ced24

View File

@ -284,6 +284,14 @@ namespace glm
return &(mat[0].x);
}
//! Get the address of the matrix content.
/// @see gtc_type_ptr
template<typename T>
GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3<T> & mat)
{
return &(mat[0].x);
}
//! Return the constant address to the data of the input parameter.
/// @see gtc_type_ptr
template<typename T>
@ -295,12 +303,15 @@ namespace glm
return &(q[0]);
}
//! Get the address of the matrix content.
//! Return the constant address to the data of the input parameter.
/// @see gtc_type_ptr
template<typename T>
GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3<T> & mat)
GLM_FUNC_QUALIFIER T * value_ptr
(
detail::tquat<T> & q
)
{
return &(mat[0].x);
return &(q[0]);
}
//! Build a vector from a pointer.