diff options
| author | Lambert Wang <[email protected]> | 2021-05-10 11:08:58 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-10 20:08:58 +0200 |
| commit | e39e45824db79623fa4c7b55a606ca79fc27659e (patch) | |
| tree | de83c511f80faeb0832f11ddf65082bf814d63ed /src/raylib.h | |
| parent | 5d831f3f1853217c27e9c80a12caecf5b8f3133a (diff) | |
| download | raylib-e39e45824db79623fa4c7b55a606ca79fc27659e.tar.gz raylib-e39e45824db79623fa4c7b55a606ca79fc27659e.zip | |
Add RenderPolyLinesEx routine (#1758)
Co-authored-by: Lambert Wang <[email protected]>
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h index 53c81648..4caed913 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1172,15 +1172,16 @@ RLAPI void DrawRectangleGradientV(int posX, int posY, int width, int height, Col RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a horizontal-gradient-filled rectangle 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 DrawRectangleLinesEx(Rectangle rec, float lineThick, Color color); // Draw rectangle outline with extended parameters RLAPI void DrawRectangleRounded(Rectangle rec, float roundness, int segments, Color color); // Draw rectangle with rounded edges -RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, int lineThick, Color color); // Draw rectangle with rounded edges outline +RLAPI void DrawRectangleRoundedLines(Rectangle rec, float roundness, int segments, float lineThick, Color color); // Draw rectangle with rounded edges outline RLAPI void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw a color-filled triangle (vertex in counter-clockwise order!) RLAPI void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle outline (vertex in counter-clockwise order!) RLAPI void DrawTriangleFan(Vector2 *points, int pointsCount, Color color); // Draw a triangle fan defined by points (first vertex is the center) RLAPI void DrawTriangleStrip(Vector2 *points, int pointsCount, Color color); // Draw a triangle strip defined by points RLAPI void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a regular polygon (Vector version) RLAPI void DrawPolyLines(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a polygon outline of n sides +RLAPI void DrawPolyLinesEx(Vector2 center, int sides, float radius, float rotation, float lineThick, Color color); // Draw a polygon outline of n sides with extended parameters // Basic shapes collision detection functions RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles |
