Nebula
Loading...
Searching...
No Matches
skeleton.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
10//------------------------------------------------------------------------------
12#include "util/fixedarray.h"
13#include "math/vector.h"
14namespace Characters
15{
16
18
20{
23#if NEBULA_DEBUG
25#endif
26};
27
35
39void DestroySkeleton(const SkeletonId id);
40
45
49const IndexT SkeletonGetJointIndex(const SkeletonId id, const Util::StringAtom& name);
52
53enum
54{
59};
60
61typedef Ids::IdAllocator<
68
69} // namespace Characters
An ID allocator associates an id with a slice in an N number of arrays.
Definition idallocator.h:40
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
@ Skeleton_IdleSamples
Definition skeleton.h:58
@ Skeleton_JointNameMap
Definition skeleton.h:57
@ Skeleton_BindPose
Definition skeleton.h:56
@ Skeleton_Joints
Definition skeleton.h:55
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
Definition skeleton.h:20
IndexT parentJointIndex
Definition skeleton.h:21
const CharacterJoint * parentJoint
Definition skeleton.h:22
Definition skeleton.h:29
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
Definition skeleton.h:17
int SizeT
Definition types.h:49
int IndexT
Definition types.h:48