molecular
|
Classes | |
struct | BindPoseFile |
File structure for storing inverse bind pose matrices. More... | |
struct | File |
struct | Sqt |
Scale, quaternion, translation. More... | |
Functions | |
template<typename T > | |
T | Lerp (const T &v0, const T &v1, float s) |
Sqt | Interpolate (const Sqt &prev, const Sqt &next, float t) |
int | GetBoneIndex (Hash hash) |
Get bone index for a hashed bone name. More... | |
void | SceneGraphToAbsoluteTransforms (const Matrix4 graph[], const int parents[], Matrix4 output[], int count) |
Variables | |
const int | kBoneParents [80] |
Parent indices for each bone. More... | |
const Hash | kBoneNameToIndex [] |
constexpr int | kBoneCount = 80 |
int molecular::util::CharacterAnimation::GetBoneIndex | ( | Hash | hash | ) |
Get bone index for a hashed bone name.
Sqt molecular::util::CharacterAnimation::Interpolate | ( | const Sqt & | prev, |
const Sqt & | next, | ||
float | t | ||
) |
T molecular::util::CharacterAnimation::Lerp | ( | const T & | v0, |
const T & | v1, | ||
float | s | ||
) |
void molecular::util::CharacterAnimation::SceneGraphToAbsoluteTransforms | ( | const Matrix4 | graph[], |
const int | parents[], | ||
Matrix4 | output[], | ||
int | count | ||
) |
constexpr int molecular::util::CharacterAnimation::kBoneCount = 80 |
const Hash molecular::util::CharacterAnimation::kBoneNameToIndex[] |
const int molecular::util::CharacterAnimation::kBoneParents |
Parent indices for each bone.
Root bone has -1 as parent.