From ec0b1d450a0f6219b3b0d352cd6625ae05f62618 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 27 Sep 2023 07:42:11 -0400 Subject: Hills in the AutumnTheme --- themes/src/shapes_2d.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'themes/src/shapes_2d.h') diff --git a/themes/src/shapes_2d.h b/themes/src/shapes_2d.h index acb8522..8e08504 100644 --- a/themes/src/shapes_2d.h +++ b/themes/src/shapes_2d.h @@ -26,4 +26,23 @@ class RectangularGradient Mesh2D mesh; }; + +/// Supports full and partial circles +class Circleish +{ +public: + Circleish( + Renderer2d& renderer, + f32 radius, + Vector4 color, + i32 segments, + i32 segment_start = 0, + i32 segment_end = 0); + ~Circleish(); + void render(); + + Renderer2d& renderer; + Mesh2D mesh; +}; + #endif -- cgit v1.2.1