From 995fac7e0ce325ada75a6f921926b1f923e28dd0 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 25 Feb 2024 20:24:05 +0100 Subject: add move bvg functions --- fbwarn/src/BVGTypes.h | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) (limited to 'fbwarn/src/BVGTypes.h') diff --git a/fbwarn/src/BVGTypes.h b/fbwarn/src/BVGTypes.h index 1ed1919..be7669f 100644 --- a/fbwarn/src/BVGTypes.h +++ b/fbwarn/src/BVGTypes.h @@ -1,8 +1,62 @@ #include #include + typedef struct BVGRectangle { Rectangle rayrectangle; - Color color; 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; -- cgit v1.2.3