GetScreenToWorldRayEx method added
This commit is contained in:
parent
315b0139e8
commit
1ac2252202
1 changed files with 4 additions and 0 deletions
|
|
@ -412,6 +412,10 @@ public static unsafe partial class Raylib
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern Ray GetScreenToWorldRay(Vector2 position, Camera3D camera);
|
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>
|
/// <summary>Get camera transform matrix (view matrix)</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern Matrix4x4 GetCameraMatrix(Camera3D camera);
|
public static extern Matrix4x4 GetCameraMatrix(Camera3D camera);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue