|
group2 0.1.0
CSE 125 Group 2
|
Collection of animation clips loaded on top of a shared skeleton. More...
#include <AnimationLibrary.hpp>
Classes | |
| struct | Impl |
Public Member Functions | |
| AnimationLibrary () | |
| ~AnimationLibrary () | |
| AnimationLibrary (const AnimationLibrary &)=delete | |
| AnimationLibrary & | operator= (const AnimationLibrary &)=delete |
| AnimationLibrary (AnimationLibrary &&) noexcept | |
| AnimationLibrary & | operator= (AnimationLibrary &&) noexcept |
| bool | loadClipFromFBX (const CharacterRig &rig, ClipId id, const std::string &path) |
| Load one clip from an FBX file onto the rig's skeleton. | |
| bool | has (ClipId id) const |
True if a clip has been loaded for id. | |
| const ozz::animation::Animation * | get (ClipId id) const |
| Pointer to the loaded clip, or null if not loaded. | |
| float | duration (ClipId id) const |
| Duration of the clip in seconds (0 if not loaded). | |
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::AnimationLibrary | ( | ) |
|
default |
|
delete |
|
defaultnoexcept |
| float AnimationLibrary::duration | ( | ClipId | id | ) | const |
Duration of the clip in seconds (0 if not loaded).
| const ozz::animation::Animation * AnimationLibrary::get | ( | ClipId | id | ) | const |
Pointer to the loaded clip, or null if not loaded.
| bool AnimationLibrary::has | ( | ClipId | id | ) | const |
True if a clip has been loaded for id.
| bool AnimationLibrary::loadClipFromFBX | ( | const CharacterRig & | rig, |
| ClipId | id, | ||
| const std::string & | path | ||
| ) |
Load one clip from an FBX file onto the rig's skeleton.
| rig | Source rig (used for joint names + rest poses). |
| id | Which slot the clip occupies. |
| path | Absolute path to the FBX file. |
|
defaultnoexcept |
|
delete |