From 384453b404e85dabbf49414fe35ea7ff9f60368f Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sun, 9 Jun 2024 09:15:16 -0500 Subject: [PATCH] Fixes from self-review --- .config/dotnet-tools.json | 4 +-- Directory.Build.targets | 2 +- Silk.NET.sln | 9 ++++- generator.json | 1 + sources/Core/Silk.NET.Core.csproj | 2 +- sources/SDL/SDL3/AssertionHandler.gen.cs | 2 ++ .../SDL/SDL3/AssertionHandlerDelegate.gen.cs | 2 ++ sources/SDL/SDL3/AudioPostmixCallback.gen.cs | 2 ++ .../SDL3/AudioPostmixCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/AudioStreamCallback.gen.cs | 2 ++ .../SDL3/AudioStreamCallbackDelegate.gen.cs | 2 ++ .../SDL/SDL3/ClipboardCleanupCallback.gen.cs | 2 ++ .../ClipboardCleanupCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/ClipboardDataCallback.gen.cs | 2 ++ .../SDL3/ClipboardDataCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/DialogFileCallback.gen.cs | 2 ++ .../SDL3/DialogFileCallbackDelegate.gen.cs | 2 ++ .../SDL/SDL3/EGLAttribArrayCallback.gen.cs | 2 ++ .../EGLAttribArrayCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/EGLIntArrayCallback.gen.cs | 2 ++ .../SDL3/EGLIntArrayCallbackDelegate.gen.cs | 2 ++ .../SDL3/EnumerateDirectoryCallback.gen.cs | 2 ++ .../EnumerateDirectoryCallbackDelegate.gen.cs | 2 ++ .../SDL3/EnumeratePropertiesCallback.gen.cs | 2 ++ ...EnumeratePropertiesCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/EventFilter.gen.cs | 2 ++ sources/SDL/SDL3/EventFilterDelegate.gen.cs | 2 ++ sources/SDL/SDL3/FunctionPointer.gen.cs | 2 ++ .../SDL/SDL3/FunctionPointerDelegate.gen.cs | 2 ++ sources/SDL/SDL3/HintCallback.gen.cs | 2 ++ sources/SDL/SDL3/HintCallbackDelegate.gen.cs | 2 ++ sources/SDL/SDL3/HitTest.gen.cs | 2 ++ sources/SDL/SDL3/HitTestDelegate.gen.cs | 2 ++ .../SDL3/IOStreamInterfaceFunction1.gen.cs | 2 ++ .../IOStreamInterfaceFunction1Delegate.gen.cs | 2 ++ sources/SDL/SDL3/IOStreamInterfaceSeek.gen.cs | 2 ++ .../SDL3/IOStreamInterfaceSeekDelegate.gen.cs | 2 ++ sources/SDL/SDL3/IOStreamInterfaceSize.gen.cs | 2 ++ .../SDL3/IOStreamInterfaceSizeDelegate.gen.cs | 2 ++ sources/SDL/SDL3/LogOutputFunction.gen.cs | 2 ++ .../SDL/SDL3/LogOutputFunctionDelegate.gen.cs | 2 ++ .../SDL3/SetPropertyWithCleanupCleanup.gen.cs | 2 ++ ...tPropertyWithCleanupCleanupDelegate.gen.cs | 2 ++ .../SDL/SDL3/StorageInterfaceEnumerate.gen.cs | 2 ++ .../StorageInterfaceEnumerateDelegate.gen.cs | 2 ++ .../SDL/SDL3/StorageInterfaceFunction1.gen.cs | 2 ++ .../StorageInterfaceFunction1Delegate.gen.cs | 2 ++ .../SDL/SDL3/StorageInterfaceFunction2.gen.cs | 2 ++ .../StorageInterfaceFunction2Delegate.gen.cs | 2 ++ sources/SDL/SDL3/StorageInterfaceInfo.gen.cs | 2 ++ .../SDL3/StorageInterfaceInfoDelegate.gen.cs | 2 ++ .../StorageInterfaceSpaceRemaining.gen.cs | 2 ++ ...rageInterfaceSpaceRemainingDelegate.gen.cs | 2 ++ sources/SDL/SDL3/ThreadFunction.gen.cs | 2 ++ .../SDL/SDL3/ThreadFunctionDelegate.gen.cs | 2 ++ sources/SDL/SDL3/TimerCallback.gen.cs | 2 ++ sources/SDL/SDL3/TimerCallbackDelegate.gen.cs | 2 ++ .../SDL3/VirtualJoystickDescFunction1.gen.cs | 2 ++ ...irtualJoystickDescFunction1Delegate.gen.cs | 2 ++ .../SDL3/VirtualJoystickDescSendEffect.gen.cs | 2 ++ ...rtualJoystickDescSendEffectDelegate.gen.cs | 2 ++ .../SDL/SDL3/VirtualJoystickDescSetLED.gen.cs | 2 ++ .../VirtualJoystickDescSetLEDDelegate.gen.cs | 2 ++ .../VirtualJoystickDescSetPlayerIndex.gen.cs | 2 ++ ...lJoystickDescSetPlayerIndexDelegate.gen.cs | 2 ++ sources/SilkTouch/Mods/TransformHandles.cs | 5 --- sources/SilkTouch/Silk.NET.SilkTouch.csproj | 4 +-- .../Globals.cs | 0 .../Ptr2DTests.cs | 0 .../PtrTests.cs | 0 .../Ref2DTests.cs | 0 .../RefTests.cs | 0 .../Silk.NET.Core.UnitTests.csproj | 4 +-- .../SilkMarshalTests.cs | 0 tests/Directory.Build.props | 2 +- tests/Maths/Silk.NET.Maths.Tests.csproj | 4 +-- tests/SDL/Silk.NET.SDL.UnitTests.csproj | 33 +++++++++++++++++++ .../Silk.NET.SilkTouch.UnitTests.csproj | 4 +-- 78 files changed, 175 insertions(+), 19 deletions(-) rename tests/{Silk.NET.Core.UnitTests => Core}/Globals.cs (100%) rename tests/{Silk.NET.Core.UnitTests => Core}/Ptr2DTests.cs (100%) rename tests/{Silk.NET.Core.UnitTests => Core}/PtrTests.cs (100%) rename tests/{Silk.NET.Core.UnitTests => Core}/Ref2DTests.cs (100%) rename tests/{Silk.NET.Core.UnitTests => Core}/RefTests.cs (100%) rename tests/{Silk.NET.Core.UnitTests => Core}/Silk.NET.Core.UnitTests.csproj (92%) rename tests/{Silk.NET.Core.UnitTests => Core}/SilkMarshalTests.cs (100%) create mode 100644 tests/SDL/Silk.NET.SDL.UnitTests.csproj diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 00b1a0648f..8743ce6d59 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,10 +3,10 @@ "isRoot": true, "tools": { "csharpier": { - "version": "0.28.1", + "version": "0.28.2", "commands": [ "dotnet-csharpier" ] } } -} \ No newline at end of file +} diff --git a/Directory.Build.targets b/Directory.Build.targets index cfd0d114af..da04e41eaf 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -17,7 +17,7 @@ - + diff --git a/Silk.NET.sln b/Silk.NET.sln index a168313859..d665f76e41 100644 --- a/Silk.NET.sln +++ b/Silk.NET.sln @@ -54,7 +54,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Core", "sources\Co EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playground", "sources\Playground\Playground.csproj", "{48F43535-3AFC-45E7-A98D-C2609B3B9757}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Core.UnitTests", "tests\Silk.NET.Core.UnitTests\Silk.NET.Core.UnitTests.csproj", "{A87E1861-07E4-4B7A-9173-0853370A7D4E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Core.UnitTests", "tests\Core\Silk.NET.Core.UnitTests.csproj", "{A87E1861-07E4-4B7A-9173-0853370A7D4E}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.Maths", "sources\Maths\Silk.NET.Maths.csproj", "{1B21D783-71C3-48D3-91F5-0EEA90FB0DB2}" EndProject @@ -68,6 +68,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.OpenGL", "sources\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.SDL", "sources\SDL\Silk.NET.SDL.csproj", "{19B05730-F97E-43D4-B922-DF4697E5CE5F}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.SDL.UnitTests", "tests\SDL\Silk.NET.SDL.UnitTests.csproj", "{D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -114,6 +116,10 @@ Global {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU {19B05730-F97E-43D4-B922-DF4697E5CE5F}.Release|Any CPU.Build.0 = Release|Any CPU + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -130,6 +136,7 @@ Global {AF6C70ED-D6A8-4C57-8DB3-EAFF94396049} = {B681E21A-47A2-4635-96EE-60D8D63FBEA9} {9625C977-25BE-48F3-9B6F-BC94B8B799A6} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {19B05730-F97E-43D4-B922-DF4697E5CE5F} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} + {D2B9C43F-A80D-4C9A-9643-BC1AC1B4E807} = {A5578D12-9E77-4647-8C22-0DBD17760BFF} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {78D2CF6A-60A1-43E3-837B-00B73C9DA384} diff --git a/generator.json b/generator.json index 570052403b..2f26174825 100644 --- a/generator.json +++ b/generator.json @@ -38,6 +38,7 @@ "OutputSourceRoot": "sources/SDL", "OutputTestRoot": "tests/SDL", "Solution": "Silk.NET.sln", + "DefaultLicenseHeader": "eng/silktouch/header.txt", "Mods": [ "AddIncludes", "ExtractNestedTyping", diff --git a/sources/Core/Silk.NET.Core.csproj b/sources/Core/Silk.NET.Core.csproj index c40f70b1b9..b04db0ed69 100644 --- a/sources/Core/Silk.NET.Core.csproj +++ b/sources/Core/Silk.NET.Core.csproj @@ -14,7 +14,7 @@ - + diff --git a/sources/SDL/SDL3/AssertionHandler.gen.cs b/sources/SDL/SDL3/AssertionHandler.gen.cs index d2d89242b9..9ae7b6b2a0 100644 --- a/sources/SDL/SDL3/AssertionHandler.gen.cs +++ b/sources/SDL/SDL3/AssertionHandler.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct AssertionHandler : IDisposable diff --git a/sources/SDL/SDL3/AssertionHandlerDelegate.gen.cs b/sources/SDL/SDL3/AssertionHandlerDelegate.gen.cs index a310b33996..7fae46ead1 100644 --- a/sources/SDL/SDL3/AssertionHandlerDelegate.gen.cs +++ b/sources/SDL/SDL3/AssertionHandlerDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate AssertState AssertionHandlerDelegate(AssertData* arg0, void* arg1); diff --git a/sources/SDL/SDL3/AudioPostmixCallback.gen.cs b/sources/SDL/SDL3/AudioPostmixCallback.gen.cs index ce5e259c14..612b27e0e2 100644 --- a/sources/SDL/SDL3/AudioPostmixCallback.gen.cs +++ b/sources/SDL/SDL3/AudioPostmixCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct AudioPostmixCallback : IDisposable diff --git a/sources/SDL/SDL3/AudioPostmixCallbackDelegate.gen.cs b/sources/SDL/SDL3/AudioPostmixCallbackDelegate.gen.cs index 839daae577..7f007b8bf8 100644 --- a/sources/SDL/SDL3/AudioPostmixCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/AudioPostmixCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void AudioPostmixCallbackDelegate( diff --git a/sources/SDL/SDL3/AudioStreamCallback.gen.cs b/sources/SDL/SDL3/AudioStreamCallback.gen.cs index 3a2d5ff51d..4346cb7b0d 100644 --- a/sources/SDL/SDL3/AudioStreamCallback.gen.cs +++ b/sources/SDL/SDL3/AudioStreamCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct AudioStreamCallback : IDisposable diff --git a/sources/SDL/SDL3/AudioStreamCallbackDelegate.gen.cs b/sources/SDL/SDL3/AudioStreamCallbackDelegate.gen.cs index 4a61553ab9..ff4d11d958 100644 --- a/sources/SDL/SDL3/AudioStreamCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/AudioStreamCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void AudioStreamCallbackDelegate( diff --git a/sources/SDL/SDL3/ClipboardCleanupCallback.gen.cs b/sources/SDL/SDL3/ClipboardCleanupCallback.gen.cs index 5ef3a87289..33c8213f85 100644 --- a/sources/SDL/SDL3/ClipboardCleanupCallback.gen.cs +++ b/sources/SDL/SDL3/ClipboardCleanupCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct ClipboardCleanupCallback : IDisposable diff --git a/sources/SDL/SDL3/ClipboardCleanupCallbackDelegate.gen.cs b/sources/SDL/SDL3/ClipboardCleanupCallbackDelegate.gen.cs index 0661b4f3c6..88502fd38b 100644 --- a/sources/SDL/SDL3/ClipboardCleanupCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/ClipboardCleanupCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void ClipboardCleanupCallbackDelegate(void* arg0); diff --git a/sources/SDL/SDL3/ClipboardDataCallback.gen.cs b/sources/SDL/SDL3/ClipboardDataCallback.gen.cs index 500a4fedcd..c6cb0eb0c0 100644 --- a/sources/SDL/SDL3/ClipboardDataCallback.gen.cs +++ b/sources/SDL/SDL3/ClipboardDataCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct ClipboardDataCallback : IDisposable diff --git a/sources/SDL/SDL3/ClipboardDataCallbackDelegate.gen.cs b/sources/SDL/SDL3/ClipboardDataCallbackDelegate.gen.cs index 8228fe357b..2eb8176411 100644 --- a/sources/SDL/SDL3/ClipboardDataCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/ClipboardDataCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void* ClipboardDataCallbackDelegate(void* arg0, sbyte* arg1, nuint* arg2); diff --git a/sources/SDL/SDL3/DialogFileCallback.gen.cs b/sources/SDL/SDL3/DialogFileCallback.gen.cs index 153c757f91..933044b796 100644 --- a/sources/SDL/SDL3/DialogFileCallback.gen.cs +++ b/sources/SDL/SDL3/DialogFileCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct DialogFileCallback : IDisposable diff --git a/sources/SDL/SDL3/DialogFileCallbackDelegate.gen.cs b/sources/SDL/SDL3/DialogFileCallbackDelegate.gen.cs index c653838365..bd25fe9cd0 100644 --- a/sources/SDL/SDL3/DialogFileCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/DialogFileCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void DialogFileCallbackDelegate(void* arg0, sbyte** arg1, int arg2); diff --git a/sources/SDL/SDL3/EGLAttribArrayCallback.gen.cs b/sources/SDL/SDL3/EGLAttribArrayCallback.gen.cs index b46641ec55..2f70ad8e89 100644 --- a/sources/SDL/SDL3/EGLAttribArrayCallback.gen.cs +++ b/sources/SDL/SDL3/EGLAttribArrayCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct EGLAttribArrayCallback : IDisposable diff --git a/sources/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs b/sources/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs index 086a05e09a..7a13b6c2b5 100644 --- a/sources/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/EGLAttribArrayCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate nint* EGLAttribArrayCallbackDelegate(); diff --git a/sources/SDL/SDL3/EGLIntArrayCallback.gen.cs b/sources/SDL/SDL3/EGLIntArrayCallback.gen.cs index d1ceae653e..a6d4f945ad 100644 --- a/sources/SDL/SDL3/EGLIntArrayCallback.gen.cs +++ b/sources/SDL/SDL3/EGLIntArrayCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct EGLIntArrayCallback : IDisposable diff --git a/sources/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs b/sources/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs index 23bc6f5f2e..f2747afbb3 100644 --- a/sources/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/EGLIntArrayCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int* EGLIntArrayCallbackDelegate(); diff --git a/sources/SDL/SDL3/EnumerateDirectoryCallback.gen.cs b/sources/SDL/SDL3/EnumerateDirectoryCallback.gen.cs index 5e3267328a..21591bd83a 100644 --- a/sources/SDL/SDL3/EnumerateDirectoryCallback.gen.cs +++ b/sources/SDL/SDL3/EnumerateDirectoryCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct EnumerateDirectoryCallback : IDisposable diff --git a/sources/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs b/sources/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs index e9bde5da91..9f48a19143 100644 --- a/sources/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/EnumerateDirectoryCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int EnumerateDirectoryCallbackDelegate(void* arg0, sbyte* arg1, sbyte* arg2); diff --git a/sources/SDL/SDL3/EnumeratePropertiesCallback.gen.cs b/sources/SDL/SDL3/EnumeratePropertiesCallback.gen.cs index 7214873618..6fd501b459 100644 --- a/sources/SDL/SDL3/EnumeratePropertiesCallback.gen.cs +++ b/sources/SDL/SDL3/EnumeratePropertiesCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct EnumeratePropertiesCallback : IDisposable diff --git a/sources/SDL/SDL3/EnumeratePropertiesCallbackDelegate.gen.cs b/sources/SDL/SDL3/EnumeratePropertiesCallbackDelegate.gen.cs index 4203dd63fc..253391c6bc 100644 --- a/sources/SDL/SDL3/EnumeratePropertiesCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/EnumeratePropertiesCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void EnumeratePropertiesCallbackDelegate(void* arg0, uint arg1, sbyte* arg2); diff --git a/sources/SDL/SDL3/EventFilter.gen.cs b/sources/SDL/SDL3/EventFilter.gen.cs index 089d90a0f9..b579235c0c 100644 --- a/sources/SDL/SDL3/EventFilter.gen.cs +++ b/sources/SDL/SDL3/EventFilter.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct EventFilter : IDisposable diff --git a/sources/SDL/SDL3/EventFilterDelegate.gen.cs b/sources/SDL/SDL3/EventFilterDelegate.gen.cs index 9a4adbcf27..ffd63089a5 100644 --- a/sources/SDL/SDL3/EventFilterDelegate.gen.cs +++ b/sources/SDL/SDL3/EventFilterDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int EventFilterDelegate(void* arg0, Event* arg1); diff --git a/sources/SDL/SDL3/FunctionPointer.gen.cs b/sources/SDL/SDL3/FunctionPointer.gen.cs index 51061dbe2c..a069982b71 100644 --- a/sources/SDL/SDL3/FunctionPointer.gen.cs +++ b/sources/SDL/SDL3/FunctionPointer.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct FunctionPointer : IDisposable diff --git a/sources/SDL/SDL3/FunctionPointerDelegate.gen.cs b/sources/SDL/SDL3/FunctionPointerDelegate.gen.cs index 03dbf0c600..e52822e809 100644 --- a/sources/SDL/SDL3/FunctionPointerDelegate.gen.cs +++ b/sources/SDL/SDL3/FunctionPointerDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void FunctionPointerDelegate(); diff --git a/sources/SDL/SDL3/HintCallback.gen.cs b/sources/SDL/SDL3/HintCallback.gen.cs index 65d1ba988e..56004314dd 100644 --- a/sources/SDL/SDL3/HintCallback.gen.cs +++ b/sources/SDL/SDL3/HintCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct HintCallback : IDisposable diff --git a/sources/SDL/SDL3/HintCallbackDelegate.gen.cs b/sources/SDL/SDL3/HintCallbackDelegate.gen.cs index 5cf44b656b..8064cec729 100644 --- a/sources/SDL/SDL3/HintCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/HintCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void HintCallbackDelegate(void* arg0, sbyte* arg1, sbyte* arg2, sbyte* arg3); diff --git a/sources/SDL/SDL3/HitTest.gen.cs b/sources/SDL/SDL3/HitTest.gen.cs index ed94aaa51f..30f5bd8fdf 100644 --- a/sources/SDL/SDL3/HitTest.gen.cs +++ b/sources/SDL/SDL3/HitTest.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct HitTest : IDisposable diff --git a/sources/SDL/SDL3/HitTestDelegate.gen.cs b/sources/SDL/SDL3/HitTestDelegate.gen.cs index e8771643d7..a3881e45f7 100644 --- a/sources/SDL/SDL3/HitTestDelegate.gen.cs +++ b/sources/SDL/SDL3/HitTestDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate HitTestResult HitTestDelegate(WindowHandle arg0, Point* arg1, void* arg2); diff --git a/sources/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs index fe21ba380f..fc8e4cb7af 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceFunction1.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs index 08aab2c4b8..70fab4c2b2 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceFunction1Delegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/IOStreamInterfaceSeek.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceSeek.gen.cs index a6fa881cec..3f41f22332 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceSeek.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceSeek.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct IOStreamInterfaceSeek : IDisposable diff --git a/sources/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs index f5580b9f22..b570569828 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceSeekDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate long IOStreamInterfaceSeekDelegate(void* arg0, long arg1, int arg2); diff --git a/sources/SDL/SDL3/IOStreamInterfaceSize.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceSize.gen.cs index f1ea96873a..b852e86d9b 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceSize.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceSize.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct IOStreamInterfaceSize : IDisposable diff --git a/sources/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs b/sources/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs index a91aa6b03c..a7905b387c 100644 --- a/sources/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs +++ b/sources/SDL/SDL3/IOStreamInterfaceSizeDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate long IOStreamInterfaceSizeDelegate(void* arg0); diff --git a/sources/SDL/SDL3/LogOutputFunction.gen.cs b/sources/SDL/SDL3/LogOutputFunction.gen.cs index d795f8889f..b98451c610 100644 --- a/sources/SDL/SDL3/LogOutputFunction.gen.cs +++ b/sources/SDL/SDL3/LogOutputFunction.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct LogOutputFunction : IDisposable diff --git a/sources/SDL/SDL3/LogOutputFunctionDelegate.gen.cs b/sources/SDL/SDL3/LogOutputFunctionDelegate.gen.cs index 156ea23ba4..52158f4b7d 100644 --- a/sources/SDL/SDL3/LogOutputFunctionDelegate.gen.cs +++ b/sources/SDL/SDL3/LogOutputFunctionDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void LogOutputFunctionDelegate( diff --git a/sources/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs b/sources/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs index 04e30d8c29..b7d675beee 100644 --- a/sources/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs +++ b/sources/SDL/SDL3/SetPropertyWithCleanupCleanup.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct SetPropertyWithCleanupCleanup : IDisposable diff --git a/sources/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs b/sources/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs index 7352b88d2e..9e26110343 100644 --- a/sources/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs +++ b/sources/SDL/SDL3/SetPropertyWithCleanupCleanupDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void SetPropertyWithCleanupCleanupDelegate(void* arg0, void* arg1); diff --git a/sources/SDL/SDL3/StorageInterfaceEnumerate.gen.cs b/sources/SDL/SDL3/StorageInterfaceEnumerate.gen.cs index 653bc15c28..0c146f63b1 100644 --- a/sources/SDL/SDL3/StorageInterfaceEnumerate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceEnumerate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct StorageInterfaceEnumerate : IDisposable diff --git a/sources/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs b/sources/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs index f4616ca0a6..8b35788950 100644 --- a/sources/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceEnumerateDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int StorageInterfaceEnumerateDelegate( diff --git a/sources/SDL/SDL3/StorageInterfaceFunction1.gen.cs b/sources/SDL/SDL3/StorageInterfaceFunction1.gen.cs index a13489b97a..faf7f094e7 100644 --- a/sources/SDL/SDL3/StorageInterfaceFunction1.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceFunction1.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs b/sources/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs index a281c4ed4c..78cef33e7c 100644 --- a/sources/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceFunction1Delegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/StorageInterfaceFunction2.gen.cs b/sources/SDL/SDL3/StorageInterfaceFunction2.gen.cs index 96eb6f7d1f..c7b07de817 100644 --- a/sources/SDL/SDL3/StorageInterfaceFunction2.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceFunction2.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs b/sources/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs index bb851d3ba9..1728b9c630 100644 --- a/sources/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceFunction2Delegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/StorageInterfaceInfo.gen.cs b/sources/SDL/SDL3/StorageInterfaceInfo.gen.cs index 57a39fc405..f4eb642df8 100644 --- a/sources/SDL/SDL3/StorageInterfaceInfo.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceInfo.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct StorageInterfaceInfo : IDisposable diff --git a/sources/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs b/sources/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs index 5d89bf7ddb..bed803e145 100644 --- a/sources/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceInfoDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int StorageInterfaceInfoDelegate(void* arg0, sbyte* arg1, PathInfo* arg2); diff --git a/sources/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs b/sources/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs index 7d97fcec45..4b024b806a 100644 --- a/sources/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceSpaceRemaining.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct StorageInterfaceSpaceRemaining : IDisposable diff --git a/sources/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs b/sources/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs index b6289953c7..66cbf59e09 100644 --- a/sources/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs +++ b/sources/SDL/SDL3/StorageInterfaceSpaceRemainingDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate ulong StorageInterfaceSpaceRemainingDelegate(void* arg0); diff --git a/sources/SDL/SDL3/ThreadFunction.gen.cs b/sources/SDL/SDL3/ThreadFunction.gen.cs index 36227691bb..2d6ba9daec 100644 --- a/sources/SDL/SDL3/ThreadFunction.gen.cs +++ b/sources/SDL/SDL3/ThreadFunction.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct ThreadFunction : IDisposable diff --git a/sources/SDL/SDL3/ThreadFunctionDelegate.gen.cs b/sources/SDL/SDL3/ThreadFunctionDelegate.gen.cs index fed6a5cb1c..76e7579a36 100644 --- a/sources/SDL/SDL3/ThreadFunctionDelegate.gen.cs +++ b/sources/SDL/SDL3/ThreadFunctionDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int ThreadFunctionDelegate(void* arg0); diff --git a/sources/SDL/SDL3/TimerCallback.gen.cs b/sources/SDL/SDL3/TimerCallback.gen.cs index ad80d1389d..9b32872a16 100644 --- a/sources/SDL/SDL3/TimerCallback.gen.cs +++ b/sources/SDL/SDL3/TimerCallback.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct TimerCallback : IDisposable diff --git a/sources/SDL/SDL3/TimerCallbackDelegate.gen.cs b/sources/SDL/SDL3/TimerCallbackDelegate.gen.cs index a63f7faa48..937af1068f 100644 --- a/sources/SDL/SDL3/TimerCallbackDelegate.gen.cs +++ b/sources/SDL/SDL3/TimerCallbackDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate uint TimerCallbackDelegate(uint arg0, void* arg1); diff --git a/sources/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs index c061e4d482..73a4643b71 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescFunction1.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs index 8c34ffa086..44f381b11f 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescFunction1Delegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; [Transformed] diff --git a/sources/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs index 5ac828d1fe..c3c4306799 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSendEffect.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct VirtualJoystickDescSendEffect : IDisposable diff --git a/sources/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs index 8281059fdc..fec98fddea 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSendEffectDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int VirtualJoystickDescSendEffectDelegate(void* arg0, void* arg1, int arg2); diff --git a/sources/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs index b300486c25..e503922e6e 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSetLED.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct VirtualJoystickDescSetLED : IDisposable diff --git a/sources/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs index f51897a4ba..518158c43a 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSetLEDDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate int VirtualJoystickDescSetLEDDelegate( diff --git a/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs index b9e5c835ba..bade57d3e5 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndex.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public readonly unsafe struct VirtualJoystickDescSetPlayerIndex : IDisposable diff --git a/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs b/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs index 0b55b9adc6..e7b48c132e 100644 --- a/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs +++ b/sources/SDL/SDL3/VirtualJoystickDescSetPlayerIndexDelegate.gen.cs @@ -1,3 +1,5 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. namespace Silk.NET.SDL; public unsafe delegate void VirtualJoystickDescSetPlayerIndexDelegate(void* arg0, int arg1); diff --git a/sources/SilkTouch/Mods/TransformHandles.cs b/sources/SilkTouch/Mods/TransformHandles.cs index 4c83fe9061..fc285f2d93 100644 --- a/sources/SilkTouch/Mods/TransformHandles.cs +++ b/sources/SilkTouch/Mods/TransformHandles.cs @@ -118,11 +118,6 @@ private void VisitType(T type, SyntaxToken identifier, Action @base) _declaredTypes[_currentScope] = v = []; } - if (identifier.ToString() == "SDL_MessageBoxColorScheme_colors") - { - Debugger.Break(); - } - v.Add( identifier.ToString(), type is StructDeclarationSyntax s diff --git a/sources/SilkTouch/Silk.NET.SilkTouch.csproj b/sources/SilkTouch/Silk.NET.SilkTouch.csproj index 27cf2b8f9d..0049f51e92 100644 --- a/sources/SilkTouch/Silk.NET.SilkTouch.csproj +++ b/sources/SilkTouch/Silk.NET.SilkTouch.csproj @@ -9,7 +9,7 @@ - + @@ -21,7 +21,7 @@ - + diff --git a/tests/Silk.NET.Core.UnitTests/Globals.cs b/tests/Core/Globals.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/Globals.cs rename to tests/Core/Globals.cs diff --git a/tests/Silk.NET.Core.UnitTests/Ptr2DTests.cs b/tests/Core/Ptr2DTests.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/Ptr2DTests.cs rename to tests/Core/Ptr2DTests.cs diff --git a/tests/Silk.NET.Core.UnitTests/PtrTests.cs b/tests/Core/PtrTests.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/PtrTests.cs rename to tests/Core/PtrTests.cs diff --git a/tests/Silk.NET.Core.UnitTests/Ref2DTests.cs b/tests/Core/Ref2DTests.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/Ref2DTests.cs rename to tests/Core/Ref2DTests.cs diff --git a/tests/Silk.NET.Core.UnitTests/RefTests.cs b/tests/Core/RefTests.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/RefTests.cs rename to tests/Core/RefTests.cs diff --git a/tests/Silk.NET.Core.UnitTests/Silk.NET.Core.UnitTests.csproj b/tests/Core/Silk.NET.Core.UnitTests.csproj similarity index 92% rename from tests/Silk.NET.Core.UnitTests/Silk.NET.Core.UnitTests.csproj rename to tests/Core/Silk.NET.Core.UnitTests.csproj index 1e3404a77b..5bc46dd32a 100644 --- a/tests/Silk.NET.Core.UnitTests/Silk.NET.Core.UnitTests.csproj +++ b/tests/Core/Silk.NET.Core.UnitTests.csproj @@ -10,9 +10,9 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/Silk.NET.Core.UnitTests/SilkMarshalTests.cs b/tests/Core/SilkMarshalTests.cs similarity index 100% rename from tests/Silk.NET.Core.UnitTests/SilkMarshalTests.cs rename to tests/Core/SilkMarshalTests.cs diff --git a/tests/Directory.Build.props b/tests/Directory.Build.props index ca58fcbd86..a40e038407 100644 --- a/tests/Directory.Build.props +++ b/tests/Directory.Build.props @@ -13,7 +13,7 @@ $(MSBuildAllProjects);$(MSBuildThisFileDirectory)..\Directory.Build.props tests - 1591 + 1591;1574;1584;1581;1580 diff --git a/tests/Maths/Silk.NET.Maths.Tests.csproj b/tests/Maths/Silk.NET.Maths.Tests.csproj index 1bb3dec8cc..e6b57503b1 100644 --- a/tests/Maths/Silk.NET.Maths.Tests.csproj +++ b/tests/Maths/Silk.NET.Maths.Tests.csproj @@ -12,8 +12,8 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/SDL/Silk.NET.SDL.UnitTests.csproj b/tests/SDL/Silk.NET.SDL.UnitTests.csproj new file mode 100644 index 0000000000..0a13b7ce40 --- /dev/null +++ b/tests/SDL/Silk.NET.SDL.UnitTests.csproj @@ -0,0 +1,33 @@ + + + + net8.0 + enable + enable + + false + true + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + Silk.NET.Core.cs + + + + diff --git a/tests/SilkTouch/Silk.NET.SilkTouch.UnitTests.csproj b/tests/SilkTouch/Silk.NET.SilkTouch.UnitTests.csproj index 5330bd39c2..b4672190e5 100644 --- a/tests/SilkTouch/Silk.NET.SilkTouch.UnitTests.csproj +++ b/tests/SilkTouch/Silk.NET.SilkTouch.UnitTests.csproj @@ -12,10 +12,10 @@ - + - +