Skip to content

Commit

Permalink
Update raylib_api.* by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 22, 2024
1 parent 4b60ce7 commit ebcfc7f
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 100 deletions.
90 changes: 45 additions & 45 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -6662,6 +6662,29 @@
}
]
},
{
"name": "CheckCollisionCircleLine",
"description": "Check if circle collides with a line created betweeen two points [p1] and [p2]",
"returnType": "bool",
"params": [
{
"type": "Vector2",
"name": "center"
},
{
"type": "float",
"name": "radius"
},
{
"type": "Vector2",
"name": "p1"
},
{
"type": "Vector2",
"name": "p2"
}
]
},
{
"name": "CheckCollisionPointRec",
"description": "Check if point is inside rectangle",
Expand Down Expand Up @@ -6720,94 +6743,71 @@
]
},
{
"name": "CheckCollisionPointPoly",
"description": "Check if point is within a polygon described by array of vertices",
"name": "CheckCollisionPointLine",
"description": "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
"returnType": "bool",
"params": [
{
"type": "Vector2",
"name": "point"
},
{
"type": "const Vector2 *",
"name": "points"
},
{
"type": "int",
"name": "pointCount"
}
]
},
{
"name": "CheckCollisionLines",
"description": "Check the collision between two lines defined by two points each, returns collision point by reference",
"returnType": "bool",
"params": [
{
"type": "Vector2",
"name": "startPos1"
},
{
"type": "Vector2",
"name": "endPos1"
},
{
"type": "Vector2",
"name": "startPos2"
"name": "p1"
},
{
"type": "Vector2",
"name": "endPos2"
"name": "p2"
},
{
"type": "Vector2 *",
"name": "collisionPoint"
"type": "int",
"name": "threshold"
}
]
},
{
"name": "CheckCollisionPointLine",
"description": "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
"name": "CheckCollisionPointPoly",
"description": "Check if point is within a polygon described by array of vertices",
"returnType": "bool",
"params": [
{
"type": "Vector2",
"name": "point"
},
{
"type": "Vector2",
"name": "p1"
},
{
"type": "Vector2",
"name": "p2"
"type": "const Vector2 *",
"name": "points"
},
{
"type": "int",
"name": "threshold"
"name": "pointCount"
}
]
},
{
"name": "CheckCollisionCircleLine",
"description": "Check if circle collides with a line created betweeen two points [p1] and [p2]",
"name": "CheckCollisionLines",
"description": "Check the collision between two lines defined by two points each, returns collision point by reference",
"returnType": "bool",
"params": [
{
"type": "Vector2",
"name": "center"
"name": "startPos1"
},
{
"type": "float",
"name": "radius"
"type": "Vector2",
"name": "endPos1"
},
{
"type": "Vector2",
"name": "p1"
"name": "startPos2"
},
{
"type": "Vector2",
"name": "p2"
"name": "endPos2"
},
{
"type": "Vector2 *",
"name": "collisionPoint"
}
]
},
Expand Down
44 changes: 22 additions & 22 deletions parser/output/raylib_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5264,6 +5264,17 @@ return {
{type = "Rectangle", name = "rec"}
}
},
{
name = "CheckCollisionCircleLine",
description = "Check if circle collides with a line created betweeen two points [p1] and [p2]",
returnType = "bool",
params = {
{type = "Vector2", name = "center"},
{type = "float", name = "radius"},
{type = "Vector2", name = "p1"},
{type = "Vector2", name = "p2"}
}
},
{
name = "CheckCollisionPointRec",
description = "Check if point is inside rectangle",
Expand Down Expand Up @@ -5294,6 +5305,17 @@ return {
{type = "Vector2", name = "p3"}
}
},
{
name = "CheckCollisionPointLine",
description = "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
returnType = "bool",
params = {
{type = "Vector2", name = "point"},
{type = "Vector2", name = "p1"},
{type = "Vector2", name = "p2"},
{type = "int", name = "threshold"}
}
},
{
name = "CheckCollisionPointPoly",
description = "Check if point is within a polygon described by array of vertices",
Expand All @@ -5316,28 +5338,6 @@ return {
{type = "Vector2 *", name = "collisionPoint"}
}
},
{
name = "CheckCollisionPointLine",
description = "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]",
returnType = "bool",
params = {
{type = "Vector2", name = "point"},
{type = "Vector2", name = "p1"},
{type = "Vector2", name = "p2"},
{type = "int", name = "threshold"}
}
},
{
name = "CheckCollisionCircleLine",
description = "Check if circle collides with a line created betweeen two points [p1] and [p2]",
returnType = "bool",
params = {
{type = "Vector2", name = "center"},
{type = "float", name = "radius"},
{type = "Vector2", name = "p1"},
{type = "Vector2", name = "p2"}
}
},
{
name = "GetCollisionRec",
description = "Get collision rectangle for two rectangles collision",
Expand Down
42 changes: 21 additions & 21 deletions parser/output/raylib_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2577,35 +2577,51 @@ Function 265: CheckCollisionCircleRec() (3 input parameters)
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: rec (type: Rectangle)
Function 266: CheckCollisionPointRec() (2 input parameters)
Function 266: CheckCollisionCircleLine() (4 input parameters)
Name: CheckCollisionCircleLine
Return type: bool
Description: Check if circle collides with a line created betweeen two points [p1] and [p2]
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: p1 (type: Vector2)
Param[4]: p2 (type: Vector2)
Function 267: CheckCollisionPointRec() (2 input parameters)
Name: CheckCollisionPointRec
Return type: bool
Description: Check if point is inside rectangle
Param[1]: point (type: Vector2)
Param[2]: rec (type: Rectangle)
Function 267: CheckCollisionPointCircle() (3 input parameters)
Function 268: CheckCollisionPointCircle() (3 input parameters)
Name: CheckCollisionPointCircle
Return type: bool
Description: Check if point is inside circle
Param[1]: point (type: Vector2)
Param[2]: center (type: Vector2)
Param[3]: radius (type: float)
Function 268: CheckCollisionPointTriangle() (4 input parameters)
Function 269: CheckCollisionPointTriangle() (4 input parameters)
Name: CheckCollisionPointTriangle
Return type: bool
Description: Check if point is inside a triangle
Param[1]: point (type: Vector2)
Param[2]: p1 (type: Vector2)
Param[3]: p2 (type: Vector2)
Param[4]: p3 (type: Vector2)
Function 269: CheckCollisionPointPoly() (3 input parameters)
Function 270: CheckCollisionPointLine() (4 input parameters)
Name: CheckCollisionPointLine
Return type: bool
Description: Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
Param[1]: point (type: Vector2)
Param[2]: p1 (type: Vector2)
Param[3]: p2 (type: Vector2)
Param[4]: threshold (type: int)
Function 271: CheckCollisionPointPoly() (3 input parameters)
Name: CheckCollisionPointPoly
Return type: bool
Description: Check if point is within a polygon described by array of vertices
Param[1]: point (type: Vector2)
Param[2]: points (type: const Vector2 *)
Param[3]: pointCount (type: int)
Function 270: CheckCollisionLines() (5 input parameters)
Function 272: CheckCollisionLines() (5 input parameters)
Name: CheckCollisionLines
Return type: bool
Description: Check the collision between two lines defined by two points each, returns collision point by reference
Expand All @@ -2614,22 +2630,6 @@ Function 270: CheckCollisionLines() (5 input parameters)
Param[3]: startPos2 (type: Vector2)
Param[4]: endPos2 (type: Vector2)
Param[5]: collisionPoint (type: Vector2 *)
Function 271: CheckCollisionPointLine() (4 input parameters)
Name: CheckCollisionPointLine
Return type: bool
Description: Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
Param[1]: point (type: Vector2)
Param[2]: p1 (type: Vector2)
Param[3]: p2 (type: Vector2)
Param[4]: threshold (type: int)
Function 272: CheckCollisionCircleLine() (4 input parameters)
Name: CheckCollisionCircleLine
Return type: bool
Description: Check if circle collides with a line created betweeen two points [p1] and [p2]
Param[1]: center (type: Vector2)
Param[2]: radius (type: float)
Param[3]: p1 (type: Vector2)
Param[4]: p2 (type: Vector2)
Function 273: GetCollisionRec() (2 input parameters)
Name: GetCollisionRec
Return type: Rectangle
Expand Down
24 changes: 12 additions & 12 deletions parser/output/raylib_api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,12 @@
<Param type="float" name="radius" desc="" />
<Param type="Rectangle" name="rec" desc="" />
</Function>
<Function name="CheckCollisionCircleLine" retType="bool" paramCount="4" desc="Check if circle collides with a line created betweeen two points [p1] and [p2]">
<Param type="Vector2" name="center" desc="" />
<Param type="float" name="radius" desc="" />
<Param type="Vector2" name="p1" desc="" />
<Param type="Vector2" name="p2" desc="" />
</Function>
<Function name="CheckCollisionPointRec" retType="bool" paramCount="2" desc="Check if point is inside rectangle">
<Param type="Vector2" name="point" desc="" />
<Param type="Rectangle" name="rec" desc="" />
Expand All @@ -1674,6 +1680,12 @@
<Param type="Vector2" name="p2" desc="" />
<Param type="Vector2" name="p3" desc="" />
</Function>
<Function name="CheckCollisionPointLine" retType="bool" paramCount="4" desc="Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]">
<Param type="Vector2" name="point" desc="" />
<Param type="Vector2" name="p1" desc="" />
<Param type="Vector2" name="p2" desc="" />
<Param type="int" name="threshold" desc="" />
</Function>
<Function name="CheckCollisionPointPoly" retType="bool" paramCount="3" desc="Check if point is within a polygon described by array of vertices">
<Param type="Vector2" name="point" desc="" />
<Param type="const Vector2 *" name="points" desc="" />
Expand All @@ -1686,18 +1698,6 @@
<Param type="Vector2" name="endPos2" desc="" />
<Param type="Vector2 *" name="collisionPoint" desc="" />
</Function>
<Function name="CheckCollisionPointLine" retType="bool" paramCount="4" desc="Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]">
<Param type="Vector2" name="point" desc="" />
<Param type="Vector2" name="p1" desc="" />
<Param type="Vector2" name="p2" desc="" />
<Param type="int" name="threshold" desc="" />
</Function>
<Function name="CheckCollisionCircleLine" retType="bool" paramCount="4" desc="Check if circle collides with a line created betweeen two points [p1] and [p2]">
<Param type="Vector2" name="center" desc="" />
<Param type="float" name="radius" desc="" />
<Param type="Vector2" name="p1" desc="" />
<Param type="Vector2" name="p2" desc="" />
</Function>
<Function name="GetCollisionRec" retType="Rectangle" paramCount="2" desc="Get collision rectangle for two rectangles collision">
<Param type="Rectangle" name="rec1" desc="" />
<Param type="Rectangle" name="rec2" desc="" />
Expand Down

0 comments on commit ebcfc7f

Please sign in to comment.