diff options
author | aap <aap@papnet.eu> | 2020-11-16 22:43:15 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-11-16 22:43:15 +0100 |
commit | 3564b85b4e354272cea8a8217f9e27827a043d7a (patch) | |
tree | 9b2486481cbd4b226c5430bb8f7f8e61e8a81ce6 /src/animation/AnimBlendSequence.h | |
parent | little fix to ps2 CPad (diff) | |
download | re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar.gz re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar.bz2 re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar.lz re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar.xz re3-3564b85b4e354272cea8a8217f9e27827a043d7a.tar.zst re3-3564b85b4e354272cea8a8217f9e27827a043d7a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/animation/AnimBlendSequence.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/animation/AnimBlendSequence.h b/src/animation/AnimBlendSequence.h index 44ac8886..e51e5aaa 100644 --- a/src/animation/AnimBlendSequence.h +++ b/src/animation/AnimBlendSequence.h @@ -12,6 +12,15 @@ struct KeyFrameTrans : KeyFrame { CVector translation; }; +struct KeyFrameCompressed { + int16 rot[4]; // 4096 + int16 deltaTime; // 60 +}; + +struct KeyFrameTransCompressed : KeyFrameCompressed { + int16 trans[3]; // 128 +}; + // The sequence of key frames of one animated node class CAnimBlendSequence @@ -41,10 +50,9 @@ public: &((KeyFrame*)keyFrames)[n]; } bool HasTranslation(void) { return !!(type & KF_TRANS); } - // TODO? these are unused -// void Uncompress(void); -// void CompressKeyframes(void); -// void RemoveUncompressedData(void); + void Uncompress(void); + void CompressKeyframes(void); + void RemoveUncompressedData(void); #ifdef PED_SKIN void SetBoneTag(int tag) { boneTag = tag; } |