aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
new file mode 100644
index 0000000..ac9e3fc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
@@ -0,0 +1,95 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_CHUNKS_H
24#define _IMP_DAE_CHUNKS_H
25
26#include "imp_dae_cb.h"
27
28static DaeChunkDesc dae_chunks_bind_material[] = {
29 { "technique_common", dae_cb_technique_common },
30 { NULL, NULL }
31};
32
33static DaeChunkDesc dae_chunks_effect[] = {
34 { "profile_COMMON", dae_cb_profile_COMMON },
35 { NULL, NULL }
36};
37
38static DaeChunkDesc dae_chunks_geometry[] = {
39 { "bind_material", dae_cb_bind_material },
40 { "mesh", dae_cb_mesh },
41 { NULL, NULL }
42};
43
44static DaeChunkDesc dae_chunks_material[] = {
45 { "effect", dae_cb_effect },
46 { NULL, NULL }
47};
48
49static DaeChunkDesc dae_chunks_mesh[] = {
50 { "lines", NULL },
51 { "polylist", dae_cb_polylist },
52 { "source", dae_cb_source },
53 { "triangles", dae_cb_triangles },
54 { "vertices", dae_cb_vertices },
55 { NULL, NULL }
56};
57
58static DaeChunkDesc dae_chunks_node[] = {
59 { "camera", NULL },
60 { "controller", NULL },
61 { "geometry", dae_cb_geometry },
62 { "light", NULL },
63 { "matrix", dae_cb_matrix },
64 { "node", dae_cb_node },
65 { "scale", dae_cb_scale },
66 { "rotate", dae_cb_rotate },
67 { "translate", dae_cb_translate },
68 { NULL, NULL }
69};
70
71static DaeChunkDesc dae_chunks_profile_COMMON[] = {
72 { "extra", NULL },
73 { "newparam", dae_cb_newparam },
74 { "technique", dae_cb_technique },
75 { NULL, NULL }
76};
77
78static DaeChunkDesc dae_chunks_technique[] = {
79 { "blinn", dae_cb_phong },
80 { "lambert", dae_cb_phong },
81 { "phong", dae_cb_phong },
82 { NULL, NULL }
83};
84
85static DaeChunkDesc dae_chunks_vertices[] = {
86 { "input", dae_cb_vertices__input },
87 { NULL, NULL }
88};
89
90static DaeChunkDesc dae_chunks_visual_scene[] = {
91 { "node", dae_cb_node },
92 { NULL, NULL }
93};
94
95#endif /* _IMP_DAE_CHUNKS_H */