blob: 4516934ff68d9a0a38354778460ba6fc2b828ab3 (
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
|
#ifndef _ANIMATION_MOVE
#define _ANIMATION_MOVE
#include "Animation.h"
struct AM_MoveLinear {
PixelRenderer callback;
void* priv;
i32 startRow;
i32 startCol;
float dRow;
float dCol;
bool wrapCoordinates;
};
ARGB AM_MoveLinear(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
struct AM_MoveSpin {
PixelRenderer callback;
void* priv;
float theta;
i32 centerRow;
i32 centerCol;
};
ARGB AM_MoveSpin(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
#endif /* _ANIMATION_MOVE */
|