Add the ability to convert a SIMD quat to a standard mat4.
This commit is contained in:
parent
942bf08fe3
commit
d07496460a
@ -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.
|
||||
///
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user