package load_result
Types
AnimBone
struct
type AnimBone struct {
NodeIndex int
PathType AnimationPathType
Interpolation AnimationInterpolation
// Could be Vec3 or Quaternion, doing this because Go doesn't have a union
Data [4]matrix.Float
}
AnimKeyFrame
struct
Animation
struct
AnimationInterpolation
const ( AnimInterpolateInvalid AnimationInterpolation = iota - 1 AnimInterpolateLinear AnimInterpolateStep AnimInterpolateCubicSpline )
AnimationPathType
const ( AnimPathInvalid AnimationPathType = iota - 1 AnimPathTranslation AnimPathRotation AnimPathScale AnimPathWeights )
Joint
struct
Mesh
struct
Mesh.ScaledRadius
Node
struct
Result
struct
type Result struct {
Nodes []Node
Meshes []Mesh
Textures []string
Animations []Animation
Joints []Joint
}
NewResult
Result.Add
indexes []uint32, textures []string)