diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-15 12:23:21 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-15 12:23:21 +0200 |
| commit | 2202e87c466803eeaddd974006aa9950d8e0d067 (patch) | |
| tree | 55cac9843e5789ac6ff29345ecd4fc44775c6b31 /AnimationMove.h | |
| parent | 47e28b44615b9b068776f61b8741ea8692461c1d (diff) | |
| download | ppm_graphics-2202e87c466803eeaddd974006aa9950d8e0d067.tar ppm_graphics-2202e87c466803eeaddd974006aa9950d8e0d067.tar.gz ppm_graphics-2202e87c466803eeaddd974006aa9950d8e0d067.zip | |
Diffstat (limited to 'AnimationMove.h')
| -rw-r--r-- | AnimationMove.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/AnimationMove.h b/AnimationMove.h new file mode 100644 index 0000000..4516934 --- /dev/null +++ b/AnimationMove.h @@ -0,0 +1,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 */ |
