diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h new file mode 100644 index 0000000..6ab82bd --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h | |||
@@ -0,0 +1,63 @@ | |||
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_BLEND_CHUNKS_H | ||
23 | #define _IMP_BLEND_CHUNKS_H | ||
24 | |||
25 | #include "imp_blend_def.h" | ||
26 | #include "imp_blend_types.h" | ||
27 | #include "imp_blend_callbacks.h" | ||
28 | |||
29 | typedef gboolean (* BlendCallback)(BlendGlobal *, BlendLocal *); | ||
30 | |||
31 | typedef struct { | ||
32 | guint32 code; | ||
33 | guint32 oid; | ||
34 | const gchar *description; | ||
35 | BlendCallback callback; | ||
36 | } BlendChunkInfo; | ||
37 | |||
38 | #define ID_DATA MKID('D','A','T','A') | ||
39 | |||
40 | static const BlendChunkInfo blend_chunks[] = { | ||
41 | { ID_DATA, MKID2('M','E'), "mesh data", blend_cb_DATA_ME }, | ||
42 | { ID_DATA, 0, "struct data", NULL }, | ||
43 | |||
44 | { MKID2('C','A'), 0, "camera", NULL }, | ||
45 | { MKID2('I','M'), 0, "image", NULL }, | ||
46 | { MKID2('L','A'), 0, "lamp", NULL }, | ||
47 | { MKID2('M','A'), 0, "material", blend_cb_MA }, | ||
48 | { MKID2('M','E'), 0, "mesh", blend_cb_ME }, | ||
49 | { MKID2('O','B'), 0, "object", blend_cb_OB }, | ||
50 | { MKID2('S','C'), 0, "scene", NULL }, | ||
51 | { MKID2('S','R'), 0, "screen", NULL }, | ||
52 | { MKID2('T','E'), 0, "texture", NULL }, | ||
53 | { MKID2('T','X'), 0, "text", NULL }, | ||
54 | { MKID2('W','O'), 0, "world", NULL }, | ||
55 | |||
56 | { MKID('D','N','A','1'), 0, "SDNA data", blend_cb_DNA1 }, | ||
57 | { MKID('G','L','O','B'), 0, "global data", NULL }, | ||
58 | { MKID('R','E','N','D'), 0, "render data", NULL }, | ||
59 | |||
60 | { 0, 0, NULL, NULL } | ||
61 | }; | ||
62 | |||
63 | #endif /* _IMP_BLEND_CHUNKS_H */ | ||