Nebula
Loading...
Searching...
No Matches
skeleton.h File Reference
#include "resources/resourceid.h"
#include "util/fixedarray.h"
#include "math/vector.h"

Go to the source code of this file.

Classes

struct  Characters::SkeletonId
 
struct  Characters::CharacterJoint
 
struct  Characters::SkeletonCreateInfo
 

Namespaces

namespace  Characters
 A character encapsulates a skeleton resource, an animation resource, and the ability to instantiate such and drive animations.
 

Typedefs

typedef Ids::IdAllocator< Util::FixedArray< CharacterJoint >, Util::FixedArray< Math::mat4 >, Util::HashTable< Util::StringAtom, IndexT >, Util::FixedArray< Math::vec4 > > Characters::SkeletonAllocator
 

Enumerations

enum  { Characters::Skeleton_Joints , Characters::Skeleton_BindPose , Characters::Skeleton_JointNameMap , Characters::Skeleton_IdleSamples }
 

Functions

const SkeletonId Characters::CreateSkeleton (const SkeletonCreateInfo &info)
 create model (resource)
 
void Characters::DestroySkeleton (const SkeletonId id)
 discard model (resource)
 
const SizeT Characters::SkeletonGetNumJoints (const SkeletonId id)
 get number of joints from skeleton
 
const Util::FixedArray< CharacterJoint > & Characters::SkeletonGetJoints (const SkeletonId id)
 get joints from skeleton
 
const Util::FixedArray< Math::mat4 > & Characters::SkeletonGetBindPose (const SkeletonId id)
 get bind pose
 
const IndexT Characters::SkeletonGetJointIndex (const SkeletonId id, const Util::StringAtom &name)
 get joint index
 
const Util::FixedArray< Math::vec4 > & Characters::SkeletonGetIdleSamples (const SkeletonId id)
 Get idle samples.