summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-11-27 20:03:27 -0600
committersanine <sanine.not@pm.me>2022-11-27 20:03:27 -0600
commit6ca18697f9eb332c38f0b46b823089ce80347580 (patch)
tree267d074f74ebfa54f1c90fd3361e6b2dbf793613 /include
parent21e8b8ad389dda55d92af4af1fd22aac657074b4 (diff)
add dynamic array functions
Diffstat (limited to 'include')
-rw-r--r--include/kalmia.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/kalmia.h b/include/kalmia.h
index d01fb5d..73d5df3 100644
--- a/include/kalmia.h
+++ b/include/kalmia.h
@@ -45,6 +45,8 @@
#ifndef KALMIA_H
#define KALMIA_H
+#include <stddef.h>
+
/* kalmia uses semantic versioning (semver.org) */
#define KALMIA_VERSION_MAJOR 0
#define KALMIA_VERSION_MINOR 0
@@ -60,6 +62,13 @@
/* format data structures */
typedef double ka_matrix_t[16];
+typedef struct ka_node_t {
+ ka_matrix_t transform;
+} ka_node_t;
+typedef struct kalmia_t {
+ size_t n_nodes, n_nodes_max;
+ ka_node_t *node;
+} kalmia_t;
#endif