mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
improve translate_make
This commit is contained in:
@@ -194,8 +194,8 @@ glm_translate_z(mat4 m, float z) {
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_translate_make(mat4 m, vec3 v) {
|
glm_translate_make(mat4 m, vec3 v) {
|
||||||
mat4 t = GLM_MAT4_IDENTITY_INIT;
|
glm_mat4_identity(m);
|
||||||
glm_translate_to(t, v, m);
|
glm_vec_copy(v, m[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user