2019-06-11 02:59:28 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CAnimBlendNode;
|
|
|
|
class CAnimBlendAssociation;
|
|
|
|
class CAnimBlendClumpData;
|
|
|
|
struct AnimBlendFrameData;
|
|
|
|
|
|
|
|
struct AnimBlendFrameUpdateData
|
|
|
|
{
|
2020-04-23 16:25:18 -04:00
|
|
|
int foobar; // TODO: figure out what this actually means
|
2019-06-11 02:59:28 -04:00
|
|
|
CAnimBlendNode *nodes[16];
|
|
|
|
};
|
|
|
|
|
2020-04-17 01:54:14 -04:00
|
|
|
extern RwInt32 ClumpOffset;
|
2019-06-11 02:59:28 -04:00
|
|
|
#define RPANIMBLENDCLUMPDATA(o) (RWPLUGINOFFSET(CAnimBlendClumpData*, o, ClumpOffset))
|
|
|
|
|
|
|
|
bool RpAnimBlendPluginAttach(void);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendGetNextAssociation(CAnimBlendAssociation *assoc);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendGetNextAssociation(CAnimBlendAssociation *assoc, uint32 mask);
|
|
|
|
void RpAnimBlendAllocateData(RpClump *clump);
|
|
|
|
|
|
|
|
void RpAnimBlendClumpSetBlendDeltas(RpClump *clump, uint32 mask, float delta);
|
|
|
|
void RpAnimBlendClumpRemoveAllAssociations(RpClump *clump);
|
|
|
|
void RpAnimBlendClumpRemoveAssociations(RpClump *clump, uint32 mask);
|
|
|
|
void RpAnimBlendClumpInit(RpClump *clump);
|
|
|
|
bool RpAnimBlendClumpIsInitialized(RpClump *clump);
|
2019-06-30 17:50:40 -04:00
|
|
|
void RpAnimBlendClumpFillFrameArray(RpClump* clump, AnimBlendFrameData** frames);
|
2019-06-11 02:59:28 -04:00
|
|
|
AnimBlendFrameData *RpAnimBlendClumpFindFrame(RpClump *clump, const char *name);
|
|
|
|
void FillFrameArrayCallBack(AnimBlendFrameData *frame, void *arg);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetAssociation(RpClump *clump, uint32 id);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetMainAssociation(RpClump *clump, CAnimBlendAssociation **assocRet, float *blendRet);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetMainPartialAssociation(RpClump *clump);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetMainAssociation_N(RpClump *clump, int n);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetMainPartialAssociation_N(RpClump *clump, int n);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetFirstAssociation(RpClump *clump, uint32 mask);
|
|
|
|
CAnimBlendAssociation *RpAnimBlendClumpGetFirstAssociation(RpClump *clump);
|
2019-09-11 20:43:18 -04:00
|
|
|
void RpAnimBlendClumpUpdateAnimations(RpClump* clump, float timeDelta);
|
2019-06-11 02:59:28 -04:00
|
|
|
|
|
|
|
|
2020-04-16 04:50:45 -04:00
|
|
|
extern CAnimBlendClumpData *gpAnimBlendClump;
|
2020-04-23 16:25:18 -04:00
|
|
|
void FrameUpdateCallBackNonSkinned(AnimBlendFrameData *frame, void *arg);
|
|
|
|
void FrameUpdateCallBackSkinned(AnimBlendFrameData *frame, void *arg);
|