From e68e6d4e433fe42a0c6df18b2f2d7990b91b7cd6 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 10 Dec 2022 21:26:05 -0600 Subject: add basic float_array parsing --- src/geometry/geometry.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/geometry/geometry.h (limited to 'src/geometry/geometry.h') diff --git a/src/geometry/geometry.h b/src/geometry/geometry.h new file mode 100644 index 0000000..971bd1b --- /dev/null +++ b/src/geometry/geometry.h @@ -0,0 +1,20 @@ +#ifndef KALMIA_GEOMETRY_H +#define KALMIA_GEOMETRY_H + +#include +#include + +typedef struct { + char *id; + size_t count; + ka_real_t *array; +} ka_float_array_t; + + +/* allocate a new float array and parse an xml tag into it */ +ka_float_array_t * kai_parse_float_array(ezxml_t tag); + +/* free a loaded float array */ +void kai_free_float_array(ka_float_array_t *array); + +#endif -- cgit v1.2.1