3 #include "ParaXModel.h" 51 static int GetProviderIDByName(
const char* sName);
61 static CBoneAnimProvider* CreateProvider(
int nAnimID,
const char* name,
const char* filename,
bool bOverwrite =
false);
66 static bool DeleteProvider(
int nAnimID);
69 static bool CleanupAllProviders();
72 static map<int, CBoneAnimProvider*> g_mapProviderIDs;
73 static map<string, CBoneAnimProvider*> g_mapProviderNames;
95 const string& GetAnimName();
98 const string& GetAnimFileName();
106 Bone* GetBoneByIndex(
int nIndex);
117 void SetSubAnimID(
int nID);
122 AnimIndex GetAnimIndex(
int nSubAnimID=0);
128 void GetAnimMoveSpeed(
float* pSpeed,
int nSubAnimID=0);
134 bool LoadFromBVHFile(
const char* filename);
137 bool LoadFromParaXFile(
const char* filename);
141 asset_ptr<ParaXEntity> m_asset;
155 int m_boneLookup[MAX_KNOWN_BONE_NODE];
158 vector<Bone> m_bones;
161 vector<ModelAnimation> m_anims;
different physics engine has different winding order.
Definition: EventBinding.h:32
a single animated bone, it contains both the bone instance data and all animation data of the bone...
Definition: ParaXBone.h:15
KNOWN_BONE_NODES
all known bones
Definition: modelheaders.h:406
replace the target model with all bones.
Definition: BoneAnimProvider.h:88
it presents a given in bone animation providers or parax local model bone animation pools ...
Definition: AnimInstanceBase.h:13
MergeMode
how bone animation is meant to be used with a parax model.
Definition: BoneAnimProvider.h:83
replace the target model with all existing bones defined in the provider
Definition: BoneAnimProvider.h:86
Supplying external animation loaded from ParaX or BVH files.
Definition: BoneAnimProvider.h:20