From 0377b99f80e900b44a3bd03de02d4d9ee61ba679 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Wed, 18 Sep 2019 17:07:15 +0300 Subject: [PATCH] mat4: add zero for call --- include/cglm/call/mat4.h | 4 ++++ src/mat4.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/include/cglm/call/mat4.h b/include/cglm/call/mat4.h index 54fbcbe..1c71da1 100644 --- a/include/cglm/call/mat4.h +++ b/include/cglm/call/mat4.h @@ -33,6 +33,10 @@ CGLM_EXPORT void glmc_mat4_identity_array(mat4 * __restrict mat, size_t count); +CGLM_EXPORT +void +glmc_mat4_zero(mat4 mat); + CGLM_EXPORT void glmc_mat4_pick3(mat4 mat, mat3 dest); diff --git a/src/mat4.c b/src/mat4.c index c648a6e..a9f39c6 100644 --- a/src/mat4.c +++ b/src/mat4.c @@ -32,6 +32,12 @@ glmc_mat4_identity_array(mat4 * __restrict mat, size_t count) { glm_mat4_identity_array(mat, count); } +CGLM_EXPORT +void +glmc_mat4_zero(mat4 mat) { + glm_mat4_zero(mat); +} + CGLM_EXPORT void glmc_mat4_pick3(mat4 mat, mat3 dest) {