1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/* $Id:$ */
/*
libg3d - 3D object loading library
Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _IMP_DXF_TYPES_H
#define _IMP_DXF_TYPES_H
#include <g3d/types.h>
typedef struct {
G3DContext *context;
G3DModel *model;
G3DStream *stream;
gboolean binary;
GHashTable *blocks;
} DxfGlobalData;
typedef struct {
G3DObject *object;
G3DObject *block;
G3DMaterial *material;
guint32 vertex_offset;
guint32 tmp_i1;
guint32 polyline_flags;
} DxfEntityData;
typedef struct _DxfEntityProps DxfEntityProps;
typedef struct {
gint32 id;
guint32 sid; /* section id */
guint32 eid; /* entity id */
DxfEntityData *edata;
DxfEntityProps *eprop;
} DxfLocalData;
typedef gboolean (* DxfCallback)(DxfGlobalData *, DxfLocalData *);
typedef struct {
const gchar *name;
const gchar *description;
guint32 id;
DxfCallback callback;
} DxfEntityInfo;
typedef enum {
DXF_T_UNKNOWN,
DXF_T_EMPTY,
DXF_T_INT16,
DXF_T_INT32,
DXF_T_FLOAT64,
DXF_T_STRING
} DxfChunkType;
typedef struct {
gint32 id;
const gchar *description;
DxfChunkType type;
} DxfChunkInfo;
#endif /* _IMP_DXF_TYPES_H */
|