Skip to content

Commit c0c2e28

Browse files
committed
2 parents 615ee9d + cd8da72 commit c0c2e28

File tree

4 files changed

+84
-84
lines changed

4 files changed

+84
-84
lines changed

parser/output/raylib_api.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -3910,38 +3910,54 @@
39103910
]
39113911
},
39123912
{
3913-
"name": "GetCameraMatrix",
3914-
"description": "Get camera transform matrix (view matrix)",
3915-
"returnType": "Matrix",
3913+
"name": "GetWorldToScreen",
3914+
"description": "Get the screen space position for a 3d world space position",
3915+
"returnType": "Vector2",
39163916
"params": [
3917+
{
3918+
"type": "Vector3",
3919+
"name": "position"
3920+
},
39173921
{
39183922
"type": "Camera",
39193923
"name": "camera"
39203924
}
39213925
]
39223926
},
39233927
{
3924-
"name": "GetCameraMatrix2D",
3925-
"description": "Get camera 2d transform matrix",
3926-
"returnType": "Matrix",
3928+
"name": "GetWorldToScreenEx",
3929+
"description": "Get size position for a 3d world space position",
3930+
"returnType": "Vector2",
39273931
"params": [
39283932
{
3929-
"type": "Camera2D",
3933+
"type": "Vector3",
3934+
"name": "position"
3935+
},
3936+
{
3937+
"type": "Camera",
39303938
"name": "camera"
3939+
},
3940+
{
3941+
"type": "int",
3942+
"name": "width"
3943+
},
3944+
{
3945+
"type": "int",
3946+
"name": "height"
39313947
}
39323948
]
39333949
},
39343950
{
3935-
"name": "GetWorldToScreen",
3936-
"description": "Get the screen space position for a 3d world space position",
3951+
"name": "GetWorldToScreen2D",
3952+
"description": "Get the screen space position for a 2d camera world space position",
39373953
"returnType": "Vector2",
39383954
"params": [
39393955
{
3940-
"type": "Vector3",
3956+
"type": "Vector2",
39413957
"name": "position"
39423958
},
39433959
{
3944-
"type": "Camera",
3960+
"type": "Camera2D",
39453961
"name": "camera"
39463962
}
39473963
]
@@ -3962,37 +3978,21 @@
39623978
]
39633979
},
39643980
{
3965-
"name": "GetWorldToScreenEx",
3966-
"description": "Get size position for a 3d world space position",
3967-
"returnType": "Vector2",
3981+
"name": "GetCameraMatrix",
3982+
"description": "Get camera transform matrix (view matrix)",
3983+
"returnType": "Matrix",
39683984
"params": [
3969-
{
3970-
"type": "Vector3",
3971-
"name": "position"
3972-
},
39733985
{
39743986
"type": "Camera",
39753987
"name": "camera"
3976-
},
3977-
{
3978-
"type": "int",
3979-
"name": "width"
3980-
},
3981-
{
3982-
"type": "int",
3983-
"name": "height"
39843988
}
39853989
]
39863990
},
39873991
{
3988-
"name": "GetWorldToScreen2D",
3989-
"description": "Get the screen space position for a 2d camera world space position",
3990-
"returnType": "Vector2",
3992+
"name": "GetCameraMatrix2D",
3993+
"description": "Get camera 2d transform matrix",
3994+
"returnType": "Matrix",
39913995
"params": [
3992-
{
3993-
"type": "Vector2",
3994-
"name": "position"
3995-
},
39963996
{
39973997
"type": "Camera2D",
39983998
"name": "camera"

parser/output/raylib_api.lua

+22-22
Original file line numberDiff line numberDiff line change
@@ -3655,28 +3655,32 @@ return {
36553655
}
36563656
},
36573657
{
3658-
name = "GetCameraMatrix",
3659-
description = "Get camera transform matrix (view matrix)",
3660-
returnType = "Matrix",
3658+
name = "GetWorldToScreen",
3659+
description = "Get the screen space position for a 3d world space position",
3660+
returnType = "Vector2",
36613661
params = {
3662+
{type = "Vector3", name = "position"},
36623663
{type = "Camera", name = "camera"}
36633664
}
36643665
},
36653666
{
3666-
name = "GetCameraMatrix2D",
3667-
description = "Get camera 2d transform matrix",
3668-
returnType = "Matrix",
3667+
name = "GetWorldToScreenEx",
3668+
description = "Get size position for a 3d world space position",
3669+
returnType = "Vector2",
36693670
params = {
3670-
{type = "Camera2D", name = "camera"}
3671+
{type = "Vector3", name = "position"},
3672+
{type = "Camera", name = "camera"},
3673+
{type = "int", name = "width"},
3674+
{type = "int", name = "height"}
36713675
}
36723676
},
36733677
{
3674-
name = "GetWorldToScreen",
3675-
description = "Get the screen space position for a 3d world space position",
3678+
name = "GetWorldToScreen2D",
3679+
description = "Get the screen space position for a 2d camera world space position",
36763680
returnType = "Vector2",
36773681
params = {
3678-
{type = "Vector3", name = "position"},
3679-
{type = "Camera", name = "camera"}
3682+
{type = "Vector2", name = "position"},
3683+
{type = "Camera2D", name = "camera"}
36803684
}
36813685
},
36823686
{
@@ -3689,22 +3693,18 @@ return {
36893693
}
36903694
},
36913695
{
3692-
name = "GetWorldToScreenEx",
3693-
description = "Get size position for a 3d world space position",
3694-
returnType = "Vector2",
3696+
name = "GetCameraMatrix",
3697+
description = "Get camera transform matrix (view matrix)",
3698+
returnType = "Matrix",
36953699
params = {
3696-
{type = "Vector3", name = "position"},
3697-
{type = "Camera", name = "camera"},
3698-
{type = "int", name = "width"},
3699-
{type = "int", name = "height"}
3700+
{type = "Camera", name = "camera"}
37003701
}
37013702
},
37023703
{
3703-
name = "GetWorldToScreen2D",
3704-
description = "Get the screen space position for a 2d camera world space position",
3705-
returnType = "Vector2",
3704+
name = "GetCameraMatrix2D",
3705+
description = "Get camera 2d transform matrix",
3706+
returnType = "Matrix",
37063707
params = {
3707-
{type = "Vector2", name = "position"},
37083708
{type = "Camera2D", name = "camera"}
37093709
}
37103710
},

parser/output/raylib_api.txt

+19-19
Original file line numberDiff line numberDiff line change
@@ -1435,42 +1435,42 @@ Function 085: GetViewRay() (4 input parameters)
14351435
Param[2]: camera (type: Camera)
14361436
Param[3]: width (type: float)
14371437
Param[4]: height (type: float)
1438-
Function 086: GetCameraMatrix() (1 input parameters)
1439-
Name: GetCameraMatrix
1440-
Return type: Matrix
1441-
Description: Get camera transform matrix (view matrix)
1442-
Param[1]: camera (type: Camera)
1443-
Function 087: GetCameraMatrix2D() (1 input parameters)
1444-
Name: GetCameraMatrix2D
1445-
Return type: Matrix
1446-
Description: Get camera 2d transform matrix
1447-
Param[1]: camera (type: Camera2D)
1448-
Function 088: GetWorldToScreen() (2 input parameters)
1438+
Function 086: GetWorldToScreen() (2 input parameters)
14491439
Name: GetWorldToScreen
14501440
Return type: Vector2
14511441
Description: Get the screen space position for a 3d world space position
14521442
Param[1]: position (type: Vector3)
14531443
Param[2]: camera (type: Camera)
1454-
Function 089: GetScreenToWorld2D() (2 input parameters)
1455-
Name: GetScreenToWorld2D
1456-
Return type: Vector2
1457-
Description: Get the world space position for a 2d camera screen space position
1458-
Param[1]: position (type: Vector2)
1459-
Param[2]: camera (type: Camera2D)
1460-
Function 090: GetWorldToScreenEx() (4 input parameters)
1444+
Function 087: GetWorldToScreenEx() (4 input parameters)
14611445
Name: GetWorldToScreenEx
14621446
Return type: Vector2
14631447
Description: Get size position for a 3d world space position
14641448
Param[1]: position (type: Vector3)
14651449
Param[2]: camera (type: Camera)
14661450
Param[3]: width (type: int)
14671451
Param[4]: height (type: int)
1468-
Function 091: GetWorldToScreen2D() (2 input parameters)
1452+
Function 088: GetWorldToScreen2D() (2 input parameters)
14691453
Name: GetWorldToScreen2D
14701454
Return type: Vector2
14711455
Description: Get the screen space position for a 2d camera world space position
14721456
Param[1]: position (type: Vector2)
14731457
Param[2]: camera (type: Camera2D)
1458+
Function 089: GetScreenToWorld2D() (2 input parameters)
1459+
Name: GetScreenToWorld2D
1460+
Return type: Vector2
1461+
Description: Get the world space position for a 2d camera screen space position
1462+
Param[1]: position (type: Vector2)
1463+
Param[2]: camera (type: Camera2D)
1464+
Function 090: GetCameraMatrix() (1 input parameters)
1465+
Name: GetCameraMatrix
1466+
Return type: Matrix
1467+
Description: Get camera transform matrix (view matrix)
1468+
Param[1]: camera (type: Camera)
1469+
Function 091: GetCameraMatrix2D() (1 input parameters)
1470+
Name: GetCameraMatrix2D
1471+
Return type: Matrix
1472+
Description: Get camera 2d transform matrix
1473+
Param[1]: camera (type: Camera2D)
14741474
Function 092: SetTargetFPS() (1 input parameters)
14751475
Name: SetTargetFPS
14761476
Return type: void

parser/output/raylib_api.xml

+10-10
Original file line numberDiff line numberDiff line change
@@ -912,20 +912,10 @@
912912
<Param type="float" name="width" desc="" />
913913
<Param type="float" name="height" desc="" />
914914
</Function>
915-
<Function name="GetCameraMatrix" retType="Matrix" paramCount="1" desc="Get camera transform matrix (view matrix)">
916-
<Param type="Camera" name="camera" desc="" />
917-
</Function>
918-
<Function name="GetCameraMatrix2D" retType="Matrix" paramCount="1" desc="Get camera 2d transform matrix">
919-
<Param type="Camera2D" name="camera" desc="" />
920-
</Function>
921915
<Function name="GetWorldToScreen" retType="Vector2" paramCount="2" desc="Get the screen space position for a 3d world space position">
922916
<Param type="Vector3" name="position" desc="" />
923917
<Param type="Camera" name="camera" desc="" />
924918
</Function>
925-
<Function name="GetScreenToWorld2D" retType="Vector2" paramCount="2" desc="Get the world space position for a 2d camera screen space position">
926-
<Param type="Vector2" name="position" desc="" />
927-
<Param type="Camera2D" name="camera" desc="" />
928-
</Function>
929919
<Function name="GetWorldToScreenEx" retType="Vector2" paramCount="4" desc="Get size position for a 3d world space position">
930920
<Param type="Vector3" name="position" desc="" />
931921
<Param type="Camera" name="camera" desc="" />
@@ -936,6 +926,16 @@
936926
<Param type="Vector2" name="position" desc="" />
937927
<Param type="Camera2D" name="camera" desc="" />
938928
</Function>
929+
<Function name="GetScreenToWorld2D" retType="Vector2" paramCount="2" desc="Get the world space position for a 2d camera screen space position">
930+
<Param type="Vector2" name="position" desc="" />
931+
<Param type="Camera2D" name="camera" desc="" />
932+
</Function>
933+
<Function name="GetCameraMatrix" retType="Matrix" paramCount="1" desc="Get camera transform matrix (view matrix)">
934+
<Param type="Camera" name="camera" desc="" />
935+
</Function>
936+
<Function name="GetCameraMatrix2D" retType="Matrix" paramCount="1" desc="Get camera 2d transform matrix">
937+
<Param type="Camera2D" name="camera" desc="" />
938+
</Function>
939939
<Function name="SetTargetFPS" retType="void" paramCount="1" desc="Set target FPS (maximum)">
940940
<Param type="int" name="fps" desc="" />
941941
</Function>

0 commit comments

Comments
 (0)