summaryrefslogtreecommitdiff
path: root/AnimationInterpolate.h
blob: e9fcd576781724ddef94da65f75030af2be91361 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _ANIMATION_INTERPOLATE
#define _ANIMATION_INTERPOLATE

#include "Animation.h"

struct A_Interpolate {
	PixelRenderer callback;
	void* priv;

	u32 startFrame;
	u32 endFrame;
	void* value;
	void* initialState;
	void* finalState;
	void (*interpolate)(void* value, const void* initialState, const void* finalState, double percentage);
};

ARGB A_Interpolate(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);

void AO_LineInterpolate(void* valueLine, const void* initialLine, const void* finalLine, double percentage);

#endif /* _ANIMATION_INTERPOLATE */