Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Feb 4, 2024
2 parents 615ee9d + cd8da72 commit c0c2e28
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 84 deletions.
66 changes: 33 additions & 33 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3910,38 +3910,54 @@
]
},
{
"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",
"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"
}
]
Expand All @@ -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"
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 @@ -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"}
}
},
{
Expand All @@ -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"}
}
},
Expand Down
38 changes: 19 additions & 19 deletions parser/output/raylib_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1435,42 +1435,42 @@ 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
Param[1]: position (type: Vector3)
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
Expand Down
20 changes: 10 additions & 10 deletions parser/output/raylib_api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -912,20 +912,10 @@
<Param type="float" name="width" desc="" />
<Param type="float" name="height" desc="" />
</Function>
<Function name="GetCameraMatrix" retType="Matrix" paramCount="1" desc="Get camera transform matrix (view matrix)">
<Param type="Camera" name="camera" desc="" />
</Function>
<Function name="GetCameraMatrix2D" retType="Matrix" paramCount="1" desc="Get camera 2d transform matrix">
<Param type="Camera2D" name="camera" desc="" />
</Function>
<Function name="GetWorldToScreen" retType="Vector2" paramCount="2" desc="Get the screen space position for a 3d world space position">
<Param type="Vector3" name="position" desc="" />
<Param type="Camera" name="camera" desc="" />
</Function>
<Function name="GetScreenToWorld2D" retType="Vector2" paramCount="2" desc="Get the world space position for a 2d camera screen space position">
<Param type="Vector2" name="position" desc="" />
<Param type="Camera2D" name="camera" desc="" />
</Function>
<Function name="GetWorldToScreenEx" retType="Vector2" paramCount="4" desc="Get size position for a 3d world space position">
<Param type="Vector3" name="position" desc="" />
<Param type="Camera" name="camera" desc="" />
Expand All @@ -936,6 +926,16 @@
<Param type="Vector2" name="position" desc="" />
<Param type="Camera2D" name="camera" desc="" />
</Function>
<Function name="GetScreenToWorld2D" retType="Vector2" paramCount="2" desc="Get the world space position for a 2d camera screen space position">
<Param type="Vector2" name="position" desc="" />
<Param type="Camera2D" name="camera" desc="" />
</Function>
<Function name="GetCameraMatrix" retType="Matrix" paramCount="1" desc="Get camera transform matrix (view matrix)">
<Param type="Camera" name="camera" desc="" />
</Function>
<Function name="GetCameraMatrix2D" retType="Matrix" paramCount="1" desc="Get camera 2d transform matrix">
<Param type="Camera2D" name="camera" desc="" />
</Function>
<Function name="SetTargetFPS" retType="void" paramCount="1" desc="Set target FPS (maximum)">
<Param type="int" name="fps" desc="" />
</Function>
Expand Down

0 comments on commit c0c2e28

Please sign in to comment.