diff --git a/src/raylib.h b/src/raylib.h index 4aec696b3..fbca31863 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1307,6 +1307,7 @@ RLAPI void DrawCircleSector(Vector2 center, float radius, float startAngle, floa RLAPI void DrawCircleSectorLines(Vector2 center, float radius, float startAngle, float endAngle, int segments, Color color); // Draw circle sector outline RLAPI void DrawCircleLines(int centerX, int centerY, float radius, Color color); // Draw circle outline RLAPI void DrawCircleLinesV(Vector2 center, float radius, Color color); // Draw circle outline (Vector version) +RLAPI void DrawCircleLinesEx(Vector2 center, float radius, float thick, Color color); // Draw circle outline with line thickness RLAPI void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color); // Draw ellipse RLAPI void DrawEllipseV(Vector2 center, float radiusH, float radiusV, Color color); // Draw ellipse (Vector version) RLAPI void DrawEllipseLines(int centerX, int centerY, float radiusH, float radiusV, Color color); // Draw ellipse outline diff --git a/src/rshapes.c b/src/rshapes.c index 1cf1af2d0..b6d0f0944 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -510,6 +510,11 @@ void DrawCircleLinesV(Vector2 center, float radius, Color color) rlEnd(); } +void DrawCircleLinesEx(Vector2 center, float radius, float thick, Color color) +{ + DrawRing(center, radius - thick, radius, 0.0f, 360.0f, 36, color); +} + // Draw ellipse void DrawEllipse(int centerX, int centerY, float radiusH, float radiusV, Color color) {