diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h new file mode 100644 index 0000000..1de1ce0 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h | |||
@@ -0,0 +1,64 @@ | |||
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_3DM_TYPES_H | ||
23 | #define _IMP_3DM_TYPES_H | ||
24 | |||
25 | #include <g3d/types.h> | ||
26 | |||
27 | typedef struct { | ||
28 | G3DContext *context; | ||
29 | G3DStream *stream; | ||
30 | G3DModel *model; | ||
31 | } TdmGlobal; | ||
32 | |||
33 | typedef struct { | ||
34 | guint32 tcode; | ||
35 | guint32 len; | ||
36 | guint32 data; | ||
37 | guint32 level; | ||
38 | guint16 major_version; | ||
39 | guint16 minor_version; | ||
40 | gpointer object; | ||
41 | } TdmLocal; | ||
42 | |||
43 | typedef gboolean (* TdmCallback)(TdmGlobal *, TdmLocal *); | ||
44 | |||
45 | typedef struct { | ||
46 | guint32 tcode; | ||
47 | gboolean container; | ||
48 | gboolean endofcnt; | ||
49 | const gchar *description; | ||
50 | TdmCallback callback; | ||
51 | } TdmChunkInfo; | ||
52 | |||
53 | typedef struct { | ||
54 | guint32 code; | ||
55 | const gchar *description; | ||
56 | TdmCallback callback; | ||
57 | } TdmObjectTypeInfo; | ||
58 | |||
59 | typedef struct { | ||
60 | guint32 otype; | ||
61 | G3DObject *object; | ||
62 | } TdmObjectRecord; | ||
63 | |||
64 | #endif /* _IMP_3DM_TYPES_H */ | ||