summaryrefslogtreecommitdiff
path: root/AnimationObject.h
blob: ef8c3a33eade191acbde52307c6d658b822908b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _ANIMATION_OBJECT
#define _ANIMATION_OBJECT

#include "Animation.h"

struct AO_CheckerPattern {
	u32 squareSize;
	color colorA;
	color colorB;
};

ARGB AO_CheckerPattern(const Animation* anim, PixelRendererParams params);

struct AO_Square {
	u32 width;
	u32 height;
	color color;
};

ARGB AO_Square(const Animation* anim, PixelRendererParams params);

struct AO_Circle {
	double radius;
	color color;
};

ARGB AO_Circle(const Animation* anim, PixelRendererParams params);

struct AO_Image {
	RGBImage img;
	double zoom;
	bool noRepeat;
};

ARGB AO_Image(const Animation* anim, PixelRendererParams params);

struct AO_Line {
	double a;
	double b;
	double c;
	double width;
	color color;
};

ARGB AO_Line(const Animation* anim, PixelRendererParams params);

struct AO_HorSegment {
	i32 left;
	i32 right;
	double width;
	color color;
};

ARGB AO_HorSegment(const Animation* anim, PixelRendererParams params);

#endif /* _ANIMATION_OBJECT */