diff options
| author | Jeffery Myers <[email protected]> | 2024-06-11 02:51:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-11 11:51:49 +0200 |
| commit | 2609211207419ceab2e00113b4a442bfdab434d3 (patch) | |
| tree | ac8623f16cdd6b99e478921bf9c9bf26ebaa994e /src/rmodels.c | |
| parent | 0fc4b619065291a06787fe38388d1318f7ecfc12 (diff) | |
| download | raylib-2609211207419ceab2e00113b4a442bfdab434d3.tar.gz raylib-2609211207419ceab2e00113b4a442bfdab434d3.zip | |
[SHAPES] Make functions that draw point arrays take them as const (#4051)
* Update raylib_api.* by CI
* make functions that take a pointer to an array take them as const pointers
* Update raylib_api.* by CI
* fix comment alignment.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/rmodels.c')
| -rw-r--r-- | src/rmodels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index 1ee27602..5a6c6414 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -226,7 +226,7 @@ void DrawTriangle3D(Vector3 v1, Vector3 v2, Vector3 v3, Color color) } // Draw a triangle strip defined by points -void DrawTriangleStrip3D(Vector3 *points, int pointCount, Color color) +void DrawTriangleStrip3D(const Vector3 *points, int pointCount, Color color) { if (pointCount < 3) return; // Security check |
