Skip to content

Commit

Permalink
Revert "Update raylib_api.* by CI"
Browse files Browse the repository at this point in the history
This reverts commit 5db5720.
  • Loading branch information
blueloveTH committed Apr 3, 2024
1 parent 8fbec6f commit 7f9400c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 40 deletions.
16 changes: 5 additions & 11 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,6 @@
"type": "UNKNOWN",
"value": "SHADER_LOC_MAP_METALNESS",
"description": ""
},
{
"name": "GetMouseRay",
"type": "UNKNOWN",
"value": "GetScreenToWorldRay",
"description": "Compatibility hack for previous raylib versions"
}
],
"structs": [
Expand Down Expand Up @@ -3879,12 +3873,12 @@
},
{
"name": "GetScreenToWorldRay",
"description": "Get a ray trace from screen position (i.e mouse)",
"description": "Get a ray trace from mouse position",
"returnType": "Ray",
"params": [
{
"type": "Vector2",
"name": "position"
"name": "mousePosition"
},
{
"type": "Camera",
Expand All @@ -3894,12 +3888,12 @@
},
{
"name": "GetScreenToWorldRayEx",
"description": "Get a ray trace from screen position (i.e mouse) in a viewport",
"description": "Get a ray trace from mouse position in a viewport",
"returnType": "Ray",
"params": [
{
"type": "Vector2",
"name": "position"
"name": "mousePosition"
},
{
"type": "Camera",
Expand Down Expand Up @@ -5097,7 +5091,7 @@
{
"name": "GetTouchPointId",
"description": "Get touch point identifier for given index",
"returnType": "long long",
"returnType": "int",
"params": [
{
"type": "int",
Expand Down
16 changes: 5 additions & 11 deletions parser/output/raylib_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,6 @@ return {
type = "UNKNOWN",
value = "SHADER_LOC_MAP_METALNESS",
description = ""
},
{
name = "GetMouseRay",
type = "UNKNOWN",
value = "GetScreenToWorldRay",
description = "Compatibility hack for previous raylib versions"
}
},
structs = {
Expand Down Expand Up @@ -3642,19 +3636,19 @@ return {
},
{
name = "GetScreenToWorldRay",
description = "Get a ray trace from screen position (i.e mouse)",
description = "Get a ray trace from mouse position",
returnType = "Ray",
params = {
{type = "Vector2", name = "position"},
{type = "Vector2", name = "mousePosition"},
{type = "Camera", name = "camera"}
}
},
{
name = "GetScreenToWorldRayEx",
description = "Get a ray trace from screen position (i.e mouse) in a viewport",
description = "Get a ray trace from mouse position in a viewport",
returnType = "Ray",
params = {
{type = "Vector2", name = "position"},
{type = "Vector2", name = "mousePosition"},
{type = "Camera", name = "camera"},
{type = "float", name = "width"},
{type = "float", name = "height"}
Expand Down Expand Up @@ -4476,7 +4470,7 @@ return {
{
name = "GetTouchPointId",
description = "Get touch point identifier for given index",
returnType = "long long",
returnType = "int",
params = {
{type = "int", name = "index"}
}
Expand Down
17 changes: 6 additions & 11 deletions parser/output/raylib_api.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Defines found: 57
Defines found: 56

Define 001: RAYLIB_H
Name: RAYLIB_H
Expand Down Expand Up @@ -281,11 +281,6 @@ Define 056: SHADER_LOC_MAP_SPECULAR
Type: UNKNOWN
Value: SHADER_LOC_MAP_METALNESS
Description:
Define 057: GetMouseRay
Name: GetMouseRay
Type: UNKNOWN
Value: GetScreenToWorldRay
Description: Compatibility hack for previous raylib versions

Structures found: 34

Expand Down Expand Up @@ -1429,14 +1424,14 @@ Function 083: UnloadShader() (1 input parameters)
Function 084: GetScreenToWorldRay() (2 input parameters)
Name: GetScreenToWorldRay
Return type: Ray
Description: Get a ray trace from screen position (i.e mouse)
Param[1]: position (type: Vector2)
Description: Get a ray trace from mouse position
Param[1]: mousePosition (type: Vector2)
Param[2]: camera (type: Camera)
Function 085: GetScreenToWorldRayEx() (4 input parameters)
Name: GetScreenToWorldRayEx
Return type: Ray
Description: Get a ray trace from screen position (i.e mouse) in a viewport
Param[1]: position (type: Vector2)
Description: Get a ray trace from mouse position in a viewport
Param[1]: mousePosition (type: Vector2)
Param[2]: camera (type: Camera)
Param[3]: width (type: float)
Param[4]: height (type: float)
Expand Down Expand Up @@ -2006,7 +2001,7 @@ Function 190: GetTouchPosition() (1 input parameters)
Param[1]: index (type: int)
Function 191: GetTouchPointId() (1 input parameters)
Name: GetTouchPointId
Return type: long long
Return type: int
Description: Get touch point identifier for given index
Param[1]: index (type: int)
Function 192: GetTouchPointCount() (0 input parameters)
Expand Down
13 changes: 6 additions & 7 deletions parser/output/raylib_api.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="Windows-1252" ?>
<raylibAPI>
<Defines count="57">
<Defines count="56">
<Define name="RAYLIB_H" type="GUARD" value="" desc="" />
<Define name="RAYLIB_VERSION_MAJOR" type="INT" value="5" desc="" />
<Define name="RAYLIB_VERSION_MINOR" type="INT" value="1" desc="" />
Expand Down Expand Up @@ -57,7 +57,6 @@
<Define name="MATERIAL_MAP_SPECULAR" type="UNKNOWN" value="MATERIAL_MAP_METALNESS" desc="" />
<Define name="SHADER_LOC_MAP_DIFFUSE" type="UNKNOWN" value="SHADER_LOC_MAP_ALBEDO" desc="" />
<Define name="SHADER_LOC_MAP_SPECULAR" type="UNKNOWN" value="SHADER_LOC_MAP_METALNESS" desc="" />
<Define name="GetMouseRay" type="UNKNOWN" value="GetScreenToWorldRay" desc="Compatibility hack for previous raylib versions" />
</Defines>
<Structs count="34">
<Struct name="Vector2" fieldCount="2" desc="Vector2, 2 components">
Expand Down Expand Up @@ -903,12 +902,12 @@
<Function name="UnloadShader" retType="void" paramCount="1" desc="Unload shader from GPU memory (VRAM)">
<Param type="Shader" name="shader" desc="" />
</Function>
<Function name="GetScreenToWorldRay" retType="Ray" paramCount="2" desc="Get a ray trace from screen position (i.e mouse)">
<Param type="Vector2" name="position" desc="" />
<Function name="GetScreenToWorldRay" retType="Ray" paramCount="2" desc="Get a ray trace from mouse position">
<Param type="Vector2" name="mousePosition" desc="" />
<Param type="Camera" name="camera" desc="" />
</Function>
<Function name="GetScreenToWorldRayEx" retType="Ray" paramCount="4" desc="Get a ray trace from screen position (i.e mouse) in a viewport">
<Param type="Vector2" name="position" desc="" />
<Function name="GetScreenToWorldRayEx" retType="Ray" paramCount="4" desc="Get a ray trace from mouse position in a viewport">
<Param type="Vector2" name="mousePosition" desc="" />
<Param type="Camera" name="camera" desc="" />
<Param type="float" name="width" desc="" />
<Param type="float" name="height" desc="" />
Expand Down Expand Up @@ -1245,7 +1244,7 @@
<Function name="GetTouchPosition" retType="Vector2" paramCount="1" desc="Get touch position XY for a touch point index (relative to screen size)">
<Param type="int" name="index" desc="" />
</Function>
<Function name="GetTouchPointId" retType="long long" paramCount="1" desc="Get touch point identifier for given index">
<Function name="GetTouchPointId" retType="int" paramCount="1" desc="Get touch point identifier for given index">
<Param type="int" name="index" desc="" />
</Function>
<Function name="GetTouchPointCount" retType="int" paramCount="0" desc="Get number of touch points">
Expand Down

0 comments on commit 7f9400c

Please sign in to comment.