diff options
author | sanine <sanine.not@pm.me> | 2022-12-10 21:26:05 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-12-10 21:26:05 -0600 |
commit | e68e6d4e433fe42a0c6df18b2f2d7990b91b7cd6 (patch) | |
tree | 823ba0a5f0f062692d04f32dfb2b26240fd71a7b /src/geometry/geometry.h | |
parent | 7c47f23ee92afa07c748700f1de22fd8b8ccf967 (diff) |
add basic float_array parsing
Diffstat (limited to 'src/geometry/geometry.h')
-rw-r--r-- | src/geometry/geometry.h | 20 |
1 files changed, 20 insertions, 0 deletions
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 <kalmia.h> +#include <ezxml.h> + +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 |