summaryrefslogtreecommitdiff
path: root/src/transform.h
blob: db582ac1ff58bcfa7f3e68e61931271681e00f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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