summaryrefslogtreecommitdiff
path: root/libs/cglm/src/mat4.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cglm/src/mat4.c')
-rw-r--r--libs/cglm/src/mat4.c165
1 files changed, 165 insertions, 0 deletions
diff --git a/libs/cglm/src/mat4.c b/libs/cglm/src/mat4.c
new file mode 100644
index 0000000..a9f39c6
--- /dev/null
+++ b/libs/cglm/src/mat4.c
@@ -0,0 +1,165 @@
+/*
+ * Copyright (c), Recep Aslantas.
+ *
+ * MIT License (MIT), http://opensource.org/licenses/MIT
+ * Full license can be found in the LICENSE file
+ */
+
+#include "../include/cglm/cglm.h"
+#include "../include/cglm/call.h"
+
+CGLM_EXPORT
+void
+glmc_mat4_ucopy(mat4 mat, mat4 dest) {
+ glm_mat4_copy(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_copy(mat4 mat, mat4 dest) {
+ glm_mat4_copy(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_identity(mat4 mat) {
+ glm_mat4_identity(mat);
+}
+
+CGLM_EXPORT
+void
+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) {
+ glm_mat4_pick3(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_pick3t(mat4 mat, mat3 dest) {
+ glm_mat4_pick3t(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_ins3(mat3 mat, mat4 dest) {
+ glm_mat4_ins3(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_mul(mat4 m1, mat4 m2, mat4 dest) {
+ glm_mat4_mul(m1, m2, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_mulN(mat4 * __restrict matrices[], uint32_t len, mat4 dest) {
+ glm_mat4_mulN(matrices, len, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_mulv(mat4 m, vec4 v, vec4 dest) {
+ glm_mat4_mulv(m, v, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_mulv3(mat4 m, vec3 v, float last, vec3 dest) {
+ glm_mat4_mulv3(m, v, last, dest);
+}
+
+CGLM_EXPORT
+float
+glmc_mat4_trace(mat4 m) {
+ return glm_mat4_trace(m);
+}
+
+CGLM_EXPORT
+float
+glmc_mat4_trace3(mat4 m) {
+ return glm_mat4_trace3(m);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_quat(mat4 m, versor dest) {
+ glm_mat4_quat(m, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_transpose_to(mat4 m, mat4 dest) {
+ glm_mat4_transpose_to(m, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_transpose(mat4 m) {
+ glm_mat4_transpose(m);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_scale_p(mat4 m, float s) {
+ glm_mat4_scale_p(m, s);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_scale(mat4 m, float s) {
+ glm_mat4_scale(m, s);
+}
+
+CGLM_EXPORT
+float
+glmc_mat4_det(mat4 mat) {
+ return glm_mat4_det(mat);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_inv(mat4 mat, mat4 dest) {
+ glm_mat4_inv(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_inv_precise(mat4 mat, mat4 dest) {
+ glm_mat4_inv_precise(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_inv_fast(mat4 mat, mat4 dest) {
+ glm_mat4_inv_fast(mat, dest);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_swap_col(mat4 mat, int col1, int col2) {
+ glm_mat4_swap_col(mat, col1, col2);
+}
+
+CGLM_EXPORT
+void
+glmc_mat4_swap_row(mat4 mat, int row1, int row2) {
+ glm_mat4_swap_row(mat, row1, row2);
+}
+
+CGLM_EXPORT
+float
+glmc_mat4_rmc(vec4 r, mat4 m, vec4 c) {
+ return glm_mat4_rmc(r, m, c);
+}