diff options
Diffstat (limited to '')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h new file mode 100644 index 0000000..80a2c8c --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h | |||
@@ -0,0 +1,55 @@ | |||
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_3DS_H | ||
23 | #define _IMP_3DS_H | ||
24 | |||
25 | #include <stdio.h> | ||
26 | #include <glib.h> | ||
27 | #include <g3d/g3d.h> | ||
28 | #include <g3d/stream.h> | ||
29 | |||
30 | typedef struct { | ||
31 | G3DContext *context; | ||
32 | G3DModel *model; | ||
33 | G3DStream *stream; | ||
34 | G3DFloat scale; | ||
35 | gint32 max_tex_id; | ||
36 | } x3ds_global_data; | ||
37 | |||
38 | typedef struct { | ||
39 | gint32 id; | ||
40 | gpointer object; | ||
41 | gpointer misc_object; | ||
42 | gint32 level; | ||
43 | gpointer level_object; | ||
44 | guint32 nb; | ||
45 | } x3ds_parent_data; | ||
46 | |||
47 | typedef gboolean (* x3ds_callback)(x3ds_global_data *global, | ||
48 | x3ds_parent_data *parent); | ||
49 | |||
50 | gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent); | ||
51 | void x3ds_update_progress(x3ds_global_data *global, guint32 level); | ||
52 | gint32 x3ds_read_cstr(G3DStream *stream, gchar *string); | ||
53 | G3DObject *x3ds_newobject(G3DModel *model, const gchar *name); | ||
54 | |||
55 | #endif /* _IMP_3DS_H */ | ||