From 79087a9813f0b28e0cd4aae2f0dc21c8efcb4609 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Wed, 18 Sep 2019 23:33:10 +0300 Subject: [PATCH] mat4: add zero for call --- include/cglm/call/mat3.h | 4 ++++ src/mat3.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/include/cglm/call/mat3.h b/include/cglm/call/mat3.h index fbd8270..36dcb27 100644 --- a/include/cglm/call/mat3.h +++ b/include/cglm/call/mat3.h @@ -24,6 +24,10 @@ CGLM_EXPORT void glmc_mat3_identity(mat3 mat); +CGLM_EXPORT +void +glmc_mat3_zero(mat3 mat); + CGLM_EXPORT void glmc_mat3_identity_array(mat3 * __restrict mat, size_t count); diff --git a/src/mat3.c b/src/mat3.c index 337f1f1..1286bd9 100644 --- a/src/mat3.c +++ b/src/mat3.c @@ -20,6 +20,12 @@ glmc_mat3_identity(mat3 mat) { glm_mat3_identity(mat); } +CGLM_EXPORT +void +glmc_mat3_zero(mat3 mat) { + glm_mat3_zero(mat); +} + CGLM_EXPORT void glmc_mat3_identity_array(mat3 * __restrict mat, size_t count) {