summaryrefslogtreecommitdiffhomepage
path: root/parser/output/raylib_api.lua
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2024-06-11 02:51:49 -0700
committerGitHub <[email protected]>2024-06-11 11:51:49 +0200
commit2609211207419ceab2e00113b4a442bfdab434d3 (patch)
treeac8623f16cdd6b99e478921bf9c9bf26ebaa994e /parser/output/raylib_api.lua
parent0fc4b619065291a06787fe38388d1318f7ecfc12 (diff)
downloadraylib-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 'parser/output/raylib_api.lua')
-rw-r--r--parser/output/raylib_api.lua20
1 files changed, 10 insertions, 10 deletions
diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua
index eb88daab..3dec7f37 100644
--- a/parser/output/raylib_api.lua
+++ b/parser/output/raylib_api.lua
@@ -4636,7 +4636,7 @@ return {
description = "Draw lines sequence (using gl lines)",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "Color", name = "color"}
}
@@ -4947,7 +4947,7 @@ return {
description = "Draw a triangle fan defined by points (first vertex is the center)",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "Color", name = "color"}
}
@@ -4957,7 +4957,7 @@ return {
description = "Draw a triangle strip defined by points",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "Color", name = "color"}
}
@@ -5004,7 +5004,7 @@ return {
description = "Draw spline: Linear, minimum 2 points",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "float", name = "thick"},
{type = "Color", name = "color"}
@@ -5015,7 +5015,7 @@ return {
description = "Draw spline: B-Spline, minimum 4 points",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "float", name = "thick"},
{type = "Color", name = "color"}
@@ -5026,7 +5026,7 @@ return {
description = "Draw spline: Catmull-Rom, minimum 4 points",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "float", name = "thick"},
{type = "Color", name = "color"}
@@ -5037,7 +5037,7 @@ return {
description = "Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "float", name = "thick"},
{type = "Color", name = "color"}
@@ -5048,7 +5048,7 @@ return {
description = "Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]",
returnType = "void",
params = {
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "float", name = "thick"},
{type = "Color", name = "color"}
@@ -5239,7 +5239,7 @@ return {
returnType = "bool",
params = {
{type = "Vector2", name = "point"},
- {type = "Vector2 *", name = "points"},
+ {type = "const Vector2 *", name = "points"},
{type = "int", name = "pointCount"}
}
},
@@ -6855,7 +6855,7 @@ return {
description = "Draw a triangle strip defined by points",
returnType = "void",
params = {
- {type = "Vector3 *", name = "points"},
+ {type = "const Vector3 *", name = "points"},
{type = "int", name = "pointCount"},
{type = "Color", name = "color"}
}