ADDED: DrawCircleLinesEx(), simpler naming than DrawRing()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user