summaryrefslogtreecommitdiff
path: root/src/transform/transform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transform/transform.h')
-rw-r--r--src/transform/transform.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/transform/transform.h b/src/transform/transform.h
new file mode 100644
index 0000000..db582ac
--- /dev/null
+++ b/src/transform/transform.h
@@ -0,0 +1,26 @@
+#ifndef KALMIA_TRANSLATE_H
+#define KALMIA_TRANSLATE_H
+
+#include <kalmia.h>
+#include <ezxml.h>
+
+
+/* fill a ka_matrix_t with the identity matrix */
+int kai_identity(ka_matrix_t *m);
+
+/* multiply two matrices together */
+int kai_multiply(ka_matrix_t *dest, ka_matrix_t A, ka_matrix_t B);
+
+/* parse a <matrix> tag into a ka_matrix_t */
+int kai_parse_matrix(ka_matrix_t *m, ezxml_t tag);
+
+/* parse a <rotate> tag into a ka_matrix_t */
+int kai_parse_rotate(ka_matrix_t *m, ezxml_t tag);
+
+/* parse a <scale> tag into a ka_matrix_t */
+int kai_parse_scale(ka_matrix_t *m, ezxml_t tag);
+
+/* parse a <translate> tag into a ka_matrix_t */
+int kai_parse_translate(ka_matrix_t *m, ezxml_t tag);
+
+#endif