diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h')
-rw-r--r-- | src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h new file mode 100644 index 0000000..a4747ec --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h | |||
@@ -0,0 +1,103 @@ | |||
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_VRML2_TYPES_H | ||
23 | #define _IMP_VRML2_TYPES_H | ||
24 | |||
25 | #include "imp_vrml2.h" | ||
26 | #include "imp_vrml_types.h" | ||
27 | |||
28 | /* list or not list */ | ||
29 | VrmlType vrml2_type_cb__float3(VrmlReader *reader); | ||
30 | VrmlType vrml2_type_cb__int(VrmlReader *reader); | ||
31 | |||
32 | VrmlType vrml2_type_cb_field(VrmlReader *reader); | ||
33 | VrmlType vrml2_type_cb_children(VrmlReader *reader); | ||
34 | VrmlType vrml2_type_cb_color(VrmlReader *reader); | ||
35 | |||
36 | static VrmlTypeDef vrml2_types[] = { | ||
37 | { "ambientIntensity", T_FLOAT, NULL }, | ||
38 | { "appearance", T_OBJECT, NULL }, | ||
39 | { "autoOffset", T_BOOLEAN, NULL }, | ||
40 | { "ccw", T_BOOLEAN, NULL }, | ||
41 | { "center", T_FLOAT_X, NULL }, | ||
42 | { "children", T_UNKNOWN, vrml2_type_cb_children }, | ||
43 | { "color", T_UNKNOWN, vrml2_type_cb_color }, | ||
44 | { "colorIndex", T_LIST_INT, vrml2_type_cb__int }, | ||
45 | { "colorPerVertex", T_BOOLEAN, NULL }, | ||
46 | { "convex", T_BOOLEAN, NULL }, | ||
47 | { "coord", T_OBJECT, NULL }, | ||
48 | { "coordIndex", T_LIST_INT, NULL }, | ||
49 | { "creaseAngle", T_FLOAT, NULL }, | ||
50 | { "cycleInterval", T_INT, NULL }, | ||
51 | { "description", T_STRING, NULL }, | ||
52 | { "diffuseColor", T_FLOAT3, NULL }, | ||
53 | { "emissiveColor", T_FLOAT3, NULL }, | ||
54 | { "eventIn", T_TOKEN2, NULL }, | ||
55 | { "eventOut", T_TOKEN2, NULL }, | ||
56 | { "field", T_UNKNOWN, vrml2_type_cb_field }, | ||
57 | { "fieldOfView", T_FLOAT, NULL }, | ||
58 | { "geometry", T_OBJECT, NULL }, | ||
59 | { "groundAngle", T_LIST_FLOAT2, NULL }, | ||
60 | { "groundColor", T_LIST_FLOAT3, NULL }, | ||
61 | { "height", T_FLOAT, NULL }, | ||
62 | { "info", T_LIST_STRING, NULL }, | ||
63 | { "key", T_LIST_FLOAT, NULL }, | ||
64 | { "keyValue", T_LIST_FLOAT4, NULL }, | ||
65 | { "material", T_OBJECT, NULL }, | ||
66 | { "maxPosition", T_FLOAT_X, NULL }, | ||
67 | { "minPosition", T_FLOAT_X, NULL }, | ||
68 | { "normal", T_OBJECT, NULL }, | ||
69 | { "normalIndex", T_LIST_INT, NULL }, | ||
70 | { "normalPerVertex", T_BOOLEAN, NULL }, | ||
71 | { "offset", T_FLOAT_X, NULL }, | ||
72 | { "orientation", T_FLOAT4, NULL }, | ||
73 | { "parameter", T_STRING, NULL }, | ||
74 | { "point", T_LIST_FLOAT_X, NULL }, | ||
75 | { "position", T_FLOAT3, NULL }, | ||
76 | { "radius", T_FLOAT, NULL }, | ||
77 | { "repeatS", T_BOOLEAN, NULL }, | ||
78 | { "repeatT", T_BOOLEAN, NULL }, | ||
79 | { "rotation", T_FLOAT_X, NULL }, | ||
80 | { "scale", T_FLOAT_X, NULL }, | ||
81 | { "scaleOrientation", T_FLOAT_X, NULL }, | ||
82 | { "shininess", T_FLOAT, NULL }, | ||
83 | { "size", T_FLOAT3, NULL }, | ||
84 | { "skyAngle", T_LIST_FLOAT2, NULL }, | ||
85 | { "skyColor", T_LIST_FLOAT3, vrml2_type_cb__float3 }, | ||
86 | { "solid", T_BOOLEAN, NULL }, | ||
87 | { "specularColor", T_FLOAT3, NULL }, | ||
88 | { "startTime", T_INT, NULL }, | ||
89 | { "stopTime", T_INT, NULL }, | ||
90 | { "texCoord", T_OBJECT, NULL }, | ||
91 | { "texCoordIndex", T_LIST_INT, NULL }, | ||
92 | { "texture", T_OBJECT, NULL }, | ||
93 | { "textureTransform", T_OBJECT, NULL }, | ||
94 | { "translation", T_FLOAT3, NULL }, | ||
95 | { "transparency", T_FLOAT, NULL }, | ||
96 | { "type", T_STRING, NULL }, | ||
97 | { "url", T_STRING, NULL }, | ||
98 | { "vector", T_LIST_FLOAT3, NULL }, | ||
99 | |||
100 | { NULL, T_UNKNOWN } | ||
101 | }; | ||
102 | |||
103 | #endif /* _IMP_VRML2_TYPES_H */ | ||