summaryrefslogtreecommitdiff
path: root/AnimationObject.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-15 12:23:21 +0200
committerSyndamia <kamen@syndamia.com>2026-03-15 12:23:21 +0200
commit2202e87c466803eeaddd974006aa9950d8e0d067 (patch)
tree55cac9843e5789ac6ff29345ecd4fc44775c6b31 /AnimationObject.h
parent47e28b44615b9b068776f61b8741ea8692461c1d (diff)
downloadppm_graphics-master.tar
ppm_graphics-master.tar.gz
ppm_graphics-master.zip
feat!: Split into separate filesHEADmaster
Diffstat (limited to 'AnimationObject.h')
-rw-r--r--AnimationObject.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/AnimationObject.h b/AnimationObject.h
new file mode 100644
index 0000000..cec9268
--- /dev/null
+++ b/AnimationObject.h
@@ -0,0 +1,40 @@
+#ifndef _ANIMATION_OBJECT
+#define _ANIMATION_OBJECT
+
+#include "Animation.h"
+
+struct AO_CheckerPattern {
+ u32 squareSize;
+ byte4 colorA;
+ byte4 colorB;
+};
+
+ARGB AO_CheckerPattern(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
+
+struct AO_SquareSettings {
+ u32 width;
+ u32 height;
+ byte4 color;
+};
+
+ARGB AO_Square(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
+
+struct AO_Image {
+ RGBImage img;
+ double zoom;
+ bool noRepeat;
+};
+
+ARGB AO_Image(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
+
+struct AO_Line {
+ double a;
+ double b;
+ double c;
+ double width;
+ byte4 color;
+};
+
+ARGB AO_Line(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv);
+
+#endif /* _ANIMATION_OBJECT */