aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
new file mode 100644
index 0000000..92af752
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
@@ -0,0 +1,59 @@
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_SKP_CALLBACKS_H
24#define _IMP_SKP_CALLBACKS_H
25
26#include <g3d/types.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DModel *model;
31 G3DStream *stream;
32 GSList *layers;
33 GSList *components;
34} SkpGlobalData;
35
36typedef struct {
37 gchar *id;
38 guint32 version;
39 gpointer object;
40} SkpLocalData;
41
42typedef gboolean (* SkpCallback)(SkpGlobalData *global, SkpLocalData *local);
43
44/* callbacks */
45
46gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local);
47gboolean skp_cb_attribute_container(SkpGlobalData *global,
48 SkpLocalData *local);
49gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local);
50gboolean skp_cb_component_definition(SkpGlobalData *global,
51 SkpLocalData *local);
52gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local);
53gboolean skp_cb_face_texture_coords(SkpGlobalData *global,
54 SkpLocalData *local);
55gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local);
56gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local);
57gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local);
58
59#endif /* _IMP_SKP_CALLBACKS_H */