diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h new file mode 100644 index 0000000..ac7299e --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h | |||
@@ -0,0 +1,62 @@ | |||
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_LEOCAD_LIBRARY_H | ||
24 | #define IMP_LEOCAD_LIBRARY_H | ||
25 | |||
26 | #include <stdio.h> | ||
27 | |||
28 | #include <g3d/types.h> | ||
29 | #include <g3d/stream.h> | ||
30 | |||
31 | typedef struct | ||
32 | { | ||
33 | gchar *name; | ||
34 | gchar *description; | ||
35 | gchar *moved_to; | ||
36 | |||
37 | guint16 bounding_box[6]; | ||
38 | guint8 flags; | ||
39 | guint32 default_group; | ||
40 | guint32 offset_bin; | ||
41 | guint32 info_size; | ||
42 | |||
43 | G3DObject *object; | ||
44 | } | ||
45 | LeoCadPiece; | ||
46 | |||
47 | typedef struct | ||
48 | { | ||
49 | G3DStream *pieces_bin; | ||
50 | GHashTable *pieces; | ||
51 | GSList *materials; | ||
52 | } | ||
53 | LeoCadLibrary; | ||
54 | |||
55 | LeoCadLibrary *leocad_library_load(const gchar *libdir); | ||
56 | void leocad_library_free(LeoCadLibrary *library); | ||
57 | guint8 leocad_library_convert_color(guint8 n); | ||
58 | G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name); | ||
59 | G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n); | ||
60 | |||
61 | #endif /* IMP_LEOCAD_LIBRARY_H */ | ||
62 | |||