From 6ca18697f9eb332c38f0b46b823089ce80347580 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 27 Nov 2022 20:03:27 -0600 Subject: add dynamic array functions --- include/kalmia.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') 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 + /* 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 -- cgit v1.2.1