LDKKeyframe
typedef struct LDKKeyframe{
float time;
LDKPropertyValue value;
}LDKKeyframe;
typedef struct LDKKeyframe{
float time;
LDKPropertyValue value;
}LDKKeyframe;
typedef struct LDKKeyframeEvent{
float time;
LDKKeyframeEventValueType type;
i32 number;
char *text;
}LDKKeyframeEvent;
Called synchronously for an animation marker.
typedef void(*LDKKeyframeEventFn)(LDKEntity root, const LDKKeyframeEvent *event, void *user);
rooteventusertypedef enum LDKKeyframeEventValueType{
LDK_KEYFRAME_EVENT_INTEGER=0,
LDK_KEYFRAME_EVENT_STRING
}LDKKeyframeEventValueType;
#define LDK_KEYFRAME_PROPERTY_NAME_CAPACITY 96
Compute the path of a descendant relative to an animation root.
LDK_API bool ldk_keyframe_entity_path(
LDKEntity root,
LDKEntity target,
u64 *out_path
);
True if target belongs to the transform subtree rooted at root.
Extend a relative hierarchy path with a child name hash.
LDK_API u64 ldk_keyframe_path_child(
u64 parent_path,
u64 name_hash
);
u64 parent_pathu64 name_hashDeterministic path hash, or zero for invalid inputs.
Return the reserved path hash of an animation source root.
LDK_API u64 ldk_keyframe_path_root(void);
Stable root hash used for relative track bindings.
Resolve a relative path hash to exactly one descendant.
LDK_API bool ldk_keyframe_target_resolve(
LDKEntity root,
u64 path,
LDKEntity *out
);
True if the path resolves unambiguously. Duplicate matching paths fail.