diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-27 07:42:11 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-27 07:42:11 -0400 |
commit | ec0b1d450a0f6219b3b0d352cd6625ae05f62618 (patch) | |
tree | ef515bd14d5dbc229013e054e3ca3b7a8f8e2ad5 /themes/src/shapes_2d.h | |
parent | 2dca902c183ece31bc0853e1e8b93d09359515e4 (diff) |
Hills in the AutumnTheme
Diffstat (limited to 'themes/src/shapes_2d.h')
-rw-r--r-- | themes/src/shapes_2d.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 |