aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
new file mode 100644
index 0000000..7be6036
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
@@ -0,0 +1,78 @@
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_TYPES_H
23#define _IMP_DXF_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DModel *model;
30 G3DStream *stream;
31 gboolean binary;
32 GHashTable *blocks;
33} DxfGlobalData;
34
35typedef struct {
36 G3DObject *object;
37 G3DObject *block;
38 G3DMaterial *material;
39 guint32 vertex_offset;
40 guint32 tmp_i1;
41 guint32 polyline_flags;
42} DxfEntityData;
43
44typedef struct _DxfEntityProps DxfEntityProps;
45
46typedef struct {
47 gint32 id;
48 guint32 sid; /* section id */
49 guint32 eid; /* entity id */
50 DxfEntityData *edata;
51 DxfEntityProps *eprop;
52} DxfLocalData;
53
54typedef gboolean (* DxfCallback)(DxfGlobalData *, DxfLocalData *);
55
56typedef struct {
57 const gchar *name;
58 const gchar *description;
59 guint32 id;
60 DxfCallback callback;
61} DxfEntityInfo;
62
63typedef enum {
64 DXF_T_UNKNOWN,
65 DXF_T_EMPTY,
66 DXF_T_INT16,
67 DXF_T_INT32,
68 DXF_T_FLOAT64,
69 DXF_T_STRING
70} DxfChunkType;
71
72typedef struct {
73 gint32 id;
74 const gchar *description;
75 DxfChunkType type;
76} DxfChunkInfo;
77
78#endif /* _IMP_DXF_TYPES_H */