diff options
| author | raysan5 <[email protected]> | 2019-08-11 21:26:12 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2019-08-11 21:26:12 +0200 |
| commit | cef1e6e2e2a015d56b3018465f9094887ff94bdd (patch) | |
| tree | aff618a9ca9264c79c2635e037718ee0828479e4 /src/raylib.h | |
| parent | 740834bb83734d436ba4c5324a4ccb026ebf5c6c (diff) | |
| download | raylib-cef1e6e2e2a015d56b3018465f9094887ff94bdd.tar.gz raylib-cef1e6e2e2a015d56b3018465f9094887ff94bdd.zip | |
Added notes about vertex order
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h index 3cb8d327..37557c61 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1054,9 +1054,9 @@ RLAPI void DrawRectangleLines(int posX, int posY, int width, int height, Color c RLAPI void DrawRectangleLinesEx(Rectangle rec, int 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 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 DrawTriangleFan(Vector2 *points, int numPoints, Color color); // Draw a triangle fan defined by points +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 numPoints, 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) |
