summaryrefslogtreecommitdiff
path: root/src/geometry/geometry.h
blob: eb0395f9db231f0ae1fb7dc850196e97a513e4ab (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
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef KALMIA_GEOMETRY_H
#define KALMIA_GEOMETRY_H

#include <kalmia.h>
#include "xml/xml.h"

int kai_read_float_array(struct ka_float_array_t *dest, struct kai_tag_t *src);
void kai_release_float_array(struct ka_float_array_t fa);

int kai_read_param(struct ka_param_t *dest, struct kai_tag_t *src);
void kai_release_param(struct ka_param_t p);

int kai_read_accessor(struct ka_accessor_t *dest, struct kai_tag_t *src);
void kai_release_accessor(struct ka_accessor_t a);

int kai_read_source(struct ka_source_t *dest, struct kai_tag_t *src);
void kai_release_source(struct ka_source_t s);

int kai_read_input_unshared(struct ka_input_t *dest, struct kai_tag_t *src);
int kai_read_input_shared(struct ka_input_t *dest, struct kai_tag_t *src);
void kai_release_input(struct ka_input_t i);

int kai_read_vertices(struct ka_vertices_t *dest, struct kai_tag_t *src);
void kai_release_vertices(struct ka_vertices_t v);

int kai_read_triangles(struct ka_triangles_t *dest, struct kai_tag_t *src);
void kai_release_triangles(struct ka_triangles_t t);

int kai_read_mesh(struct ka_mesh_t *dest, struct kai_tag_t *src);
void kai_release_mesh(struct ka_mesh_t m);

int kai_read_geometry(struct ka_geometry_t *dest, struct kai_tag_t *src);
void kai_release_geometry(struct ka_geometry_t m);

int kai_read_library_geometries(struct ka_library_geometries_t *dest, struct kai_tag_t *src);
void kai_release_library_geometries(struct ka_library_geometries_t l);

#endif