![]() |
XII Release 0.1.0
|
#include <AnimationPreview.h>
Public Member Functions | |
| xiiResult | Build (const xiiSkeletonResource &skeleton, const xiiMeshResourceDescriptor &mesh, const xiiAnimationClipResource *pClip=nullptr, double fNormalizedPosition=0.0) |
| Copyright (c) Theophilus Eriata. All Rights Reserved. | |
| xiiResult | UpdateMesh (xiiSkinnedMeshComponent &component, const xiiAnimationClipResourceHandle &hClip={}, double fNormalizedPosition=0.0, const xiiSkeletonResourceHandle &hSkeletonOverride={}) |
| xiiArrayPtr< const xiiMat4 > | GetSkinningMatrices () const |
| const xiiAnimationPose & | GetPose () const |
Editor-owned pose sampling and mesh palette mapping for rest-pose and clip previews. Uses runtime animation resources without advancing world simulation. Scratch capacity is reused. No resource pointers survive a call; each update observes the currently loaded definitions.
| xiiResult xiiAnimationPreview::Build | ( | const xiiSkeletonResource & | skeleton, |
| const xiiMeshResourceDescriptor & | mesh, | ||
| const xiiAnimationClipResource * | pClip = nullptr, | ||
| double | fNormalizedPosition = 0.0 ) |
Copyright (c) Theophilus Eriata. All Rights Reserved.
Samples a clamped normalized time using the runtime clip sampler, or the rest pose. Mesh bone names resolve skeleton joints; mesh bone indices determine palette slots. Invalid times, missing joints, duplicate palette slots, and invalid matrices fail and clear output.
| xiiResult xiiAnimationPreview::UpdateMesh | ( | xiiSkinnedMeshComponent & | component, |
| const xiiAnimationClipResourceHandle & | hClip = {}, | ||
| double | fNormalizedPosition = 0.0, | ||
| const xiiSkeletonResourceHandle & | hSkeletonOverride = {} ) |
Acquires the mesh and its default skeleton (or an explicitly selected skeleton), samples, and updates a world-owned component. The caller holds world write access. Loading/missing resources fail and clear stale pose data. A mesh without a default skeleton permits bind-pose preview only; clip preview fails.