From 7f9400c9898f6a8245eb1ed44de521d2591d1352 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Wed, 3 Apr 2024 15:14:17 +0800 Subject: [PATCH] Revert "Update raylib_api.* by CI" This reverts commit 5db5720de980b8b960be712b250009464c13deec. --- parser/output/raylib_api.json | 16 +++++----------- parser/output/raylib_api.lua | 16 +++++----------- parser/output/raylib_api.txt | 17 ++++++----------- parser/output/raylib_api.xml | 13 ++++++------- 4 files changed, 22 insertions(+), 40 deletions(-) diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json index f90e5d9fd325..ec8d57a8ce02 100644 --- a/parser/output/raylib_api.json +++ b/parser/output/raylib_api.json @@ -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": [ @@ -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", @@ -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", @@ -5097,7 +5091,7 @@ { "name": "GetTouchPointId", "description": "Get touch point identifier for given index", - "returnType": "long long", + "returnType": "int", "params": [ { "type": "int", diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua index abc65ec4733c..01c1abf307b7 100644 --- a/parser/output/raylib_api.lua +++ b/parser/output/raylib_api.lua @@ -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 = { @@ -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"} @@ -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"} } diff --git a/parser/output/raylib_api.txt b/parser/output/raylib_api.txt index 37be0f94edbc..d49ac33e4f3a 100644 --- a/parser/output/raylib_api.txt +++ b/parser/output/raylib_api.txt @@ -1,5 +1,5 @@ -Defines found: 57 +Defines found: 56 Define 001: RAYLIB_H Name: RAYLIB_H @@ -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 @@ -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) @@ -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) diff --git a/parser/output/raylib_api.xml b/parser/output/raylib_api.xml index dae5ff9a6b4f..45697f24d7ae 100644 --- a/parser/output/raylib_api.xml +++ b/parser/output/raylib_api.xml @@ -1,6 +1,6 @@ - + @@ -57,7 +57,6 @@ - @@ -903,12 +902,12 @@ - - + + - - + + @@ -1245,7 +1244,7 @@ - +