Screen space related functions consistency (#3830)

* Screen/world-space related functions rename

* Update raylib_api.* by CI

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
aiafrasinei 2024-03-07 13:28:11 +02:00 committed by GitHub
parent fccdfa7926
commit 3b7be85151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 19 additions and 19 deletions

View file

@ -3872,7 +3872,7 @@
]
},
{
"name": "GetMouseRay",
"name": "GetScreenToWorldRay",
"description": "Get a ray trace from mouse position",
"returnType": "Ray",
"params": [
@ -3887,7 +3887,7 @@
]
},
{
"name": "GetViewRay",
"name": "GetScreenToWorldRayEx",
"description": "Get a ray trace from mouse position in a viewport",
"returnType": "Ray",
"params": [

View file

@ -3635,7 +3635,7 @@ return {
}
},
{
name = "GetMouseRay",
name = "GetScreenToWorldRay",
description = "Get a ray trace from mouse position",
returnType = "Ray",
params = {
@ -3644,7 +3644,7 @@ return {
}
},
{
name = "GetViewRay",
name = "GetScreenToWorldRayEx",
description = "Get a ray trace from mouse position in a viewport",
returnType = "Ray",
params = {

View file

@ -1421,14 +1421,14 @@ Function 083: UnloadShader() (1 input parameters)
Return type: void
Description: Unload shader from GPU memory (VRAM)
Param[1]: shader (type: Shader)
Function 084: GetMouseRay() (2 input parameters)
Name: GetMouseRay
Function 084: GetScreenToWorldRay() (2 input parameters)
Name: GetScreenToWorldRay
Return type: Ray
Description: Get a ray trace from mouse position
Param[1]: mousePosition (type: Vector2)
Param[2]: camera (type: Camera)
Function 085: GetViewRay() (4 input parameters)
Name: GetViewRay
Function 085: GetScreenToWorldRayEx() (4 input parameters)
Name: GetScreenToWorldRayEx
Return type: Ray
Description: Get a ray trace from mouse position in a viewport
Param[1]: mousePosition (type: Vector2)

View file

@ -902,11 +902,11 @@
<Function name="UnloadShader" retType="void" paramCount="1" desc="Unload shader from GPU memory (VRAM)">
<Param type="Shader" name="shader" desc="" />
</Function>
<Function name="GetMouseRay" retType="Ray" paramCount="2" desc="Get a ray trace from mouse position">
<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="GetViewRay" retType="Ray" paramCount="4" desc="Get a ray trace from mouse position in a viewport">
<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="" />