diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-16 20:59:04 +0200 |
| commit | 3e9c46f82430d7bb609cebb57be17c26cba4acb5 (patch) | |
| tree | 5b03be91eb637b2ce7fb37ac2c67319d0978dbf8 /AnimationObject.h | |
| parent | e6842e44159d7cc9b1c32dd2baae4df164fa81d2 (diff) | |
| download | ppm_graphics-3e9c46f82430d7bb609cebb57be17c26cba4acb5.tar ppm_graphics-3e9c46f82430d7bb609cebb57be17c26cba4acb5.tar.gz ppm_graphics-3e9c46f82430d7bb609cebb57be17c26cba4acb5.zip | |
chore: Rework renderer functions to use a struct instead of different arguments
Diffstat (limited to 'AnimationObject.h')
| -rw-r--r-- | AnimationObject.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/AnimationObject.h b/AnimationObject.h index 16f0b0e..ef8c3a3 100644 --- a/AnimationObject.h +++ b/AnimationObject.h @@ -9,7 +9,7 @@ struct AO_CheckerPattern { color colorB; }; -ARGB AO_CheckerPattern(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_CheckerPattern(const Animation* anim, PixelRendererParams params); struct AO_Square { u32 width; @@ -17,14 +17,14 @@ struct AO_Square { color color; }; -ARGB AO_Square(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_Square(const Animation* anim, PixelRendererParams params); struct AO_Circle { double radius; color color; }; -ARGB AO_Circle(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_Circle(const Animation* anim, PixelRendererParams params); struct AO_Image { RGBImage img; @@ -32,7 +32,7 @@ struct AO_Image { bool noRepeat; }; -ARGB AO_Image(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_Image(const Animation* anim, PixelRendererParams params); struct AO_Line { double a; @@ -42,7 +42,7 @@ struct AO_Line { color color; }; -ARGB AO_Line(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_Line(const Animation* anim, PixelRendererParams params); struct AO_HorSegment { i32 left; @@ -51,6 +51,6 @@ struct AO_HorSegment { color color; }; -ARGB AO_HorSegment(const Animation* anim, u32 frameIndex, ARGB pixel, i32 r, i32 c, void* priv); +ARGB AO_HorSegment(const Animation* anim, PixelRendererParams params); #endif /* _ANIMATION_OBJECT */ |
