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

Replace managed callbacks with unsafe delegates

This commit is contained in:
Rgebee 2021-12-29 16:57:21 +00:00
commit 9a0e50d70c
2 changed files with 4 additions and 56 deletions

View file

@ -89,16 +89,6 @@ namespace Raylib_cs
}
}
[DllImport(nativeLibName, EntryPoint = "SetTraceLogCallback", CallingConvention = CallingConvention.Cdecl)]
private static extern void SetTraceLogCallbackInternal(TraceLogCallback callback);
/// <summary>Set custom trace log</summary>
public static void SetTraceLogCallback(TraceLogCallback callback)
{
SetTraceLogCallbackInternal(callback);
traceLogCallback = callback;
}
/// <summary>Load file data as byte array (read)</summary>
public static byte* LoadFileData(string fileName, ref uint bytesRead)
{