mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 04:31:47 +00:00
Back port fix for issue #99
This commit is contained in:
parent
1375a99b83
commit
5b525ced24
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user