summaryrefslogtreecommitdiff
path: root/Animation.h
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-28 20:33:03 +0200
committerSyndamia <kamen@syndamia.com>2026-03-28 20:33:03 +0200
commitd31239eeeac4ea595b1d1e7063ab5d762809fb02 (patch)
treeaa0d5f426a2dc439ad863b9e3ec017c5776f528e /Animation.h
parent56099072165578b505a6c81e187cf392b9bd5a2e (diff)
downloadppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.tar
ppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.tar.gz
ppm_graphics-d31239eeeac4ea595b1d1e7063ab5d762809fb02.zip
feat!: Complete rewrite
This new scheme will be much simpler
Diffstat (limited to 'Animation.h')
-rw-r--r--Animation.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/Animation.h b/Animation.h
deleted file mode 100644
index 6cebdb0..0000000
--- a/Animation.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef _ANIMATION
-#define _ANIMATION
-
-#include "RGBImage.h"
-
-struct AnimationEventNode;
-typedef struct AnimationEventNode AnimationEventNode;
-
-typedef struct Animation {
- u32 width;
- u32 height;
- u32 frameCount;
- u32 duplicateFrames;
-
- RGBImage frameBuffer;
- AnimationEventNode* events;
-} Animation;
-
-typedef struct PixelRendererParams {
- struct Frames {
- u32 current;
- u32 start;
- u32 end;
- } frame;
-
- ARGB pixel;
-
- i32 row;
- i32 col;
-
- void* priv;
-} PixelRendererParams;
-
-typedef ARGB (*PixelRenderer)(const Animation* anim, PixelRendererParams params);
-
-AnimationEventNode* AnimationEventNode_new(u32 startFrame, u32 endFrame, PixelRenderer renderCallback, void* privateData);
-Animation Animation_new(u32 width, u32 height, u32 frameCount);
-void Animation_free(Animation anim);
-void Animation_delete(Animation* anim);
-
-void Animation_pushEvent(Animation* anim, u32 startFrame, u32 endFrame, PixelRenderer renderer, void* privateData);
-void Animation_render(Animation* anim);
-
-#endif /* _ANIMATION */