aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-04-04 13:42:20 +0200
committerGitHub <noreply@github.com>2019-04-04 13:42:20 +0200
commit6ecd8249bc06d41387bda08ecda9cb208ce87bb7 (patch)
treebe9e0393c848ae7db55f95af6388ef87c06f170c /src/raylib.h
parentd89d24c5e8930c18a93a6403e26914a9e2b23b84 (diff)
parenteda982e2612fb08bef951692e9e80cb3a36d9731 (diff)
downloadraylib-6ecd8249bc06d41387bda08ecda9cb208ce87bb7.tar.gz
raylib-6ecd8249bc06d41387bda08ecda9cb208ce87bb7.zip
Merge pull request #787 from Demizdor/master
Added `DrawRoundedRect()` and `DrawRoundedRectLines()`
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 9607191b..93965038 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1082,6 +1082,8 @@ RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Col
RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rectangle with custom vertex colors
RLAPI void DrawRectangleLines(int posX, int posY, int width, int height, Color color); // Draw rectangle outline
RLAPI void DrawRectangleLinesEx(Rectangle rec, int lineThick, Color color); // Draw rectangle outline with extended parameters
+RLAPI void DrawRoundedRect(Rectangle rec, float roundness, int segments, Color color); // Draw rectangle with rounded edges
+RLAPI void DrawRoundedRectLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rounded rectangle outline
RLAPI void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw a color-filled triangle
RLAPI void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle outline
RLAPI void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a regular polygon (Vector version)