mirror of https://github.com/yaz0r/FITD.git
39 lines
918 B
C++
39 lines
918 B
C++
#define INFO_TRI 1
|
|
#define INFO_ANIM 2
|
|
#define INFO_TORTUE 4
|
|
#define INFO_OPTIMISE 8
|
|
|
|
|
|
struct sFrame
|
|
{
|
|
u16 m_timestamp;
|
|
point3dStruct m_animStep;
|
|
std::vector<sGroupState> m_groups;
|
|
};
|
|
|
|
struct sAnimation
|
|
{
|
|
void* m_raw;
|
|
|
|
u16 m_numFrames;
|
|
u16 m_numGroups;
|
|
std::vector<sFrame> m_frames;
|
|
};
|
|
|
|
extern hqrEntryStruct<sAnimation>* HQ_Anims;
|
|
|
|
#define NB_BUFFER_ANIM 25 // AITD1 was 20
|
|
#define SIZE_BUFFER_ANIM (8*41) // AITD1 was 4*31
|
|
|
|
extern std::vector<sFrame> BufferAnim;
|
|
|
|
int InitAnim(int animNum,int animType, int animInfo);
|
|
int SetAnimObjet(int frame, sAnimation* anim, sBody* body);
|
|
s16 SetInterAnimObjet(int frame, sAnimation* animPtr, sBody* bodyPtr);
|
|
s16 GetNbFramesAnim(sAnimation* animPtr);
|
|
void StockInterAnim(sFrame& animBuffer, sBody* bodyPtr);
|
|
void ResetStartAnim(sBody* bodyPtr);
|
|
void GereAnim(void);
|
|
void InitCopyBox(char* var0, char* var1);
|
|
|