75 [[nodiscard]] const
ozz::animation::Animation*
get(
ClipId id) const;
82 std::unique_ptr<
Impl> impl_;
ClipId
Enumerated clip IDs.
Definition AnimationLibrary.hpp:21
@ Jump
Airborne jump animation.
@ StrafeLeft
Running strafe left.
@ TurnRight90
90-degree turn right (standing).
@ TurnLeft90
90-degree turn left (standing).
@ StrafeRight
Running strafe right.
@ StrafeRightWalk
Walking strafe right.
@ _Count
Sentinel; also used as "no clip / no override".
@ StrafeLeftWalk
Walking strafe left.
const char * clipName(ClipId id)
Human-readable name for a clip (for UI / logging).
Definition AnimationLibrary.cpp:42
const char * clipFile(ClipId id)
Filename (relative to assets/animations/) for a clip.
Definition AnimationLibrary.cpp:89
Collection of animation clips loaded on top of a shared skeleton.
Definition AnimationLibrary.hpp:55
const ozz::animation::Animation * get(ClipId id) const
Pointer to the loaded clip, or null if not loaded.
Definition AnimationLibrary.cpp:157
AnimationLibrary(const AnimationLibrary &)=delete
AnimationLibrary()
Definition AnimationLibrary.cpp:146
AnimationLibrary(AnimationLibrary &&) noexcept
float duration(ClipId id) const
Duration of the clip in seconds (0 if not loaded).
Definition AnimationLibrary.cpp:163
bool has(ClipId id) const
True if a clip has been loaded for id.
Definition AnimationLibrary.cpp:151
bool loadClipFromFBX(const CharacterRig &rig, ClipId id, const std::string &path)
Load one clip from an FBX file onto the rig's skeleton.
Definition AnimationLibrary.cpp:169
AnimationLibrary & operator=(const AnimationLibrary &)=delete
Shared skinned rig — skeleton + bind-pose meshes + joint map.
Definition CharacterRig.hpp:42
Definition AnimationLibrary.hpp:11
Definition AnimationLibrary.hpp:11
Definition AnimationLibrary.cpp:142