blob: eaa0b3c5a6d474f7df4f9a688dba01cd00679543 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _ANIMATION_INTERPOLATE
#define _ANIMATION_INTERPOLATE
#include "Animation.h"
struct A_Interpolate {
void* value;
void* goalValue;
void (*interpolate)(void* value, const void* finalState, double percentage);
double prevPercentage;
};
ARGB A_Interpolate(const Animation* anim, PixelRendererParams params);
void AO_LineInterpolate(void* valueLine, const void* finalLine, double percentage);
void AM_LinearInterpolate(void* valueLinear, const void* finalLinear, double percentage);
void AM_SpinInterpolate(void* valueSpin, const void* finalSpin, double percentage);
#endif /* _ANIMATION_INTERPOLATE */
|