aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/src/BVGTypes.h
blob: 95e1dd8294d6aaf6b120023c1702636273843598 (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
57
58
59
60
61
62
63
64
65
66
67
#include <raylib.h>
#include <stdbool.h>

typedef struct BVGIMG {
  int width;
  int height;
} BVGIMG;

typedef struct BVGRectangle {
  Rectangle rayrectangle;
  bool fill;
  float lineThickness;
  Color color;
} BVGRectangle;

typedef struct BVGRoundedRectangle {
  BVGRectangle rectangle;
  float roundness;
  int segments;
} BVGRoundedRectangle;

typedef struct BVGCircle {
  int centerX;
  int centerY;
  float radius;
  bool drawSector;
  float startAngle;
  float endAngle;
  int segments;
  Color color;
} BVGCircle;

typedef struct BVGRing {
  int centerX;
  int centerY;
  float inRadius;
  float outRadius;
  float startAngle;
  float endAngle;
  int segmets;
  Color color;
} BVGRing;

typedef struct BVGEllipse {
  int centerX;
  int centerY;
  float horizontalRadius;
  float verticalRadius;
  bool fill;
  Color color;
} BVGEllipse;

typedef struct BVGTriangle {
  Vector2 corner1;
  Vector2 corner2;
  Vector2 corner3;
  bool fill;
  Color color;
} BVGTriangle;

typedef struct BVGText {
  char *text;
  int x;
  int y;
  int fontSize;
  Color color;
} BVGText;