From 019b7f2ced871799b11baf8caad6885e94a21943 Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Thu, 29 Jun 2023 18:07:21 +0100 Subject: [PATCH 1/2] Document/credit logging approach --- Raylib-cs/types/Logging.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Raylib-cs/types/Logging.cs b/Raylib-cs/types/Logging.cs index e25f8f2..d1e9775 100644 --- a/Raylib-cs/types/Logging.cs +++ b/Raylib-cs/types/Logging.cs @@ -1,5 +1,7 @@ +// Adapted mfkl and jeremyVignelles work on libvlcsharp for marshalling va_list arguments +// For more information see the dotnet issue: https://github.com/dotnet/runtime/issues/9316 +// Example of va_list interop: https://github.com/jeremyVignelles/va-list-interop-demo using System; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Raylib_cs @@ -141,7 +143,7 @@ namespace Raylib_cs return -1; } - // https://github.com/dotnet/runtime/issues/51052 + // yhttps://github.com/dotnet/runtime/issues/51052 static int vsprintf(IntPtr buffer, IntPtr format, IntPtr args) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) From a545ce35067f362831f10c02b40799c400afca06 Mon Sep 17 00:00:00 2001 From: MrScautHD <65916181+MrScautHD@users.noreply.github.com> Date: Thu, 29 Jun 2023 19:17:02 +0200 Subject: [PATCH 2/2] Fix Transform.rotation use Vector4 instead of Quaternion (#158) --- Raylib-cs/types/Transform.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Raylib-cs/types/Transform.cs b/Raylib-cs/types/Transform.cs index 7d53b09..c38988c 100644 --- a/Raylib-cs/types/Transform.cs +++ b/Raylib-cs/types/Transform.cs @@ -17,7 +17,7 @@ namespace Raylib_cs /// /// Rotation /// - public Vector4 rotation; + public Quaternion rotation; /// /// Scale