forked from oakmound/ofbx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtype.go
46 lines (42 loc) · 1.2 KB
/
type.go
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
package ofbx
// Type of the object
type Type int
// Types of objects
const (
ROOT Type = iota
GEOMETRY Type = iota
MATERIAL Type = iota
MESH Type = iota
TEXTURE Type = iota
LIMB_NODE Type = iota
NULL_NODE Type = iota
NODE_ATTRIBUTE Type = iota
CLUSTER Type = iota
SKIN Type = iota
ANIMATION_STACK Type = iota
ANIMATION_LAYER Type = iota
ANIMATION_CURVE Type = iota
ANIMATION_CURVE_NODE Type = iota
NOTYPE Type = iota
)
var (
typeStrings = map[Type]string{
ROOT: "root",
GEOMETRY: "geometry",
MATERIAL: "material",
MESH: "mesh",
TEXTURE: "texture",
LIMB_NODE: "limb node",
NULL_NODE: "null node",
NODE_ATTRIBUTE: "node attribute",
CLUSTER: "cluster",
SKIN: "skin",
ANIMATION_STACK: "animation stack",
ANIMATION_LAYER: "animation layer",
ANIMATION_CURVE: "animation curve",
ANIMATION_CURVE_NODE: "animation curve node",
}
)
func (t Type) String() string {
return typeStrings[t]
}