diff options
| author | Violet White <[email protected]> | 2020-12-26 06:04:38 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-26 13:04:38 +0100 |
| commit | de13fca3b1da643c74be37d16df5e30cd7198457 (patch) | |
| tree | b77046b5b5e6b916a8b885ef67a880b863a87e99 /src/raylib.h | |
| parent | b59ca95a160db14a3c7b54d139723b03a1147cf9 (diff) | |
| download | raylib-de13fca3b1da643c74be37d16df5e30cd7198457.tar.gz raylib-de13fca3b1da643c74be37d16df5e30cd7198457.zip | |
Add Quadratic Bezier drawing (#1468)
* Add quadratic bezier to shapes.c
* Add DrawLineBezierQuad to header
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 11fb337b..35afce38 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1090,6 +1090,7 @@ RLAPI void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Colo RLAPI void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); // Draw a line (Vector version) RLAPI void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line defining thickness RLAPI void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line using cubic-bezier curves in-out +RLAPI void DrawLineBezierQuad(Vector2 startPos,Vector2 controlPos,Vector2 endPos, float thick, Color color);//Draw line using quadratic bezier curves with a control point RLAPI void DrawLineStrip(Vector2 *points, int pointsCount, Color color); // Draw lines sequence RLAPI void DrawCircle(int centerX, int centerY, float radius, Color color); // Draw a color-filled circle RLAPI void DrawCircleSector(Vector2 center, float radius, int startAngle, int endAngle, int segments, Color color); // Draw a piece of a circle |
