Add the ability to convert a SIMD quat to a standard mat4.

This commit is contained in:
Dave Reid 2013-04-24 09:54:28 +10:00
parent 942bf08fe3
commit d07496460a
2 changed files with 13 additions and 0 deletions

View File

@ -189,6 +189,11 @@ namespace detail
detail::fmat4x4SIMD mat4SIMD_cast(
detail::fquatSIMD const & q);
//! Converts a simdQuat to a standard mat4.
//! (From GLM_GTX_simd_quat extension)
mat4 mat4_cast(
detail::fquatSIMD const & q);
/// Returns the length of the quaternion.
///

View File

@ -365,6 +365,14 @@ GLM_FUNC_QUALIFIER detail::fmat4x4SIMD mat4SIMD_cast
return result;
}
GLM_FUNC_QUALIFIER mat4 mat4_cast
(
detail::fquatSIMD const & q
)
{
return mat4_cast(mat4SIMD_cast(q));
}
GLM_FUNC_QUALIFIER float length