summaryrefslogtreecommitdiff
path: root/src/geometry/geometry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/geometry/geometry.h')
-rw-r--r--src/geometry/geometry.h20
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