summaryrefslogtreecommitdiff
path: root/AnimationMove.h
diff options
context:
space:
mode:
Diffstat (limited to 'AnimationMove.h')
-rw-r--r--AnimationMove.h30
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 */