An ID allocator associates an id with a slice in an N number of arrays.
Definition idallocator.h:39
Implements a fixed size one-dimensional array.
Definition fixedarray.h:20
Organizes key/value pairs by a hash code.
Definition hashtable.h:42
A StringAtom.
Definition stringatom.h:22
#define ID_24_8_TYPE(x)
Definition id.h:132
A character encapsulates a skeleton resource, an animation resource, and the ability to instantiate s...
Definition charactercontext.cc:21
const SkeletonId CreateSkeleton(const SkeletonCreateInfo &info)
create model (resource)
Definition skeleton.cc:15
const Util::FixedArray< Math::vec4 > & SkeletonGetIdleSamples(const SkeletonId id)
Get idle samples.
Definition skeleton.cc:76
const IndexT SkeletonGetJointIndex(const SkeletonId id, const Util::StringAtom &name)
get joint index
Definition skeleton.cc:67
SkeletonAllocator skeletonAllocator
Definition skeleton.cc:10
Ids::IdAllocator< Util::FixedArray< CharacterJoint >, Util::FixedArray< Math::mat4 >, Util::HashTable< Util::StringAtom, IndexT >, Util::FixedArray< Math::vec4 > > SkeletonAllocator
Definition skeleton.h:66
const Util::FixedArray< Math::mat4 > & SkeletonGetBindPose(const SkeletonId id)
get bind pose
Definition skeleton.cc:58
const SizeT SkeletonGetNumJoints(const SkeletonId id)
get number of joints from skeleton
Definition skeleton.cc:40
const Util::FixedArray< CharacterJoint > & SkeletonGetJoints(const SkeletonId id)
get joints from skeleton
Definition skeleton.cc:49
void DestroySkeleton(const SkeletonId id)
discard model (resource)
Definition skeleton.cc:31
@ Skeleton_IdleSamples
Definition skeleton.h:58
@ Skeleton_JointNameMap
Definition skeleton.h:57
@ Skeleton_BindPose
Definition skeleton.h:56
@ Skeleton_Joints
Definition skeleton.h:55
IndexT parentJointIndex
Definition skeleton.h:21
const CharacterJoint * parentJoint
Definition skeleton.h:22
Util::FixedArray< Math::vec4 > idleSamples
Definition skeleton.h:33
Util::HashTable< Util::StringAtom, IndexT > jointIndexMap
Definition skeleton.h:32
Util::FixedArray< Math::mat4 > bindPoses
Definition skeleton.h:31
Util::FixedArray< CharacterJoint > joints
Definition skeleton.h:30
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48