diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h new file mode 100644 index 0000000..8c0cc1d --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h | |||
@@ -0,0 +1,53 @@ | |||
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_DXF_H | ||
23 | #define _IMP_DXF_H | ||
24 | |||
25 | #include <g3d/types.h> | ||
26 | #include <g3d/stream.h> | ||
27 | |||
28 | #include "imp_dxf_types.h" | ||
29 | |||
30 | #define DXF_TEST_ENDSEC(str) \ | ||
31 | if(strcmp((str), "ENDSEC") == 0) return TRUE; | ||
32 | |||
33 | #define DXF_HANDLE_UNKNOWN(global, key, str, section) \ | ||
34 | if(global->binary) { \ | ||
35 | g_warning("imp_dxf: unhandled key %d in section %s @ %#x", \ | ||
36 | key, section, (guint32)g3d_stream_tell(global->stream)); \ | ||
37 | return FALSE; \ | ||
38 | } else { \ | ||
39 | g3d_stream_read_line(global->stream, str, DXF_MAX_LINE); \ | ||
40 | g_debug(\ | ||
41 | "imp_dxf: skipping line %d (section %s, key %d):\n\t\"%s\"\n", \ | ||
42 | g3d_stream_line(global->stream), section, key, str); \ | ||
43 | } | ||
44 | |||
45 | gint32 dxf_read_section(DxfGlobalData *global, G3DObject *object); | ||
46 | gint32 dxf_read_code(DxfGlobalData *global); | ||
47 | gchar *dxf_read_string(DxfGlobalData *global, gchar *value); | ||
48 | gint32 dxf_read_int16(DxfGlobalData *global); | ||
49 | gint32 dxf_read_int32(DxfGlobalData *global); | ||
50 | gdouble dxf_read_float64(DxfGlobalData *global); | ||
51 | gboolean dxf_skip_section(DxfGlobalData *global); | ||
52 | |||
53 | #endif | ||