From 63966ee5c0c40b585fb5548ed5b7c4a04d270f4a Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Wed, 18 Apr 2018 15:16:24 +0300 Subject: [PATCH] quat: use the new "glm_mul_rot" for quaternion * this should be faster than mat4_mul --- include/cglm/quat.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/cglm/quat.h b/include/cglm/quat.h index d1da27f..6f0e87d 100644 --- a/include/cglm/quat.h +++ b/include/cglm/quat.h @@ -55,6 +55,7 @@ #include "vec4.h" #include "mat4.h" #include "mat3.h" +#include "affine-mat.h" #ifdef CGLM_SSE_FP # include "simd/sse2/quat.h" @@ -70,7 +71,7 @@ glm_mat4_mulv(mat4 m, vec4 v, vec4 dest); CGLM_INLINE void -glm_mat4_mul(mat4 m1, mat4 m2, mat4 dest); +glm_mul_rot(mat4 m1, mat4 m2, mat4 dest); CGLM_INLINE void @@ -745,7 +746,7 @@ void glm_quat_rotate(mat4 m, versor q, mat4 dest) { mat4 rot; glm_quat_mat4(q, rot); - glm_mat4_mul(m, rot, dest); + glm_mul_rot(m, rot, dest); } /*!