blob: 342144e11266007e87b2ac4ea20187fea642cb05 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef _ANIMATION_MOVE
#define _ANIMATION_MOVE
#include "Animation.h"
struct AM_Linear {
PixelRenderer callback;
void* priv;
i32 startRow;
i32 startCol;
float dRow;
float dCol;
bool wrapCoordinates;
};
ARGB AM_Linear(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
struct AM_Spin {
PixelRenderer callback;
void* priv;
float theta;
float dTheta;
i32 centerRow;
i32 centerCol;
};
ARGB AM_Spin(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
#endif /* _ANIMATION_MOVE */
|