From e6842e44159d7cc9b1c32dd2baae4df164fa81d2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 16 Mar 2026 20:59:04 +0200 Subject: feat: Implement tree rotation animation --- AnimationInterpolate.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'AnimationInterpolate.h') diff --git a/AnimationInterpolate.h b/AnimationInterpolate.h index e9fcd57..c033525 100644 --- a/AnimationInterpolate.h +++ b/AnimationInterpolate.h @@ -4,14 +4,14 @@ #include "Animation.h" struct A_Interpolate { - PixelRenderer callback; - void* priv; - u32 startFrame; u32 endFrame; + + void* initialValueTemp; + size_t initialValueTempSize; + void* value; - void* initialState; - void* finalState; + void* goalValue; void (*interpolate)(void* value, const void* initialState, const void* finalState, double percentage); }; @@ -19,4 +19,7 @@ ARGB A_Interpolate(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 void AO_LineInterpolate(void* valueLine, const void* initialLine, const void* finalLine, double percentage); +void AM_LinearInterpolate(void* valueLinear, const void* initialLinear, const void* finalLinear, double percentage); +void AM_SpinInterpolate(void* valueSpin, const void* initialSpin, const void* finalSpin, double percentage); + #endif /* _ANIMATION_INTERPOLATE */ -- cgit v1.2.3