blob: 315cbd8ac696a51a18072b382cd53e3670754493 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#pragma once
#include "AnimBlendList.h"
// TODO: put somewhere else
struct AnimBlendFrameData
{
enum {
IGNORE_ROTATION = 2,
IGNORE_TRANSLATION = 4,
VELOCITY_EXTRACTION = 8,
VELOCITY_EXTRACTION_3D = 0x10,
UPDATE_KEYFRAMES = 0x20,
UNK_COMPRESSED = 0x40,
};
uint8 flag;
RwV3d resetPos;
union {
RwFrame *frame;
RpHAnimStdInterpFrame *hanimFrame;
};
int32 nodeID;
};
VALIDATE_SIZE(AnimBlendFrameData, 0x18);
class CAnimBlendClumpData
{
public:
CAnimBlendLink link;
int32 numFrames;
CVector *velocity;
// order of frames is determined by RW hierarchy
AnimBlendFrameData *frames;
CAnimBlendClumpData(void);
~CAnimBlendClumpData(void);
void SetNumberOfFrames(int n);
void SetNumberOfBones(int n) { SetNumberOfFrames(n); }
void ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *arg);
};
|