From 118980e02e59ff31871df59dce257075394f3533 Mon Sep 17 00:00:00 2001 From: Aaditya Dhruv Date: Sun, 25 Jan 2026 15:10:37 -0600 Subject: wip --- include/cglm/call/mat4x2.h | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 include/cglm/call/mat4x2.h (limited to 'include/cglm/call/mat4x2.h') diff --git a/include/cglm/call/mat4x2.h b/include/cglm/call/mat4x2.h new file mode 100644 index 0000000..4711d2b --- /dev/null +++ b/include/cglm/call/mat4x2.h @@ -0,0 +1,47 @@ +/* + * Copyright (c), Recep Aslantas. + * + * MIT License (MIT), http://opensource.org/licenses/MIT + * Full license can be found in the LICENSE file + */ + +#ifndef cglmc_mat4x2_h +#define cglmc_mat4x2_h +#ifdef __cplusplus +extern "C" { +#endif + +#include "../cglm.h" + +CGLM_EXPORT +void +glmc_mat4x2_copy(mat4x2 src, mat4x2 dest); + +CGLM_EXPORT +void +glmc_mat4x2_zero(mat4x2 m); + +CGLM_EXPORT +void +glmc_mat4x2_make(const float * __restrict src, mat4x2 dest); + +CGLM_EXPORT +void +glmc_mat4x2_mul(mat4x2 m1, mat2x4 m2, mat2 dest); + +CGLM_EXPORT +void +glmc_mat4x2_mulv(mat4x2 m, vec4 v, vec2 dest); + +CGLM_EXPORT +void +glmc_mat4x2_transpose(mat4x2 src, mat2x4 dest); + +CGLM_EXPORT +void +glmc_mat4x2_scale(mat4x2 m, float s); + +#ifdef __cplusplus +} +#endif +#endif /* cglmc_mat4x2_h */ -- cgit