aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
new file mode 100644
index 0000000..471a14c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_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#ifndef _IMP_3DMF_CHUNKS_H
23#define _IMP_3DMF_CHUNKS_H
24
25#include <g3d/iff.h>
26#include "imp_3dmf_callbacks.h"
27
28typedef struct {
29 guint32 id;
30 const gchar *description;
31 X3dmfCallback callback;
32} X3dmfChunkDesc;
33
34#define ID G3D_IFF_MKID
35
36static X3dmfChunkDesc x3dmf_chunks[] = {
37 { ID('a', 'm', 'b', 'n'), "ambient light", NULL },
38 { ID('a', 't', 'a', 'r'), "(registered unknown)", NULL },
39 { ID('a', 't', 't', 'r'), "attribute set", NULL },
40 { ID('b', 'g', 'n', 'g'), "begin group", NULL },
41 { ID('c', 'a', 'm', 'b'), "ambient coefficient", NULL },
42 { ID('c', 'm', 'p', 'l'), "camera placement", NULL },
43 { ID('c', 'm', 'r', 'g'), "camera range", NULL },
44 { ID('c', 'm', 'v', 'p'), "camera viewport", NULL },
45 { ID('c', 'n', 't', 'r'), "container", NULL },
46 { ID('c', 's', 'g', 'e'), "(registered unknown)", NULL },
47 { ID('c', 's', 'p', 'c'), "specular control", NULL },
48 { ID('c', 't', 'w', 'n'), "interactive renderer", NULL },
49 { ID('d', 'b', 'b', 'p'), "(registered unknown)", NULL },
50 { ID('d', 'r', 'c', 't'), "directional light", NULL },
51 { ID('e', 'n', 'd', 'g'), "end group", NULL },
52 { ID('h', 'l', 's', 't'), "highlight state", NULL },
53 { ID('i', 'm', 'c', 'c'), "image clear color", NULL },
54 { ID('i', 'm', 'd', 'm'), "image dimensions", NULL },
55 { ID('k', 'd', 'i', 'f'), "diffuse color", NULL },
56 { ID('k', 's', 'p', 'c'), "specular color", NULL },
57 { ID('k', 'x', 'p', 'r'), "transparency color", NULL },
58 { ID('l', 'g', 'h', 't'), "light data", NULL },
59 { ID('m', 'e', 's', 'h'), "mesh", NULL },
60 { ID('m', 't', 'r', 'x'), "matrix", NULL },
61 { ID('n', 'r', 'm', 'l'), "normal", NULL },
62 { ID('p', 'n', 't', 'l'), "point light", NULL },
63 { ID('r', 'f', 'r', 'n'), "reference", NULL },
64 { ID('r', 'v', 'h', 'n'), "(registered unknown)", NULL },
65 { ID('r', 'v', 't', 'x'), "(registered unknown)", NULL },
66 { ID('s', 'e', 't', ' '), "set", NULL },
67 { ID('s', 't', 'r', 'c'), "C string", NULL },
68 { ID('t', 'm', 's', 'h'), "triangle mesh", NULL },
69 { ID('t', 'o', 'c', ' '), "tabe of contents", NULL },
70 { ID('t', 'r', 'n', 's'), "translation", NULL },
71 { ID('t', 'y', 'p', 'e'), "type definition", NULL },
72 { ID('v', 'a', 'n', 'a'), "view angle aspect cam", NULL },
73 { ID('v', 'a', 's', 'l'), "vertex attr set list", NULL },
74 { ID('v', 'n', 'i', 'd'), "(registered unknown)", NULL },
75 { ID('v', 'w', 'h', 'n'), "view hints", NULL },
76 { ID('v', 'w', 'p', 'l'), "view plane camera", NULL },
77
78 { ID(0xFF, 0xFF, 0xFF, 0xE5), "0xFFFFFFE5", NULL },
79 { ID(0xFF, 0xFF, 0xFF, 0xE7), "0xFFFFFFE7", NULL },
80 { ID(0xFF, 0xFF, 0xFF, 0xE9), "0xFFFFFFE9", NULL },
81 { ID(0xFF, 0xFF, 0xFF, 0xEA), "0xFFFFFFEA", NULL },
82 { ID(0xFF, 0xFF, 0xFF, 0xEB), "0xFFFFFFEB", NULL },
83 { ID(0xFF, 0xFF, 0xFF, 0xEC), "0xFFFFFFEC", NULL },
84 { ID(0xFF, 0xFF, 0xFF, 0xEF), "0xFFFFFFEF (EoC?)", NULL },
85 { ID(0xFF, 0xFF, 0xFF, 0xF1), "0xFFFFFFF1", NULL },
86 { ID(0xFF, 0xFF, 0xFF, 0xF4), "0xFFFFFFF4", NULL },
87 { ID(0xFF, 0xFF, 0xFF, 0xF6), "0xFFFFFFF6", NULL },
88 { ID(0xFF, 0xFF, 0xFF, 0xFD), "0xFFFFFFFD", NULL },
89
90 { 0, NULL, NULL }
91};
92
93#undef ID
94
95#endif /* _IMP_3DMF_CHUNKS_H */