diff options
| author | Ray <[email protected]> | 2021-09-01 23:09:30 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-09-01 23:09:30 +0200 |
| commit | a0f8682905fee1b65c903f1f46adff6e06ab6ae7 (patch) | |
| tree | 1a16c04a267d6ca7d0ccb77bd7148d72c312b546 /src/shapes.c | |
| parent | e8fa7ceb79613188c495b80a332875a1afdab8cf (diff) | |
| download | raylib-a0f8682905fee1b65c903f1f46adff6e06ab6ae7.tar.gz raylib-a0f8682905fee1b65c903f1f46adff6e06ab6ae7.zip | |
REVIEWED: <name>Count for consistency
Following english rules, it should be singular name before Count.
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/shapes.c b/src/shapes.c index 104aef0a..86e7c97a 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -190,16 +190,16 @@ void DrawLineBezierQuad(Vector2 startPos, Vector2 endPos, Vector2 controlPos, fl } // Draw lines sequence -void DrawLineStrip(Vector2 *points, int pointsCount, Color color) +void DrawLineStrip(Vector2 *points, int pointCount, Color color) { - if (pointsCount >= 2) + if (pointCount >= 2) { - rlCheckRenderBatchLimit(pointsCount); + rlCheckRenderBatchLimit(pointCount); rlBegin(RL_LINES); rlColor4ub(color.r, color.g, color.b, color.a); - for (int i = 0; i < pointsCount - 1; i++) + for (int i = 0; i < pointCount - 1; i++) { rlVertex2f(points[i].x, points[i].y); rlVertex2f(points[i + 1].x, points[i + 1].y); @@ -1318,17 +1318,17 @@ void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color) // Draw a triangle fan defined by points // NOTE: First vertex provided is the center, shared by all triangles // By default, following vertex should be provided in counter-clockwise order -void DrawTriangleFan(Vector2 *points, int pointsCount, Color color) +void DrawTriangleFan(Vector2 *points, int pointCount, Color color) { - if (pointsCount >= 3) + if (pointCount >= 3) { - rlCheckRenderBatchLimit((pointsCount - 2)*4); + rlCheckRenderBatchLimit((pointCount - 2)*4); rlSetTexture(texShapes.id); rlBegin(RL_QUADS); rlColor4ub(color.r, color.g, color.b, color.a); - for (int i = 1; i < pointsCount - 1; i++) + for (int i = 1; i < pointCount - 1; i++) { rlTexCoord2f(texShapesRec.x/texShapes.width, texShapesRec.y/texShapes.height); rlVertex2f(points[0].x, points[0].y); @@ -1349,16 +1349,16 @@ void DrawTriangleFan(Vector2 *points, int pointsCount, Color color) // Draw a triangle strip defined by points // NOTE: Every new vertex connects with previous two -void DrawTriangleStrip(Vector2 *points, int pointsCount, Color color) +void DrawTriangleStrip(Vector2 *points, int pointCount, Color color) { - if (pointsCount >= 3) + if (pointCount >= 3) { - rlCheckRenderBatchLimit(3*(pointsCount - 2)); + rlCheckRenderBatchLimit(3*(pointCount - 2)); rlBegin(RL_TRIANGLES); rlColor4ub(color.r, color.g, color.b, color.a); - for (int i = 2; i < pointsCount; i++) + for (int i = 2; i < pointCount; i++) { if ((i%2) == 0) { |
