diff options
author | aap <aap@papnet.eu> | 2020-07-24 23:28:55 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-24 23:28:55 +0200 |
commit | b5b64ca35127043014dad742c79d61a11c64f78a (patch) | |
tree | c0f5d304886a2122fadb816e6ba944302227841f /src/fakerw/rphanim.h | |
parent | 90% fixes, 10% skel refactoring (diff) | |
download | re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar.gz re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar.bz2 re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar.lz re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar.xz re3-b5b64ca35127043014dad742c79d61a11c64f78a.tar.zst re3-b5b64ca35127043014dad742c79d61a11c64f78a.zip |
Diffstat (limited to 'src/fakerw/rphanim.h')
-rw-r--r-- | src/fakerw/rphanim.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/fakerw/rphanim.h b/src/fakerw/rphanim.h index 6ece8306..63059800 100644 --- a/src/fakerw/rphanim.h +++ b/src/fakerw/rphanim.h @@ -17,7 +17,15 @@ struct RpHAnimStdKeyFrame RtQuat q; RwV3d t; }; - +// same story, this one only exists in later RW versions +// but we need it for 64 bit builds because offset and size differs! +struct RpHAnimStdInterpFrame +{ + RpHAnimStdKeyFrame *keyFrame1; + RpHAnimStdKeyFrame *keyFrame2; + RtQuat q; + RwV3d t; +}; enum RpHAnimHierarchyFlag { @@ -56,7 +64,7 @@ RwBool RpHAnimHierarchyUpdateMatrices(RpHAnimHierarchy *hierarchy); #define rpHANIMHIERARCHYGETINTERPFRAME( hierarchy, nodeIndex ) \ ( (void *)( ( (RwUInt8 *)&(hierarchy->interpolator[1]) + \ ((nodeIndex) * \ - hierarchy->interpolator->currentAnimKeyFrameSize) ) ) ) + hierarchy->interpolator->currentInterpKeyFrameSize) ) ) ) RpHAnimAnimation *RpHAnimAnimationCreate(RwInt32 typeID, RwInt32 numFrames, RwInt32 flags, RwReal duration); |