mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-09-09 03:01:41 -04:00
Fix rlMultMatrixf
- Add missing ToFloatV functions to Raymath - Fix rlMultMatrixf overload to use MatrixToFloatV
This commit is contained in:
@@ -104,18 +104,11 @@ namespace Raylib_cs
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void rlMultMatrixf(float* matf);
|
||||
|
||||
public static void rlMultMatrixf(ref Matrix4x4 matf)
|
||||
/// <inheritdoc cref="rlMultMatrixf"/>
|
||||
public static void rlMultMatrixf(Matrix4x4 matf)
|
||||
{
|
||||
var pinned = new GCHandle();
|
||||
try
|
||||
{
|
||||
pinned = GCHandle.Alloc(matf, GCHandleType.Pinned);
|
||||
rlMultMatrixf((float*)pinned.AddrOfPinnedObject());
|
||||
}
|
||||
finally
|
||||
{
|
||||
pinned.Free();
|
||||
}
|
||||
float16 f = Raymath.MatrixToFloatV(matf);
|
||||
rlMultMatrixf(f.v);
|
||||
}
|
||||
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
|
Reference in New Issue
Block a user