diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h new file mode 100644 index 0000000..691eb57 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h | |||
@@ -0,0 +1,56 @@ | |||
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_VRML_READ_H | ||
23 | #define _IMP_VRML_READ_H | ||
24 | |||
25 | #include "imp_vrml2.h" | ||
26 | #include "imp_vrml_types.h" | ||
27 | |||
28 | typedef gboolean (* vrml_read_list_item_callback)(VrmlReader *reader, | ||
29 | gpointer user_data); | ||
30 | |||
31 | gboolean vrml_read_global(VrmlReader *reader); | ||
32 | gboolean vrml_read_check_buffer(VrmlReader *reader); | ||
33 | gboolean vrml_read_skip_ws(VrmlReader *reader); | ||
34 | gboolean vrml_read_skip_unknown(VrmlReader *reader); | ||
35 | gboolean vrml_read_expect(VrmlReader *reader, const gchar c); | ||
36 | gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb, | ||
37 | gpointer user_data); | ||
38 | |||
39 | gchar *vrml_read_token(VrmlReader *reader); | ||
40 | gchar *vrml_read_numeric(VrmlReader *reader); | ||
41 | gchar *vrml_read_id(VrmlReader *reader); | ||
42 | gchar *vrml_read_nodeid(VrmlReader *reader); | ||
43 | gchar *vrml_read_string(VrmlReader *reader); | ||
44 | |||
45 | VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level); | ||
46 | VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level); | ||
47 | |||
48 | static inline void vrml_read_dec(VrmlReader *reader) | ||
49 | { | ||
50 | reader->bufp ++; | ||
51 | reader->bufsize --; | ||
52 | } | ||
53 | |||
54 | static gchar vrml_read_padding[] = " "; | ||
55 | |||
56 | #endif /* _IMP_VRML_READ_H */ | ||