summaryrefslogtreecommitdiff
path: root/themes/src/shapes_2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'themes/src/shapes_2d.h')
-rw-r--r--themes/src/shapes_2d.h19
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