Expand description
Structs§
- Animation
Clip - A single animation — a name, a duration, and per-joint keyframe tracks.
Blending multiple clips (crossfade, additive layering, …) is entirely
up to you: sample each clip separately and combine the resulting
Transforms yourself — this type only ever samples one clip at a time. - Joint
Track - One joint’s animated properties. Any of the three tracks may be empty —
glTF allows animating only some of a joint’s translation/rotation/scale;
AnimationClip::samplefalls back to the joint’s bind pose for whichever are unanimated. Keyframes within each track must be in non-decreasingtimeorder (glTF’s own accessors are spec-guaranteed to already be). - Keyframe
- One sample of an animated property at a point in time.
Enums§
- Interpolation
- glTF 2.0 sampler interpolation.
CubicSplineis intentionally absent as a variant —gltf_loader::load_gltfhard-errors on it rather than silently mishandling its 3-value-per-keyframe (in-tangent/value/out-tangent) packing, which would otherwise be misread as plain values.