diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json index c48c1dd593ff..b0f82d3c4353 100644 --- a/parser/output/raylib_api.json +++ b/parser/output/raylib_api.json @@ -3910,10 +3910,14 @@ ] }, { - "name": "GetCameraMatrix", - "description": "Get camera transform matrix (view matrix)", - "returnType": "Matrix", + "name": "GetWorldToScreen", + "description": "Get the screen space position for a 3d world space position", + "returnType": "Vector2", "params": [ + { + "type": "Vector3", + "name": "position" + }, { "type": "Camera", "name": "camera" @@ -3921,27 +3925,39 @@ ] }, { - "name": "GetCameraMatrix2D", - "description": "Get camera 2d transform matrix", - "returnType": "Matrix", + "name": "GetWorldToScreenEx", + "description": "Get size position for a 3d world space position", + "returnType": "Vector2", "params": [ { - "type": "Camera2D", + "type": "Vector3", + "name": "position" + }, + { + "type": "Camera", "name": "camera" + }, + { + "type": "int", + "name": "width" + }, + { + "type": "int", + "name": "height" } ] }, { - "name": "GetWorldToScreen", - "description": "Get the screen space position for a 3d world space position", + "name": "GetWorldToScreen2D", + "description": "Get the screen space position for a 2d camera world space position", "returnType": "Vector2", "params": [ { - "type": "Vector3", + "type": "Vector2", "name": "position" }, { - "type": "Camera", + "type": "Camera2D", "name": "camera" } ] @@ -3962,37 +3978,21 @@ ] }, { - "name": "GetWorldToScreenEx", - "description": "Get size position for a 3d world space position", - "returnType": "Vector2", + "name": "GetCameraMatrix", + "description": "Get camera transform matrix (view matrix)", + "returnType": "Matrix", "params": [ - { - "type": "Vector3", - "name": "position" - }, { "type": "Camera", "name": "camera" - }, - { - "type": "int", - "name": "width" - }, - { - "type": "int", - "name": "height" } ] }, { - "name": "GetWorldToScreen2D", - "description": "Get the screen space position for a 2d camera world space position", - "returnType": "Vector2", + "name": "GetCameraMatrix2D", + "description": "Get camera 2d transform matrix", + "returnType": "Matrix", "params": [ - { - "type": "Vector2", - "name": "position" - }, { "type": "Camera2D", "name": "camera" diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua index 882fb61f581f..c547fea227bb 100644 --- a/parser/output/raylib_api.lua +++ b/parser/output/raylib_api.lua @@ -3655,28 +3655,32 @@ return { } }, { - name = "GetCameraMatrix", - description = "Get camera transform matrix (view matrix)", - returnType = "Matrix", + name = "GetWorldToScreen", + description = "Get the screen space position for a 3d world space position", + returnType = "Vector2", params = { + {type = "Vector3", name = "position"}, {type = "Camera", name = "camera"} } }, { - name = "GetCameraMatrix2D", - description = "Get camera 2d transform matrix", - returnType = "Matrix", + name = "GetWorldToScreenEx", + description = "Get size position for a 3d world space position", + returnType = "Vector2", params = { - {type = "Camera2D", name = "camera"} + {type = "Vector3", name = "position"}, + {type = "Camera", name = "camera"}, + {type = "int", name = "width"}, + {type = "int", name = "height"} } }, { - name = "GetWorldToScreen", - description = "Get the screen space position for a 3d world space position", + name = "GetWorldToScreen2D", + description = "Get the screen space position for a 2d camera world space position", returnType = "Vector2", params = { - {type = "Vector3", name = "position"}, - {type = "Camera", name = "camera"} + {type = "Vector2", name = "position"}, + {type = "Camera2D", name = "camera"} } }, { @@ -3689,22 +3693,18 @@ return { } }, { - name = "GetWorldToScreenEx", - description = "Get size position for a 3d world space position", - returnType = "Vector2", + name = "GetCameraMatrix", + description = "Get camera transform matrix (view matrix)", + returnType = "Matrix", params = { - {type = "Vector3", name = "position"}, - {type = "Camera", name = "camera"}, - {type = "int", name = "width"}, - {type = "int", name = "height"} + {type = "Camera", name = "camera"} } }, { - name = "GetWorldToScreen2D", - description = "Get the screen space position for a 2d camera world space position", - returnType = "Vector2", + name = "GetCameraMatrix2D", + description = "Get camera 2d transform matrix", + returnType = "Matrix", params = { - {type = "Vector2", name = "position"}, {type = "Camera2D", name = "camera"} } }, diff --git a/parser/output/raylib_api.txt b/parser/output/raylib_api.txt index ee1e55af9bf3..4e1c03af1785 100644 --- a/parser/output/raylib_api.txt +++ b/parser/output/raylib_api.txt @@ -1435,29 +1435,13 @@ Function 085: GetViewRay() (4 input parameters) Param[2]: camera (type: Camera) Param[3]: width (type: float) Param[4]: height (type: float) -Function 086: GetCameraMatrix() (1 input parameters) - Name: GetCameraMatrix - Return type: Matrix - Description: Get camera transform matrix (view matrix) - Param[1]: camera (type: Camera) -Function 087: GetCameraMatrix2D() (1 input parameters) - Name: GetCameraMatrix2D - Return type: Matrix - Description: Get camera 2d transform matrix - Param[1]: camera (type: Camera2D) -Function 088: GetWorldToScreen() (2 input parameters) +Function 086: GetWorldToScreen() (2 input parameters) Name: GetWorldToScreen Return type: Vector2 Description: Get the screen space position for a 3d world space position Param[1]: position (type: Vector3) Param[2]: camera (type: Camera) -Function 089: GetScreenToWorld2D() (2 input parameters) - Name: GetScreenToWorld2D - Return type: Vector2 - Description: Get the world space position for a 2d camera screen space position - Param[1]: position (type: Vector2) - Param[2]: camera (type: Camera2D) -Function 090: GetWorldToScreenEx() (4 input parameters) +Function 087: GetWorldToScreenEx() (4 input parameters) Name: GetWorldToScreenEx Return type: Vector2 Description: Get size position for a 3d world space position @@ -1465,12 +1449,28 @@ Function 090: GetWorldToScreenEx() (4 input parameters) Param[2]: camera (type: Camera) Param[3]: width (type: int) Param[4]: height (type: int) -Function 091: GetWorldToScreen2D() (2 input parameters) +Function 088: GetWorldToScreen2D() (2 input parameters) Name: GetWorldToScreen2D Return type: Vector2 Description: Get the screen space position for a 2d camera world space position Param[1]: position (type: Vector2) Param[2]: camera (type: Camera2D) +Function 089: GetScreenToWorld2D() (2 input parameters) + Name: GetScreenToWorld2D + Return type: Vector2 + Description: Get the world space position for a 2d camera screen space position + Param[1]: position (type: Vector2) + Param[2]: camera (type: Camera2D) +Function 090: GetCameraMatrix() (1 input parameters) + Name: GetCameraMatrix + Return type: Matrix + Description: Get camera transform matrix (view matrix) + Param[1]: camera (type: Camera) +Function 091: GetCameraMatrix2D() (1 input parameters) + Name: GetCameraMatrix2D + Return type: Matrix + Description: Get camera 2d transform matrix + Param[1]: camera (type: Camera2D) Function 092: SetTargetFPS() (1 input parameters) Name: SetTargetFPS Return type: void diff --git a/parser/output/raylib_api.xml b/parser/output/raylib_api.xml index 4b82c275d4f0..e439dff74d48 100644 --- a/parser/output/raylib_api.xml +++ b/parser/output/raylib_api.xml @@ -912,20 +912,10 @@ - - - - - - - - - - @@ -936,6 +926,16 @@ + + + + + + + + + +