Watch
2
0
Fork
You've already forked raylib-cs
0

GetScreenToWorldRayEx method added

This commit is contained in:
JupiterRider 2024-12-03 20:13:41 +01:00
commit 1ac2252202

View file

@ -412,6 +412,10 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Ray GetScreenToWorldRay(Vector2 position, Camera3D camera);
/// <summary>Get a ray trace from screen position (i.e mouse) in a viewport</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Ray GetScreenToWorldRayEx(Vector2 position, Camera3D camera, int width, int height);
/// <summary>Get camera transform matrix (view matrix)</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Matrix4x4 GetCameraMatrix(Camera3D camera);