Collection of animation clips loaded on top of a shared skeleton.
More...
#include <AnimationLibrary.hpp>
Collection of animation clips loaded on top of a shared skeleton.
Each clip is stored as an owning ozz::animation::Animation keyed by ClipId. Lookup is O(1) via get(id).
◆ AnimationLibrary() [1/3]
| AnimationLibrary::AnimationLibrary |
( |
| ) |
|
◆ ~AnimationLibrary()
| AnimationLibrary::~AnimationLibrary |
( |
| ) |
|
|
default |
◆ AnimationLibrary() [2/3]
◆ AnimationLibrary() [3/3]
◆ duration()
| float AnimationLibrary::duration |
( |
ClipId | id | ) |
const |
|
nodiscard |
Duration of the clip in seconds (0 if not loaded).
◆ get()
| const ozz::animation::Animation * AnimationLibrary::get |
( |
ClipId | id | ) |
const |
|
nodiscard |
Pointer to the loaded clip, or null if not loaded.
◆ has()
| bool AnimationLibrary::has |
( |
ClipId | id | ) |
const |
|
nodiscard |
True if a clip has been loaded for id.
◆ loadClipFromFBX()
| bool AnimationLibrary::loadClipFromFBX |
( |
const CharacterRig & | rig, |
|
|
ClipId | id, |
|
|
const std::string & | path ) |
Load one clip from an FBX file onto the rig's skeleton.
- Parameters
-
| rig | Source rig (used for joint names + rest poses). |
| id | Which slot the clip occupies. |
| path | Absolute path to the FBX file. |
- Returns
- True on success; false logs and leaves the slot empty.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ impl_
| std::unique_ptr<Impl> AnimationLibrary::impl_ |
|
private |
The documentation for this class was generated from the following files: