diff --git a/.silktouch/sdl-clangsharp.stout b/.silktouch/sdl-clangsharp.stout index 693076b364..e005341523 100644 Binary files a/.silktouch/sdl-clangsharp.stout and b/.silktouch/sdl-clangsharp.stout differ diff --git a/Directory.Packages.props b/Directory.Packages.props index 0c0cf4d13b..385845b466 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -21,7 +21,7 @@ - + diff --git a/Silk.NET.sln b/Silk.NET.sln index 7c83ca6760..ad76ff1655 100644 --- a/Silk.NET.sln +++ b/Silk.NET.sln @@ -116,7 +116,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CSharp", "CSharp", "{12B4D1 EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenAL", "OpenAL", "{662A1AEC-91F2-48FA-AA29-6F27038D30F2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tutorial001.HelloSound", "examples\CSharp\OpenAL\Tutorial001.HelloSound\Tutorial001.HelloSound.csproj", "{946C912C-5BBB-446A-A566-0D1696D19F59}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAL.Tutorial001.HelloSound", "examples\CSharp\OpenAL\Tutorial001.HelloSound\OpenAL.Tutorial001.HelloSound.csproj", "{946C912C-5BBB-446A-A566-0D1696D19F59}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SDL.Tutorial001.HelloWindow", "examples\CSharp\SDL\Tutorial001.HelloWindow\SDL.Tutorial001.HelloWindow.csproj", "{3444151F-2DE3-41BC-B5E0-EFBF0091C087}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SDL", "SDL", "{96567E92-4A89-4AC8-9F20-C2A3FE644D10}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -196,7 +200,11 @@ Global {946C912C-5BBB-446A-A566-0D1696D19F59}.Debug|Any CPU.Build.0 = Debug|Any CPU {946C912C-5BBB-446A-A566-0D1696D19F59}.Release|Any CPU.ActiveCfg = Release|Any CPU {946C912C-5BBB-446A-A566-0D1696D19F59}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection + {3444151F-2DE3-41BC-B5E0-EFBF0091C087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3444151F-2DE3-41BC-B5E0-EFBF0091C087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3444151F-2DE3-41BC-B5E0-EFBF0091C087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3444151F-2DE3-41BC-B5E0-EFBF0091C087}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection @@ -235,6 +243,8 @@ Global {946C912C-5BBB-446A-A566-0D1696D19F59} = {662A1AEC-91F2-48FA-AA29-6F27038D30F2} {5E20252F-E2A0-46C9-BBEF-4CE5C96D0E07} = {DD29EA8F-B1A6-45AA-8D2E-B38DA56D9EF6} {E5E8FFBF-1319-4D33-B084-E732656E8A04} = {5E20252F-E2A0-46C9-BBEF-4CE5C96D0E07} + {96567E92-4A89-4AC8-9F20-C2A3FE644D10} = {12B4D1CB-8938-4EC4-8895-79C4E6ABD1E8} + {3444151F-2DE3-41BC-B5E0-EFBF0091C087} = {96567E92-4A89-4AC8-9F20-C2A3FE644D10} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {78D2CF6A-60A1-43E3-837B-00B73C9DA384} diff --git a/eng/native/cmake/zig-toolchain.cmake b/eng/native/cmake/zig-toolchain.cmake index f0202e8f8e..963cdae0d8 100755 --- a/eng/native/cmake/zig-toolchain.cmake +++ b/eng/native/cmake/zig-toolchain.cmake @@ -45,7 +45,7 @@ if(ZIG_OS STREQUAL "linux") set(PKG_CONFIG_EXECUTABLE "/usr/bin/${ZIG_ARCH}-${ZIG_OS}-${LINUX_ABI}-pkg-config") set(ENV{PKG_CONFIG_LIBDIR} "/usr/lib/${ZIG_ARCH}-${ZIG_OS}-${LINUX_ABI}/pkgconfig") set(ENV{PKG_CONFIG_PATH} "/usr/lib/pkgconfig:/usr/share/pkgconfig") - set(CMAKE_FIND_ROOT_PATH "/usr/${ZIG_ARCH}-${ZIG_OS}-${LINUX_ABI}") + set(CMAKE_LIBRARY_ARCHITECTURE "${ZIG_ARCH}-${ZIG_OS}-${LINUX_ABI}") set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH) diff --git a/eng/submodules/sdl b/eng/submodules/sdl index b5c3eab6b4..5848e584a1 160000 --- a/eng/submodules/sdl +++ b/eng/submodules/sdl @@ -1 +1 @@ -Subproject commit b5c3eab6b447111d3c7879bb547b80fb4abd9063 +Subproject commit 5848e584a1b606de26e3dbd1c7e4ecbc34f807a6 diff --git a/examples/CSharp/OpenAL/Tutorial001.HelloSound/Tutorial001.HelloSound.csproj b/examples/CSharp/OpenAL/Tutorial001.HelloSound/OpenAL.Tutorial001.HelloSound.csproj similarity index 100% rename from examples/CSharp/OpenAL/Tutorial001.HelloSound/Tutorial001.HelloSound.csproj rename to examples/CSharp/OpenAL/Tutorial001.HelloSound/OpenAL.Tutorial001.HelloSound.csproj diff --git a/examples/CSharp/OpenAL/Tutorial001.HelloSound/Program.cs b/examples/CSharp/OpenAL/Tutorial001.HelloSound/Program.cs index d9206d03fb..912f45c8d5 100644 --- a/examples/CSharp/OpenAL/Tutorial001.HelloSound/Program.cs +++ b/examples/CSharp/OpenAL/Tutorial001.HelloSound/Program.cs @@ -1,4 +1,7 @@ -using NAudio.Wave; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using NAudio.Wave; using Silk.NET.OpenAL; // NOTE: If you prefer, you can use the static ALContext and AL functions instead of creating an API object! diff --git a/examples/CSharp/SDL/Tutorial001.HelloWindow/Program.cs b/examples/CSharp/SDL/Tutorial001.HelloWindow/Program.cs new file mode 100644 index 0000000000..88650f8ec3 --- /dev/null +++ b/examples/CSharp/SDL/Tutorial001.HelloWindow/Program.cs @@ -0,0 +1,42 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.SDL; + +if (!Sdl.Init(Sdl.InitVideo)) +{ + throw new Exception($"SDL failed to initialize: {Sdl.GetError().ReadToString()}"); +} + +var window = Sdl.CreateWindow("Silk.NET.SDL - Hello Window", 800, 600, Sdl.WindowResizable); +if (window == nullptr) +{ + throw new Exception("Failed to create window"); +} + +try +{ + var renderer = Sdl.CreateRenderer(window, nullptr); + { + var shouldRun = true; + while (shouldRun) + { + var e = default(Event); + Sdl.PollEvent(e.AsRef()); + + if (e.Type == (uint)EventType.Quit) + { + shouldRun = false; + } + + Sdl.SetRenderDrawColor(renderer, 0, 255, 0, 255); + Sdl.RenderClear(renderer); + Sdl.RenderPresent(renderer); + } + } + Sdl.DestroyWindow(window); +} +finally +{ + Sdl.Quit(); +} diff --git a/examples/CSharp/SDL/Tutorial001.HelloWindow/SDL.Tutorial001.HelloWindow.csproj b/examples/CSharp/SDL/Tutorial001.HelloWindow/SDL.Tutorial001.HelloWindow.csproj new file mode 100644 index 0000000000..bba484a1a4 --- /dev/null +++ b/examples/CSharp/SDL/Tutorial001.HelloWindow/SDL.Tutorial001.HelloWindow.csproj @@ -0,0 +1,14 @@ + + + + Exe + net10.0 + enable + enable + + + + + + + diff --git a/sources/OpenAL/Soft.Native/build-win-arm64.cmd b/sources/OpenAL/Soft.Native/build-win-arm64.cmd index 3ef56243b4..087746b7ae 100755 --- a/sources/OpenAL/Soft.Native/build-win-arm64.cmd +++ b/sources/OpenAL/Soft.Native/build-win-arm64.cmd @@ -2,7 +2,7 @@ if not exist "../../../eng/submodules/openal-soft/CMakeLists.txt" ( git submodule update --init --recursive --depth 1 ..\..\..\eng\submodules\openal-soft ) -call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" arm64 +call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64 rd /s /q build mkdir build cd build diff --git a/sources/OpenAL/Soft.Native/runtimes/android-arm/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/android-arm/native/libopenal.so index 8a28b4398a..8b0f64ec21 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/android-arm/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/android-arm/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/android-arm64/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/android-arm64/native/libopenal.so index 03bc1a8eec..4fd3f598ca 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/android-arm64/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/android-arm64/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/android-x64/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/android-x64/native/libopenal.so index b6bfd84880..3c2ec92d5a 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/android-x64/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/android-x64/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/android-x86/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/android-x86/native/libopenal.so index ca0d0ec739..ed41794f25 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/android-x86/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/android-x86/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/ios/native/libopenal.dylib b/sources/OpenAL/Soft.Native/runtimes/ios/native/libopenal.dylib index e69fa099d2..f58e35e947 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/ios/native/libopenal.dylib and b/sources/OpenAL/Soft.Native/runtimes/ios/native/libopenal.dylib differ diff --git a/sources/OpenAL/Soft.Native/runtimes/iossimulator/native/libopenal.dylib b/sources/OpenAL/Soft.Native/runtimes/iossimulator/native/libopenal.dylib index 0d193144b5..7e6a42e1ba 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/iossimulator/native/libopenal.dylib and b/sources/OpenAL/Soft.Native/runtimes/iossimulator/native/libopenal.dylib differ diff --git a/sources/OpenAL/Soft.Native/runtimes/linux-arm/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/linux-arm/native/libopenal.so index e7bfa66eb9..8cf76e295b 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/linux-arm/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/linux-arm/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/linux-arm64/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/linux-arm64/native/libopenal.so index 491fe426ab..c636b3783c 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/linux-arm64/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/linux-arm64/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/linux-x64/native/libopenal.so b/sources/OpenAL/Soft.Native/runtimes/linux-x64/native/libopenal.so index da2d923433..bc5237235c 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/linux-x64/native/libopenal.so and b/sources/OpenAL/Soft.Native/runtimes/linux-x64/native/libopenal.so differ diff --git a/sources/OpenAL/Soft.Native/runtimes/osx/native/libopenal.dylib b/sources/OpenAL/Soft.Native/runtimes/osx/native/libopenal.dylib index 4c7375818a..d6e299f695 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/osx/native/libopenal.dylib and b/sources/OpenAL/Soft.Native/runtimes/osx/native/libopenal.dylib differ diff --git a/sources/OpenAL/Soft.Native/runtimes/tvos/native/libopenal.dylib b/sources/OpenAL/Soft.Native/runtimes/tvos/native/libopenal.dylib index b7cfc92e3a..2ad7c825d8 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/tvos/native/libopenal.dylib and b/sources/OpenAL/Soft.Native/runtimes/tvos/native/libopenal.dylib differ diff --git a/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/OpenAL32.dll b/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/OpenAL32.dll index b058f2c0e7..6de6f59740 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/OpenAL32.dll and b/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/OpenAL32.dll differ diff --git a/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/soft_oal.dll b/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/soft_oal.dll index c84d42bed8..df8fa4fc68 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/soft_oal.dll and b/sources/OpenAL/Soft.Native/runtimes/win-arm64/native/soft_oal.dll differ diff --git a/sources/OpenAL/Soft.Native/runtimes/win-x64/native/OpenAL32.dll b/sources/OpenAL/Soft.Native/runtimes/win-x64/native/OpenAL32.dll index 415977690c..a80bf92c91 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/win-x64/native/OpenAL32.dll and b/sources/OpenAL/Soft.Native/runtimes/win-x64/native/OpenAL32.dll differ diff --git a/sources/OpenAL/Soft.Native/runtimes/win-x64/native/soft_oal.dll b/sources/OpenAL/Soft.Native/runtimes/win-x64/native/soft_oal.dll index 7969fbe170..5cc77c6a40 100644 Binary files a/sources/OpenAL/Soft.Native/runtimes/win-x64/native/soft_oal.dll and b/sources/OpenAL/Soft.Native/runtimes/win-x64/native/soft_oal.dll differ diff --git a/sources/SDL/Native/android/SDL3.jar b/sources/SDL/Native/android/SDL3.jar index 9e919660df..d107789555 100644 Binary files a/sources/SDL/Native/android/SDL3.jar and b/sources/SDL/Native/android/SDL3.jar differ diff --git a/sources/SDL/Native/android/proguard.txt b/sources/SDL/Native/android/proguard.txt index 1eeb90e2c3..0fb7ae09ac 100644 --- a/sources/SDL/Native/android/proguard.txt +++ b/sources/SDL/Native/android/proguard.txt @@ -23,20 +23,18 @@ void clipboardSetText(java.lang.String); int createCustomCursor(int[], int, int, int, int); void destroyCustomCursor(int); - android.content.Context getContext(); + android.app.Activity getContext(); boolean getManifestEnvironmentVariables(); android.view.Surface getNativeSurface(); void initTouch(); boolean isAndroidTV(); boolean isChromebook(); boolean isDeXMode(); - boolean isScreenKeyboardShown(); boolean isTablet(); void manualBackButton(); int messageboxShowMessageBox(int, java.lang.String, java.lang.String, int[], int[], java.lang.String[], int[]); void minimizeWindow(); boolean openURL(java.lang.String); - void onNativePen(int, int, int , float , float , float); void requestPermission(java.lang.String, int); boolean showToast(java.lang.String, int, int, int, int); boolean sendMessage(int, int); @@ -51,6 +49,8 @@ boolean supportsRelativeMouse(); int openFileDescriptor(java.lang.String, java.lang.String); boolean showFileDialog(java.lang.String[], boolean, boolean, int); + java.lang.String getPreferredLocales(); + java.lang.String formatLocale(java.util.Locale); } -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.HIDDeviceManager { @@ -69,6 +69,7 @@ -keep,includedescriptorclasses,allowoptimization class org.libsdl.app.SDLControllerManager { void pollInputDevices(); + void joystickSetLED(int, int, int, int); void pollHapticDevices(); void hapticRun(int, float, int); void hapticRumble(int, float, float, int); diff --git a/sources/SDL/Native/build-ios.sh b/sources/SDL/Native/build-ios.sh index 7bb8178036..2ff4f664a3 100755 --- a/sources/SDL/Native/build-ios.sh +++ b/sources/SDL/Native/build-ios.sh @@ -7,7 +7,7 @@ fi rm -rf build mkdir build cd build -cmake ../../../../eng/submodules/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos "-DCMAKE_OSX_ARCHITECTURES=arm64;armv7s" -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_BUILD_TYPE=Release -DSDL_STATIC=ON +cmake ../../../../eng/submodules/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos "-DCMAKE_OSX_ARCHITECTURES=arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_BUILD_TYPE=Release -DSDL_STATIC=ON -DSDL_TEST_LIBRARY=OFF cmake --build . --parallel cd .. mkdir -p runtimes/ios/native diff --git a/sources/SDL/Native/build-iossimulator.sh b/sources/SDL/Native/build-iossimulator.sh index 6ae6577ddd..a7890fd884 100755 --- a/sources/SDL/Native/build-iossimulator.sh +++ b/sources/SDL/Native/build-iossimulator.sh @@ -7,7 +7,7 @@ fi rm -rf build mkdir build cd build -cmake ../../../../eng/submodules/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_BUILD_TYPE=Release -DSDL_STATIC=ON +cmake ../../../../eng/submodules/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DCMAKE_BUILD_TYPE=Release -DSDL_STATIC=ON -DSDL_TEST_LIBRARY=OFF cmake --build . --parallel cd .. mkdir -p runtimes/iossimulator/native diff --git a/sources/SDL/Native/build-linux-arm.sh b/sources/SDL/Native/build-linux-arm.sh index 22d2ed4898..f4cf61df49 100755 --- a/sources/SDL/Native/build-linux-arm.sh +++ b/sources/SDL/Native/build-linux-arm.sh @@ -6,19 +6,37 @@ fi if [[ ! -z ${GITHUB_ACTIONS+x} ]]; then ../../../eng/native/buildsystem/download-zig.py export PATH="$PATH:$(readlink -f "../../../eng/native/buildsystem/zig")" + + # Enable ports repository + sudo apt-get update + sudo apt install lsb-release + grep -q "^Architectures:" /etc/apt/sources.list.d/ubuntu.sources || sudo sed -i "/^Signed-By: /a Architectures: amd64" /etc/apt/sources.list.d/ubuntu.sources + sudo tee /etc/apt/sources.list.d/ubuntu-ports.sources < Handle == other.Handle; + + public override bool Equals(object? obj) => obj is GpuRenderStateHandle other && Equals(other); + + public override int GetHashCode() => HashCode.Combine((nuint)Handle); + + public static bool operator ==(GpuRenderStateHandle left, GpuRenderStateHandle right) => + left.Equals(right); + + public static bool operator !=(GpuRenderStateHandle left, GpuRenderStateHandle right) => + !left.Equals(right); + + public bool Equals(NullPtr _) => Handle is null; + + public static bool operator ==(GpuRenderStateHandle left, NullPtr right) => left.Equals(right); + + public static bool operator !=(GpuRenderStateHandle left, NullPtr right) => !left.Equals(right); + + public static implicit operator GpuRenderStateHandle(NullPtr _) => default; +} diff --git a/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallback.gen.cs b/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallback.gen.cs new file mode 100644 index 0000000000..c9da70d876 --- /dev/null +++ b/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallback.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_AudioStreamDataCompleteCallback")] +public readonly unsafe struct AudioStreamDataCompleteCallback : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public AudioStreamDataCompleteCallback(delegate* unmanaged ptr) => + Pointer = ptr; + + public AudioStreamDataCompleteCallback(AudioStreamDataCompleteCallbackDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator AudioStreamDataCompleteCallback( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged( + AudioStreamDataCompleteCallback pfn + ) => (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallbackDelegate.gen.cs new file mode 100644 index 0000000000..ec7debbc4e --- /dev/null +++ b/sources/SDL/SDL/SDL3/AudioStreamDataCompleteCallbackDelegate.gen.cs @@ -0,0 +1,16 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_AudioStreamDataCompleteCallback")] +public unsafe delegate void AudioStreamDataCompleteCallbackDelegate( + void* arg0, + void* arg1, + int arg2 +); diff --git a/sources/SDL/SDL/SDL3/CameraPermissionState.gen.cs b/sources/SDL/SDL/SDL3/CameraPermissionState.gen.cs new file mode 100644 index 0000000000..b832697521 --- /dev/null +++ b/sources/SDL/SDL/SDL3/CameraPermissionState.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_CameraPermissionState")] +public enum CameraPermissionState +{ + [NativeName("SDL_CAMERA_PERMISSION_STATE_DENIED")] + Denied = -1, + + [NativeName("SDL_CAMERA_PERMISSION_STATE_PENDING")] + Pending = 0, + + [NativeName("SDL_CAMERA_PERMISSION_STATE_APPROVED")] + Approved = 1, +} diff --git a/sources/SDL/SDL/SDL3/Colorspace.gen.cs b/sources/SDL/SDL/SDL3/Colorspace.gen.cs index aea78aa110..0ecd9b201e 100644 --- a/sources/SDL/SDL/SDL3/Colorspace.gen.cs +++ b/sources/SDL/SDL/SDL3/Colorspace.gen.cs @@ -48,5 +48,5 @@ public enum Colorspace RgbDefault = Srgb, [NativeName("SDL_COLORSPACE_YUV_DEFAULT")] - YuvDefault = Jpeg, + YuvDefault = Bt601Limited, } diff --git a/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs b/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs new file mode 100644 index 0000000000..801e66226f --- /dev/null +++ b/sources/SDL/SDL/SDL3/CursorFrameInfo.gen.cs @@ -0,0 +1,18 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_CursorFrameInfo")] +public unsafe partial struct CursorFrameInfo +{ + [NativeName("surface")] + public Surface* Surface; + + [NativeName("duration")] + public uint Duration; +} diff --git a/sources/SDL/SDL/SDL3/Event.gen.cs b/sources/SDL/SDL/SDL3/Event.gen.cs index 79d8317a92..3c2d64455e 100644 --- a/sources/SDL/SDL/SDL3/Event.gen.cs +++ b/sources/SDL/SDL/SDL3/Event.gen.cs @@ -131,6 +131,10 @@ public partial struct Event [FieldOffset(0)] public TouchFingerEvent Tfinger; + [NativeName("pinch")] + [FieldOffset(0)] + public PinchFingerEvent Pinch; + [NativeName("pproximity")] [FieldOffset(0)] public PenProximityEvent Pproximity; diff --git a/sources/SDL/SDL/SDL3/EventType.gen.cs b/sources/SDL/SDL/SDL3/EventType.gen.cs index 9a5aa4a71a..49bc076c61 100644 --- a/sources/SDL/SDL/SDL3/EventType.gen.cs +++ b/sources/SDL/SDL/SDL3/EventType.gen.cs @@ -61,11 +61,14 @@ public enum EventType [NativeName("SDL_EVENT_DISPLAY_CONTENT_SCALE_CHANGED")] DisplayContentScaleChanged = 343, + [NativeName("SDL_EVENT_DISPLAY_USABLE_BOUNDS_CHANGED")] + DisplayUsableBoundsChanged = 344, + [NativeName("SDL_EVENT_DISPLAY_FIRST")] DisplayFirst = DisplayOrientation, [NativeName("SDL_EVENT_DISPLAY_LAST")] - DisplayLast = DisplayContentScaleChanged, + DisplayLast = DisplayUsableBoundsChanged, [NativeName("SDL_EVENT_WINDOW_SHOWN")] WindowShown = 514, @@ -172,6 +175,12 @@ public enum EventType [NativeName("SDL_EVENT_TEXT_EDITING_CANDIDATES")] TextEditingCandidates = 775, + [NativeName("SDL_EVENT_SCREEN_KEYBOARD_SHOWN")] + ScreenKeyboardShown = 776, + + [NativeName("SDL_EVENT_SCREEN_KEYBOARD_HIDDEN")] + ScreenKeyboardHidden = 777, + [NativeName("SDL_EVENT_MOUSE_MOTION")] MouseMotion = 1024, @@ -265,6 +274,15 @@ public enum EventType [NativeName("SDL_EVENT_FINGER_CANCELED")] FingerCanceled = 1795, + [NativeName("SDL_EVENT_PINCH_BEGIN")] + PinchBegin = 1808, + + [NativeName("SDL_EVENT_PINCH_UPDATE")] + PinchUpdate = 1809, + + [NativeName("SDL_EVENT_PINCH_END")] + PinchEnd = 1810, + [NativeName("SDL_EVENT_CLIPBOARD_UPDATE")] ClipboardUpdate = 2304, diff --git a/sources/SDL/SDL/SDL3/FlipMode.gen.cs b/sources/SDL/SDL/SDL3/FlipMode.gen.cs index e0b7d438da..30554e2a80 100644 --- a/sources/SDL/SDL/SDL3/FlipMode.gen.cs +++ b/sources/SDL/SDL/SDL3/FlipMode.gen.cs @@ -18,4 +18,7 @@ public enum FlipMode [NativeName("SDL_FLIP_VERTICAL")] Vertical = 2, + + [NativeName("SDL_FLIP_HORIZONTAL_AND_VERTICAL")] + HorizontalAndVertical = (Horizontal | Vertical), } diff --git a/sources/SDL/SDL/SDL3/GamepadType.gen.cs b/sources/SDL/SDL/SDL3/GamepadType.gen.cs index c04700195b..fa7ad93970 100644 --- a/sources/SDL/SDL/SDL3/GamepadType.gen.cs +++ b/sources/SDL/SDL/SDL3/GamepadType.gen.cs @@ -43,6 +43,9 @@ public enum GamepadType [NativeName("SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR")] NintendoSwitchJoyconPair = 10, + [NativeName("SDL_GAMEPAD_TYPE_GAMECUBE")] + Gamecube = 11, + [NativeName("SDL_GAMEPAD_TYPE_COUNT")] - Count = 11, + Count = 12, } diff --git a/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs index 7f97572bd6..60503e4273 100644 --- a/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuDepthStencilTargetInfo.gen.cs @@ -34,9 +34,9 @@ public unsafe partial struct GpuDepthStencilTargetInfo [NativeName("clear_stencil")] public byte ClearStencil; - [NativeName("padding1")] - public byte Padding1; + [NativeName("mip_level")] + public byte MipLevel; - [NativeName("padding2")] - public byte Padding2; + [NativeName("layer")] + public byte Layer; } diff --git a/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs b/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs index 87129bed1a..f5c48e5de2 100644 --- a/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs +++ b/sources/SDL/SDL/SDL3/GpuMultisampleState.gen.cs @@ -19,8 +19,8 @@ public partial struct GpuMultisampleState [NativeName("enable_mask")] public byte EnableMask; - [NativeName("padding1")] - public byte Padding1; + [NativeName("enable_alpha_to_coverage")] + public byte EnableAlphaToCoverage; [NativeName("padding2")] public byte Padding2; diff --git a/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs b/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs new file mode 100644 index 0000000000..b3c3a27a44 --- /dev/null +++ b/sources/SDL/SDL/SDL3/GpuRenderStateCreateInfo.gen.cs @@ -0,0 +1,36 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_GPURenderStateCreateInfo")] +public unsafe partial struct GpuRenderStateCreateInfo +{ + [NativeName("fragment_shader")] + public GpuShaderHandle FragmentShader; + + [NativeName("num_sampler_bindings")] + public int NumSamplerBindings; + + [NativeName("sampler_bindings")] + public GpuTextureSamplerBinding* SamplerBindings; + + [NativeName("num_storage_textures")] + public int NumStorageTextures; + + [NativeName("storage_textures")] + public GpuTextureHandle* StorageTextures; + + [NativeName("num_storage_buffers")] + public int NumStorageBuffers; + + [NativeName("storage_buffers")] + public GpuBufferHandle* StorageBuffers; + + [NativeName("props")] + public uint Props; +} diff --git a/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs b/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs new file mode 100644 index 0000000000..aa0ccc5ed7 --- /dev/null +++ b/sources/SDL/SDL/SDL3/GpuVulkanOptions.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_GPUVulkanOptions")] +public unsafe partial struct GpuVulkanOptions +{ + [NativeName("vulkan_api_version")] + public uint VulkanApiVersion; + + [NativeName("feature_list")] + public void* FeatureList; + + [NativeName("vulkan_10_physical_device_features")] + public void* Vulkan10PhysicalDeviceFeatures; + + [NativeName("device_extension_count")] + public uint DeviceExtensionCount; + + [NativeName("device_extension_names")] + public sbyte** DeviceExtensionNames; + + [NativeName("instance_extension_count")] + public uint InstanceExtensionCount; + + [NativeName("instance_extension_names")] + public sbyte** InstanceExtensionNames; +} diff --git a/sources/SDL/SDL/SDL3/ISdl.gen.cs b/sources/SDL/SDL/SDL3/ISdl.gen.cs index 93572b6091..d5c8c95c5f 100644 --- a/sources/SDL/SDL/SDL3/ISdl.gen.cs +++ b/sources/SDL/SDL/SDL3/ISdl.gen.cs @@ -67,6 +67,14 @@ Ref swapchain_texture_height [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] static abstract int AddAtomicInt(Ref a, int v); + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + static abstract uint AddAtomicU32(AtomicU32* a, int v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + static abstract uint AddAtomicU32(Ref a, int v); + [NativeName("SDL_AddEventWatch")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] static abstract byte AddEventWatch(EventFilter filter, void* userdata); @@ -1143,6 +1151,24 @@ Ref newpath [NativeFunction("SDL3", EntryPoint = "SDL_crc32")] static abstract uint Crc32(uint crc, Ref data, nuint len); + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + static abstract CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + static abstract CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ); + [NativeName("SDL_CreateAudioStream")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] static abstract AudioStreamHandle CreateAudioStream( @@ -1269,6 +1295,27 @@ static abstract GpuGraphicsPipelineHandle CreateGpuGraphicsPipeline( Ref createinfo ); + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + static abstract RendererHandle CreateGpuRenderer( + GpuDeviceHandle device, + WindowHandle window + ); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + static abstract GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + static abstract GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ); + [NativeName("SDL_CreateGPUSampler")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPUSampler")] static abstract GpuSamplerHandle CreateGpuSampler( @@ -1609,6 +1656,10 @@ Ref renderer [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPUDevice")] static abstract void DestroyGpuDevice(GpuDeviceHandle device); + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + static abstract void DestroyGpuRenderState(GpuRenderStateHandle state); + [NativeName("SDL_DestroyHapticEffect")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] static abstract void DestroyHapticEffect(HapticHandle haptic, int effect); @@ -2353,7 +2404,7 @@ MaybeBool default_value [NativeName("SDL_GetCameraPermissionState")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] - static abstract int GetCameraPermissionState(CameraHandle camera); + static abstract CameraPermissionState GetCameraPermissionState(CameraHandle camera); [NativeName("SDL_GetCameraPosition")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] @@ -2542,6 +2593,20 @@ Ref timeFormat [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] static abstract LogOutputFunction GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + static abstract byte GetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode* scale_mode + ); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + static abstract MaybeBool GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ); + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] static abstract Ptr GetDesktopDisplayMode(uint displayID); @@ -2670,6 +2735,14 @@ Ref outputIndex [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] static abstract sbyte* GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + static abstract int GetEventDescription(Event* @event, sbyte* buf, int buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + static abstract int GetEventDescription(Ref @event, Ref buf, int buflen); + [NativeName("SDL_GetEventFilter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] static abstract byte GetEventFilter(EventFilter* filter, void** userdata); @@ -3043,6 +3116,10 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceDriver")] static abstract sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + static abstract uint GetGpuDeviceProperties(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] static abstract Ptr GetGpuDriver(int index); @@ -3051,6 +3128,10 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] static abstract sbyte* GetGpuDriverRaw(int index); + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + static abstract GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer); + [NativeName("SDL_GetGPUShaderFormats")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUShaderFormats")] static abstract uint GetGpuShaderFormats(GpuDeviceHandle device); @@ -3062,6 +3143,10 @@ static abstract GpuTextureFormat GetGpuSwapchainTextureFormat( WindowHandle window ); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + static abstract GpuTextureFormat GetGpuTextureFormatFromPixelFormat(PixelFormat format); + [NativeName("SDL_GetGrabbedWindow")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] static abstract WindowHandle GetGrabbedWindow(); @@ -3576,6 +3661,10 @@ Ref free_func [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] static abstract MaybeBool GetPathInfo(Ref path, Ref info); + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + static abstract PenDeviceType GetPenDeviceType(uint instance_id); + [NativeName("SDL_GetPerformanceCounter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] static abstract ulong GetPerformanceCounter(); @@ -3602,6 +3691,10 @@ static abstract PixelFormat GetPixelFormatForMasks( uint Amask ); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + static abstract PixelFormat GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] static abstract Ptr GetPixelFormatName(PixelFormat format); @@ -4005,6 +4098,22 @@ Ref scaleY [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] static abstract Texture* GetRenderTargetRaw(RendererHandle renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + static abstract byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + static abstract MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ); + [NativeName("SDL_GetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] static abstract byte GetRenderViewport(RendererHandle renderer, Rect* rect); @@ -4036,7 +4145,7 @@ Ref scaleY [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] static abstract void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -4047,7 +4156,7 @@ static abstract void GetRgb( [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] static abstract void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -4058,7 +4167,7 @@ Ref b [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] static abstract void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -4070,7 +4179,7 @@ static abstract void GetRgba( [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] static abstract void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -4303,6 +4412,10 @@ Ref b [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] static abstract uint GetSurfaceProperties(Ref surface); + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + static abstract int GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] static abstract int GetSystemRam(); @@ -4384,6 +4497,14 @@ static abstract MaybeBool GetTextureColorModFloat( Ref b ); + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + static abstract Palette* GetTexturePalette(Texture* texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + static abstract Ptr GetTexturePalette(Ref texture); + [NativeName("SDL_GetTextureProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] static abstract uint GetTextureProperties(Texture* texture); @@ -4647,6 +4768,14 @@ static abstract MaybeBool GetWindowPosition( Ref y ); + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + static abstract ProgressState GetWindowProgressState(WindowHandle window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + static abstract float GetWindowProgressValue(WindowHandle window); + [NativeName("SDL_GetWindowProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] static abstract uint GetWindowProperties(WindowHandle window); @@ -5261,6 +5390,10 @@ static abstract int HidGetProductString( nuint maxlen ); + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + static abstract uint HidGetProperties(HidDeviceHandle dev); + [NativeName("SDL_hid_get_report_descriptor")] [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] static abstract int HidGetReportDescriptor(HidDeviceHandle dev, byte* buf, nuint buf_size); @@ -5731,6 +5864,38 @@ MaybeBool closeio [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] static abstract SharedObjectHandle LoadObject(Ref sofile); + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + static abstract Surface* LoadPng(sbyte* file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + static abstract Ptr LoadPng(Ref file); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + static abstract Surface* LoadPngIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + static abstract Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + static abstract Surface* LoadSurface(sbyte* file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + static abstract Ptr LoadSurface(Ref file); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + static abstract Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + static abstract Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio); + [NativeName("SDL_LoadWAV")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] static abstract byte LoadWav( @@ -6427,6 +6592,44 @@ static abstract MaybeBool PutAudioStreamData( int len ); + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + static abstract byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + static abstract MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + static abstract byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + static abstract MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ); + [NativeName("SDL_qsort")] [NativeFunction("SDL3", EntryPoint = "SDL_qsort")] static abstract void Qsort(void* @base, nuint nmemb, nuint size, CompareCallback compare); @@ -7152,6 +7355,36 @@ static abstract MaybeBool RenderTexture9Grid( Ref dstrect ); + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + static abstract byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + static abstract MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ); + [NativeName("SDL_RenderTextureAffine")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] static abstract byte RenderTextureAffine( @@ -7300,6 +7533,14 @@ int line [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] static abstract byte ResumeHapticRaw(HapticHandle haptic); + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + static abstract Surface* RotateSurface(Surface* surface, float angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + static abstract Ptr RotateSurface(Ref surface, float angle); + [NativeName("SDL_round")] [NativeFunction("SDL3", EntryPoint = "SDL_round")] static abstract double Round(double x); @@ -7467,6 +7708,26 @@ static abstract MaybeBool SaveFileIO( MaybeBool closeio ); + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + static abstract byte SavePng(Surface* surface, sbyte* file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + static abstract MaybeBool SavePng(Ref surface, Ref file); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + static abstract byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + static abstract MaybeBool SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ); + [NativeName("SDL_scalbn")] [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] static abstract double Scalbn(double x, int n); @@ -7792,6 +8053,20 @@ nuint num_mime_types [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] static abstract byte SetCursorRaw(CursorHandle cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + static abstract MaybeBool SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + static abstract byte SetDefaultTextureScaleModeRaw( + RendererHandle renderer, + ScaleMode scale_mode + ); + [NativeName("SDL_setenv_unsafe")] [NativeFunction("SDL3", EntryPoint = "SDL_setenv_unsafe")] static abstract int SetenvUnsafe(sbyte* name, sbyte* value, int overwrite); @@ -7948,6 +8223,38 @@ static abstract void SetGpuBufferName( Ref text ); + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + static abstract MaybeBool SetGpuRenderState( + RendererHandle renderer, + GpuRenderStateHandle state + ); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + static abstract byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + static abstract MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + static abstract byte SetGpuRenderStateRaw( + RendererHandle renderer, + GpuRenderStateHandle state + ); + [NativeName("SDL_SetGPUScissor")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUScissor")] static abstract void SetGpuScissor(GpuRenderPassHandle render_pass, Rect* scissor); @@ -8290,6 +8597,20 @@ Ref userdata [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] static abstract MaybeBool SetPrimarySelectionText(Ref text); + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + static abstract byte SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + void* userdata + ); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + static abstract MaybeBool SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ); + [NativeName("SDL_SetRenderClipRect")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] static abstract byte SetRenderClipRect(RendererHandle renderer, Rect* rect); @@ -8401,6 +8722,22 @@ static abstract MaybeBool SetRenderTarget( Ref texture ); + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + static abstract MaybeBool SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + static abstract byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ); + [NativeName("SDL_SetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] static abstract byte SetRenderViewport(RendererHandle renderer, Rect* rect); @@ -8587,6 +8924,17 @@ static abstract MaybeBool SetTextureColorModFloat( float b ); + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + static abstract byte SetTexturePalette(Texture* texture, Palette* palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + static abstract MaybeBool SetTexturePalette( + Ref texture, + Ref palette + ); + [NativeName("SDL_SetTextureScaleMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] static abstract byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); @@ -8648,6 +8996,17 @@ static abstract MaybeBool SetWindowBordered( MaybeBool bordered ); + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + static abstract byte SetWindowFillDocument(WindowHandle window, byte fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + static abstract MaybeBool SetWindowFillDocument( + WindowHandle window, + MaybeBool fill + ); + [NativeName("SDL_SetWindowFocusable")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] static abstract byte SetWindowFocusable(WindowHandle window, byte focusable); @@ -8791,6 +9150,25 @@ MaybeBool grabbed [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] static abstract byte SetWindowPositionRaw(WindowHandle window, int x, int y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + static abstract MaybeBool SetWindowProgressState( + WindowHandle window, + ProgressState state + ); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + static abstract byte SetWindowProgressStateRaw(WindowHandle window, ProgressState state); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + static abstract MaybeBool SetWindowProgressValue(WindowHandle window, float value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + static abstract byte SetWindowProgressValueRaw(WindowHandle window, float value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] static abstract byte SetWindowRelativeMouseMode(WindowHandle window, byte enabled); @@ -10399,6 +10777,14 @@ Ref swapchain_texture_height [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicInt")] int AddAtomicInt(Ref a, int v); + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + uint AddAtomicU32(AtomicU32* a, int v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + uint AddAtomicU32(Ref a, int v); + [NativeName("SDL_AddEventWatch")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] byte AddEventWatch(EventFilter filter, void* userdata); @@ -11396,6 +11782,24 @@ MaybeBool cycle [NativeFunction("SDL3", EntryPoint = "SDL_crc32")] uint Crc32(uint crc, Ref data, nuint len); + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ); + [NativeName("SDL_CreateAudioStream")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] AudioStreamHandle CreateAudioStream(AudioSpec* src_spec, AudioSpec* dst_spec); @@ -11488,6 +11892,24 @@ GpuGraphicsPipelineHandle CreateGpuGraphicsPipeline( Ref createinfo ); + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + RendererHandle CreateGpuRenderer(GpuDeviceHandle device, WindowHandle window); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ); + [NativeName("SDL_CreateGPUSampler")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPUSampler")] GpuSamplerHandle CreateGpuSampler(GpuDeviceHandle device, GpuSamplerCreateInfo* createinfo); @@ -11789,6 +12211,10 @@ Ref renderer [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPUDevice")] void DestroyGpuDevice(GpuDeviceHandle device); + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + void DestroyGpuRenderState(GpuRenderStateHandle state); + [NativeName("SDL_DestroyHapticEffect")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] void DestroyHapticEffect(HapticHandle haptic, int effect); @@ -12492,7 +12918,7 @@ Ref dst_spec [NativeName("SDL_GetCameraPermissionState")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] - int GetCameraPermissionState(CameraHandle camera); + CameraPermissionState GetCameraPermissionState(CameraHandle camera); [NativeName("SDL_GetCameraPosition")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPosition")] @@ -12671,6 +13097,14 @@ Ref timeFormat [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultLogOutputFunction")] LogOutputFunction GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + byte GetDefaultTextureScaleMode(RendererHandle renderer, ScaleMode* scale_mode); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + MaybeBool GetDefaultTextureScaleMode(RendererHandle renderer, Ref scale_mode); + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] Ptr GetDesktopDisplayMode(uint displayID); @@ -12795,6 +13229,14 @@ Ref timeFormat [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] sbyte* GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + int GetEventDescription(Event* @event, sbyte* buf, int buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + int GetEventDescription(Ref @event, Ref buf, int buflen); + [NativeName("SDL_GetEventFilter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] byte GetEventFilter(EventFilter* filter, void** userdata); @@ -13136,6 +13578,10 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceDriver")] sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + uint GetGpuDeviceProperties(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] Ptr GetGpuDriver(int index); @@ -13144,6 +13590,10 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] sbyte* GetGpuDriverRaw(int index); + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer); + [NativeName("SDL_GetGPUShaderFormats")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUShaderFormats")] uint GetGpuShaderFormats(GpuDeviceHandle device); @@ -13152,6 +13602,10 @@ Ref pressure [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUSwapchainTextureFormat")] GpuTextureFormat GetGpuSwapchainTextureFormat(GpuDeviceHandle device, WindowHandle window); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + GpuTextureFormat GetGpuTextureFormatFromPixelFormat(PixelFormat format); + [NativeName("SDL_GetGrabbedWindow")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] WindowHandle GetGrabbedWindow(); @@ -13650,6 +14104,10 @@ Ref free_func [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] MaybeBool GetPathInfo(Ref path, Ref info); + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + PenDeviceType GetPenDeviceType(uint instance_id); + [NativeName("SDL_GetPerformanceCounter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] ulong GetPerformanceCounter(); @@ -13670,6 +14128,10 @@ Ref free_func [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatForMasks")] PixelFormat GetPixelFormatForMasks(int bpp, uint Rmask, uint Gmask, uint Bmask, uint Amask); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + PixelFormat GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] Ptr GetPixelFormatName(PixelFormat format); @@ -14010,6 +14472,22 @@ Ref mode [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] Texture* GetRenderTargetRaw(RendererHandle renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ); + [NativeName("SDL_GetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] byte GetRenderViewport(RendererHandle renderer, Rect* rect); @@ -14041,7 +14519,7 @@ Ref mode [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -14052,7 +14530,7 @@ void GetRgb( [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -14063,7 +14541,7 @@ Ref b [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -14075,7 +14553,7 @@ void GetRgba( [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -14284,6 +14762,10 @@ Ref a [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] uint GetSurfaceProperties(Ref surface); + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + int GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] int GetSystemRam(); @@ -14345,6 +14827,14 @@ MaybeBool GetTextureColorModFloat( Ref b ); + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + Palette* GetTexturePalette(Texture* texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + Ptr GetTexturePalette(Ref texture); + [NativeName("SDL_GetTextureProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] uint GetTextureProperties(Texture* texture); @@ -14579,6 +15069,14 @@ Ref right [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y); + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + ProgressState GetWindowProgressState(WindowHandle window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + float GetWindowProgressValue(WindowHandle window); + [NativeName("SDL_GetWindowProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] uint GetWindowProperties(WindowHandle window); @@ -15158,6 +15656,10 @@ nuint maxlen [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] int HidGetProductString(HidDeviceHandle dev, Ref @string, nuint maxlen); + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + uint HidGetProperties(HidDeviceHandle dev); + [NativeName("SDL_hid_get_report_descriptor")] [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] int HidGetReportDescriptor(HidDeviceHandle dev, byte* buf, nuint buf_size); @@ -15583,6 +16085,38 @@ nuint inbytesleft [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] SharedObjectHandle LoadObject(Ref sofile); + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + Surface* LoadPng(sbyte* file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + Ptr LoadPng(Ref file); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + Surface* LoadPngIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + Surface* LoadSurface(sbyte* file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + Ptr LoadSurface(Ref file); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio); + [NativeName("SDL_LoadWAV")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] byte LoadWav(sbyte* path, AudioSpec* spec, byte** audio_buf, uint* audio_len); @@ -16219,6 +16753,44 @@ uint length [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] MaybeBool PutAudioStreamData(AudioStreamHandle stream, Ref buf, int len); + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ); + [NativeName("SDL_qsort")] [NativeFunction("SDL3", EntryPoint = "SDL_qsort")] void Qsort(void* @base, nuint nmemb, nuint size, CompareCallback compare); @@ -16863,6 +17435,36 @@ MaybeBool RenderTexture9Grid( Ref dstrect ); + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ); + [NativeName("SDL_RenderTextureAffine")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] byte RenderTextureAffine( @@ -17001,6 +17603,14 @@ Ref dstrect [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] byte ResumeHapticRaw(HapticHandle haptic); + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + Surface* RotateSurface(Surface* surface, float angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + Ptr RotateSurface(Ref surface, float angle); + [NativeName("SDL_round")] [NativeFunction("SDL3", EntryPoint = "SDL_round")] double Round(double x); @@ -17146,6 +17756,22 @@ MaybeBool SaveFileIO( MaybeBool closeio ); + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + byte SavePng(Surface* surface, sbyte* file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + MaybeBool SavePng(Ref surface, Ref file); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + MaybeBool SavePngIO(Ref surface, IOStreamHandle dst, MaybeBool closeio); + [NativeName("SDL_scalbn")] [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] double Scalbn(double x, int n); @@ -17426,6 +18052,14 @@ nuint num_mime_types [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] byte SetCursorRaw(CursorHandle cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + MaybeBool SetDefaultTextureScaleMode(RendererHandle renderer, ScaleMode scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + byte SetDefaultTextureScaleModeRaw(RendererHandle renderer, ScaleMode scale_mode); + [NativeName("SDL_setenv_unsafe")] [NativeFunction("SDL3", EntryPoint = "SDL_setenv_unsafe")] int SetenvUnsafe(sbyte* name, sbyte* value, int overwrite); @@ -17546,6 +18180,32 @@ uint allowed_frames_in_flight [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUBufferName")] void SetGpuBufferName(GpuDeviceHandle device, GpuBufferHandle buffer, Ref text); + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + MaybeBool SetGpuRenderState(RendererHandle renderer, GpuRenderStateHandle state); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + byte SetGpuRenderStateRaw(RendererHandle renderer, GpuRenderStateHandle state); + [NativeName("SDL_SetGPUScissor")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUScissor")] void SetGpuScissor(GpuRenderPassHandle render_pass, Rect* scissor); @@ -17828,6 +18488,14 @@ Ref userdata [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] MaybeBool SetPrimarySelectionText(Ref text); + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + byte SetRelativeMouseTransform(MouseMotionTransformCallback callback, void* userdata); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + MaybeBool SetRelativeMouseTransform(MouseMotionTransformCallback callback, Ref userdata); + [NativeName("SDL_SetRenderClipRect")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] byte SetRenderClipRect(RendererHandle renderer, Rect* rect); @@ -17908,6 +18576,22 @@ RendererLogicalPresentation mode [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture); + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + MaybeBool SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ); + [NativeName("SDL_SetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] byte SetRenderViewport(RendererHandle renderer, Rect* rect); @@ -18052,6 +18736,14 @@ RendererLogicalPresentation mode [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] MaybeBool SetTextureColorModFloat(Ref texture, float r, float g, float b); + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + byte SetTexturePalette(Texture* texture, Palette* palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + MaybeBool SetTexturePalette(Ref texture, Ref palette); + [NativeName("SDL_SetTextureScaleMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); @@ -18092,6 +18784,14 @@ RendererLogicalPresentation mode [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] MaybeBool SetWindowBordered(WindowHandle window, MaybeBool bordered); + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + byte SetWindowFillDocument(WindowHandle window, byte fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + MaybeBool SetWindowFillDocument(WindowHandle window, MaybeBool fill); + [NativeName("SDL_SetWindowFocusable")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] byte SetWindowFocusable(WindowHandle window, byte focusable); @@ -18204,6 +18904,22 @@ RendererLogicalPresentation mode [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] byte SetWindowPositionRaw(WindowHandle window, int x, int y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + MaybeBool SetWindowProgressState(WindowHandle window, ProgressState state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + byte SetWindowProgressStateRaw(WindowHandle window, ProgressState state); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + MaybeBool SetWindowProgressValue(WindowHandle window, float value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + byte SetWindowProgressValueRaw(WindowHandle window, float value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] byte SetWindowRelativeMouseMode(WindowHandle window, byte enabled); diff --git a/sources/SDL/SDL/SDL3/MouseMotionTransformCallback.gen.cs b/sources/SDL/SDL/SDL3/MouseMotionTransformCallback.gen.cs new file mode 100644 index 0000000000..a42c8cc486 --- /dev/null +++ b/sources/SDL/SDL/SDL3/MouseMotionTransformCallback.gen.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_MouseMotionTransformCallback")] +public readonly unsafe struct MouseMotionTransformCallback : IDisposable +{ + private readonly void* Pointer; + public delegate* unmanaged Handle => + (delegate* unmanaged)Pointer; + + public MouseMotionTransformCallback( + delegate* unmanaged ptr + ) => Pointer = ptr; + + public MouseMotionTransformCallback(MouseMotionTransformCallbackDelegate proc) => + Pointer = SilkMarshal.DelegateToPtr(proc); + + public void Dispose() => SilkMarshal.Free(Pointer); + + public static implicit operator MouseMotionTransformCallback( + delegate* unmanaged pfn + ) => new(pfn); + + public static implicit operator delegate* unmanaged< + void*, + ulong, + WindowHandle, + uint, + float*, + float*, + void>(MouseMotionTransformCallback pfn) => + (delegate* unmanaged)pfn.Pointer; +} diff --git a/sources/SDL/SDL/SDL3/MouseMotionTransformCallbackDelegate.gen.cs b/sources/SDL/SDL/SDL3/MouseMotionTransformCallbackDelegate.gen.cs new file mode 100644 index 0000000000..c0218e34b9 --- /dev/null +++ b/sources/SDL/SDL/SDL3/MouseMotionTransformCallbackDelegate.gen.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_MouseMotionTransformCallback")] +public unsafe delegate void MouseMotionTransformCallbackDelegate( + void* arg0, + ulong arg1, + WindowHandle arg2, + uint arg3, + float* arg4, + float* arg5 +); diff --git a/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs b/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs index f49f918974..db67e54aeb 100644 --- a/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs +++ b/sources/SDL/SDL/SDL3/MouseWheelEvent.gen.cs @@ -39,4 +39,10 @@ public partial struct MouseWheelEvent [NativeName("mouse_y")] public float MouseY; + + [NativeName("integer_x")] + public int IntegerX; + + [NativeName("integer_y")] + public int IntegerY; } diff --git a/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs b/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs new file mode 100644 index 0000000000..75dfff96f0 --- /dev/null +++ b/sources/SDL/SDL/SDL3/PenDeviceType.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_PenDeviceType")] +public enum PenDeviceType +{ + [NativeName("SDL_PEN_DEVICE_TYPE_INVALID")] + Invalid = -1, + + [NativeName("SDL_PEN_DEVICE_TYPE_UNKNOWN")] + Unknown = 0, + + [NativeName("SDL_PEN_DEVICE_TYPE_DIRECT")] + Direct = 1, + + [NativeName("SDL_PEN_DEVICE_TYPE_INDIRECT")] + Indirect = 2, +} diff --git a/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs b/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs new file mode 100644 index 0000000000..4a7df38627 --- /dev/null +++ b/sources/SDL/SDL/SDL3/PinchFingerEvent.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_PinchFingerEvent")] +public partial struct PinchFingerEvent +{ + [NativeName("type")] + public EventType Type; + + [NativeName("reserved")] + public uint Reserved; + + [NativeName("timestamp")] + public ulong Timestamp; + + [NativeName("scale")] + public float Scale; + + [NativeName("windowID")] + public uint WindowID; +} diff --git a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs index 04728f254e..42c5aa5e8e 100644 --- a/sources/SDL/SDL/SDL3/PixelFormat.gen.cs +++ b/sources/SDL/SDL/SDL3/PixelFormat.gen.cs @@ -202,6 +202,9 @@ public enum PixelFormat [NativeName("SDL_PIXELFORMAT_EXTERNAL_OES")] ExternalOes = 542328143, + [NativeName("SDL_PIXELFORMAT_MJPG")] + Mjpg = 1196444237, + [NativeName("SDL_PIXELFORMAT_RGBA32")] Rgba32 = Abgr8888, diff --git a/sources/SDL/SDL/SDL3/ProgressState.gen.cs b/sources/SDL/SDL/SDL3/ProgressState.gen.cs new file mode 100644 index 0000000000..53d6895394 --- /dev/null +++ b/sources/SDL/SDL/SDL3/ProgressState.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_ProgressState")] +public enum ProgressState +{ + [NativeName("SDL_PROGRESS_STATE_INVALID")] + Invalid = -1, + + [NativeName("SDL_PROGRESS_STATE_NONE")] + None = 0, + + [NativeName("SDL_PROGRESS_STATE_INDETERMINATE")] + Indeterminate = 1, + + [NativeName("SDL_PROGRESS_STATE_NORMAL")] + Normal = 2, + + [NativeName("SDL_PROGRESS_STATE_PAUSED")] + Paused = 3, + + [NativeName("SDL_PROGRESS_STATE_ERROR")] + Error = 4, +} diff --git a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs index 241898217d..49f902e011 100644 --- a/sources/SDL/SDL/SDL3/ScaleMode.gen.cs +++ b/sources/SDL/SDL/SDL3/ScaleMode.gen.cs @@ -10,9 +10,15 @@ namespace Silk.NET.SDL; [NativeName("SDL_ScaleMode")] public enum ScaleMode { + [NativeName("SDL_SCALEMODE_INVALID")] + Invalid = -1, + [NativeName("SDL_SCALEMODE_NEAREST")] Nearest = 0, [NativeName("SDL_SCALEMODE_LINEAR")] Linear = 1, + + [NativeName("SDL_SCALEMODE_PIXELART")] + Pixelart = 2, } diff --git a/sources/SDL/SDL/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/Sdl.gen.cs index 95f75c8265..c4f2200c54 100644 --- a/sources/SDL/SDL/SDL3/Sdl.gen.cs +++ b/sources/SDL/SDL/SDL3/Sdl.gen.cs @@ -100,6 +100,23 @@ public static int AddAtomicInt(Ref a, int v) } } + [NativeName("SDL_AddAtomicU32")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddAtomicU32")] + public static extern uint AddAtomicU32(AtomicU32* a, int v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddAtomicU32(Ref a, int v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)AddAtomicU32(__dsl_a, v); + } + } + [NativeName("SDL_AddEventWatch")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AddEventWatch")] public static extern byte AddEventWatch(EventFilter filter, void* userdata); @@ -1898,6 +1915,33 @@ public static uint Crc32(uint crc, Ref data, nuint len) } } + [NativeName("SDL_CreateAnimatedCursor")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateAnimatedCursor")] + public static extern CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ) + { + fixed (CursorFrameInfo* __dsl_frames = frames) + { + return (CursorHandle)CreateAnimatedCursor(__dsl_frames, frame_count, hot_x, hot_y); + } + } + [NativeName("SDL_CreateAudioStream")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateAudioStream")] public static extern AudioStreamHandle CreateAudioStream( @@ -2102,6 +2146,36 @@ Ref createinfo } } + [NativeName("SDL_CreateGPURenderer")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateGPURenderer")] + public static extern RendererHandle CreateGpuRenderer( + GpuDeviceHandle device, + WindowHandle window + ); + + [NativeName("SDL_CreateGPURenderState")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateGPURenderState")] + public static extern GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ) + { + fixed (GpuRenderStateCreateInfo* __dsl_createinfo = createinfo) + { + return (GpuRenderStateHandle)CreateGpuRenderState(renderer, __dsl_createinfo); + } + } + [NativeName("SDL_CreateGPUSampler")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateGPUSampler")] public static extern GpuSamplerHandle CreateGpuSampler( @@ -2619,6 +2693,10 @@ public static MaybeBool DateTimeToTime(Ref dt, Ref ticks) [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyGPUDevice")] public static extern void DestroyGpuDevice(GpuDeviceHandle device); + [NativeName("SDL_DestroyGPURenderState")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyGPURenderState")] + public static extern void DestroyGpuRenderState(GpuRenderStateHandle state); + [NativeName("SDL_DestroyHapticEffect")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_DestroyHapticEffect")] public static extern void DestroyHapticEffect(HapticHandle haptic, int effect); @@ -3739,7 +3817,7 @@ public static Ptr GetCameraName(uint instance_id) => [NativeName("SDL_GetCameraPermissionState")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraPermissionState")] - public static extern int GetCameraPermissionState(CameraHandle camera); + public static extern CameraPermissionState GetCameraPermissionState(CameraHandle camera); [NativeName("SDL_GetCameraPosition")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCameraPosition")] @@ -4037,6 +4115,30 @@ Ref timeFormat [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDefaultLogOutputFunction")] public static extern LogOutputFunction GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDefaultTextureScaleMode")] + public static extern byte GetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode* scale_mode + ); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + { + return (MaybeBool) + (byte)GetDefaultTextureScaleMode(renderer, __dsl_scale_mode); + } + } + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] [MethodImpl( @@ -4267,6 +4369,24 @@ public static Ptr2D GetEnvironmentVariables(EnvironmentHandle env) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetError")] public static extern sbyte* GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetEventDescription")] + public static extern int GetEventDescription(Event* @event, sbyte* buf, int buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetEventDescription(Ref @event, Ref buf, int buflen) + { + fixed (sbyte* __dsl_buf = buf) + fixed (Event* __dsl_event = @event) + { + return (int)GetEventDescription(__dsl_event, __dsl_buf, buflen); + } + } + [NativeName("SDL_GetEventFilter")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetEventFilter")] public static extern byte GetEventFilter(EventFilter* filter, void** userdata); @@ -4833,6 +4953,10 @@ public static Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGPUDeviceDriver")] public static extern sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDeviceProperties")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGPUDeviceProperties")] + public static extern uint GetGpuDeviceProperties(GpuDeviceHandle device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] [MethodImpl( @@ -4844,6 +4968,10 @@ public static Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGPUDriver")] public static extern sbyte* GetGpuDriverRaw(int index); + [NativeName("SDL_GetGPURendererDevice")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGPURendererDevice")] + public static extern GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer); + [NativeName("SDL_GetGPUShaderFormats")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGPUShaderFormats")] public static extern uint GetGpuShaderFormats(GpuDeviceHandle device); @@ -4855,6 +4983,16 @@ public static extern GpuTextureFormat GetGpuSwapchainTextureFormat( WindowHandle window ); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat" + )] + public static extern GpuTextureFormat GetGpuTextureFormatFromPixelFormat( + PixelFormat format + ); + [NativeName("SDL_GetGrabbedWindow")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGrabbedWindow")] public static extern WindowHandle GetGrabbedWindow(); @@ -5628,6 +5766,10 @@ public static MaybeBool GetPathInfo(Ref path, Ref info) } } + [NativeName("SDL_GetPenDeviceType")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPenDeviceType")] + public static extern PenDeviceType GetPenDeviceType(uint instance_id); + [NativeName("SDL_GetPerformanceCounter")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPerformanceCounter")] public static extern ulong GetPerformanceCounter(); @@ -5658,6 +5800,16 @@ public static extern PixelFormat GetPixelFormatForMasks( uint Amask ); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat" + )] + public static extern PixelFormat GetPixelFormatFromGpuTextureFormat( + GpuTextureFormat format + ); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl( @@ -6390,6 +6542,33 @@ public static Ptr GetRenderTarget(RendererHandle renderer) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderTarget")] public static extern Texture* GetRenderTargetRaw(RendererHandle renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderTextureAddressMode")] + public static extern byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ) + { + fixed (TextureAddressMode* __dsl_v_mode = v_mode) + fixed (TextureAddressMode* __dsl_u_mode = u_mode) + { + return (MaybeBool) + (byte)GetRenderTextureAddressMode(renderer, __dsl_u_mode, __dsl_v_mode); + } + } + [NativeName("SDL_GetRenderViewport")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderViewport")] public static extern byte GetRenderViewport(RendererHandle renderer, Rect* rect); @@ -6442,7 +6621,7 @@ public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref v [NativeName("SDL_GetRGB")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRGB")] public static extern void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -6456,7 +6635,7 @@ public static extern void GetRgb( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -6470,14 +6649,14 @@ Ref b fixed (Palette* __dsl_palette = palette) fixed (PixelFormatDetails* __dsl_format = format) { - GetRgb(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); + GetRgb(pixelvalue, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } [NativeName("SDL_GetRGBA")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRGBA")] public static extern void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -6492,7 +6671,7 @@ public static extern void GetRgba( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -6508,7 +6687,15 @@ Ref a fixed (Palette* __dsl_palette = palette) fixed (PixelFormatDetails* __dsl_format = format) { - GetRgba(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + GetRgba( + pixelvalue, + __dsl_format, + __dsl_palette, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } @@ -6916,6 +7103,10 @@ public static uint GetSurfaceProperties(Ref surface) } } + [NativeName("SDL_GetSystemPageSize")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSystemPageSize")] + public static extern int GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSystemRAM")] public static extern int GetSystemRam(); @@ -7063,6 +7254,23 @@ Ref b } } + [NativeName("SDL_GetTexturePalette")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTexturePalette")] + public static extern Palette* GetTexturePalette(Texture* texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTexturePalette(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (Palette*)GetTexturePalette(__dsl_texture); + } + } + [NativeName("SDL_GetTextureProperties")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTextureProperties")] public static extern uint GetTextureProperties(Texture* texture); @@ -7481,6 +7689,14 @@ public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, } } + [NativeName("SDL_GetWindowProgressState")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowProgressState")] + public static extern ProgressState GetWindowProgressState(WindowHandle window); + + [NativeName("SDL_GetWindowProgressValue")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowProgressValue")] + public static extern float GetWindowProgressValue(WindowHandle window); + [NativeName("SDL_GetWindowProperties")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowProperties")] public static extern uint GetWindowProperties(WindowHandle window); @@ -8371,6 +8587,10 @@ nuint maxlen } } + [NativeName("SDL_hid_get_properties")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_hid_get_properties")] + public static extern uint HidGetProperties(HidDeviceHandle dev); + [NativeName("SDL_hid_get_report_descriptor")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_hid_get_report_descriptor")] public static extern int HidGetReportDescriptor( @@ -9082,6 +9302,64 @@ public static SharedObjectHandle LoadObject(Ref sofile) } } + [NativeName("SDL_LoadPNG")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadPNG")] + public static extern Surface* LoadPng(sbyte* file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadPng(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadPng(__dsl_file); + } + } + + [NativeName("SDL_LoadPNG_IO")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadPNG_IO")] + public static extern Surface* LoadPngIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio) => + (Surface*)LoadPngIO(src, (byte)closeio); + + [NativeName("SDL_LoadSurface")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadSurface")] + public static extern Surface* LoadSurface(sbyte* file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadSurface(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadSurface(__dsl_file); + } + } + + [NativeName("SDL_LoadSurface_IO")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadSurface_IO")] + public static extern Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio) => + (Surface*)LoadSurfaceIO(src, (byte)closeio); + [NativeName("SDL_LoadWAV")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_LoadWAV")] public static extern byte LoadWav( @@ -10234,6 +10512,76 @@ public static MaybeBool PutAudioStreamData(AudioStreamHandle stream, Ref b } } + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + public static extern byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_buf = buf) + { + return (MaybeBool) + (byte)PutAudioStreamDataNoCopy( + stream, + __dsl_buf, + len, + callback, + __dsl_userdata + ); + } + } + + [NativeName("SDL_PutAudioStreamPlanarData")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_PutAudioStreamPlanarData")] + public static extern byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ) + { + fixed (void** __dsl_channel_buffers = channel_buffers) + { + return (MaybeBool) + (byte)PutAudioStreamPlanarData( + stream, + __dsl_channel_buffers, + num_channels, + num_samples + ); + } + } + [NativeName("SDL_qsort")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_qsort")] public static extern void Qsort( @@ -11496,6 +11844,59 @@ Ref dstrect } } + [NativeName("SDL_RenderTexture9GridTiled")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTexture9GridTiled")] + public static extern byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTexture9GridTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect, + tileScale + ); + } + } + [NativeName("SDL_RenderTextureAffine")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RenderTextureAffine")] public static extern byte RenderTextureAffine( @@ -11729,6 +12130,23 @@ public static MaybeBool ResumeHaptic(HapticHandle haptic) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ResumeHaptic")] public static extern byte ResumeHapticRaw(HapticHandle haptic); + [NativeName("SDL_RotateSurface")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RotateSurface")] + public static extern Surface* RotateSurface(Surface* surface, float angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr RotateSurface(Ref surface, float angle) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)RotateSurface(__dsl_surface, angle); + } + } + [NativeName("SDL_round")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_round")] public static extern double Round(double x); @@ -11976,6 +12394,45 @@ MaybeBool closeio } } + [NativeName("SDL_SavePNG")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SavePNG")] + public static extern byte SavePng(Surface* surface, sbyte* file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SavePng(Ref surface, Ref file) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SavePng(__dsl_surface, __dsl_file); + } + } + + [NativeName("SDL_SavePNG_IO")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SavePNG_IO")] + public static extern byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SavePngIO(__dsl_surface, dst, (byte)closeio); + } + } + [NativeName("SDL_scalbn")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_scalbn")] public static extern double Scalbn(double x, int n); @@ -12504,6 +12961,20 @@ public static MaybeBool SetCursor(CursorHandle cursor) => [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetCursor")] public static extern byte SetCursorRaw(CursorHandle cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + public static MaybeBool SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ) => (MaybeBool)(byte)SetDefaultTextureScaleModeRaw(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetDefaultTextureScaleMode")] + public static extern byte SetDefaultTextureScaleModeRaw( + RendererHandle renderer, + ScaleMode scale_mode + ); + [NativeName("SDL_setenv_unsafe")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_setenv_unsafe")] public static extern int SetenvUnsafe(sbyte* name, sbyte* value, int overwrite); @@ -12730,6 +13201,52 @@ Ref text } } + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + public static MaybeBool SetGpuRenderState( + RendererHandle renderer, + GpuRenderStateHandle state + ) => (MaybeBool)(byte)SetGpuRenderStateRaw(renderer, state); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [DllImport( + "SDL3", + ExactSpelling = true, + EntryPoint = "SDL_SetGPURenderStateFragmentUniforms" + )] + public static extern byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool) + (byte)SetGpuRenderStateFragmentUniforms(state, slot_index, __dsl_data, length); + } + } + + [NativeName("SDL_SetGPURenderState")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGPURenderState")] + public static extern byte SetGpuRenderStateRaw( + RendererHandle renderer, + GpuRenderStateHandle state + ); + [NativeName("SDL_SetGPUScissor")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetGPUScissor")] public static extern void SetGpuScissor(GpuRenderPassHandle render_pass, Rect* scissor); @@ -13237,6 +13754,29 @@ public static MaybeBool SetPrimarySelectionText(Ref text) } } + [NativeName("SDL_SetRelativeMouseTransform")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRelativeMouseTransform")] + public static extern byte SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + void* userdata + ); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool)(byte)SetRelativeMouseTransform(callback, __dsl_userdata); + } + } + [NativeName("SDL_SetRenderClipRect")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderClipRect")] public static extern byte SetRenderClipRect(RendererHandle renderer, Rect* rect); @@ -13368,6 +13908,22 @@ public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => (MaybeBool)(byte)SetRenderTextureAddressModeRaw(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderTextureAddressMode")] + public static extern byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ); + [NativeName("SDL_SetRenderViewport")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetRenderViewport")] public static extern byte SetRenderViewport(RendererHandle renderer, Rect* rect); @@ -13704,6 +14260,24 @@ float b } } + [NativeName("SDL_SetTexturePalette")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTexturePalette")] + public static extern byte SetTexturePalette(Texture* texture, Palette* palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTexturePalette(Ref texture, Ref palette) + { + fixed (Palette* __dsl_palette = palette) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTexturePalette(__dsl_texture, __dsl_palette); + } + } + [NativeName("SDL_SetTextureScaleMode")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetTextureScaleMode")] public static extern byte SetTextureScaleMode(Texture* texture, ScaleMode scaleMode); @@ -13785,6 +14359,17 @@ public static MaybeBool SetWindowBordered( MaybeBool bordered ) => (MaybeBool)(byte)SetWindowBordered(window, (byte)bordered); + [NativeName("SDL_SetWindowFillDocument")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowFillDocument")] + public static extern byte SetWindowFillDocument(WindowHandle window, byte fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + public static MaybeBool SetWindowFillDocument( + WindowHandle window, + MaybeBool fill + ) => (MaybeBool)(byte)SetWindowFillDocument(window, (byte)fill); + [NativeName("SDL_SetWindowFocusable")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowFocusable")] public static extern byte SetWindowFocusable(WindowHandle window, byte focusable); @@ -13977,6 +14562,29 @@ public static MaybeBool SetWindowPosition(WindowHandle window, int x, int [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowPosition")] public static extern byte SetWindowPositionRaw(WindowHandle window, int x, int y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + public static MaybeBool SetWindowProgressState( + WindowHandle window, + ProgressState state + ) => (MaybeBool)(byte)SetWindowProgressStateRaw(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowProgressState")] + public static extern byte SetWindowProgressStateRaw( + WindowHandle window, + ProgressState state + ); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + public static MaybeBool SetWindowProgressValue(WindowHandle window, float value) => + (MaybeBool)(byte)SetWindowProgressValueRaw(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowProgressValue")] + public static extern byte SetWindowProgressValueRaw(WindowHandle window, float value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_SetWindowRelativeMouseMode")] public static extern byte SetWindowRelativeMouseMode(WindowHandle window, byte enabled); @@ -16703,6 +17311,20 @@ Ref swapchain_texture_height )] public int AddAtomicInt(Ref a, int v) => T.AddAtomicInt(a, v); + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddAtomicU32(AtomicU32* a, int v) => T.AddAtomicU32(a, v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddAtomicU32(Ref a, int v) => T.AddAtomicU32(a, v); + [NativeName("SDL_AddEventWatch")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( @@ -18434,6 +19056,30 @@ Ref newpath )] public uint Crc32(uint crc, Ref data, nuint len) => T.Crc32(crc, data, len); + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ) => T.CreateAnimatedCursor(frames, frame_count, hot_x, hot_y); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ) => T.CreateAnimatedCursor(frames, frame_count, hot_x, hot_y); + [NativeName("SDL_CreateAudioStream")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] [MethodImpl( @@ -18620,6 +19266,34 @@ public GpuGraphicsPipelineHandle CreateGpuGraphicsPipeline( Ref createinfo ) => T.CreateGpuGraphicsPipeline(device, createinfo); + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public RendererHandle CreateGpuRenderer(GpuDeviceHandle device, WindowHandle window) => + T.CreateGpuRenderer(device, window); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ) => T.CreateGpuRenderState(renderer, createinfo); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ) => T.CreateGpuRenderState(renderer, createinfo); + [NativeName("SDL_CreateGPUSampler")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPUSampler")] [MethodImpl( @@ -19151,6 +19825,14 @@ public MaybeBool DateTimeToTime(Ref dt, Ref ticks) => )] public void DestroyGpuDevice(GpuDeviceHandle device) => T.DestroyGpuDevice(device); + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyGpuRenderState(GpuRenderStateHandle state) => + T.DestroyGpuRenderState(state); + [NativeName("SDL_DestroyHapticEffect")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] [MethodImpl( @@ -20408,7 +21090,7 @@ public MaybeBool GetCameraFormat(CameraHandle camera, Ref spec [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public int GetCameraPermissionState(CameraHandle camera) => + public CameraPermissionState GetCameraPermissionState(CameraHandle camera) => T.GetCameraPermissionState(camera); [NativeName("SDL_GetCameraPosition")] @@ -20740,6 +21422,24 @@ Ref timeFormat )] public LogOutputFunction GetDefaultLogOutputFunction() => T.GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetDefaultTextureScaleMode(RendererHandle renderer, ScaleMode* scale_mode) => + T.GetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ) => T.GetDefaultTextureScaleMode(renderer, scale_mode); + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] [MethodImpl( @@ -20973,6 +21673,22 @@ public Ptr2D GetEnvironmentVariables(EnvironmentHandle env) => )] public sbyte* GetErrorRaw() => T.GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetEventDescription(Event* @event, sbyte* buf, int buflen) => + T.GetEventDescription(@event, buf, buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetEventDescription(Ref @event, Ref buf, int buflen) => + T.GetEventDescription(@event, buf, buflen); + [NativeName("SDL_GetEventFilter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( @@ -21621,6 +22337,14 @@ public Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => public sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device) => T.GetGpuDeviceDriverRaw(device); + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGpuDeviceProperties(GpuDeviceHandle device) => + T.GetGpuDeviceProperties(device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] [MethodImpl( @@ -21635,6 +22359,14 @@ public Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => )] public sbyte* GetGpuDriverRaw(int index) => T.GetGpuDriverRaw(index); + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer) => + T.GetGpuRendererDevice(renderer); + [NativeName("SDL_GetGPUShaderFormats")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUShaderFormats")] [MethodImpl( @@ -21652,6 +22384,14 @@ public GpuTextureFormat GetGpuSwapchainTextureFormat( WindowHandle window ) => T.GetGpuSwapchainTextureFormat(device, window); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GpuTextureFormat GetGpuTextureFormatFromPixelFormat(PixelFormat format) => + T.GetGpuTextureFormatFromPixelFormat(format); + [NativeName("SDL_GetGrabbedWindow")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] [MethodImpl( @@ -22539,6 +23279,13 @@ Ref free_func public MaybeBool GetPathInfo(Ref path, Ref info) => T.GetPathInfo(path, info); + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PenDeviceType GetPenDeviceType(uint instance_id) => T.GetPenDeviceType(instance_id); + [NativeName("SDL_GetPerformanceCounter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] [MethodImpl( @@ -22582,6 +23329,14 @@ public PixelFormat GetPixelFormatForMasks( uint Amask ) => T.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PixelFormat GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format) => + T.GetPixelFormatFromGpuTextureFormat(format); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl( @@ -23220,6 +23975,28 @@ Ref scaleY public Texture* GetRenderTargetRaw(RendererHandle renderer) => T.GetRenderTargetRaw(renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ) => T.GetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ) => T.GetRenderTextureAddressMode(renderer, u_mode, v_mode); + [NativeName("SDL_GetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( @@ -23279,13 +24056,13 @@ public MaybeBool GetRenderVSync(RendererHandle renderer, Ref vsync) = MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b - ) => T.GetRgb(pixel, format, palette, r, g, b); + ) => T.GetRgb(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] @@ -23293,13 +24070,13 @@ public void GetRgb( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, Ref g, Ref b - ) => T.GetRgb(pixel, format, palette, r, g, b); + ) => T.GetRgb(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -23307,14 +24084,14 @@ Ref b MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b, byte* a - ) => T.GetRgba(pixel, format, palette, r, g, b, a); + ) => T.GetRgba(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -23322,14 +24099,14 @@ public void GetRgba( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, Ref g, Ref b, Ref a - ) => T.GetRgba(pixel, format, palette, r, g, b, a); + ) => T.GetRgba(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetSandbox")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] @@ -23727,6 +24504,13 @@ public Ptr2D GetSurfaceImages(Ref surface, Ref count) => )] public uint GetSurfaceProperties(Ref surface) => T.GetSurfaceProperties(surface); + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSystemPageSize() => T.GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] [MethodImpl( @@ -23850,6 +24634,20 @@ public MaybeBool GetTextureColorModFloat( Ref b ) => T.GetTextureColorModFloat(texture, r, g, b); + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Palette* GetTexturePalette(Texture* texture) => T.GetTexturePalette(texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetTexturePalette(Ref texture) => T.GetTexturePalette(texture); + [NativeName("SDL_GetTextureProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] [MethodImpl( @@ -24284,6 +25082,22 @@ public byte GetWindowPosition(WindowHandle window, int* x, int* y) => public MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) => T.GetWindowPosition(window, x, y); + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ProgressState GetWindowProgressState(WindowHandle window) => + T.GetWindowProgressState(window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetWindowProgressValue(WindowHandle window) => + T.GetWindowProgressValue(window); + [NativeName("SDL_GetWindowProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] [MethodImpl( @@ -25332,6 +26146,13 @@ public int HidGetProductString(HidDeviceHandle dev, ushort* @string, nuint maxle public int HidGetProductString(HidDeviceHandle dev, Ref @string, nuint maxlen) => T.HidGetProductString(dev, @string, maxlen); + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint HidGetProperties(HidDeviceHandle dev) => T.HidGetProperties(dev); + [NativeName("SDL_hid_get_report_descriptor")] [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] [MethodImpl( @@ -26118,6 +26939,65 @@ public FunctionPointer LoadFunction(SharedObjectHandle handle, Ref name) )] public SharedObjectHandle LoadObject(Ref sofile) => T.LoadObject(sofile); + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadPng(sbyte* file) => T.LoadPng(file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadPng(Ref file) => T.LoadPng(file); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadPngIO(IOStreamHandle src, byte closeio) => T.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio) => + T.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadSurface(sbyte* file) => T.LoadSurface(file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadSurface(Ref file) => T.LoadSurface(file); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio) => + T.LoadSurfaceIO(src, closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio) => + T.LoadSurfaceIO(src, closeio); + [NativeName("SDL_LoadWAV")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( @@ -27238,6 +28118,56 @@ public byte PutAudioStreamData(AudioStreamHandle stream, void* buf, int len) => public MaybeBool PutAudioStreamData(AudioStreamHandle stream, Ref buf, int len) => T.PutAudioStreamData(stream, buf, len); + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ) => T.PutAudioStreamDataNoCopy(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ) => T.PutAudioStreamDataNoCopy(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ) => T.PutAudioStreamPlanarData(stream, channel_buffers, num_channels, num_samples); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ) => T.PutAudioStreamPlanarData(stream, channel_buffers, num_channels, num_samples); + [NativeName("SDL_qsort")] [NativeFunction("SDL3", EntryPoint = "SDL_qsort")] [MethodImpl( @@ -28437,6 +29367,66 @@ Ref dstrect dstrect ); + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ) => + T.RenderTexture9GridTiled( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ) => + T.RenderTexture9GridTiled( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + [NativeName("SDL_RenderTextureAffine")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] [MethodImpl( @@ -28657,6 +29647,22 @@ public byte ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => )] public byte ResumeHapticRaw(HapticHandle haptic) => T.ResumeHapticRaw(haptic); + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* RotateSurface(Surface* surface, float angle) => + T.RotateSurface(surface, angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr RotateSurface(Ref surface, float angle) => + T.RotateSurface(surface, angle); + [NativeName("SDL_round")] [NativeFunction("SDL3", EntryPoint = "SDL_round")] [MethodImpl( @@ -28892,6 +29898,40 @@ public MaybeBool SaveFileIO( MaybeBool closeio ) => T.SaveFileIO(src, data, datasize, closeio); + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SavePng(Surface* surface, sbyte* file) => T.SavePng(surface, file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SavePng(Ref surface, Ref file) => + T.SavePng(surface, file); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio) => + T.SavePngIO(surface, dst, closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ) => T.SavePngIO(surface, dst, closeio); + [NativeName("SDL_scalbn")] [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] [MethodImpl( @@ -29389,6 +30429,24 @@ public byte SetCurrentThreadPriorityRaw(ThreadPriority priority) => )] public byte SetCursorRaw(CursorHandle cursor) => T.SetCursorRaw(cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ) => T.SetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetDefaultTextureScaleModeRaw(RendererHandle renderer, ScaleMode scale_mode) => + T.SetDefaultTextureScaleModeRaw(renderer, scale_mode); + [NativeName("SDL_setenv_unsafe")] [NativeFunction("SDL3", EntryPoint = "SDL_setenv_unsafe")] [MethodImpl( @@ -29623,6 +30681,48 @@ public void SetGpuBufferName( Ref text ) => T.SetGpuBufferName(device, buffer, text); + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetGpuRenderState( + RendererHandle renderer, + GpuRenderStateHandle state + ) => T.SetGpuRenderState(renderer, state); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ) => T.SetGpuRenderStateFragmentUniforms(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ) => T.SetGpuRenderStateFragmentUniforms(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetGpuRenderStateRaw(RendererHandle renderer, GpuRenderStateHandle state) => + T.SetGpuRenderStateRaw(renderer, state); + [NativeName("SDL_SetGPUScissor")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUScissor")] [MethodImpl( @@ -30134,6 +31234,26 @@ Ref userdata public MaybeBool SetPrimarySelectionText(Ref text) => T.SetPrimarySelectionText(text); + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + void* userdata + ) => T.SetRelativeMouseTransform(callback, userdata); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ) => T.SetRelativeMouseTransform(callback, userdata); + [NativeName("SDL_SetRenderClipRect")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( @@ -30295,6 +31415,28 @@ public byte SetRenderTarget(RendererHandle renderer, Texture* texture) => public MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) => T.SetRenderTarget(renderer, texture); + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => T.SetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => T.SetRenderTextureAddressModeRaw(renderer, u_mode, v_mode); + [NativeName("SDL_SetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( @@ -30590,6 +31732,22 @@ public MaybeBool SetTextureColorModFloat( float b ) => T.SetTextureColorModFloat(texture, r, g, b); + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetTexturePalette(Texture* texture, Palette* palette) => + T.SetTexturePalette(texture, palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetTexturePalette(Ref texture, Ref palette) => + T.SetTexturePalette(texture, palette); + [NativeName("SDL_SetTextureScaleMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( @@ -30679,6 +31837,22 @@ public byte SetWindowBordered(WindowHandle window, byte bordered) => public MaybeBool SetWindowBordered(WindowHandle window, MaybeBool bordered) => T.SetWindowBordered(window, bordered); + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowFillDocument(WindowHandle window, byte fill) => + T.SetWindowFillDocument(window, fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowFillDocument(WindowHandle window, MaybeBool fill) => + T.SetWindowFillDocument(window, fill); + [NativeName("SDL_SetWindowFocusable")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( @@ -30912,6 +32086,38 @@ public MaybeBool SetWindowPosition(WindowHandle window, int x, int y) => public byte SetWindowPositionRaw(WindowHandle window, int x, int y) => T.SetWindowPositionRaw(window, x, y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowProgressState(WindowHandle window, ProgressState state) => + T.SetWindowProgressState(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowProgressStateRaw(WindowHandle window, ProgressState state) => + T.SetWindowProgressStateRaw(window, state); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetWindowProgressValue(WindowHandle window, float value) => + T.SetWindowProgressValue(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte SetWindowProgressValueRaw(WindowHandle window, float value) => + T.SetWindowProgressValueRaw(window, value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] [MethodImpl( @@ -33643,6 +34849,27 @@ public static int AddAtomicInt(Ref a, int v) } } + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddAtomicU32(AtomicU32* a, int v) => + Underlying.Value!.AddAtomicU32(a, v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddAtomicU32(Ref a, int v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)AddAtomicU32(__dsl_a, v); + } + } + [NativeName("SDL_AddEventWatch")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl( @@ -35933,6 +37160,36 @@ public static uint Crc32(uint crc, Ref data, nuint len) } } + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ) => Underlying.Value!.CreateAnimatedCursor(frames, frame_count, hot_x, hot_y); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ) + { + fixed (CursorFrameInfo* __dsl_frames = frames) + { + return (CursorHandle)CreateAnimatedCursor(__dsl_frames, frame_count, hot_x, hot_y); + } + } + [NativeName("SDL_CreateAudioStream")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] [MethodImpl( @@ -36176,6 +37433,42 @@ Ref createinfo } } + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static RendererHandle CreateGpuRenderer( + GpuDeviceHandle device, + WindowHandle window + ) => Underlying.Value!.CreateGpuRenderer(device, window); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ) => Underlying.Value!.CreateGpuRenderState(renderer, createinfo); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ) + { + fixed (GpuRenderStateCreateInfo* __dsl_createinfo = createinfo) + { + return (GpuRenderStateHandle)CreateGpuRenderState(renderer, __dsl_createinfo); + } + } + [NativeName("SDL_CreateGPUSampler")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPUSampler")] [MethodImpl( @@ -36842,6 +38135,14 @@ public static void DestroyEnvironment(EnvironmentHandle env) => public static void DestroyGpuDevice(GpuDeviceHandle device) => Underlying.Value!.DestroyGpuDevice(device); + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyGpuRenderState(GpuRenderStateHandle state) => + Underlying.Value!.DestroyGpuRenderState(state); + [NativeName("SDL_DestroyHapticEffect")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] [MethodImpl( @@ -38375,7 +39676,7 @@ public static Ptr GetCameraName(uint instance_id) => [MethodImpl( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] - public static int GetCameraPermissionState(CameraHandle camera) => + public static CameraPermissionState GetCameraPermissionState(CameraHandle camera) => Underlying.Value!.GetCameraPermissionState(camera); [NativeName("SDL_GetCameraPosition")] @@ -38771,6 +40072,33 @@ public static AssertionHandler GetDefaultAssertionHandler() => public static LogOutputFunction GetDefaultLogOutputFunction() => Underlying.Value!.GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode* scale_mode + ) => Underlying.Value!.GetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + { + return (MaybeBool) + (byte)GetDefaultTextureScaleMode(renderer, __dsl_scale_mode); + } + } + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] [MethodImpl( @@ -39064,6 +40392,28 @@ public static Ptr2D GetEnvironmentVariables(EnvironmentHandle env) => )] public static sbyte* GetErrorRaw() => Underlying.Value!.GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetEventDescription(Event* @event, sbyte* buf, int buflen) => + Underlying.Value!.GetEventDescription(@event, buf, buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetEventDescription(Ref @event, Ref buf, int buflen) + { + fixed (sbyte* __dsl_buf = buf) + fixed (Event* __dsl_event = @event) + { + return (int)GetEventDescription(__dsl_event, __dsl_buf, buflen); + } + } + [NativeName("SDL_GetEventFilter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl( @@ -39832,6 +41182,14 @@ public static Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => public static sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device) => Underlying.Value!.GetGpuDeviceDriverRaw(device); + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGpuDeviceProperties(GpuDeviceHandle device) => + Underlying.Value!.GetGpuDeviceProperties(device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] [MethodImpl( @@ -39846,6 +41204,14 @@ public static Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => )] public static sbyte* GetGpuDriverRaw(int index) => Underlying.Value!.GetGpuDriverRaw(index); + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer) => + Underlying.Value!.GetGpuRendererDevice(renderer); + [NativeName("SDL_GetGPUShaderFormats")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUShaderFormats")] [MethodImpl( @@ -39864,6 +41230,14 @@ public static GpuTextureFormat GetGpuSwapchainTextureFormat( WindowHandle window ) => Underlying.Value!.GetGpuSwapchainTextureFormat(device, window); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GpuTextureFormat GetGpuTextureFormatFromPixelFormat(PixelFormat format) => + Underlying.Value!.GetGpuTextureFormatFromPixelFormat(format); + [NativeName("SDL_GetGrabbedWindow")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] [MethodImpl( @@ -40936,6 +42310,14 @@ public static MaybeBool GetPathInfo(Ref path, Ref info) } } + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PenDeviceType GetPenDeviceType(uint instance_id) => + Underlying.Value!.GetPenDeviceType(instance_id); + [NativeName("SDL_GetPerformanceCounter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] [MethodImpl( @@ -40980,6 +42362,14 @@ public static PixelFormat GetPixelFormatForMasks( uint Amask ) => Underlying.Value!.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PixelFormat GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format) => + Underlying.Value!.GetPixelFormatFromGpuTextureFormat(format); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl( @@ -41851,6 +43241,36 @@ public static Ptr GetRenderTarget(RendererHandle renderer) => public static Texture* GetRenderTargetRaw(RendererHandle renderer) => Underlying.Value!.GetRenderTargetRaw(renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ) => Underlying.Value!.GetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ) + { + fixed (TextureAddressMode* __dsl_v_mode = v_mode) + fixed (TextureAddressMode* __dsl_u_mode = u_mode) + { + return (MaybeBool) + (byte)GetRenderTextureAddressMode(renderer, __dsl_u_mode, __dsl_v_mode); + } + } + [NativeName("SDL_GetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl( @@ -41921,13 +43341,13 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b - ) => Underlying.Value!.GetRgb(pixel, format, palette, r, g, b); + ) => Underlying.Value!.GetRgb(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] @@ -41935,7 +43355,7 @@ public static void GetRgb( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -41949,7 +43369,7 @@ Ref b fixed (Palette* __dsl_palette = palette) fixed (PixelFormatDetails* __dsl_format = format) { - GetRgb(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); + GetRgb(pixelvalue, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } @@ -41959,14 +43379,14 @@ Ref b MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b, byte* a - ) => Underlying.Value!.GetRgba(pixel, format, palette, r, g, b, a); + ) => Underlying.Value!.GetRgba(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] @@ -41974,7 +43394,7 @@ public static void GetRgba( MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization )] public static void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -41990,7 +43410,15 @@ Ref a fixed (Palette* __dsl_palette = palette) fixed (PixelFormatDetails* __dsl_format = format) { - GetRgba(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + GetRgba( + pixelvalue, + __dsl_format, + __dsl_palette, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); } } @@ -42507,6 +43935,13 @@ public static uint GetSurfaceProperties(Ref surface) } } + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSystemPageSize() => Underlying.Value!.GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] [MethodImpl( @@ -42683,6 +44118,27 @@ Ref b } } + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Palette* GetTexturePalette(Texture* texture) => + Underlying.Value!.GetTexturePalette(texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTexturePalette(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (Palette*)GetTexturePalette(__dsl_texture); + } + } + [NativeName("SDL_GetTextureProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] [MethodImpl( @@ -43243,6 +44699,22 @@ public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, } } + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ProgressState GetWindowProgressState(WindowHandle window) => + Underlying.Value!.GetWindowProgressState(window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowProgressValue(WindowHandle window) => + Underlying.Value!.GetWindowProgressValue(window); + [NativeName("SDL_GetWindowProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] [MethodImpl( @@ -44480,6 +45952,14 @@ nuint maxlen } } + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint HidGetProperties(HidDeviceHandle dev) => + Underlying.Value!.HidGetProperties(dev); + [NativeName("SDL_hid_get_report_descriptor")] [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] [MethodImpl( @@ -45446,6 +46926,78 @@ public static SharedObjectHandle LoadObject(Ref sofile) } } + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadPng(sbyte* file) => Underlying.Value!.LoadPng(file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadPng(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadPng(__dsl_file); + } + } + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadPngIO(IOStreamHandle src, byte closeio) => + Underlying.Value!.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio) => + Underlying.Value!.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadSurface(sbyte* file) => Underlying.Value!.LoadSurface(file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadSurface(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadSurface(__dsl_file); + } + } + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio) => + Underlying.Value!.LoadSurfaceIO(src, closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio) => + Underlying.Value!.LoadSurfaceIO(src, closeio); + [NativeName("SDL_LoadWAV")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl( @@ -46880,6 +48432,88 @@ public static MaybeBool PutAudioStreamData(AudioStreamHandle stream, Ref b } } + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ) => Underlying.Value!.PutAudioStreamDataNoCopy(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_buf = buf) + { + return (MaybeBool) + (byte)PutAudioStreamDataNoCopy( + stream, + __dsl_buf, + len, + callback, + __dsl_userdata + ); + } + } + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ) => + Underlying.Value!.PutAudioStreamPlanarData( + stream, + channel_buffers, + num_channels, + num_samples + ); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ) + { + fixed (void** __dsl_channel_buffers = channel_buffers) + { + return (MaybeBool) + (byte)PutAudioStreamPlanarData( + stream, + __dsl_channel_buffers, + num_channels, + num_samples + ); + } + } + [NativeName("SDL_qsort")] [NativeFunction("SDL3", EntryPoint = "SDL_qsort")] [MethodImpl( @@ -48438,6 +50072,74 @@ Ref dstrect } } + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ) => + Underlying.Value!.RenderTexture9GridTiled( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)RenderTexture9GridTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect, + tileScale + ); + } + } + [NativeName("SDL_RenderTextureAffine")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] [MethodImpl( @@ -48742,6 +50444,27 @@ public static MaybeBool ResumeHaptic(HapticHandle haptic) => public static byte ResumeHapticRaw(HapticHandle haptic) => Underlying.Value!.ResumeHapticRaw(haptic); + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* RotateSurface(Surface* surface, float angle) => + Underlying.Value!.RotateSurface(surface, angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr RotateSurface(Ref surface, float angle) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)RotateSurface(__dsl_surface, angle); + } + } + [NativeName("SDL_round")] [NativeFunction("SDL3", EntryPoint = "SDL_round")] [MethodImpl( @@ -49069,6 +50792,53 @@ MaybeBool closeio } } + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SavePng(Surface* surface, sbyte* file) => + Underlying.Value!.SavePng(surface, file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SavePng(Ref surface, Ref file) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SavePng(__dsl_surface, __dsl_file); + } + } + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio) => + Underlying.Value!.SavePngIO(surface, dst, closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)SavePngIO(__dsl_surface, dst, (byte)closeio); + } + } + [NativeName("SDL_scalbn")] [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] [MethodImpl( @@ -49731,6 +51501,26 @@ public static MaybeBool SetCursor(CursorHandle cursor) => public static byte SetCursorRaw(CursorHandle cursor) => Underlying.Value!.SetCursorRaw(cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ) => Underlying.Value!.SetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetDefaultTextureScaleModeRaw( + RendererHandle renderer, + ScaleMode scale_mode + ) => Underlying.Value!.SetDefaultTextureScaleModeRaw(renderer, scale_mode); + [NativeName("SDL_setenv_unsafe")] [NativeFunction("SDL3", EntryPoint = "SDL_setenv_unsafe")] [MethodImpl( @@ -50023,6 +51813,57 @@ Ref text } } + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetGpuRenderState( + RendererHandle renderer, + GpuRenderStateHandle state + ) => Underlying.Value!.SetGpuRenderState(renderer, state); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ) => Underlying.Value!.SetGpuRenderStateFragmentUniforms(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool) + (byte)SetGpuRenderStateFragmentUniforms(state, slot_index, __dsl_data, length); + } + } + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetGpuRenderStateRaw( + RendererHandle renderer, + GpuRenderStateHandle state + ) => Underlying.Value!.SetGpuRenderStateRaw(renderer, state); + [NativeName("SDL_SetGPUScissor")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUScissor")] [MethodImpl( @@ -50677,6 +52518,32 @@ public static MaybeBool SetPrimarySelectionText(Ref text) } } + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + void* userdata + ) => Underlying.Value!.SetRelativeMouseTransform(callback, userdata); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool)(byte)SetRelativeMouseTransform(callback, __dsl_userdata); + } + } + [NativeName("SDL_SetRenderClipRect")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl( @@ -50850,6 +52717,28 @@ public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => Underlying.Value!.SetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => Underlying.Value!.SetRenderTextureAddressModeRaw(renderer, u_mode, v_mode); + [NativeName("SDL_SetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl( @@ -51256,6 +53145,28 @@ float b } } + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetTexturePalette(Texture* texture, Palette* palette) => + Underlying.Value!.SetTexturePalette(texture, palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetTexturePalette(Ref texture, Ref palette) + { + fixed (Palette* __dsl_palette = palette) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool)(byte)SetTexturePalette(__dsl_texture, __dsl_palette); + } + } + [NativeName("SDL_SetTextureScaleMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl( @@ -51361,6 +53272,24 @@ public static MaybeBool SetWindowBordered( MaybeBool bordered ) => Underlying.Value!.SetWindowBordered(window, bordered); + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowFillDocument(WindowHandle window, byte fill) => + Underlying.Value!.SetWindowFillDocument(window, fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowFillDocument( + WindowHandle window, + MaybeBool fill + ) => Underlying.Value!.SetWindowFillDocument(window, fill); + [NativeName("SDL_SetWindowFocusable")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl( @@ -51630,6 +53559,40 @@ public static MaybeBool SetWindowPosition(WindowHandle window, int x, int public static byte SetWindowPositionRaw(WindowHandle window, int x, int y) => Underlying.Value!.SetWindowPositionRaw(window, x, y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowProgressState( + WindowHandle window, + ProgressState state + ) => Underlying.Value!.SetWindowProgressState(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowProgressStateRaw(WindowHandle window, ProgressState state) => + Underlying.Value!.SetWindowProgressStateRaw(window, state); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetWindowProgressValue(WindowHandle window, float value) => + Underlying.Value!.SetWindowProgressValue(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte SetWindowProgressValueRaw(WindowHandle window, float value) => + Underlying.Value!.SetWindowProgressValueRaw(window, value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] [MethodImpl( @@ -55160,6 +57123,12 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_ASSERT_LEVEL")] public const int AssertLevel = 1; + [NativeName("SDL_ASSERT_FILE")] + public static Utf8String AssertFile => "sdl-SDL.h"u8; + + [NativeName("SDL_PROP_NAME_STRING")] + public static Utf8String PropNameString => "SDL.name"u8; + [NativeName("SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER")] public static Utf8String PropThreadCreateEntryFunctionPointer => "SDL.thread.create.entry_function"u8; @@ -55191,6 +57160,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_IOSTREAM_MEMORY_SIZE_NUMBER")] public static Utf8String PropIostreamMemorySizeNumber => "SDL.iostream.memory.size"u8; + [NativeName("SDL_PROP_IOSTREAM_MEMORY_FREE_FUNC_POINTER")] + public static Utf8String PropIostreamMemoryFreeFuncPointer => "SDL.iostream.memory.free"u8; + [NativeName("SDL_PROP_IOSTREAM_DYNAMIC_MEMORY_POINTER")] public static Utf8String PropIostreamDynamicMemoryPointer => "SDL.iostream.dynamic.memory"u8; @@ -55216,6 +57188,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_AUDIO_DEVICE_DEFAULT_RECORDING")] public const uint AudioDeviceDefaultRecording = ((uint)(0xFFFFFFFEU)); + [NativeName("SDL_PROP_AUDIOSTREAM_AUTO_CLEANUP_BOOLEAN")] + public static Utf8String PropAudiostreamAutoCleanupBoolean => "SDL.audiostream.auto_cleanup"u8; + [NativeName("SDL_ALPHA_OPAQUE")] public const int AlphaOpaque = 255; @@ -55249,6 +57224,15 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING")] public static Utf8String PropSurfaceTonemapOperatorString => "SDL.surface.tonemap"u8; + [NativeName("SDL_PROP_SURFACE_HOTSPOT_X_NUMBER")] + public static Utf8String PropSurfaceHotspotXNumber => "SDL.surface.hotspot.x"u8; + + [NativeName("SDL_PROP_SURFACE_HOTSPOT_Y_NUMBER")] + public static Utf8String PropSurfaceHotspotYNumber => "SDL.surface.hotspot.y"u8; + + [NativeName("SDL_PROP_SURFACE_ROTATION_FLOAT")] + public static Utf8String PropSurfaceRotationFloat => "SDL.surface.rotation"u8; + [NativeName("SDL_CACHELINE_SIZE")] public const int CachelineSize = 128; @@ -55319,6 +57303,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_WINDOW_KEYBOARD_GRABBED")] public const ulong WindowKeyboardGrabbed = (0x0000000000100000UL); + [NativeName("SDL_WINDOW_FILL_DOCUMENT")] + public const ulong WindowFillDocument = (0x0000000000200000UL); + [NativeName("SDL_WINDOW_VULKAN")] public const ulong WindowVulkan = (0x0000000010000000UL); @@ -55383,6 +57370,12 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropDisplayKmsdrmPanelOrientationNumber => "SDL.display.KMSDRM.panel_orientation"u8; + [NativeName("SDL_PROP_DISPLAY_WAYLAND_WL_OUTPUT_POINTER")] + public static Utf8String PropDisplayWaylandWlOutputPointer => "SDL.display.wayland.wl_output"u8; + + [NativeName("SDL_PROP_DISPLAY_WINDOWS_HMONITOR_POINTER")] + public static Utf8String PropDisplayWindowsHmonitorPointer => "SDL.display.windows.hmonitor"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN")] public static Utf8String PropWindowCreateAlwaysOnTopBoolean => "SDL.window.create.always_on_top"u8; @@ -55390,6 +57383,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN")] public static Utf8String PropWindowCreateBorderlessBoolean => "SDL.window.create.borderless"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_CONSTRAIN_POPUP_BOOLEAN")] + public static Utf8String PropWindowCreateConstrainPopupBoolean => + "SDL.window.create.constrain_popup"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN")] public static Utf8String PropWindowCreateFocusableBoolean => "SDL.window.create.focusable"u8; @@ -55473,6 +57470,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER")] public static Utf8String PropWindowCreateCocoaViewPointer => "SDL.window.create.cocoa.view"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_WINDOWSCENE_POINTER")] + public static Utf8String PropWindowCreateWindowscenePointer => + "SDL.window.create.uikit.windowscene"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_WAYLAND_SURFACE_ROLE_CUSTOM_BOOLEAN")] public static Utf8String PropWindowCreateWaylandSurfaceRoleCustomBoolean => "SDL.window.create.wayland.surface_role_custom"u8; @@ -55495,6 +57496,14 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER")] public static Utf8String PropWindowCreateX11WindowNumber => "SDL.window.create.x11.window"u8; + [NativeName("SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID_STRING")] + public static Utf8String PropWindowCreateEmscriptenCanvasIdString => + "SDL.window.create.emscripten.canvas_id"u8; + + [NativeName("SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING")] + public static Utf8String PropWindowCreateEmscriptenKeyboardElementString => + "SDL.window.create.emscripten.keyboard_element"u8; + [NativeName("SDL_PROP_WINDOW_SHAPE_POINTER")] public static Utf8String PropWindowShapePointer => "SDL.window.shape"u8; @@ -55548,8 +57557,8 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropWindowCocoaMetalViewTagNumber => "SDL.window.cocoa.metal_view_tag"u8; - [NativeName("SDL_PROP_WINDOW_OPENVR_OVERLAY_ID")] - public static Utf8String PropWindowOpenvrOverlayId => "SDL.window.openvr.overlay_id"u8; + [NativeName("SDL_PROP_WINDOW_OPENVR_OVERLAY_ID_NUMBER")] + public static Utf8String PropWindowOpenvrOverlayIdNumber => "SDL.window.openvr.overlay_id"u8; [NativeName("SDL_PROP_WINDOW_VIVANTE_DISPLAY_POINTER")] public static Utf8String PropWindowVivanteDisplayPointer => "SDL.window.vivante.display"u8; @@ -55609,6 +57618,14 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_WINDOW_X11_WINDOW_NUMBER")] public static Utf8String PropWindowX11WindowNumber => "SDL.window.x11.window"u8; + [NativeName("SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID_STRING")] + public static Utf8String PropWindowEmscriptenCanvasIdString => + "SDL.window.emscripten.canvas_id"u8; + + [NativeName("SDL_PROP_WINDOW_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING")] + public static Utf8String PropWindowEmscriptenKeyboardElementString => + "SDL.window.emscripten.keyboard_element"u8; + [NativeName("SDL_WINDOW_SURFACE_VSYNC_DISABLED")] public const int WindowSurfaceVsyncDisabled = 0; @@ -56614,6 +58631,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PEN_INPUT_ERASER_TIP")] public const uint PenInputEraserTip = (1U << 30); + [NativeName("SDL_PEN_INPUT_IN_PROXIMITY")] + public const uint PenInputInProximity = (1U << 31); + [NativeName("SDL_GLOB_CASEINSENSITIVE")] public const uint GlobCaseinsensitive = (1U << 0); @@ -56697,9 +58717,28 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropGpuDeviceCreatePreferlowpowerBoolean => "SDL.gpu.device.create.preferlowpower"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_VERBOSE_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateVerboseBoolean => "SDL.gpu.device.create.verbose"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_NAME_STRING")] public static Utf8String PropGpuDeviceCreateNameString => "SDL.gpu.device.create.name"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_FEATURE_CLIP_DISTANCE_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateFeatureClipDistanceBoolean => + "SDL.gpu.device.create.feature.clip_distance"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_FEATURE_DEPTH_CLAMPING_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateFeatureDepthClampingBoolean => + "SDL.gpu.device.create.feature.depth_clamping"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_FEATURE_INDIRECT_DRAW_FIRST_INSTANCE_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateFeatureIndirectDrawFirstInstanceBoolean => + "SDL.gpu.device.create.feature.indirect_draw_first_instance"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateFeatureAnisotropyBoolean => + "SDL.gpu.device.create.feature.anisotropy"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_SHADERS_PRIVATE_BOOLEAN")] public static Utf8String PropGpuDeviceCreateShadersPrivateBoolean => "SDL.gpu.device.create.shaders.private"u8; @@ -56724,10 +58763,46 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropGpuDeviceCreateShadersMetallibBoolean => "SDL.gpu.device.create.shaders.metallib"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_D3D12_ALLOW_FEWER_RESOURCE_SLOTS_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateD3D12AllowFewerResourceSlotsBoolean => + "SDL.gpu.device.create.d3d12.allowtier1resourcebinding"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_D3D12_SEMANTIC_NAME_STRING")] public static Utf8String PropGpuDeviceCreateD3D12SemanticNameString => "SDL.gpu.device.create.d3d12.semantic"u8; + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_D3D12_AGILITY_SDK_VERSION_NUMBER")] + public static Utf8String PropGpuDeviceCreateD3D12AgilitySdkVersionNumber => + "SDL.gpu.device.create.d3d12.agility_sdk_version"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_D3D12_AGILITY_SDK_PATH_STRING")] + public static Utf8String PropGpuDeviceCreateD3D12AgilitySdkPathString => + "SDL.gpu.device.create.d3d12.agility_sdk_path"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateVulkanRequireHardwareAccelerationBoolean => + "SDL.gpu.device.create.vulkan.requirehardwareacceleration"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_VULKAN_OPTIONS_POINTER")] + public static Utf8String PropGpuDeviceCreateVulkanOptionsPointer => + "SDL.gpu.device.create.vulkan.options"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN")] + public static Utf8String PropGpuDeviceCreateMetalAllowMacfamily1Boolean => + "SDL.gpu.device.create.metal.allowmacfamily1"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_NAME_STRING")] + public static Utf8String PropGpuDeviceNameString => "SDL.gpu.device.name"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_DRIVER_NAME_STRING")] + public static Utf8String PropGpuDeviceDriverNameString => "SDL.gpu.device.driver_name"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_DRIVER_VERSION_STRING")] + public static Utf8String PropGpuDeviceDriverVersionString => "SDL.gpu.device.driver_version"u8; + + [NativeName("SDL_PROP_GPU_DEVICE_DRIVER_INFO_STRING")] + public static Utf8String PropGpuDeviceDriverInfoString => "SDL.gpu.device.driver_info"u8; + [NativeName("SDL_PROP_GPU_COMPUTEPIPELINE_CREATE_NAME_STRING")] public static Utf8String PropGpuComputepipelineCreateNameString => "SDL.gpu.computepipeline.create.name"u8; @@ -56762,8 +58837,8 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropGpuTextureCreateD3D12ClearDepthFloat => "SDL.gpu.texture.create.d3d12.clear.depth"u8; - [NativeName("SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_STENCIL_UINT8")] - public static Utf8String PropGpuTextureCreateD3D12ClearStencilUint8 => + [NativeName("SDL_PROP_GPU_TEXTURE_CREATE_D3D12_CLEAR_STENCIL_NUMBER")] + public static Utf8String PropGpuTextureCreateD3D12ClearStencilNumber => "SDL.gpu.texture.create.d3d12.clear.stencil"u8; [NativeName("SDL_PROP_GPU_TEXTURE_CREATE_NAME_STRING")] @@ -56776,6 +58851,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropGpuTransferbufferCreateNameString => "SDL.gpu.transferbuffer.create.name"u8; + [NativeName("SDL_HAPTIC_INFINITY")] + public const uint HapticInfinity = 4294967295U; + [NativeName("SDL_HAPTIC_CONSTANT")] public const uint HapticConstant = (1U << 0); @@ -56848,8 +58926,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HAPTIC_STEERING_AXIS")] public const int HapticSteeringAxis = 3; - [NativeName("SDL_HAPTIC_INFINITY")] - public const uint HapticInfinity = 4294967295U; + [NativeName("SDL_PROP_HIDAPI_LIBUSB_DEVICE_HANDLE_POINTER")] + public static Utf8String PropHidapiLibusbDeviceHandlePointer => + "SDL.hidapi.libusb.device.handle"u8; [NativeName("SDL_HINT_ALLOW_ALT_TAB_WHILE_GRABBED")] public static Utf8String HintAllowAltTabWhileGrabbed => "SDL_ALLOW_ALT_TAB_WHILE_GRABBED"u8; @@ -56909,6 +58988,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_AUDIO_DEVICE_STREAM_ROLE")] public static Utf8String HintAudioDeviceStreamRole => "SDL_AUDIO_DEVICE_STREAM_ROLE"u8; + [NativeName("SDL_HINT_AUDIO_DEVICE_RAW_STREAM")] + public static Utf8String HintAudioDeviceRawStream => "SDL_AUDIO_DEVICE_RAW_STREAM"u8; + [NativeName("SDL_HINT_AUDIO_DISK_INPUT_FILE")] public static Utf8String HintAudioDiskInputFile => "SDL_AUDIO_DISK_INPUT_FILE"u8; @@ -56957,6 +59039,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_DISPLAY_USABLE_BOUNDS")] public static Utf8String HintDisplayUsableBounds => "SDL_DISPLAY_USABLE_BOUNDS"u8; + [NativeName("SDL_HINT_INVALID_PARAM_CHECKS")] + public static Utf8String HintInvalidParamChecks => "SDL_INVALID_PARAM_CHECKS"u8; + [NativeName("SDL_HINT_EMSCRIPTEN_ASYNCIFY")] public static Utf8String HintEmscriptenAsyncify => "SDL_EMSCRIPTEN_ASYNCIFY"u8; @@ -57019,6 +59104,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_HIDAPI_LIBUSB")] public static Utf8String HintHidapiLibusb => "SDL_HIDAPI_LIBUSB"u8; + [NativeName("SDL_HINT_HIDAPI_LIBUSB_GAMECUBE")] + public static Utf8String HintHidapiLibusbGamecube => "SDL_HIDAPI_LIBUSB_GAMECUBE"u8; + [NativeName("SDL_HINT_HIDAPI_LIBUSB_WHITELIST")] public static Utf8String HintHidapiLibusbWhitelist => "SDL_HIDAPI_LIBUSB_WHITELIST"u8; @@ -57075,6 +59163,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_JOYSTICK_GAMEINPUT")] public static Utf8String HintJoystickGameinput => "SDL_JOYSTICK_GAMEINPUT"u8; + [NativeName("SDL_HINT_JOYSTICK_GAMEINPUT_RAW")] + public static Utf8String HintJoystickGameinputRaw => "SDL_JOYSTICK_GAMEINPUT_RAW"u8; + [NativeName("SDL_HINT_JOYSTICK_GAMECUBE_DEVICES")] public static Utf8String HintJoystickGamecubeDevices => "SDL_JOYSTICK_GAMECUBE_DEVICES"u8; @@ -57150,6 +59241,21 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_JOYSTICK_HIDAPI_STEAM_HORI")] public static Utf8String HintJoystickHidapiSteamHori => "SDL_JOYSTICK_HIDAPI_STEAM_HORI"u8; + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_LG4FF")] + public static Utf8String HintJoystickHidapiLg4Ff => "SDL_JOYSTICK_HIDAPI_LG4FF"u8; + + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_8BITDO")] + public static Utf8String HintJoystickHidapi8Bitdo => "SDL_JOYSTICK_HIDAPI_8BITDO"u8; + + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_SINPUT")] + public static Utf8String HintJoystickHidapiSinput => "SDL_JOYSTICK_HIDAPI_SINPUT"u8; + + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_ZUIKI")] + public static Utf8String HintJoystickHidapiZuiki => "SDL_JOYSTICK_HIDAPI_ZUIKI"u8; + + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_FLYDIGI")] + public static Utf8String HintJoystickHidapiFlydigi => "SDL_JOYSTICK_HIDAPI_FLYDIGI"u8; + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_SWITCH")] public static Utf8String HintJoystickHidapiSwitch => "SDL_JOYSTICK_HIDAPI_SWITCH"u8; @@ -57161,6 +59267,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String HintJoystickHidapiSwitchPlayerLed => "SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED"u8; + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_SWITCH2")] + public static Utf8String HintJoystickHidapiSwitch2 => "SDL_JOYSTICK_HIDAPI_SWITCH2"u8; + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS")] public static Utf8String HintJoystickHidapiVerticalJoyCons => "SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS"u8; @@ -57193,6 +59302,13 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String HintJoystickHidapiXboxOneHomeLed => "SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED"u8; + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_GIP")] + public static Utf8String HintJoystickHidapiGip => "SDL_JOYSTICK_HIDAPI_GIP"u8; + + [NativeName("SDL_HINT_JOYSTICK_HIDAPI_GIP_RESET_FOR_METADATA")] + public static Utf8String HintJoystickHidapiGipResetForMetadata => + "SDL_JOYSTICK_HIDAPI_GIP_RESET_FOR_METADATA"u8; + [NativeName("SDL_HINT_JOYSTICK_IOKIT")] public static Utf8String HintJoystickIokit => "SDL_JOYSTICK_IOKIT"u8; @@ -57245,6 +59361,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String HintJoystickZeroCenteredDevices => "SDL_JOYSTICK_ZERO_CENTERED_DEVICES"u8; + [NativeName("SDL_HINT_JOYSTICK_HAPTIC_AXES")] + public static Utf8String HintJoystickHapticAxes => "SDL_JOYSTICK_HAPTIC_AXES"u8; + [NativeName("SDL_HINT_KEYCODE_OPTIONS")] public static Utf8String HintKeycodeOptions => "SDL_KEYCODE_OPTIONS"u8; @@ -57254,6 +59373,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER")] public static Utf8String HintKmsdrmRequireDrmMaster => "SDL_KMSDRM_REQUIRE_DRM_MASTER"u8; + [NativeName("SDL_HINT_KMSDRM_ATOMIC")] + public static Utf8String HintKmsdrmAtomic => "SDL_KMSDRM_ATOMIC"u8; + [NativeName("SDL_HINT_LOGGING")] public static Utf8String HintLogging => "SDL_LOGGING"u8; @@ -57273,6 +59395,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_MAC_SCROLL_MOMENTUM")] public static Utf8String HintMacScrollMomentum => "SDL_MAC_SCROLL_MOMENTUM"u8; + [NativeName("SDL_HINT_MAC_PRESS_AND_HOLD")] + public static Utf8String HintMacPressAndHold => "SDL_MAC_PRESS_AND_HOLD"u8; + [NativeName("SDL_HINT_MAIN_CALLBACK_RATE")] public static Utf8String HintMainCallbackRate => "SDL_MAIN_CALLBACK_RATE"u8; @@ -57288,6 +59413,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_MOUSE_DEFAULT_SYSTEM_CURSOR")] public static Utf8String HintMouseDefaultSystemCursor => "SDL_MOUSE_DEFAULT_SYSTEM_CURSOR"u8; + [NativeName("SDL_HINT_MOUSE_DPI_SCALE_CURSORS")] + public static Utf8String HintMouseDpiScaleCursors => "SDL_MOUSE_DPI_SCALE_CURSORS"u8; + [NativeName("SDL_HINT_MOUSE_EMULATE_WARP_WITH_RELATIVE")] public static Utf8String HintMouseEmulateWarpWithRelative => "SDL_MOUSE_EMULATE_WARP_WITH_RELATIVE"u8; @@ -57332,6 +59460,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_OPENGL_ES_DRIVER")] public static Utf8String HintOpenglEsDriver => "SDL_OPENGL_ES_DRIVER"u8; + [NativeName("SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER")] + public static Utf8String HintOpenglForceSrgbFramebuffer => + "SDL_OPENGL_FORCE_SRGB_FRAMEBUFFER"u8; + [NativeName("SDL_HINT_OPENVR_LIBRARY")] public static Utf8String HintOpenvrLibrary => "SDL_OPENVR_LIBRARY"u8; @@ -57353,6 +59485,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_RENDER_DIRECT3D11_DEBUG")] public static Utf8String HintRenderDirect3D11Debug => "SDL_RENDER_DIRECT3D11_DEBUG"u8; + [NativeName("SDL_HINT_RENDER_DIRECT3D11_WARP")] + public static Utf8String HintRenderDirect3D11Warp => "SDL_RENDER_DIRECT3D11_WARP"u8; + [NativeName("SDL_HINT_RENDER_VULKAN_DEBUG")] public static Utf8String HintRenderVulkanDebug => "SDL_RENDER_VULKAN_DEBUG"u8; @@ -57384,6 +59519,18 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_ROG_GAMEPAD_MICE_EXCLUDED")] public static Utf8String HintRogGamepadMiceExcluded => "SDL_ROG_GAMEPAD_MICE_EXCLUDED"u8; + [NativeName("SDL_HINT_PS2_GS_WIDTH")] + public static Utf8String HintPs2GsWidth => "SDL_PS2_GS_WIDTH"u8; + + [NativeName("SDL_HINT_PS2_GS_HEIGHT")] + public static Utf8String HintPs2GsHeight => "SDL_PS2_GS_HEIGHT"u8; + + [NativeName("SDL_HINT_PS2_GS_PROGRESSIVE")] + public static Utf8String HintPs2GsProgressive => "SDL_PS2_GS_PROGRESSIVE"u8; + + [NativeName("SDL_HINT_PS2_GS_MODE")] + public static Utf8String HintPs2GsMode => "SDL_PS2_GS_MODE"u8; + [NativeName("SDL_HINT_RPI_VIDEO_LAYER")] public static Utf8String HintRpiVideoLayer => "SDL_RPI_VIDEO_LAYER"u8; @@ -57448,6 +59595,14 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String HintVideoMacFullscreenMenuVisibility => "SDL_VIDEO_MAC_FULLSCREEN_MENU_VISIBILITY"u8; + [NativeName("SDL_HINT_VIDEO_METAL_AUTO_RESIZE_DRAWABLE")] + public static Utf8String HintVideoMetalAutoResizeDrawable => + "SDL_VIDEO_METAL_AUTO_RESIZE_DRAWABLE"u8; + + [NativeName("SDL_HINT_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE")] + public static Utf8String HintVideoMatchExclusiveModeOnMove => + "SDL_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE"u8; + [NativeName("SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS")] public static Utf8String HintVideoMinimizeOnFocusLoss => "SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; @@ -57477,6 +59632,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_VIDEO_WIN_D3DCOMPILER")] public static Utf8String HintVideoWinD3Dcompiler => "SDL_VIDEO_WIN_D3DCOMPILER"u8; + [NativeName("SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT")] + public static Utf8String HintVideoX11ExternalWindowInput => + "SDL_VIDEO_X11_EXTERNAL_WINDOW_INPUT"u8; + [NativeName("SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR")] public static Utf8String HintVideoX11NetWmBypassCompositor => "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"u8; @@ -57567,6 +59726,14 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_HINT_WINDOWS_RAW_KEYBOARD")] public static Utf8String HintWindowsRawKeyboard => "SDL_WINDOWS_RAW_KEYBOARD"u8; + [NativeName("SDL_HINT_WINDOWS_RAW_KEYBOARD_EXCLUDE_HOTKEYS")] + public static Utf8String HintWindowsRawKeyboardExcludeHotkeys => + "SDL_WINDOWS_RAW_KEYBOARD_EXCLUDE_HOTKEYS"u8; + + [NativeName("SDL_HINT_WINDOWS_RAW_KEYBOARD_INPUTSINK")] + public static Utf8String HintWindowsRawKeyboardInputsink => + "SDL_WINDOWS_RAW_KEYBOARD_INPUTSINK"u8; + [NativeName("SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL")] public static Utf8String HintWindowsForceSemaphoreKernel => "SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL"u8; @@ -57679,6 +59846,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropProcessCreateEnvironmentPointer => "SDL.process.create.environment"u8; + [NativeName("SDL_PROP_PROCESS_CREATE_WORKING_DIRECTORY_STRING")] + public static Utf8String PropProcessCreateWorkingDirectoryString => + "SDL.process.create.working_directory"u8; + [NativeName("SDL_PROP_PROCESS_CREATE_STDIN_NUMBER")] public static Utf8String PropProcessCreateStdinNumber => "SDL.process.create.stdin_option"u8; @@ -57705,6 +59876,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropProcessCreateBackgroundBoolean => "SDL.process.create.background"u8; + [NativeName("SDL_PROP_PROCESS_CREATE_CMDLINE_STRING")] + public static Utf8String PropProcessCreateCmdlineString => "SDL.process.create.cmdline"u8; + [NativeName("SDL_PROP_PROCESS_PID_NUMBER")] public static Utf8String PropProcessPidNumber => "SDL.process.pid"u8; @@ -57723,6 +59897,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_SOFTWARE_RENDERER")] public static Utf8String SoftwareRenderer => "software"u8; + [NativeName("SDL_GPU_RENDERER")] + public static Utf8String GpuRenderer => "gpu"u8; + [NativeName("SDL_PROP_RENDERER_CREATE_NAME_STRING")] public static Utf8String PropRendererCreateNameString => "SDL.renderer.create.name"u8; @@ -57740,6 +59917,22 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropRendererCreatePresentVsyncNumber => "SDL.renderer.create.present_vsync"u8; + [NativeName("SDL_PROP_RENDERER_CREATE_GPU_DEVICE_POINTER")] + public static Utf8String PropRendererCreateGpuDevicePointer => + "SDL.renderer.create.gpu.device"u8; + + [NativeName("SDL_PROP_RENDERER_CREATE_GPU_SHADERS_SPIRV_BOOLEAN")] + public static Utf8String PropRendererCreateGpuShadersSpirvBoolean => + "SDL.renderer.create.gpu.shaders_spirv"u8; + + [NativeName("SDL_PROP_RENDERER_CREATE_GPU_SHADERS_DXIL_BOOLEAN")] + public static Utf8String PropRendererCreateGpuShadersDxilBoolean => + "SDL.renderer.create.gpu.shaders_dxil"u8; + + [NativeName("SDL_PROP_RENDERER_CREATE_GPU_SHADERS_MSL_BOOLEAN")] + public static Utf8String PropRendererCreateGpuShadersMslBoolean => + "SDL.renderer.create.gpu.shaders_msl"u8; + [NativeName("SDL_PROP_RENDERER_CREATE_VULKAN_INSTANCE_POINTER")] public static Utf8String PropRendererCreateVulkanInstancePointer => "SDL.renderer.create.vulkan.instance"u8; @@ -57782,6 +59975,10 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER")] public static Utf8String PropRendererTextureFormatsPointer => "SDL.renderer.texture_formats"u8; + [NativeName("SDL_PROP_RENDERER_TEXTURE_WRAPPING_BOOLEAN")] + public static Utf8String PropRendererTextureWrappingBoolean => + "SDL.renderer.texture_wrapping"u8; + [NativeName("SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER")] public static Utf8String PropRendererOutputColorspaceNumber => "SDL.renderer.output_colorspace"u8; @@ -57857,6 +60054,9 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER")] public static Utf8String PropTextureCreateHeightNumber => "SDL.texture.create.height"u8; + [NativeName("SDL_PROP_TEXTURE_CREATE_PALETTE_POINTER")] + public static Utf8String PropTextureCreatePalettePointer => "SDL.texture.create.palette"u8; + [NativeName("SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT")] public static Utf8String PropTextureCreateSdrWhitePointFloat => "SDL.texture.create.SDR_white_point"u8; @@ -57929,6 +60129,26 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public static Utf8String PropTextureCreateVulkanTextureNumber => "SDL.texture.create.vulkan.texture"u8; + [NativeName("SDL_PROP_TEXTURE_CREATE_VULKAN_LAYOUT_NUMBER")] + public static Utf8String PropTextureCreateVulkanLayoutNumber => + "SDL.texture.create.vulkan.layout"u8; + + [NativeName("SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_POINTER")] + public static Utf8String PropTextureCreateGpuTexturePointer => + "SDL.texture.create.gpu.texture"u8; + + [NativeName("SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_UV_POINTER")] + public static Utf8String PropTextureCreateGpuTextureUvPointer => + "SDL.texture.create.gpu.texture_uv"u8; + + [NativeName("SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_U_POINTER")] + public static Utf8String PropTextureCreateGpuTextureUPointer => + "SDL.texture.create.gpu.texture_u"u8; + + [NativeName("SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_V_POINTER")] + public static Utf8String PropTextureCreateGpuTextureVPointer => + "SDL.texture.create.gpu.texture_v"u8; + [NativeName("SDL_PROP_TEXTURE_COLORSPACE_NUMBER")] public static Utf8String PropTextureColorspaceNumber => "SDL.texture.colorspace"u8; @@ -58011,6 +60231,18 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => [NativeName("SDL_PROP_TEXTURE_VULKAN_TEXTURE_NUMBER")] public static Utf8String PropTextureVulkanTextureNumber => "SDL.texture.vulkan.texture"u8; + [NativeName("SDL_PROP_TEXTURE_GPU_TEXTURE_POINTER")] + public static Utf8String PropTextureGpuTexturePointer => "SDL.texture.gpu.texture"u8; + + [NativeName("SDL_PROP_TEXTURE_GPU_TEXTURE_UV_POINTER")] + public static Utf8String PropTextureGpuTextureUvPointer => "SDL.texture.gpu.texture_uv"u8; + + [NativeName("SDL_PROP_TEXTURE_GPU_TEXTURE_U_POINTER")] + public static Utf8String PropTextureGpuTextureUPointer => "SDL.texture.gpu.texture_u"u8; + + [NativeName("SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER")] + public static Utf8String PropTextureGpuTextureVPointer => "SDL.texture.gpu.texture_v"u8; + [NativeName("SDL_RENDERER_VSYNC_DISABLED")] public const int RendererVsyncDisabled = 0; @@ -58039,13 +60271,13 @@ public static byte WriteU8Raw(IOStreamHandle dst, byte value) => public const int MajorVersion = 3; [NativeName("SDL_MINOR_VERSION")] - public const int MinorVersion = 2; + public const int MinorVersion = 4; [NativeName("SDL_MICRO_VERSION")] public const int MicroVersion = 4; [NativeName("SDL_VERSION")] - public const int Version = ((3) * 1000000 + (2) * 1000 + (4)); + public const int Version = ((3) * 1000000 + (4) * 1000 + (4)); [NativeName("main")] public static delegate* MainValue => &Main; @@ -58503,15 +60735,48 @@ int ISdl.AddAtomicInt(Ref a, int v) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static int AddAtomicInt(Ref a, int v) => DllImport.AddAtomicInt(a, v); + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddAtomicU32(AtomicU32* a, int v) => + ( + (delegate* unmanaged)( + _slots[7] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[7] = nativeContext.LoadFunction("SDL_AddAtomicU32", "SDL3") + ) + )(a, v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddAtomicU32(AtomicU32* a, int v) => DllImport.AddAtomicU32(a, v); + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddAtomicU32(Ref a, int v) + { + fixed (AtomicU32* __dsl_a = a) + { + return (uint)((ISdl)this).AddAtomicU32(__dsl_a, v); + } + } + + [NativeName("SDL_AddAtomicU32")] + [NativeFunction("SDL3", EntryPoint = "SDL_AddAtomicU32")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddAtomicU32(Ref a, int v) => DllImport.AddAtomicU32(a, v); + [NativeName("SDL_AddEventWatch")] [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.AddEventWatch(EventFilter filter, void* userdata) => ( (delegate* unmanaged)( - _slots[7] is not null and var loadedFnPtr + _slots[8] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[7] = nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") + : _slots[8] = nativeContext.LoadFunction("SDL_AddEventWatch", "SDL3") ) )(filter, userdata); @@ -58544,9 +60809,9 @@ public static MaybeBool AddEventWatch(EventFilter filter, Ref userdata) => int ISdl.AddGamepadMapping(sbyte* mapping) => ( (delegate* unmanaged)( - _slots[8] is not null and var loadedFnPtr + _slots[9] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[8] = nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") + : _slots[9] = nativeContext.LoadFunction("SDL_AddGamepadMapping", "SDL3") ) )(mapping); @@ -58577,9 +60842,9 @@ int ISdl.AddGamepadMapping(Ref mapping) int ISdl.AddGamepadMappingsFromFile(sbyte* file) => ( (delegate* unmanaged)( - _slots[9] is not null and var loadedFnPtr + _slots[10] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[9] = nativeContext.LoadFunction( + : _slots[10] = nativeContext.LoadFunction( "SDL_AddGamepadMappingsFromFile", "SDL3" ) @@ -58615,9 +60880,9 @@ public static int AddGamepadMappingsFromFile(Ref file) => int ISdl.AddGamepadMappingsFromIO(IOStreamHandle src, byte closeio) => ( (delegate* unmanaged)( - _slots[10] is not null and var loadedFnPtr + _slots[11] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[10] = nativeContext.LoadFunction( + : _slots[11] = nativeContext.LoadFunction( "SDL_AddGamepadMappingsFromIO", "SDL3" ) @@ -58648,9 +60913,9 @@ public static int AddGamepadMappingsFromIO(IOStreamHandle src, MaybeBool c byte ISdl.AddHintCallback(sbyte* name, HintCallback callback, void* userdata) => ( (delegate* unmanaged)( - _slots[11] is not null and var loadedFnPtr + _slots[12] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[11] = nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") + : _slots[12] = nativeContext.LoadFunction("SDL_AddHintCallback", "SDL3") ) )(name, callback, userdata); @@ -58688,9 +60953,9 @@ Ref userdata byte ISdl.AddSurfaceAlternateImage(Surface* surface, Surface* image) => ( (delegate* unmanaged)( - _slots[12] is not null and var loadedFnPtr + _slots[13] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[12] = nativeContext.LoadFunction( + : _slots[13] = nativeContext.LoadFunction( "SDL_AddSurfaceAlternateImage", "SDL3" ) @@ -58730,9 +60995,9 @@ Ref image uint ISdl.AddTimer(uint interval, TimerCallback callback, void* userdata) => ( (delegate* unmanaged)( - _slots[13] is not null and var loadedFnPtr + _slots[14] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[13] = nativeContext.LoadFunction("SDL_AddTimer", "SDL3") + : _slots[14] = nativeContext.LoadFunction("SDL_AddTimer", "SDL3") ) )(interval, callback, userdata); @@ -58765,9 +61030,9 @@ public static uint AddTimer(uint interval, TimerCallback callback, Ref userdata) uint ISdl.AddTimerNS(ulong interval, NSTimerCallback callback, void* userdata) => ( (delegate* unmanaged)( - _slots[14] is not null and var loadedFnPtr + _slots[15] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[14] = nativeContext.LoadFunction("SDL_AddTimerNS", "SDL3") + : _slots[15] = nativeContext.LoadFunction("SDL_AddTimerNS", "SDL3") ) )(interval, callback, userdata); @@ -58839,9 +61104,9 @@ long signal_semaphore ) => ( (delegate* unmanaged)( - _slots[15] is not null and var loadedFnPtr + _slots[16] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[15] = nativeContext.LoadFunction( + : _slots[16] = nativeContext.LoadFunction( "SDL_AddVulkanRenderSemaphores", "SDL3" ) @@ -58882,9 +61147,9 @@ public static Ptr AlignedAlloc(nuint alignment, nuint size) => void* ISdl.AlignedAllocRaw(nuint alignment, nuint size) => ( (delegate* unmanaged)( - _slots[16] is not null and var loadedFnPtr + _slots[17] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[16] = nativeContext.LoadFunction("SDL_aligned_alloc", "SDL3") + : _slots[17] = nativeContext.LoadFunction("SDL_aligned_alloc", "SDL3") ) )(alignment, size); @@ -58900,9 +61165,9 @@ _slots[16] is not null and var loadedFnPtr void ISdl.AlignedFree(void* mem) => ( (delegate* unmanaged)( - _slots[17] is not null and var loadedFnPtr + _slots[18] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[17] = nativeContext.LoadFunction("SDL_aligned_free", "SDL3") + : _slots[18] = nativeContext.LoadFunction("SDL_aligned_free", "SDL3") ) )(mem); @@ -58933,9 +61198,9 @@ void ISdl.AlignedFree(Ref mem) double ISdl.Asin(double x) => ( (delegate* unmanaged)( - _slots[18] is not null and var loadedFnPtr + _slots[19] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[18] = nativeContext.LoadFunction("SDL_asin", "SDL3") + : _slots[19] = nativeContext.LoadFunction("SDL_asin", "SDL3") ) )(x); @@ -58950,9 +61215,9 @@ _slots[18] is not null and var loadedFnPtr float ISdl.Asinf(float x) => ( (delegate* unmanaged)( - _slots[19] is not null and var loadedFnPtr + _slots[20] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[19] = nativeContext.LoadFunction("SDL_asinf", "SDL3") + : _slots[20] = nativeContext.LoadFunction("SDL_asinf", "SDL3") ) )(x); @@ -58967,9 +61232,9 @@ _slots[19] is not null and var loadedFnPtr double ISdl.Atan(double x) => ( (delegate* unmanaged)( - _slots[20] is not null and var loadedFnPtr + _slots[21] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[20] = nativeContext.LoadFunction("SDL_atan", "SDL3") + : _slots[21] = nativeContext.LoadFunction("SDL_atan", "SDL3") ) )(x); @@ -58984,9 +61249,9 @@ _slots[20] is not null and var loadedFnPtr double ISdl.Atan2(double y, double x) => ( (delegate* unmanaged)( - _slots[21] is not null and var loadedFnPtr + _slots[22] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[21] = nativeContext.LoadFunction("SDL_atan2", "SDL3") + : _slots[22] = nativeContext.LoadFunction("SDL_atan2", "SDL3") ) )(y, x); @@ -59001,9 +61266,9 @@ _slots[21] is not null and var loadedFnPtr float ISdl.Atan2F(float y, float x) => ( (delegate* unmanaged)( - _slots[22] is not null and var loadedFnPtr + _slots[23] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[22] = nativeContext.LoadFunction("SDL_atan2f", "SDL3") + : _slots[23] = nativeContext.LoadFunction("SDL_atan2f", "SDL3") ) )(y, x); @@ -59018,9 +61283,9 @@ _slots[22] is not null and var loadedFnPtr float ISdl.Atanf(float x) => ( (delegate* unmanaged)( - _slots[23] is not null and var loadedFnPtr + _slots[24] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[23] = nativeContext.LoadFunction("SDL_atanf", "SDL3") + : _slots[24] = nativeContext.LoadFunction("SDL_atanf", "SDL3") ) )(x); @@ -59035,9 +61300,9 @@ _slots[23] is not null and var loadedFnPtr double ISdl.Atof(sbyte* str) => ( (delegate* unmanaged)( - _slots[24] is not null and var loadedFnPtr + _slots[25] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[24] = nativeContext.LoadFunction("SDL_atof", "SDL3") + : _slots[25] = nativeContext.LoadFunction("SDL_atof", "SDL3") ) )(str); @@ -59068,9 +61333,9 @@ double ISdl.Atof(Ref str) int ISdl.Atoi(sbyte* str) => ( (delegate* unmanaged)( - _slots[25] is not null and var loadedFnPtr + _slots[26] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[25] = nativeContext.LoadFunction("SDL_atoi", "SDL3") + : _slots[26] = nativeContext.LoadFunction("SDL_atoi", "SDL3") ) )(str); @@ -59101,9 +61366,9 @@ int ISdl.Atoi(Ref str) uint ISdl.AttachVirtualJoystick(VirtualJoystickDesc* desc) => ( (delegate* unmanaged)( - _slots[26] is not null and var loadedFnPtr + _slots[27] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[26] = nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") + : _slots[27] = nativeContext.LoadFunction("SDL_AttachVirtualJoystick", "SDL3") ) )(desc); @@ -59148,9 +61413,9 @@ public static MaybeBool AudioDevicePaused(uint devid) => byte ISdl.AudioDevicePausedRaw(uint devid) => ( (delegate* unmanaged)( - _slots[27] is not null and var loadedFnPtr + _slots[28] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[27] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") + : _slots[28] = nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") ) )(devid); @@ -59177,9 +61442,9 @@ public static MaybeBool AudioStreamDevicePaused(AudioStreamHandle stream) byte ISdl.AudioStreamDevicePausedRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[28] is not null and var loadedFnPtr + _slots[29] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[28] = nativeContext.LoadFunction("SDL_AudioStreamDevicePaused", "SDL3") + : _slots[29] = nativeContext.LoadFunction("SDL_AudioStreamDevicePaused", "SDL3") ) )(stream); @@ -59207,9 +61472,9 @@ uint num_storage_buffer_bindings GpuStorageBufferReadWriteBinding*, uint, GpuComputePassHandle>)( - _slots[29] is not null and var loadedFnPtr + _slots[30] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[29] = nativeContext.LoadFunction("SDL_BeginGPUComputePass", "SDL3") + : _slots[30] = nativeContext.LoadFunction("SDL_BeginGPUComputePass", "SDL3") ) )( command_buffer, @@ -59292,9 +61557,9 @@ uint num_storage_buffer_bindings GpuCopyPassHandle ISdl.BeginGpuCopyPass(GpuCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[30] is not null and var loadedFnPtr + _slots[31] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[30] = nativeContext.LoadFunction("SDL_BeginGPUCopyPass", "SDL3") + : _slots[31] = nativeContext.LoadFunction("SDL_BeginGPUCopyPass", "SDL3") ) )(command_buffer); @@ -59320,9 +61585,9 @@ GpuRenderPassHandle ISdl.BeginGpuRenderPass( uint, GpuDepthStencilTargetInfo*, GpuRenderPassHandle>)( - _slots[31] is not null and var loadedFnPtr + _slots[32] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[31] = nativeContext.LoadFunction("SDL_BeginGPURenderPass", "SDL3") + : _slots[32] = nativeContext.LoadFunction("SDL_BeginGPURenderPass", "SDL3") ) )(command_buffer, color_target_infos, num_color_targets, depth_stencil_target_info); @@ -59401,9 +61666,9 @@ public static MaybeBool BindAudioStream(uint devid, AudioStreamHandle stre byte ISdl.BindAudioStreamRaw(uint devid, AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[32] is not null and var loadedFnPtr + _slots[33] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[32] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") + : _slots[33] = nativeContext.LoadFunction("SDL_BindAudioStream", "SDL3") ) )(devid, stream); @@ -59419,9 +61684,9 @@ public static byte BindAudioStreamRaw(uint devid, AudioStreamHandle stream) => byte ISdl.BindAudioStreams(uint devid, AudioStreamHandle* streams, int num_streams) => ( (delegate* unmanaged)( - _slots[33] is not null and var loadedFnPtr + _slots[34] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[33] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") + : _slots[34] = nativeContext.LoadFunction("SDL_BindAudioStreams", "SDL3") ) )(devid, streams, num_streams); @@ -59465,9 +61730,9 @@ GpuComputePipelineHandle compute_pipeline ) => ( (delegate* unmanaged)( - _slots[34] is not null and var loadedFnPtr + _slots[35] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[34] = nativeContext.LoadFunction("SDL_BindGPUComputePipeline", "SDL3") + : _slots[35] = nativeContext.LoadFunction("SDL_BindGPUComputePipeline", "SDL3") ) )(compute_pass, compute_pipeline); @@ -59495,9 +61760,9 @@ uint num_bindings GpuTextureSamplerBinding*, uint, void>)( - _slots[35] is not null and var loadedFnPtr + _slots[36] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[35] = nativeContext.LoadFunction("SDL_BindGPUComputeSamplers", "SDL3") + : _slots[36] = nativeContext.LoadFunction("SDL_BindGPUComputeSamplers", "SDL3") ) )(compute_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -59565,9 +61830,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[36] is not null and var loadedFnPtr + _slots[37] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[36] = nativeContext.LoadFunction( + : _slots[37] = nativeContext.LoadFunction( "SDL_BindGPUComputeStorageBuffers", "SDL3" ) @@ -59638,9 +61903,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[37] is not null and var loadedFnPtr + _slots[38] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[37] = nativeContext.LoadFunction( + : _slots[38] = nativeContext.LoadFunction( "SDL_BindGPUComputeStorageTextures", "SDL3" ) @@ -59711,9 +61976,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[38] is not null and var loadedFnPtr + _slots[39] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[38] = nativeContext.LoadFunction("SDL_BindGPUFragmentSamplers", "SDL3") + : _slots[39] = nativeContext.LoadFunction("SDL_BindGPUFragmentSamplers", "SDL3") ) )(render_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -59781,9 +62046,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[39] is not null and var loadedFnPtr + _slots[40] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[39] = nativeContext.LoadFunction( + : _slots[40] = nativeContext.LoadFunction( "SDL_BindGPUFragmentStorageBuffers", "SDL3" ) @@ -59854,9 +62119,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[40] is not null and var loadedFnPtr + _slots[41] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[40] = nativeContext.LoadFunction( + : _slots[41] = nativeContext.LoadFunction( "SDL_BindGPUFragmentStorageTextures", "SDL3" ) @@ -59925,9 +62190,9 @@ GpuGraphicsPipelineHandle graphics_pipeline ) => ( (delegate* unmanaged)( - _slots[41] is not null and var loadedFnPtr + _slots[42] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[41] = nativeContext.LoadFunction("SDL_BindGPUGraphicsPipeline", "SDL3") + : _slots[42] = nativeContext.LoadFunction("SDL_BindGPUGraphicsPipeline", "SDL3") ) )(render_pass, graphics_pipeline); @@ -59953,9 +62218,9 @@ GpuIndexElementSize index_element_size GpuBufferBinding*, GpuIndexElementSize, void>)( - _slots[42] is not null and var loadedFnPtr + _slots[43] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[42] = nativeContext.LoadFunction("SDL_BindGPUIndexBuffer", "SDL3") + : _slots[43] = nativeContext.LoadFunction("SDL_BindGPUIndexBuffer", "SDL3") ) )(render_pass, binding, index_element_size); @@ -60003,9 +62268,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[43] is not null and var loadedFnPtr + _slots[44] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[43] = nativeContext.LoadFunction("SDL_BindGPUVertexBuffers", "SDL3") + : _slots[44] = nativeContext.LoadFunction("SDL_BindGPUVertexBuffers", "SDL3") ) )(render_pass, first_slot, bindings, num_bindings); @@ -60061,9 +62326,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[44] is not null and var loadedFnPtr + _slots[45] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[44] = nativeContext.LoadFunction("SDL_BindGPUVertexSamplers", "SDL3") + : _slots[45] = nativeContext.LoadFunction("SDL_BindGPUVertexSamplers", "SDL3") ) )(render_pass, first_slot, texture_sampler_bindings, num_bindings); @@ -60131,9 +62396,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[45] is not null and var loadedFnPtr + _slots[46] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[45] = nativeContext.LoadFunction( + : _slots[46] = nativeContext.LoadFunction( "SDL_BindGPUVertexStorageBuffers", "SDL3" ) @@ -60204,9 +62469,9 @@ uint num_bindings ) => ( (delegate* unmanaged)( - _slots[46] is not null and var loadedFnPtr + _slots[47] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[46] = nativeContext.LoadFunction( + : _slots[47] = nativeContext.LoadFunction( "SDL_BindGPUVertexStorageTextures", "SDL3" ) @@ -60272,9 +62537,9 @@ uint num_bindings void ISdl.BlitGpuTexture(GpuCommandBufferHandle command_buffer, GpuBlitInfo* info) => ( (delegate* unmanaged)( - _slots[47] is not null and var loadedFnPtr + _slots[48] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[47] = nativeContext.LoadFunction("SDL_BlitGPUTexture", "SDL3") + : _slots[48] = nativeContext.LoadFunction("SDL_BlitGPUTexture", "SDL3") ) )(command_buffer, info); @@ -60309,9 +62574,9 @@ Ref info byte ISdl.BlitSurface(Surface* src, Rect* srcrect, Surface* dst, Rect* dstrect) => ( (delegate* unmanaged)( - _slots[48] is not null and var loadedFnPtr + _slots[49] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[48] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") + : _slots[49] = nativeContext.LoadFunction("SDL_BlitSurface", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -60379,9 +62644,9 @@ byte ISdl.BlitSurface9Grid( Surface*, Rect*, byte>)( - _slots[49] is not null and var loadedFnPtr + _slots[50] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[49] = nativeContext.LoadFunction("SDL_BlitSurface9Grid", "SDL3") + : _slots[50] = nativeContext.LoadFunction("SDL_BlitSurface9Grid", "SDL3") ) )( src, @@ -60502,9 +62767,9 @@ ScaleMode scaleMode ) => ( (delegate* unmanaged)( - _slots[50] is not null and var loadedFnPtr + _slots[51] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[50] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") + : _slots[51] = nativeContext.LoadFunction("SDL_BlitSurfaceScaled", "SDL3") ) )(src, srcrect, dst, dstrect, scaleMode); @@ -60564,9 +62829,9 @@ ScaleMode scaleMode byte ISdl.BlitSurfaceTiled(Surface* src, Rect* srcrect, Surface* dst, Rect* dstrect) => ( (delegate* unmanaged)( - _slots[51] is not null and var loadedFnPtr + _slots[52] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[51] = nativeContext.LoadFunction("SDL_BlitSurfaceTiled", "SDL3") + : _slots[52] = nativeContext.LoadFunction("SDL_BlitSurfaceTiled", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -60625,9 +62890,9 @@ byte ISdl.BlitSurfaceTiledWithScale( ) => ( (delegate* unmanaged)( - _slots[52] is not null and var loadedFnPtr + _slots[53] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[52] = nativeContext.LoadFunction( + : _slots[53] = nativeContext.LoadFunction( "SDL_BlitSurfaceTiledWithScale", "SDL3" ) @@ -60694,9 +62959,9 @@ Ref dstrect byte ISdl.BlitSurfaceUnchecked(Surface* src, Rect* srcrect, Surface* dst, Rect* dstrect) => ( (delegate* unmanaged)( - _slots[53] is not null and var loadedFnPtr + _slots[54] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[53] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") + : _slots[54] = nativeContext.LoadFunction("SDL_BlitSurfaceUnchecked", "SDL3") ) )(src, srcrect, dst, dstrect); @@ -60758,9 +63023,9 @@ ScaleMode scaleMode ) => ( (delegate* unmanaged)( - _slots[54] is not null and var loadedFnPtr + _slots[55] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[54] = nativeContext.LoadFunction( + : _slots[55] = nativeContext.LoadFunction( "SDL_BlitSurfaceUncheckedScaled", "SDL3" ) @@ -60823,9 +63088,9 @@ ScaleMode scaleMode void ISdl.BroadcastCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[55] is not null and var loadedFnPtr + _slots[56] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[55] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") + : _slots[56] = nativeContext.LoadFunction("SDL_BroadcastCondition", "SDL3") ) )(cond); @@ -60841,9 +63106,9 @@ public static void BroadcastCondition(ConditionHandle cond) => void* ISdl.Bsearch(void* key, void* @base, nuint nmemb, nuint size, CompareCallback compare) => ( (delegate* unmanaged)( - _slots[56] is not null and var loadedFnPtr + _slots[57] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[56] = nativeContext.LoadFunction("SDL_bsearch", "SDL3") + : _slots[57] = nativeContext.LoadFunction("SDL_bsearch", "SDL3") ) )(key, @base, nmemb, size, compare); @@ -60894,9 +63159,9 @@ CompareCallback compare ) => ( (delegate* unmanaged)( - _slots[57] is not null and var loadedFnPtr + _slots[58] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[57] = nativeContext.LoadFunction("SDL_bsearch_r", "SDL3") + : _slots[58] = nativeContext.LoadFunction("SDL_bsearch_r", "SDL3") ) )(key, @base, nmemb, size, compare, userdata); @@ -60956,9 +63221,9 @@ uint depth_or_layer_count ) => ( (delegate* unmanaged)( - _slots[58] is not null and var loadedFnPtr + _slots[59] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[58] = nativeContext.LoadFunction( + : _slots[59] = nativeContext.LoadFunction( "SDL_CalculateGPUTextureFormatSize", "SDL3" ) @@ -60991,9 +63256,9 @@ uint depth_or_layer_count void* ISdl.CallocRaw(nuint nmemb, nuint size) => ( (delegate* unmanaged)( - _slots[59] is not null and var loadedFnPtr + _slots[60] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[59] = nativeContext.LoadFunction("SDL_calloc", "SDL3") + : _slots[60] = nativeContext.LoadFunction("SDL_calloc", "SDL3") ) )(nmemb, size); @@ -61020,9 +63285,9 @@ public static MaybeBool CancelGpuCommandBuffer(GpuCommandBufferHandle comm byte ISdl.CancelGpuCommandBufferRaw(GpuCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[60] is not null and var loadedFnPtr + _slots[61] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[60] = nativeContext.LoadFunction("SDL_CancelGPUCommandBuffer", "SDL3") + : _slots[61] = nativeContext.LoadFunction("SDL_CancelGPUCommandBuffer", "SDL3") ) )(command_buffer); @@ -61038,9 +63303,9 @@ public static byte CancelGpuCommandBufferRaw(GpuCommandBufferHandle command_buff byte ISdl.CaptureMouse(byte enabled) => ( (delegate* unmanaged)( - _slots[61] is not null and var loadedFnPtr + _slots[62] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[61] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") + : _slots[62] = nativeContext.LoadFunction("SDL_CaptureMouse", "SDL3") ) )(enabled); @@ -61067,9 +63332,9 @@ public static MaybeBool CaptureMouse(MaybeBool enabled) => double ISdl.Ceil(double x) => ( (delegate* unmanaged)( - _slots[62] is not null and var loadedFnPtr + _slots[63] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[62] = nativeContext.LoadFunction("SDL_ceil", "SDL3") + : _slots[63] = nativeContext.LoadFunction("SDL_ceil", "SDL3") ) )(x); @@ -61084,9 +63349,9 @@ _slots[62] is not null and var loadedFnPtr float ISdl.Ceilf(float x) => ( (delegate* unmanaged)( - _slots[63] is not null and var loadedFnPtr + _slots[64] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[63] = nativeContext.LoadFunction("SDL_ceilf", "SDL3") + : _slots[64] = nativeContext.LoadFunction("SDL_ceilf", "SDL3") ) )(x); @@ -61115,9 +63380,9 @@ WindowHandle window byte ISdl.ClaimWindowForGpuDeviceRaw(GpuDeviceHandle device, WindowHandle window) => ( (delegate* unmanaged)( - _slots[64] is not null and var loadedFnPtr + _slots[65] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[64] = nativeContext.LoadFunction("SDL_ClaimWindowForGPUDevice", "SDL3") + : _slots[65] = nativeContext.LoadFunction("SDL_ClaimWindowForGPUDevice", "SDL3") ) )(device, window); @@ -61133,9 +63398,9 @@ public static byte ClaimWindowForGpuDeviceRaw(GpuDeviceHandle device, WindowHand void ISdl.CleanupTls() => ( (delegate* unmanaged)( - _slots[65] is not null and var loadedFnPtr + _slots[66] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[65] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") + : _slots[66] = nativeContext.LoadFunction("SDL_CleanupTLS", "SDL3") ) )(); @@ -61162,9 +63427,9 @@ public static MaybeBool ClearAudioStream(AudioStreamHandle stream) => byte ISdl.ClearAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[66] is not null and var loadedFnPtr + _slots[67] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[66] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") + : _slots[67] = nativeContext.LoadFunction("SDL_ClearAudioStream", "SDL3") ) )(stream); @@ -61191,9 +63456,9 @@ MaybeBool ISdl.ClearClipboardData() => byte ISdl.ClearClipboardDataRaw() => ( (delegate* unmanaged)( - _slots[67] is not null and var loadedFnPtr + _slots[68] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[67] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") + : _slots[68] = nativeContext.LoadFunction("SDL_ClearClipboardData", "SDL3") ) )(); @@ -61220,9 +63485,9 @@ public static MaybeBool ClearComposition(WindowHandle window) => byte ISdl.ClearCompositionRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[68] is not null and var loadedFnPtr + _slots[69] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[68] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") + : _slots[69] = nativeContext.LoadFunction("SDL_ClearComposition", "SDL3") ) )(window); @@ -61248,9 +63513,9 @@ public static byte ClearCompositionRaw(WindowHandle window) => byte ISdl.ClearErrorRaw() => ( (delegate* unmanaged)( - _slots[69] is not null and var loadedFnPtr + _slots[70] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[69] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") + : _slots[70] = nativeContext.LoadFunction("SDL_ClearError", "SDL3") ) )(); @@ -61265,9 +63530,9 @@ _slots[69] is not null and var loadedFnPtr byte ISdl.ClearProperty(uint props, sbyte* name) => ( (delegate* unmanaged)( - _slots[70] is not null and var loadedFnPtr + _slots[71] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[70] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") + : _slots[71] = nativeContext.LoadFunction("SDL_ClearProperty", "SDL3") ) )(props, name); @@ -61300,9 +63565,9 @@ public static MaybeBool ClearProperty(uint props, Ref name) => byte ISdl.ClearSurface(Surface* surface, float r, float g, float b, float a) => ( (delegate* unmanaged)( - _slots[71] is not null and var loadedFnPtr + _slots[72] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[71] = nativeContext.LoadFunction("SDL_ClearSurface", "SDL3") + : _slots[72] = nativeContext.LoadFunction("SDL_ClearSurface", "SDL3") ) )(surface, r, g, b, a); @@ -61340,9 +63605,9 @@ float a void ISdl.CloseAudioDevice(uint devid) => ( (delegate* unmanaged)( - _slots[72] is not null and var loadedFnPtr + _slots[73] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[72] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") + : _slots[73] = nativeContext.LoadFunction("SDL_CloseAudioDevice", "SDL3") ) )(devid); @@ -61357,9 +63622,9 @@ _slots[72] is not null and var loadedFnPtr void ISdl.CloseCamera(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[73] is not null and var loadedFnPtr + _slots[74] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[73] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") + : _slots[74] = nativeContext.LoadFunction("SDL_CloseCamera", "SDL3") ) )(camera); @@ -61374,9 +63639,9 @@ _slots[73] is not null and var loadedFnPtr void ISdl.CloseGamepad(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[74] is not null and var loadedFnPtr + _slots[75] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[74] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") + : _slots[75] = nativeContext.LoadFunction("SDL_CloseGamepad", "SDL3") ) )(gamepad); @@ -61391,9 +63656,9 @@ _slots[74] is not null and var loadedFnPtr void ISdl.CloseHaptic(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[75] is not null and var loadedFnPtr + _slots[76] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[75] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") + : _slots[76] = nativeContext.LoadFunction("SDL_CloseHaptic", "SDL3") ) )(haptic); @@ -61419,9 +63684,9 @@ MaybeBool ISdl.CloseIO(IOStreamHandle context) => byte ISdl.CloseIORaw(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[76] is not null and var loadedFnPtr + _slots[77] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[76] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") + : _slots[77] = nativeContext.LoadFunction("SDL_CloseIO", "SDL3") ) )(context); @@ -61436,9 +63701,9 @@ _slots[76] is not null and var loadedFnPtr void ISdl.CloseJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[77] is not null and var loadedFnPtr + _slots[78] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[77] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") + : _slots[78] = nativeContext.LoadFunction("SDL_CloseJoystick", "SDL3") ) )(joystick); @@ -61453,9 +63718,9 @@ _slots[77] is not null and var loadedFnPtr void ISdl.CloseSensor(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[78] is not null and var loadedFnPtr + _slots[79] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[78] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") + : _slots[79] = nativeContext.LoadFunction("SDL_CloseSensor", "SDL3") ) )(sensor); @@ -61482,9 +63747,9 @@ public static MaybeBool CloseStorage(StorageHandle storage) => byte ISdl.CloseStorageRaw(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[79] is not null and var loadedFnPtr + _slots[80] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[79] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") + : _slots[80] = nativeContext.LoadFunction("SDL_CloseStorage", "SDL3") ) )(storage); @@ -61499,9 +63764,9 @@ _slots[79] is not null and var loadedFnPtr byte ISdl.CompareAndSwapAtomicInt(AtomicInt* a, int oldval, int newval) => ( (delegate* unmanaged)( - _slots[80] is not null and var loadedFnPtr + _slots[81] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[80] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicInt", "SDL3") + : _slots[81] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicInt", "SDL3") ) )(a, oldval, newval); @@ -61538,9 +63803,9 @@ int newval byte ISdl.CompareAndSwapAtomicPointer(void** a, void* oldval, void* newval) => ( (delegate* unmanaged)( - _slots[81] is not null and var loadedFnPtr + _slots[82] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[81] = nativeContext.LoadFunction( + : _slots[82] = nativeContext.LoadFunction( "SDL_CompareAndSwapAtomicPointer", "SDL3" ) @@ -61579,9 +63844,9 @@ public static MaybeBool CompareAndSwapAtomicPointer(Ref2D a, Ref oldval, R byte ISdl.CompareAndSwapAtomicU32(AtomicU32* a, uint oldval, uint newval) => ( (delegate* unmanaged)( - _slots[82] is not null and var loadedFnPtr + _slots[83] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[82] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicU32", "SDL3") + : _slots[83] = nativeContext.LoadFunction("SDL_CompareAndSwapAtomicU32", "SDL3") ) )(a, oldval, newval); @@ -61632,9 +63897,9 @@ BlendOperation alphaOperation BlendFactor, BlendOperation, uint>)( - _slots[83] is not null and var loadedFnPtr + _slots[84] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[83] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") + : _slots[84] = nativeContext.LoadFunction("SDL_ComposeCustomBlendMode", "SDL3") ) )( srcColorFactor, @@ -61678,9 +63943,9 @@ byte ISdl.ConvertAudioSamples( ) => ( (delegate* unmanaged)( - _slots[84] is not null and var loadedFnPtr + _slots[85] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[84] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") + : _slots[85] = nativeContext.LoadFunction("SDL_ConvertAudioSamples", "SDL3") ) )(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); @@ -61745,9 +64010,9 @@ Ref dst_len byte ISdl.ConvertEventToRenderCoordinates(RendererHandle renderer, Event* @event) => ( (delegate* unmanaged)( - _slots[85] is not null and var loadedFnPtr + _slots[86] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[85] = nativeContext.LoadFunction( + : _slots[86] = nativeContext.LoadFunction( "SDL_ConvertEventToRenderCoordinates", "SDL3" ) @@ -61795,9 +64060,9 @@ int dst_pitch ) => ( (delegate* unmanaged)( - _slots[86] is not null and var loadedFnPtr + _slots[87] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[86] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") + : _slots[87] = nativeContext.LoadFunction("SDL_ConvertPixels", "SDL3") ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); @@ -61913,9 +64178,9 @@ int dst_pitch void*, int, byte>)( - _slots[87] is not null and var loadedFnPtr + _slots[88] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[87] = nativeContext.LoadFunction( + : _slots[88] = nativeContext.LoadFunction( "SDL_ConvertPixelsAndColorspace", "SDL3" ) @@ -62045,9 +64310,9 @@ int dst_pitch Surface* ISdl.ConvertSurface(Surface* surface, PixelFormat format) => ( (delegate* unmanaged)( - _slots[88] is not null and var loadedFnPtr + _slots[89] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[88] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") + : _slots[89] = nativeContext.LoadFunction("SDL_ConvertSurface", "SDL3") ) )(surface, format); @@ -62086,9 +64351,9 @@ uint props ) => ( (delegate* unmanaged)( - _slots[89] is not null and var loadedFnPtr + _slots[90] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[89] = nativeContext.LoadFunction( + : _slots[90] = nativeContext.LoadFunction( "SDL_ConvertSurfaceAndColorspace", "SDL3" ) @@ -62148,9 +64413,9 @@ uint props byte ISdl.CopyFile(sbyte* oldpath, sbyte* newpath) => ( (delegate* unmanaged)( - _slots[90] is not null and var loadedFnPtr + _slots[91] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[90] = nativeContext.LoadFunction("SDL_CopyFile", "SDL3") + : _slots[91] = nativeContext.LoadFunction("SDL_CopyFile", "SDL3") ) )(oldpath, newpath); @@ -62196,9 +64461,9 @@ byte cycle uint, byte, void>)( - _slots[91] is not null and var loadedFnPtr + _slots[92] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[91] = nativeContext.LoadFunction("SDL_CopyGPUBufferToBuffer", "SDL3") + : _slots[92] = nativeContext.LoadFunction("SDL_CopyGPUBufferToBuffer", "SDL3") ) )(copy_pass, source, destination, size, cycle); @@ -62270,9 +64535,9 @@ byte cycle uint, byte, void>)( - _slots[92] is not null and var loadedFnPtr + _slots[93] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[92] = nativeContext.LoadFunction("SDL_CopyGPUTextureToTexture", "SDL3") + : _slots[93] = nativeContext.LoadFunction("SDL_CopyGPUTextureToTexture", "SDL3") ) )(copy_pass, source, destination, w, h, d, cycle); @@ -62348,9 +64613,9 @@ public static MaybeBool CopyProperties(uint src, uint dst) => byte ISdl.CopyPropertiesRaw(uint src, uint dst) => ( (delegate* unmanaged)( - _slots[93] is not null and var loadedFnPtr + _slots[94] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[93] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") + : _slots[94] = nativeContext.LoadFunction("SDL_CopyProperties", "SDL3") ) )(src, dst); @@ -62366,9 +64631,9 @@ public static byte CopyPropertiesRaw(uint src, uint dst) => double ISdl.Copysign(double x, double y) => ( (delegate* unmanaged)( - _slots[94] is not null and var loadedFnPtr + _slots[95] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[94] = nativeContext.LoadFunction("SDL_copysign", "SDL3") + : _slots[95] = nativeContext.LoadFunction("SDL_copysign", "SDL3") ) )(x, y); @@ -62383,9 +64648,9 @@ _slots[94] is not null and var loadedFnPtr float ISdl.Copysignf(float x, float y) => ( (delegate* unmanaged)( - _slots[95] is not null and var loadedFnPtr + _slots[96] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[95] = nativeContext.LoadFunction("SDL_copysignf", "SDL3") + : _slots[96] = nativeContext.LoadFunction("SDL_copysignf", "SDL3") ) )(x, y); @@ -62400,9 +64665,9 @@ _slots[95] is not null and var loadedFnPtr byte ISdl.CopyStorageFile(StorageHandle storage, sbyte* oldpath, sbyte* newpath) => ( (delegate* unmanaged)( - _slots[96] is not null and var loadedFnPtr + _slots[97] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[96] = nativeContext.LoadFunction("SDL_CopyStorageFile", "SDL3") + : _slots[97] = nativeContext.LoadFunction("SDL_CopyStorageFile", "SDL3") ) )(storage, oldpath, newpath); @@ -62444,9 +64709,9 @@ Ref newpath double ISdl.Cos(double x) => ( (delegate* unmanaged)( - _slots[97] is not null and var loadedFnPtr + _slots[98] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[97] = nativeContext.LoadFunction("SDL_cos", "SDL3") + : _slots[98] = nativeContext.LoadFunction("SDL_cos", "SDL3") ) )(x); @@ -62461,9 +64726,9 @@ _slots[97] is not null and var loadedFnPtr float ISdl.Cosf(float x) => ( (delegate* unmanaged)( - _slots[98] is not null and var loadedFnPtr + _slots[99] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[98] = nativeContext.LoadFunction("SDL_cosf", "SDL3") + : _slots[99] = nativeContext.LoadFunction("SDL_cosf", "SDL3") ) )(x); @@ -62478,9 +64743,9 @@ _slots[98] is not null and var loadedFnPtr ushort ISdl.Crc16(ushort crc, void* data, nuint len) => ( (delegate* unmanaged)( - _slots[99] is not null and var loadedFnPtr + _slots[100] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[99] = nativeContext.LoadFunction("SDL_crc16", "SDL3") + : _slots[100] = nativeContext.LoadFunction("SDL_crc16", "SDL3") ) )(crc, data, len); @@ -62512,9 +64777,9 @@ ushort ISdl.Crc16(ushort crc, Ref data, nuint len) uint ISdl.Crc32(uint crc, void* data, nuint len) => ( (delegate* unmanaged)( - _slots[100] is not null and var loadedFnPtr + _slots[101] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[100] = nativeContext.LoadFunction("SDL_crc32", "SDL3") + : _slots[101] = nativeContext.LoadFunction("SDL_crc32", "SDL3") ) )(crc, data, len); @@ -62539,15 +64804,69 @@ uint ISdl.Crc32(uint crc, Ref data, nuint len) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static uint Crc32(uint crc, Ref data, nuint len) => DllImport.Crc32(crc, data, len); + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + CursorHandle ISdl.CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ) => + ( + (delegate* unmanaged)( + _slots[102] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[102] = nativeContext.LoadFunction("SDL_CreateAnimatedCursor", "SDL3") + ) + )(frames, frame_count, hot_x, hot_y); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static CursorHandle CreateAnimatedCursor( + CursorFrameInfo* frames, + int frame_count, + int hot_x, + int hot_y + ) => DllImport.CreateAnimatedCursor(frames, frame_count, hot_x, hot_y); + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + CursorHandle ISdl.CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ) + { + fixed (CursorFrameInfo* __dsl_frames = frames) + { + return (CursorHandle) + ((ISdl)this).CreateAnimatedCursor(__dsl_frames, frame_count, hot_x, hot_y); + } + } + + [NativeName("SDL_CreateAnimatedCursor")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAnimatedCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static CursorHandle CreateAnimatedCursor( + Ref frames, + int frame_count, + int hot_x, + int hot_y + ) => DllImport.CreateAnimatedCursor(frames, frame_count, hot_x, hot_y); + [NativeName("SDL_CreateAudioStream")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] AudioStreamHandle ISdl.CreateAudioStream(AudioSpec* src_spec, AudioSpec* dst_spec) => ( (delegate* unmanaged)( - _slots[101] is not null and var loadedFnPtr + _slots[103] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[101] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") + : _slots[103] = nativeContext.LoadFunction("SDL_CreateAudioStream", "SDL3") ) )(src_spec, dst_spec); @@ -62584,9 +64903,9 @@ Ref dst_spec CursorHandle ISdl.CreateColorCursor(Surface* surface, int hot_x, int hot_y) => ( (delegate* unmanaged)( - _slots[102] is not null and var loadedFnPtr + _slots[104] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[102] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") + : _slots[104] = nativeContext.LoadFunction("SDL_CreateColorCursor", "SDL3") ) )(surface, hot_x, hot_y); @@ -62619,9 +64938,9 @@ public static CursorHandle CreateColorCursor(Ref surface, int hot_x, in ConditionHandle ISdl.CreateCondition() => ( (delegate* unmanaged)( - _slots[103] is not null and var loadedFnPtr + _slots[105] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[103] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + : _slots[105] = nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") ) )(); @@ -62636,9 +64955,9 @@ _slots[103] is not null and var loadedFnPtr CursorHandle ISdl.CreateCursor(byte* data, byte* mask, int w, int h, int hot_x, int hot_y) => ( (delegate* unmanaged)( - _slots[104] is not null and var loadedFnPtr + _slots[106] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[104] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") + : _slots[106] = nativeContext.LoadFunction("SDL_CreateCursor", "SDL3") ) )(data, mask, w, h, hot_x, hot_y); @@ -62692,9 +65011,9 @@ int hot_y byte ISdl.CreateDirectory(sbyte* path) => ( (delegate* unmanaged)( - _slots[105] is not null and var loadedFnPtr + _slots[107] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[105] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") + : _slots[107] = nativeContext.LoadFunction("SDL_CreateDirectory", "SDL3") ) )(path); @@ -62726,9 +65045,9 @@ public static MaybeBool CreateDirectory(Ref path) => EnvironmentHandle ISdl.CreateEnvironment(byte populated) => ( (delegate* unmanaged)( - _slots[106] is not null and var loadedFnPtr + _slots[108] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[106] = nativeContext.LoadFunction("SDL_CreateEnvironment", "SDL3") + : _slots[108] = nativeContext.LoadFunction("SDL_CreateEnvironment", "SDL3") ) )(populated); @@ -62756,9 +65075,9 @@ public static EnvironmentHandle CreateEnvironment(MaybeBool populated) => GpuBufferHandle ISdl.CreateGpuBuffer(GpuDeviceHandle device, GpuBufferCreateInfo* createinfo) => ( (delegate* unmanaged)( - _slots[107] is not null and var loadedFnPtr + _slots[109] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[107] = nativeContext.LoadFunction("SDL_CreateGPUBuffer", "SDL3") + : _slots[109] = nativeContext.LoadFunction("SDL_CreateGPUBuffer", "SDL3") ) )(device, createinfo); @@ -62804,9 +65123,9 @@ GpuComputePipelineHandle ISdl.CreateGpuComputePipeline( GpuDeviceHandle, GpuComputePipelineCreateInfo*, GpuComputePipelineHandle>)( - _slots[108] is not null and var loadedFnPtr + _slots[110] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[108] = nativeContext.LoadFunction( + : _slots[110] = nativeContext.LoadFunction( "SDL_CreateGPUComputePipeline", "SDL3" ) @@ -62850,9 +65169,9 @@ Ref createinfo GpuDeviceHandle ISdl.CreateGpuDevice(uint format_flags, byte debug_mode, sbyte* name) => ( (delegate* unmanaged)( - _slots[109] is not null and var loadedFnPtr + _slots[111] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[109] = nativeContext.LoadFunction("SDL_CreateGPUDevice", "SDL3") + : _slots[111] = nativeContext.LoadFunction("SDL_CreateGPUDevice", "SDL3") ) )(format_flags, debug_mode, name); @@ -62896,9 +65215,9 @@ Ref name GpuDeviceHandle ISdl.CreateGpuDeviceWithProperties(uint props) => ( (delegate* unmanaged)( - _slots[110] is not null and var loadedFnPtr + _slots[112] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[110] = nativeContext.LoadFunction( + : _slots[112] = nativeContext.LoadFunction( "SDL_CreateGPUDeviceWithProperties", "SDL3" ) @@ -62923,9 +65242,9 @@ GpuGraphicsPipelineHandle ISdl.CreateGpuGraphicsPipeline( GpuDeviceHandle, GpuGraphicsPipelineCreateInfo*, GpuGraphicsPipelineHandle>)( - _slots[111] is not null and var loadedFnPtr + _slots[113] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[111] = nativeContext.LoadFunction( + : _slots[113] = nativeContext.LoadFunction( "SDL_CreateGPUGraphicsPipeline", "SDL3" ) @@ -62963,6 +65282,70 @@ public static GpuGraphicsPipelineHandle CreateGpuGraphicsPipeline( Ref createinfo ) => DllImport.CreateGpuGraphicsPipeline(device, createinfo); + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + RendererHandle ISdl.CreateGpuRenderer(GpuDeviceHandle device, WindowHandle window) => + ( + (delegate* unmanaged)( + _slots[114] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[114] = nativeContext.LoadFunction("SDL_CreateGPURenderer", "SDL3") + ) + )(device, window); + + [NativeName("SDL_CreateGPURenderer")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static RendererHandle CreateGpuRenderer(GpuDeviceHandle device, WindowHandle window) => + DllImport.CreateGpuRenderer(device, window); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GpuRenderStateHandle ISdl.CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ) => + ( + (delegate* unmanaged)( + _slots[115] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[115] = nativeContext.LoadFunction("SDL_CreateGPURenderState", "SDL3") + ) + )(renderer, createinfo); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + GpuRenderStateCreateInfo* createinfo + ) => DllImport.CreateGpuRenderState(renderer, createinfo); + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GpuRenderStateHandle ISdl.CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ) + { + fixed (GpuRenderStateCreateInfo* __dsl_createinfo = createinfo) + { + return (GpuRenderStateHandle) + ((ISdl)this).CreateGpuRenderState(renderer, __dsl_createinfo); + } + } + + [NativeName("SDL_CreateGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GpuRenderStateHandle CreateGpuRenderState( + RendererHandle renderer, + Ref createinfo + ) => DllImport.CreateGpuRenderState(renderer, createinfo); + [NativeName("SDL_CreateGPUSampler")] [NativeFunction("SDL3", EntryPoint = "SDL_CreateGPUSampler")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -62972,9 +65355,9 @@ GpuSamplerHandle ISdl.CreateGpuSampler( ) => ( (delegate* unmanaged)( - _slots[112] is not null and var loadedFnPtr + _slots[116] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[112] = nativeContext.LoadFunction("SDL_CreateGPUSampler", "SDL3") + : _slots[116] = nativeContext.LoadFunction("SDL_CreateGPUSampler", "SDL3") ) )(device, createinfo); @@ -63014,9 +65397,9 @@ Ref createinfo GpuShaderHandle ISdl.CreateGpuShader(GpuDeviceHandle device, GpuShaderCreateInfo* createinfo) => ( (delegate* unmanaged)( - _slots[113] is not null and var loadedFnPtr + _slots[117] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[113] = nativeContext.LoadFunction("SDL_CreateGPUShader", "SDL3") + : _slots[117] = nativeContext.LoadFunction("SDL_CreateGPUShader", "SDL3") ) )(device, createinfo); @@ -63059,9 +65442,9 @@ GpuTextureHandle ISdl.CreateGpuTexture( ) => ( (delegate* unmanaged)( - _slots[114] is not null and var loadedFnPtr + _slots[118] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[114] = nativeContext.LoadFunction("SDL_CreateGPUTexture", "SDL3") + : _slots[118] = nativeContext.LoadFunction("SDL_CreateGPUTexture", "SDL3") ) )(device, createinfo); @@ -63107,9 +65490,9 @@ GpuTransferBufferHandle ISdl.CreateGpuTransferBuffer( GpuDeviceHandle, GpuTransferBufferCreateInfo*, GpuTransferBufferHandle>)( - _slots[115] is not null and var loadedFnPtr + _slots[119] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[115] = nativeContext.LoadFunction( + : _slots[119] = nativeContext.LoadFunction( "SDL_CreateGPUTransferBuffer", "SDL3" ) @@ -63153,9 +65536,9 @@ Ref createinfo int ISdl.CreateHapticEffect(HapticHandle haptic, HapticEffect* effect) => ( (delegate* unmanaged)( - _slots[116] is not null and var loadedFnPtr + _slots[120] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[116] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") + : _slots[120] = nativeContext.LoadFunction("SDL_CreateHapticEffect", "SDL3") ) )(haptic, effect); @@ -63188,9 +65571,9 @@ public static int CreateHapticEffect(HapticHandle haptic, Ref effe MutexHandle ISdl.CreateMutex() => ( (delegate* unmanaged)( - _slots[117] is not null and var loadedFnPtr + _slots[121] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[117] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") + : _slots[121] = nativeContext.LoadFunction("SDL_CreateMutex", "SDL3") ) )(); @@ -63216,9 +65599,9 @@ Ptr ISdl.CreatePalette(int ncolors) => Palette* ISdl.CreatePaletteRaw(int ncolors) => ( (delegate* unmanaged)( - _slots[118] is not null and var loadedFnPtr + _slots[122] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[118] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + : _slots[122] = nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") ) )(ncolors); @@ -63240,9 +65623,9 @@ ulong flags ) => ( (delegate* unmanaged)( - _slots[119] is not null and var loadedFnPtr + _slots[123] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[119] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") + : _slots[123] = nativeContext.LoadFunction("SDL_CreatePopupWindow", "SDL3") ) )(parent, offset_x, offset_y, w, h, flags); @@ -63264,9 +65647,9 @@ ulong flags ProcessHandle ISdl.CreateProcess(sbyte** args, byte pipe_stdio) => ( (delegate* unmanaged)( - _slots[120] is not null and var loadedFnPtr + _slots[124] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[120] = nativeContext.LoadFunction("SDL_CreateProcess", "SDL3") + : _slots[124] = nativeContext.LoadFunction("SDL_CreateProcess", "SDL3") ) )(args, pipe_stdio); @@ -63299,9 +65682,9 @@ public static ProcessHandle CreateProcess(Ref2D args, MaybeBool pip ProcessHandle ISdl.CreateProcessWithProperties(uint props) => ( (delegate* unmanaged)( - _slots[121] is not null and var loadedFnPtr + _slots[125] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[121] = nativeContext.LoadFunction( + : _slots[125] = nativeContext.LoadFunction( "SDL_CreateProcessWithProperties", "SDL3" ) @@ -63320,9 +65703,9 @@ public static ProcessHandle CreateProcessWithProperties(uint props) => uint ISdl.CreateProperties() => ( (delegate* unmanaged)( - _slots[122] is not null and var loadedFnPtr + _slots[126] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[122] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") + : _slots[126] = nativeContext.LoadFunction("SDL_CreateProperties", "SDL3") ) )(); @@ -63337,9 +65720,9 @@ _slots[122] is not null and var loadedFnPtr RendererHandle ISdl.CreateRenderer(WindowHandle window, sbyte* name) => ( (delegate* unmanaged)( - _slots[123] is not null and var loadedFnPtr + _slots[127] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[123] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") + : _slots[127] = nativeContext.LoadFunction("SDL_CreateRenderer", "SDL3") ) )(window, name); @@ -63372,9 +65755,9 @@ public static RendererHandle CreateRenderer(WindowHandle window, Ref name RendererHandle ISdl.CreateRendererWithProperties(uint props) => ( (delegate* unmanaged)( - _slots[124] is not null and var loadedFnPtr + _slots[128] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[124] = nativeContext.LoadFunction( + : _slots[128] = nativeContext.LoadFunction( "SDL_CreateRendererWithProperties", "SDL3" ) @@ -63393,9 +65776,9 @@ public static RendererHandle CreateRendererWithProperties(uint props) => RWLockHandle ISdl.CreateRWLock() => ( (delegate* unmanaged)( - _slots[125] is not null and var loadedFnPtr + _slots[129] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[125] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + : _slots[129] = nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") ) )(); @@ -63410,9 +65793,9 @@ _slots[125] is not null and var loadedFnPtr SemaphoreHandle ISdl.CreateSemaphore(uint initial_value) => ( (delegate* unmanaged)( - _slots[126] is not null and var loadedFnPtr + _slots[130] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[126] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + : _slots[130] = nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") ) )(initial_value); @@ -63428,9 +65811,9 @@ public static SemaphoreHandle CreateSemaphore(uint initial_value) => RendererHandle ISdl.CreateSoftwareRenderer(Surface* surface) => ( (delegate* unmanaged)( - _slots[127] is not null and var loadedFnPtr + _slots[131] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[127] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") + : _slots[131] = nativeContext.LoadFunction("SDL_CreateSoftwareRenderer", "SDL3") ) )(surface); @@ -63463,9 +65846,9 @@ public static RendererHandle CreateSoftwareRenderer(Ref surface) => byte ISdl.CreateStorageDirectory(StorageHandle storage, sbyte* path) => ( (delegate* unmanaged)( - _slots[128] is not null and var loadedFnPtr + _slots[132] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[128] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") + : _slots[132] = nativeContext.LoadFunction("SDL_CreateStorageDirectory", "SDL3") ) )(storage, path); @@ -63516,9 +65899,9 @@ int pitch ) => ( (delegate* unmanaged)( - _slots[130] is not null and var loadedFnPtr + _slots[134] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[130] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") + : _slots[134] = nativeContext.LoadFunction("SDL_CreateSurfaceFrom", "SDL3") ) )(width, height, format, pixels, pitch); @@ -63568,9 +65951,9 @@ int pitch Palette* ISdl.CreateSurfacePalette(Surface* surface) => ( (delegate* unmanaged)( - _slots[131] is not null and var loadedFnPtr + _slots[135] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[131] = nativeContext.LoadFunction("SDL_CreateSurfacePalette", "SDL3") + : _slots[135] = nativeContext.LoadFunction("SDL_CreateSurfacePalette", "SDL3") ) )(surface); @@ -63603,9 +65986,9 @@ public static Ptr CreateSurfacePalette(Ref surface) => Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormat format) => ( (delegate* unmanaged)( - _slots[129] is not null and var loadedFnPtr + _slots[133] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[129] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") + : _slots[133] = nativeContext.LoadFunction("SDL_CreateSurface", "SDL3") ) )(width, height, format); @@ -63621,9 +66004,9 @@ _slots[129] is not null and var loadedFnPtr CursorHandle ISdl.CreateSystemCursor(SystemCursor id) => ( (delegate* unmanaged)( - _slots[132] is not null and var loadedFnPtr + _slots[136] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[132] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + : _slots[136] = nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") ) )(id); @@ -63661,9 +66044,9 @@ int h Texture* ISdl.CreateTextureFromSurface(RendererHandle renderer, Surface* surface) => ( (delegate* unmanaged)( - _slots[134] is not null and var loadedFnPtr + _slots[138] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[134] = nativeContext.LoadFunction( + : _slots[138] = nativeContext.LoadFunction( "SDL_CreateTextureFromSurface", "SDL3" ) @@ -63707,9 +66090,9 @@ int h ) => ( (delegate* unmanaged)( - _slots[133] is not null and var loadedFnPtr + _slots[137] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[133] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") + : _slots[137] = nativeContext.LoadFunction("SDL_CreateTexture", "SDL3") ) )(renderer, format, access, w, h); @@ -63742,9 +66125,9 @@ public static Ptr CreateTextureWithProperties(RendererHandle renderer, Texture* ISdl.CreateTextureWithPropertiesRaw(RendererHandle renderer, uint props) => ( (delegate* unmanaged)( - _slots[135] is not null and var loadedFnPtr + _slots[139] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[135] = nativeContext.LoadFunction( + : _slots[139] = nativeContext.LoadFunction( "SDL_CreateTextureWithProperties", "SDL3" ) @@ -63775,9 +66158,9 @@ FunctionPointer pfnEndThread FunctionPointer, FunctionPointer, ThreadHandle>)( - _slots[136] is not null and var loadedFnPtr + _slots[140] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[136] = nativeContext.LoadFunction("SDL_CreateThreadRuntime", "SDL3") + : _slots[140] = nativeContext.LoadFunction("SDL_CreateThreadRuntime", "SDL3") ) )(fn, name, data, pfnBeginThread, pfnEndThread); @@ -63838,9 +66221,9 @@ FunctionPointer pfnEndThread ) => ( (delegate* unmanaged)( - _slots[137] is not null and var loadedFnPtr + _slots[141] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[137] = nativeContext.LoadFunction( + : _slots[141] = nativeContext.LoadFunction( "SDL_CreateThreadWithPropertiesRuntime", "SDL3" ) @@ -63862,9 +66245,9 @@ FunctionPointer pfnEndThread WindowHandle ISdl.CreateWindow(sbyte* title, int w, int h, ulong flags) => ( (delegate* unmanaged)( - _slots[138] is not null and var loadedFnPtr + _slots[142] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[138] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") + : _slots[142] = nativeContext.LoadFunction("SDL_CreateWindow", "SDL3") ) )(title, w, h, flags); @@ -63904,9 +66287,9 @@ byte ISdl.CreateWindowAndRenderer( ) => ( (delegate* unmanaged)( - _slots[139] is not null and var loadedFnPtr + _slots[143] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[139] = nativeContext.LoadFunction( + : _slots[143] = nativeContext.LoadFunction( "SDL_CreateWindowAndRenderer", "SDL3" ) @@ -63972,9 +66355,9 @@ Ref renderer WindowHandle ISdl.CreateWindowWithProperties(uint props) => ( (delegate* unmanaged)( - _slots[140] is not null and var loadedFnPtr + _slots[144] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[140] = nativeContext.LoadFunction( + : _slots[144] = nativeContext.LoadFunction( "SDL_CreateWindowWithProperties", "SDL3" ) @@ -64003,9 +66386,9 @@ public static WindowHandle CreateWindowWithProperties(uint props) => byte ISdl.CursorVisibleRaw() => ( (delegate* unmanaged)( - _slots[141] is not null and var loadedFnPtr + _slots[145] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[141] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") + : _slots[145] = nativeContext.LoadFunction("SDL_CursorVisible", "SDL3") ) )(); @@ -64020,9 +66403,9 @@ _slots[141] is not null and var loadedFnPtr byte ISdl.DateTimeToTime(DateTime* dt, long* ticks) => ( (delegate* unmanaged)( - _slots[142] is not null and var loadedFnPtr + _slots[146] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[142] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") + : _slots[146] = nativeContext.LoadFunction("SDL_DateTimeToTime", "SDL3") ) )(dt, ticks); @@ -64056,9 +66439,9 @@ public static MaybeBool DateTimeToTime(Ref dt, Ref ticks) void ISdl.Delay(uint ms) => ( (delegate* unmanaged)( - _slots[143] is not null and var loadedFnPtr + _slots[147] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[143] = nativeContext.LoadFunction("SDL_Delay", "SDL3") + : _slots[147] = nativeContext.LoadFunction("SDL_Delay", "SDL3") ) )(ms); @@ -64073,9 +66456,9 @@ _slots[143] is not null and var loadedFnPtr void ISdl.DelayNS(ulong ns) => ( (delegate* unmanaged)( - _slots[144] is not null and var loadedFnPtr + _slots[148] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[144] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") + : _slots[148] = nativeContext.LoadFunction("SDL_DelayNS", "SDL3") ) )(ns); @@ -64090,9 +66473,9 @@ _slots[144] is not null and var loadedFnPtr void ISdl.DelayPrecise(ulong ns) => ( (delegate* unmanaged)( - _slots[145] is not null and var loadedFnPtr + _slots[149] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[145] = nativeContext.LoadFunction("SDL_DelayPrecise", "SDL3") + : _slots[149] = nativeContext.LoadFunction("SDL_DelayPrecise", "SDL3") ) )(ns); @@ -64107,9 +66490,9 @@ _slots[145] is not null and var loadedFnPtr void ISdl.DestroyAudioStream(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[146] is not null and var loadedFnPtr + _slots[150] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[146] = nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") + : _slots[150] = nativeContext.LoadFunction("SDL_DestroyAudioStream", "SDL3") ) )(stream); @@ -64125,9 +66508,9 @@ public static void DestroyAudioStream(AudioStreamHandle stream) => void ISdl.DestroyCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[147] is not null and var loadedFnPtr + _slots[151] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[147] = nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") + : _slots[151] = nativeContext.LoadFunction("SDL_DestroyCondition", "SDL3") ) )(cond); @@ -64142,9 +66525,9 @@ _slots[147] is not null and var loadedFnPtr void ISdl.DestroyCursor(CursorHandle cursor) => ( (delegate* unmanaged)( - _slots[148] is not null and var loadedFnPtr + _slots[152] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[148] = nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") + : _slots[152] = nativeContext.LoadFunction("SDL_DestroyCursor", "SDL3") ) )(cursor); @@ -64159,9 +66542,9 @@ _slots[148] is not null and var loadedFnPtr void ISdl.DestroyEnvironment(EnvironmentHandle env) => ( (delegate* unmanaged)( - _slots[149] is not null and var loadedFnPtr + _slots[153] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[149] = nativeContext.LoadFunction("SDL_DestroyEnvironment", "SDL3") + : _slots[153] = nativeContext.LoadFunction("SDL_DestroyEnvironment", "SDL3") ) )(env); @@ -64177,9 +66560,9 @@ public static void DestroyEnvironment(EnvironmentHandle env) => void ISdl.DestroyGpuDevice(GpuDeviceHandle device) => ( (delegate* unmanaged)( - _slots[150] is not null and var loadedFnPtr + _slots[154] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[150] = nativeContext.LoadFunction("SDL_DestroyGPUDevice", "SDL3") + : _slots[154] = nativeContext.LoadFunction("SDL_DestroyGPUDevice", "SDL3") ) )(device); @@ -64189,15 +66572,33 @@ _slots[150] is not null and var loadedFnPtr public static void DestroyGpuDevice(GpuDeviceHandle device) => DllImport.DestroyGpuDevice(device); + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyGpuRenderState(GpuRenderStateHandle state) => + ( + (delegate* unmanaged)( + _slots[155] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[155] = nativeContext.LoadFunction("SDL_DestroyGPURenderState", "SDL3") + ) + )(state); + + [NativeName("SDL_DestroyGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyGpuRenderState(GpuRenderStateHandle state) => + DllImport.DestroyGpuRenderState(state); + [NativeName("SDL_DestroyHapticEffect")] [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.DestroyHapticEffect(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[151] is not null and var loadedFnPtr + _slots[156] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[151] = nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") + : _slots[156] = nativeContext.LoadFunction("SDL_DestroyHapticEffect", "SDL3") ) )(haptic, effect); @@ -64213,9 +66614,9 @@ public static void DestroyHapticEffect(HapticHandle haptic, int effect) => void ISdl.DestroyMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[152] is not null and var loadedFnPtr + _slots[157] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[152] = nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") + : _slots[157] = nativeContext.LoadFunction("SDL_DestroyMutex", "SDL3") ) )(mutex); @@ -64230,9 +66631,9 @@ _slots[152] is not null and var loadedFnPtr void ISdl.DestroyPalette(Palette* palette) => ( (delegate* unmanaged)( - _slots[153] is not null and var loadedFnPtr + _slots[158] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[153] = nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") + : _slots[158] = nativeContext.LoadFunction("SDL_DestroyPalette", "SDL3") ) )(palette); @@ -64263,9 +66664,9 @@ void ISdl.DestroyPalette(Ref palette) void ISdl.DestroyProcess(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[154] is not null and var loadedFnPtr + _slots[159] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[154] = nativeContext.LoadFunction("SDL_DestroyProcess", "SDL3") + : _slots[159] = nativeContext.LoadFunction("SDL_DestroyProcess", "SDL3") ) )(process); @@ -64280,9 +66681,9 @@ _slots[154] is not null and var loadedFnPtr void ISdl.DestroyProperties(uint props) => ( (delegate* unmanaged)( - _slots[155] is not null and var loadedFnPtr + _slots[160] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[155] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") + : _slots[160] = nativeContext.LoadFunction("SDL_DestroyProperties", "SDL3") ) )(props); @@ -64297,9 +66698,9 @@ _slots[155] is not null and var loadedFnPtr void ISdl.DestroyRenderer(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[156] is not null and var loadedFnPtr + _slots[161] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[156] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") + : _slots[161] = nativeContext.LoadFunction("SDL_DestroyRenderer", "SDL3") ) )(renderer); @@ -64315,9 +66716,9 @@ public static void DestroyRenderer(RendererHandle renderer) => void ISdl.DestroyRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[157] is not null and var loadedFnPtr + _slots[162] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[157] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") + : _slots[162] = nativeContext.LoadFunction("SDL_DestroyRWLock", "SDL3") ) )(rwlock); @@ -64332,9 +66733,9 @@ _slots[157] is not null and var loadedFnPtr void ISdl.DestroySemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[158] is not null and var loadedFnPtr + _slots[163] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[158] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") + : _slots[163] = nativeContext.LoadFunction("SDL_DestroySemaphore", "SDL3") ) )(sem); @@ -64349,9 +66750,9 @@ _slots[158] is not null and var loadedFnPtr void ISdl.DestroySurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[159] is not null and var loadedFnPtr + _slots[164] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[159] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") + : _slots[164] = nativeContext.LoadFunction("SDL_DestroySurface", "SDL3") ) )(surface); @@ -64382,9 +66783,9 @@ void ISdl.DestroySurface(Ref surface) void ISdl.DestroyTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[160] is not null and var loadedFnPtr + _slots[165] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[160] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") + : _slots[165] = nativeContext.LoadFunction("SDL_DestroyTexture", "SDL3") ) )(texture); @@ -64415,9 +66816,9 @@ void ISdl.DestroyTexture(Ref texture) void ISdl.DestroyWindow(WindowHandle window) => ( (delegate* unmanaged)( - _slots[161] is not null and var loadedFnPtr + _slots[166] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[161] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") + : _slots[166] = nativeContext.LoadFunction("SDL_DestroyWindow", "SDL3") ) )(window); @@ -64444,9 +66845,9 @@ public static MaybeBool DestroyWindowSurface(WindowHandle window) => byte ISdl.DestroyWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[162] is not null and var loadedFnPtr + _slots[167] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[162] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") + : _slots[167] = nativeContext.LoadFunction("SDL_DestroyWindowSurface", "SDL3") ) )(window); @@ -64462,9 +66863,9 @@ public static byte DestroyWindowSurfaceRaw(WindowHandle window) => void ISdl.DetachThread(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[163] is not null and var loadedFnPtr + _slots[168] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[163] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") + : _slots[168] = nativeContext.LoadFunction("SDL_DetachThread", "SDL3") ) )(thread); @@ -64491,9 +66892,9 @@ public static MaybeBool DetachVirtualJoystick(uint instance_id) => byte ISdl.DetachVirtualJoystickRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[164] is not null and var loadedFnPtr + _slots[169] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[164] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") + : _slots[169] = nativeContext.LoadFunction("SDL_DetachVirtualJoystick", "SDL3") ) )(instance_id); @@ -64520,9 +66921,9 @@ MaybeBool ISdl.DisableScreenSaver() => byte ISdl.DisableScreenSaverRaw() => ( (delegate* unmanaged)( - _slots[165] is not null and var loadedFnPtr + _slots[170] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[165] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") + : _slots[170] = nativeContext.LoadFunction("SDL_DisableScreenSaver", "SDL3") ) )(); @@ -64542,9 +66943,9 @@ uint groupcount_z ) => ( (delegate* unmanaged)( - _slots[166] is not null and var loadedFnPtr + _slots[171] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[166] = nativeContext.LoadFunction("SDL_DispatchGPUCompute", "SDL3") + : _slots[171] = nativeContext.LoadFunction("SDL_DispatchGPUCompute", "SDL3") ) )(compute_pass, groupcount_x, groupcount_y, groupcount_z); @@ -64568,9 +66969,9 @@ uint offset ) => ( (delegate* unmanaged)( - _slots[167] is not null and var loadedFnPtr + _slots[172] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[167] = nativeContext.LoadFunction( + : _slots[172] = nativeContext.LoadFunction( "SDL_DispatchGPUComputeIndirect", "SDL3" ) @@ -64600,9 +67001,9 @@ void ISdl.DownloadFromGpuBuffer( GpuBufferRegion*, GpuTransferBufferLocation*, void>)( - _slots[168] is not null and var loadedFnPtr + _slots[173] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[168] = nativeContext.LoadFunction("SDL_DownloadFromGPUBuffer", "SDL3") + : _slots[173] = nativeContext.LoadFunction("SDL_DownloadFromGPUBuffer", "SDL3") ) )(copy_pass, source, destination); @@ -64654,9 +67055,9 @@ void ISdl.DownloadFromGpuTexture( GpuTextureRegion*, GpuTextureTransferInfo*, void>)( - _slots[169] is not null and var loadedFnPtr + _slots[174] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[169] = nativeContext.LoadFunction("SDL_DownloadFromGPUTexture", "SDL3") + : _slots[174] = nativeContext.LoadFunction("SDL_DownloadFromGPUTexture", "SDL3") ) )(copy_pass, source, destination); @@ -64707,9 +67108,9 @@ uint first_instance ) => ( (delegate* unmanaged)( - _slots[170] is not null and var loadedFnPtr + _slots[175] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[170] = nativeContext.LoadFunction( + : _slots[175] = nativeContext.LoadFunction( "SDL_DrawGPUIndexedPrimitives", "SDL3" ) @@ -64747,9 +67148,9 @@ uint draw_count ) => ( (delegate* unmanaged)( - _slots[171] is not null and var loadedFnPtr + _slots[176] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[171] = nativeContext.LoadFunction( + : _slots[176] = nativeContext.LoadFunction( "SDL_DrawGPUIndexedPrimitivesIndirect", "SDL3" ) @@ -64778,9 +67179,9 @@ uint first_instance ) => ( (delegate* unmanaged)( - _slots[172] is not null and var loadedFnPtr + _slots[177] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[172] = nativeContext.LoadFunction("SDL_DrawGPUPrimitives", "SDL3") + : _slots[177] = nativeContext.LoadFunction("SDL_DrawGPUPrimitives", "SDL3") ) )(render_pass, num_vertices, num_instances, first_vertex, first_instance); @@ -64813,9 +67214,9 @@ uint draw_count ) => ( (delegate* unmanaged)( - _slots[173] is not null and var loadedFnPtr + _slots[178] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[173] = nativeContext.LoadFunction( + : _slots[178] = nativeContext.LoadFunction( "SDL_DrawGPUPrimitivesIndirect", "SDL3" ) @@ -64838,9 +67239,9 @@ uint draw_count Surface* ISdl.DuplicateSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[174] is not null and var loadedFnPtr + _slots[179] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[174] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") + : _slots[179] = nativeContext.LoadFunction("SDL_DuplicateSurface", "SDL3") ) )(surface); @@ -64883,9 +67284,9 @@ public static Ptr DuplicateSurface(Ref surface) => void* ISdl.EglGetCurrentConfigRaw() => ( (delegate* unmanaged)( - _slots[175] is not null and var loadedFnPtr + _slots[180] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[175] = nativeContext.LoadFunction("SDL_EGL_GetCurrentConfig", "SDL3") + : _slots[180] = nativeContext.LoadFunction("SDL_EGL_GetCurrentConfig", "SDL3") ) )(); @@ -64910,9 +67311,9 @@ _slots[175] is not null and var loadedFnPtr void* ISdl.EglGetCurrentDisplayRaw() => ( (delegate* unmanaged)( - _slots[176] is not null and var loadedFnPtr + _slots[181] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[176] = nativeContext.LoadFunction("SDL_EGL_GetCurrentDisplay", "SDL3") + : _slots[181] = nativeContext.LoadFunction("SDL_EGL_GetCurrentDisplay", "SDL3") ) )(); @@ -64927,9 +67328,9 @@ _slots[176] is not null and var loadedFnPtr FunctionPointer ISdl.EglGetProcAddress(sbyte* proc) => ( (delegate* unmanaged)( - _slots[177] is not null and var loadedFnPtr + _slots[182] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[177] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") + : _slots[182] = nativeContext.LoadFunction("SDL_EGL_GetProcAddress", "SDL3") ) )(proc); @@ -64974,9 +67375,9 @@ public static Ptr EglGetWindowSurface(WindowHandle window) => void* ISdl.EglGetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[178] is not null and var loadedFnPtr + _slots[183] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[178] = nativeContext.LoadFunction("SDL_EGL_GetWindowSurface", "SDL3") + : _slots[183] = nativeContext.LoadFunction("SDL_EGL_GetWindowSurface", "SDL3") ) )(window); @@ -65002,9 +67403,9 @@ void ISdl.EglSetAttributeCallbacks( EglIntArrayCallback, void*, void>)( - _slots[179] is not null and var loadedFnPtr + _slots[184] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[179] = nativeContext.LoadFunction( + : _slots[184] = nativeContext.LoadFunction( "SDL_EGL_SetAttributeCallbacks", "SDL3" ) @@ -65081,9 +67482,9 @@ MaybeBool ISdl.EnableScreenSaver() => byte ISdl.EnableScreenSaverRaw() => ( (delegate* unmanaged)( - _slots[180] is not null and var loadedFnPtr + _slots[185] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[180] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") + : _slots[185] = nativeContext.LoadFunction("SDL_EnableScreenSaver", "SDL3") ) )(); @@ -65098,9 +67499,9 @@ _slots[180] is not null and var loadedFnPtr void ISdl.EndGpuComputePass(GpuComputePassHandle compute_pass) => ( (delegate* unmanaged)( - _slots[181] is not null and var loadedFnPtr + _slots[186] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[181] = nativeContext.LoadFunction("SDL_EndGPUComputePass", "SDL3") + : _slots[186] = nativeContext.LoadFunction("SDL_EndGPUComputePass", "SDL3") ) )(compute_pass); @@ -65116,9 +67517,9 @@ public static void EndGpuComputePass(GpuComputePassHandle compute_pass) => void ISdl.EndGpuCopyPass(GpuCopyPassHandle copy_pass) => ( (delegate* unmanaged)( - _slots[182] is not null and var loadedFnPtr + _slots[187] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[182] = nativeContext.LoadFunction("SDL_EndGPUCopyPass", "SDL3") + : _slots[187] = nativeContext.LoadFunction("SDL_EndGPUCopyPass", "SDL3") ) )(copy_pass); @@ -65134,9 +67535,9 @@ public static void EndGpuCopyPass(GpuCopyPassHandle copy_pass) => void ISdl.EndGpuRenderPass(GpuRenderPassHandle render_pass) => ( (delegate* unmanaged)( - _slots[183] is not null and var loadedFnPtr + _slots[188] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[183] = nativeContext.LoadFunction("SDL_EndGPURenderPass", "SDL3") + : _slots[188] = nativeContext.LoadFunction("SDL_EndGPURenderPass", "SDL3") ) )(render_pass); @@ -65166,9 +67567,9 @@ AppQuitFunc appquit AppEventFunc, AppQuitFunc, int>)( - _slots[184] is not null and var loadedFnPtr + _slots[189] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[184] = nativeContext.LoadFunction("SDL_EnterAppMainCallbacks", "SDL3") + : _slots[189] = nativeContext.LoadFunction("SDL_EnterAppMainCallbacks", "SDL3") ) )(argc, argv, appinit, appiter, appevent, appquit); @@ -65232,9 +67633,9 @@ byte ISdl.EnumerateDirectory( ) => ( (delegate* unmanaged)( - _slots[185] is not null and var loadedFnPtr + _slots[190] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[185] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") + : _slots[190] = nativeContext.LoadFunction("SDL_EnumerateDirectory", "SDL3") ) )(path, callback, userdata); @@ -65283,9 +67684,9 @@ byte ISdl.EnumerateProperties( ) => ( (delegate* unmanaged)( - _slots[186] is not null and var loadedFnPtr + _slots[191] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[186] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") + : _slots[191] = nativeContext.LoadFunction("SDL_EnumerateProperties", "SDL3") ) )(props, callback, userdata); @@ -65334,9 +67735,9 @@ byte ISdl.EnumerateStorageDirectory( ) => ( (delegate* unmanaged)( - _slots[187] is not null and var loadedFnPtr + _slots[192] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[187] = nativeContext.LoadFunction( + : _slots[192] = nativeContext.LoadFunction( "SDL_EnumerateStorageDirectory", "SDL3" ) @@ -65404,9 +67805,9 @@ MaybeBool ISdl.EventEnabled(uint type) => byte ISdl.EventEnabledRaw(uint type) => ( (delegate* unmanaged)( - _slots[188] is not null and var loadedFnPtr + _slots[193] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[188] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") + : _slots[193] = nativeContext.LoadFunction("SDL_EventEnabled", "SDL3") ) )(type); @@ -65421,9 +67822,9 @@ _slots[188] is not null and var loadedFnPtr double ISdl.Exp(double x) => ( (delegate* unmanaged)( - _slots[189] is not null and var loadedFnPtr + _slots[194] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[189] = nativeContext.LoadFunction("SDL_exp", "SDL3") + : _slots[194] = nativeContext.LoadFunction("SDL_exp", "SDL3") ) )(x); @@ -65438,9 +67839,9 @@ _slots[189] is not null and var loadedFnPtr float ISdl.Expf(float x) => ( (delegate* unmanaged)( - _slots[190] is not null and var loadedFnPtr + _slots[195] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[190] = nativeContext.LoadFunction("SDL_expf", "SDL3") + : _slots[195] = nativeContext.LoadFunction("SDL_expf", "SDL3") ) )(x); @@ -65455,9 +67856,9 @@ _slots[190] is not null and var loadedFnPtr double ISdl.Fabs(double x) => ( (delegate* unmanaged)( - _slots[191] is not null and var loadedFnPtr + _slots[196] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[191] = nativeContext.LoadFunction("SDL_fabs", "SDL3") + : _slots[196] = nativeContext.LoadFunction("SDL_fabs", "SDL3") ) )(x); @@ -65472,9 +67873,9 @@ _slots[191] is not null and var loadedFnPtr byte ISdl.FillSurfaceRect(Surface* dst, Rect* rect, uint color) => ( (delegate* unmanaged)( - _slots[192] is not null and var loadedFnPtr + _slots[197] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[192] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") + : _slots[197] = nativeContext.LoadFunction("SDL_FillSurfaceRect", "SDL3") ) )(dst, rect, color); @@ -65509,9 +67910,9 @@ public static MaybeBool FillSurfaceRect(Ref dst, Ref rect, byte ISdl.FillSurfaceRects(Surface* dst, Rect* rects, int count, uint color) => ( (delegate* unmanaged)( - _slots[193] is not null and var loadedFnPtr + _slots[198] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[193] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") + : _slots[198] = nativeContext.LoadFunction("SDL_FillSurfaceRects", "SDL3") ) )(dst, rects, count, color); @@ -65550,9 +67951,9 @@ uint color void ISdl.FilterEvents(EventFilter filter, void* userdata) => ( (delegate* unmanaged)( - _slots[194] is not null and var loadedFnPtr + _slots[199] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[194] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") + : _slots[199] = nativeContext.LoadFunction("SDL_FilterEvents", "SDL3") ) )(filter, userdata); @@ -65597,9 +67998,9 @@ public static MaybeBool FlashWindow(WindowHandle window, FlashOperation op byte ISdl.FlashWindowRaw(WindowHandle window, FlashOperation operation) => ( (delegate* unmanaged)( - _slots[195] is not null and var loadedFnPtr + _slots[200] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[195] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") + : _slots[200] = nativeContext.LoadFunction("SDL_FlashWindow", "SDL3") ) )(window, operation); @@ -65615,9 +68016,9 @@ public static byte FlashWindowRaw(WindowHandle window, FlashOperation operation) byte ISdl.FlipSurface(Surface* surface, FlipMode flip) => ( (delegate* unmanaged)( - _slots[196] is not null and var loadedFnPtr + _slots[201] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[196] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") + : _slots[201] = nativeContext.LoadFunction("SDL_FlipSurface", "SDL3") ) )(surface, flip); @@ -65650,9 +68051,9 @@ public static MaybeBool FlipSurface(Ref surface, FlipMode flip) = double ISdl.Floor(double x) => ( (delegate* unmanaged)( - _slots[197] is not null and var loadedFnPtr + _slots[202] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[197] = nativeContext.LoadFunction("SDL_floor", "SDL3") + : _slots[202] = nativeContext.LoadFunction("SDL_floor", "SDL3") ) )(x); @@ -65667,9 +68068,9 @@ _slots[197] is not null and var loadedFnPtr float ISdl.Floorf(float x) => ( (delegate* unmanaged)( - _slots[198] is not null and var loadedFnPtr + _slots[203] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[198] = nativeContext.LoadFunction("SDL_floorf", "SDL3") + : _slots[203] = nativeContext.LoadFunction("SDL_floorf", "SDL3") ) )(x); @@ -65696,9 +68097,9 @@ public static MaybeBool FlushAudioStream(AudioStreamHandle stream) => byte ISdl.FlushAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[199] is not null and var loadedFnPtr + _slots[204] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[199] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") + : _slots[204] = nativeContext.LoadFunction("SDL_FlushAudioStream", "SDL3") ) )(stream); @@ -65714,9 +68115,9 @@ public static byte FlushAudioStreamRaw(AudioStreamHandle stream) => void ISdl.FlushEvent(uint type) => ( (delegate* unmanaged)( - _slots[200] is not null and var loadedFnPtr + _slots[205] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[200] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") + : _slots[205] = nativeContext.LoadFunction("SDL_FlushEvent", "SDL3") ) )(type); @@ -65731,9 +68132,9 @@ _slots[200] is not null and var loadedFnPtr void ISdl.FlushEvents(uint minType, uint maxType) => ( (delegate* unmanaged)( - _slots[201] is not null and var loadedFnPtr + _slots[206] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[201] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") + : _slots[206] = nativeContext.LoadFunction("SDL_FlushEvents", "SDL3") ) )(minType, maxType); @@ -65760,9 +68161,9 @@ MaybeBool ISdl.FlushIO(IOStreamHandle context) => byte ISdl.FlushIORaw(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[202] is not null and var loadedFnPtr + _slots[207] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[202] = nativeContext.LoadFunction("SDL_FlushIO", "SDL3") + : _slots[207] = nativeContext.LoadFunction("SDL_FlushIO", "SDL3") ) )(context); @@ -65789,9 +68190,9 @@ public static MaybeBool FlushRenderer(RendererHandle renderer) => byte ISdl.FlushRendererRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[203] is not null and var loadedFnPtr + _slots[208] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[203] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") + : _slots[208] = nativeContext.LoadFunction("SDL_FlushRenderer", "SDL3") ) )(renderer); @@ -65807,9 +68208,9 @@ public static byte FlushRendererRaw(RendererHandle renderer) => double ISdl.Fmod(double x, double y) => ( (delegate* unmanaged)( - _slots[204] is not null and var loadedFnPtr + _slots[209] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[204] = nativeContext.LoadFunction("SDL_fmod", "SDL3") + : _slots[209] = nativeContext.LoadFunction("SDL_fmod", "SDL3") ) )(x, y); @@ -65824,9 +68225,9 @@ _slots[204] is not null and var loadedFnPtr float ISdl.Fmodf(float x, float y) => ( (delegate* unmanaged)( - _slots[205] is not null and var loadedFnPtr + _slots[210] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[205] = nativeContext.LoadFunction("SDL_fmodf", "SDL3") + : _slots[210] = nativeContext.LoadFunction("SDL_fmodf", "SDL3") ) )(x, y); @@ -65841,9 +68242,9 @@ _slots[205] is not null and var loadedFnPtr void ISdl.Free(void* mem) => ( (delegate* unmanaged)( - _slots[206] is not null and var loadedFnPtr + _slots[211] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[206] = nativeContext.LoadFunction("SDL_free", "SDL3") + : _slots[211] = nativeContext.LoadFunction("SDL_free", "SDL3") ) )(mem); @@ -65886,9 +68287,9 @@ public static MaybeBool GamepadConnected(GamepadHandle gamepad) => byte ISdl.GamepadConnectedRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[207] is not null and var loadedFnPtr + _slots[212] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[207] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") + : _slots[212] = nativeContext.LoadFunction("SDL_GamepadConnected", "SDL3") ) )(gamepad); @@ -65915,9 +68316,9 @@ MaybeBool ISdl.GamepadEventsEnabled() => byte ISdl.GamepadEventsEnabledRaw() => ( (delegate* unmanaged)( - _slots[208] is not null and var loadedFnPtr + _slots[213] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[208] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + : _slots[213] = nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") ) )(); @@ -65944,9 +68345,9 @@ public static MaybeBool GamepadHasAxis(GamepadHandle gamepad, GamepadAxis byte ISdl.GamepadHasAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[209] is not null and var loadedFnPtr + _slots[214] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[209] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") + : _slots[214] = nativeContext.LoadFunction("SDL_GamepadHasAxis", "SDL3") ) )(gamepad, axis); @@ -65974,9 +68375,9 @@ public static MaybeBool GamepadHasButton(GamepadHandle gamepad, GamepadBut byte ISdl.GamepadHasButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[210] is not null and var loadedFnPtr + _slots[215] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[210] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") + : _slots[215] = nativeContext.LoadFunction("SDL_GamepadHasButton", "SDL3") ) )(gamepad, button); @@ -66004,9 +68405,9 @@ public static MaybeBool GamepadHasSensor(GamepadHandle gamepad, SensorType byte ISdl.GamepadHasSensorRaw(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[211] is not null and var loadedFnPtr + _slots[216] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[211] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") + : _slots[216] = nativeContext.LoadFunction("SDL_GamepadHasSensor", "SDL3") ) )(gamepad, type); @@ -66034,9 +68435,9 @@ public static MaybeBool GamepadSensorEnabled(GamepadHandle gamepad, Sensor byte ISdl.GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[212] is not null and var loadedFnPtr + _slots[217] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[212] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") + : _slots[217] = nativeContext.LoadFunction("SDL_GamepadSensorEnabled", "SDL3") ) )(gamepad, type); @@ -66052,9 +68453,9 @@ public static byte GamepadSensorEnabledRaw(GamepadHandle gamepad, SensorType typ void ISdl.GdkSuspendComplete() => ( (delegate* unmanaged)( - _slots[213] is not null and var loadedFnPtr + _slots[218] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[213] = nativeContext.LoadFunction("SDL_GDKSuspendComplete", "SDL3") + : _slots[218] = nativeContext.LoadFunction("SDL_GDKSuspendComplete", "SDL3") ) )(); @@ -66072,9 +68473,9 @@ GpuTextureHandle texture ) => ( (delegate* unmanaged)( - _slots[214] is not null and var loadedFnPtr + _slots[219] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[214] = nativeContext.LoadFunction( + : _slots[219] = nativeContext.LoadFunction( "SDL_GenerateMipmapsForGPUTexture", "SDL3" ) @@ -66095,9 +68496,9 @@ GpuTextureHandle texture sbyte* ISdl.GetAppMetadataProperty(sbyte* name) => ( (delegate* unmanaged)( - _slots[215] is not null and var loadedFnPtr + _slots[220] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[215] = nativeContext.LoadFunction("SDL_GetAppMetadataProperty", "SDL3") + : _slots[220] = nativeContext.LoadFunction("SDL_GetAppMetadataProperty", "SDL3") ) )(name); @@ -66130,9 +68531,9 @@ public static Ptr GetAppMetadataProperty(Ref name) => AssertionHandler ISdl.GetAssertionHandler(void** puserdata) => ( (delegate* unmanaged)( - _slots[216] is not null and var loadedFnPtr + _slots[221] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[216] = nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") + : _slots[221] = nativeContext.LoadFunction("SDL_GetAssertionHandler", "SDL3") ) )(puserdata); @@ -66175,9 +68576,9 @@ public static AssertionHandler GetAssertionHandler(Ref2D puserdata) => AssertData* ISdl.GetAssertionReportRaw() => ( (delegate* unmanaged)( - _slots[217] is not null and var loadedFnPtr + _slots[222] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[217] = nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") + : _slots[222] = nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") ) )(); @@ -66192,9 +68593,9 @@ _slots[217] is not null and var loadedFnPtr int ISdl.GetAtomicInt(AtomicInt* a) => ( (delegate* unmanaged)( - _slots[218] is not null and var loadedFnPtr + _slots[223] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[218] = nativeContext.LoadFunction("SDL_GetAtomicInt", "SDL3") + : _slots[223] = nativeContext.LoadFunction("SDL_GetAtomicInt", "SDL3") ) )(a); @@ -66225,9 +68626,9 @@ int ISdl.GetAtomicInt(Ref a) void* ISdl.GetAtomicPointer(void** a) => ( (delegate* unmanaged)( - _slots[219] is not null and var loadedFnPtr + _slots[224] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[219] = nativeContext.LoadFunction("SDL_GetAtomicPointer", "SDL3") + : _slots[224] = nativeContext.LoadFunction("SDL_GetAtomicPointer", "SDL3") ) )(a); @@ -66258,9 +68659,9 @@ Ptr ISdl.GetAtomicPointer(Ref2D a) uint ISdl.GetAtomicU32(AtomicU32* a) => ( (delegate* unmanaged)( - _slots[220] is not null and var loadedFnPtr + _slots[225] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[220] = nativeContext.LoadFunction("SDL_GetAtomicU32", "SDL3") + : _slots[225] = nativeContext.LoadFunction("SDL_GetAtomicU32", "SDL3") ) )(a); @@ -66291,9 +68692,9 @@ uint ISdl.GetAtomicU32(Ref a) int* ISdl.GetAudioDeviceChannelMap(uint devid, int* count) => ( (delegate* unmanaged)( - _slots[221] is not null and var loadedFnPtr + _slots[226] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[221] = nativeContext.LoadFunction( + : _slots[226] = nativeContext.LoadFunction( "SDL_GetAudioDeviceChannelMap", "SDL3" ) @@ -66329,9 +68730,9 @@ public static Ptr GetAudioDeviceChannelMap(uint devid, Ref count) => byte ISdl.GetAudioDeviceFormat(uint devid, AudioSpec* spec, int* sample_frames) => ( (delegate* unmanaged)( - _slots[222] is not null and var loadedFnPtr + _slots[227] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[222] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") + : _slots[227] = nativeContext.LoadFunction("SDL_GetAudioDeviceFormat", "SDL3") ) )(devid, spec, sample_frames); @@ -66373,9 +68774,9 @@ Ref sample_frames float ISdl.GetAudioDeviceGain(uint devid) => ( (delegate* unmanaged)( - _slots[223] is not null and var loadedFnPtr + _slots[228] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[223] = nativeContext.LoadFunction("SDL_GetAudioDeviceGain", "SDL3") + : _slots[228] = nativeContext.LoadFunction("SDL_GetAudioDeviceGain", "SDL3") ) )(devid); @@ -66401,9 +68802,9 @@ Ptr ISdl.GetAudioDeviceName(uint devid) => sbyte* ISdl.GetAudioDeviceNameRaw(uint devid) => ( (delegate* unmanaged)( - _slots[224] is not null and var loadedFnPtr + _slots[229] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[224] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + : _slots[229] = nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") ) )(devid); @@ -66429,9 +68830,9 @@ _slots[224] is not null and var loadedFnPtr sbyte* ISdl.GetAudioDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[225] is not null and var loadedFnPtr + _slots[230] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[225] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + : _slots[230] = nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") ) )(index); @@ -66458,9 +68859,9 @@ public static Ptr GetAudioFormatName(AudioFormat format) => sbyte* ISdl.GetAudioFormatNameRaw(AudioFormat format) => ( (delegate* unmanaged)( - _slots[226] is not null and var loadedFnPtr + _slots[231] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[226] = nativeContext.LoadFunction("SDL_GetAudioFormatName", "SDL3") + : _slots[231] = nativeContext.LoadFunction("SDL_GetAudioFormatName", "SDL3") ) )(format); @@ -66476,9 +68877,9 @@ _slots[226] is not null and var loadedFnPtr uint* ISdl.GetAudioPlaybackDevices(int* count) => ( (delegate* unmanaged)( - _slots[227] is not null and var loadedFnPtr + _slots[232] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[227] = nativeContext.LoadFunction( + : _slots[232] = nativeContext.LoadFunction( "SDL_GetAudioPlaybackDevices", "SDL3" ) @@ -66514,9 +68915,9 @@ public static Ptr GetAudioPlaybackDevices(Ref count) => uint* ISdl.GetAudioRecordingDevices(int* count) => ( (delegate* unmanaged)( - _slots[228] is not null and var loadedFnPtr + _slots[233] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[228] = nativeContext.LoadFunction( + : _slots[233] = nativeContext.LoadFunction( "SDL_GetAudioRecordingDevices", "SDL3" ) @@ -66552,9 +68953,9 @@ public static Ptr GetAudioRecordingDevices(Ref count) => int ISdl.GetAudioStreamAvailable(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[229] is not null and var loadedFnPtr + _slots[234] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[229] = nativeContext.LoadFunction( + : _slots[234] = nativeContext.LoadFunction( "SDL_GetAudioStreamAvailable", "SDL3" ) @@ -66573,9 +68974,9 @@ public static int GetAudioStreamAvailable(AudioStreamHandle stream) => int ISdl.GetAudioStreamData(AudioStreamHandle stream, void* buf, int len) => ( (delegate* unmanaged)( - _slots[230] is not null and var loadedFnPtr + _slots[235] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[230] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") + : _slots[235] = nativeContext.LoadFunction("SDL_GetAudioStreamData", "SDL3") ) )(stream, buf, len); @@ -66608,9 +69009,9 @@ public static int GetAudioStreamData(AudioStreamHandle stream, Ref buf, int len) uint ISdl.GetAudioStreamDevice(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[231] is not null and var loadedFnPtr + _slots[236] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[231] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") + : _slots[236] = nativeContext.LoadFunction("SDL_GetAudioStreamDevice", "SDL3") ) )(stream); @@ -66630,9 +69031,9 @@ byte ISdl.GetAudioStreamFormat( ) => ( (delegate* unmanaged)( - _slots[232] is not null and var loadedFnPtr + _slots[237] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[232] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") + : _slots[237] = nativeContext.LoadFunction("SDL_GetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); @@ -66677,9 +69078,9 @@ Ref dst_spec float ISdl.GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[233] is not null and var loadedFnPtr + _slots[238] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[233] = nativeContext.LoadFunction( + : _slots[238] = nativeContext.LoadFunction( "SDL_GetAudioStreamFrequencyRatio", "SDL3" ) @@ -66698,9 +69099,9 @@ public static float GetAudioStreamFrequencyRatio(AudioStreamHandle stream) => float ISdl.GetAudioStreamGain(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[234] is not null and var loadedFnPtr + _slots[239] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[234] = nativeContext.LoadFunction("SDL_GetAudioStreamGain", "SDL3") + : _slots[239] = nativeContext.LoadFunction("SDL_GetAudioStreamGain", "SDL3") ) )(stream); @@ -66716,9 +69117,9 @@ public static float GetAudioStreamGain(AudioStreamHandle stream) => int* ISdl.GetAudioStreamInputChannelMap(AudioStreamHandle stream, int* count) => ( (delegate* unmanaged)( - _slots[235] is not null and var loadedFnPtr + _slots[240] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[235] = nativeContext.LoadFunction( + : _slots[240] = nativeContext.LoadFunction( "SDL_GetAudioStreamInputChannelMap", "SDL3" ) @@ -66756,9 +69157,9 @@ Ref count int* ISdl.GetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* count) => ( (delegate* unmanaged)( - _slots[236] is not null and var loadedFnPtr + _slots[241] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[236] = nativeContext.LoadFunction( + : _slots[241] = nativeContext.LoadFunction( "SDL_GetAudioStreamOutputChannelMap", "SDL3" ) @@ -66796,9 +69197,9 @@ Ref count uint ISdl.GetAudioStreamProperties(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[237] is not null and var loadedFnPtr + _slots[242] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[237] = nativeContext.LoadFunction( + : _slots[242] = nativeContext.LoadFunction( "SDL_GetAudioStreamProperties", "SDL3" ) @@ -66817,9 +69218,9 @@ public static uint GetAudioStreamProperties(AudioStreamHandle stream) => int ISdl.GetAudioStreamQueued(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[238] is not null and var loadedFnPtr + _slots[243] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[238] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") + : _slots[243] = nativeContext.LoadFunction("SDL_GetAudioStreamQueued", "SDL3") ) )(stream); @@ -66845,9 +69246,9 @@ public static int GetAudioStreamQueued(AudioStreamHandle stream) => sbyte* ISdl.GetBasePathRaw() => ( (delegate* unmanaged)( - _slots[239] is not null and var loadedFnPtr + _slots[244] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[239] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") + : _slots[244] = nativeContext.LoadFunction("SDL_GetBasePath", "SDL3") ) )(); @@ -66862,9 +69263,9 @@ _slots[239] is not null and var loadedFnPtr byte ISdl.GetBooleanProperty(uint props, sbyte* name, byte default_value) => ( (delegate* unmanaged)( - _slots[240] is not null and var loadedFnPtr + _slots[245] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[240] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") + : _slots[245] = nativeContext.LoadFunction("SDL_GetBooleanProperty", "SDL3") ) )(props, name, default_value); @@ -66915,9 +69316,9 @@ MaybeBool default_value sbyte* ISdl.GetCameraDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[241] is not null and var loadedFnPtr + _slots[246] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[241] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + : _slots[246] = nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") ) )(index); @@ -66932,9 +69333,9 @@ _slots[241] is not null and var loadedFnPtr byte ISdl.GetCameraFormat(CameraHandle camera, CameraSpec* spec) => ( (delegate* unmanaged)( - _slots[242] is not null and var loadedFnPtr + _slots[247] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[242] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") + : _slots[247] = nativeContext.LoadFunction("SDL_GetCameraFormat", "SDL3") ) )(camera, spec); @@ -66967,9 +69368,9 @@ public static MaybeBool GetCameraFormat(CameraHandle camera, Ref ( (delegate* unmanaged)( - _slots[243] is not null and var loadedFnPtr + _slots[248] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[243] = nativeContext.LoadFunction("SDL_GetCameraID", "SDL3") + : _slots[248] = nativeContext.LoadFunction("SDL_GetCameraID", "SDL3") ) )(camera); @@ -66996,9 +69397,9 @@ public static Ptr GetCameraName(uint instance_id) => sbyte* ISdl.GetCameraNameRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[244] is not null and var loadedFnPtr + _slots[249] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[244] = nativeContext.LoadFunction("SDL_GetCameraName", "SDL3") + : _slots[249] = nativeContext.LoadFunction("SDL_GetCameraName", "SDL3") ) )(instance_id); @@ -67011,12 +69412,12 @@ _slots[244] is not null and var loadedFnPtr [NativeName("SDL_GetCameraPermissionState")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - int ISdl.GetCameraPermissionState(CameraHandle camera) => + CameraPermissionState ISdl.GetCameraPermissionState(CameraHandle camera) => ( - (delegate* unmanaged)( - _slots[245] is not null and var loadedFnPtr + (delegate* unmanaged)( + _slots[250] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[245] = nativeContext.LoadFunction( + : _slots[250] = nativeContext.LoadFunction( "SDL_GetCameraPermissionState", "SDL3" ) @@ -67026,7 +69427,7 @@ _slots[245] is not null and var loadedFnPtr [NativeName("SDL_GetCameraPermissionState")] [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] - public static int GetCameraPermissionState(CameraHandle camera) => + public static CameraPermissionState GetCameraPermissionState(CameraHandle camera) => DllImport.GetCameraPermissionState(camera); [NativeName("SDL_GetCameraPosition")] @@ -67035,9 +69436,9 @@ public static int GetCameraPermissionState(CameraHandle camera) => CameraPosition ISdl.GetCameraPosition(uint instance_id) => ( (delegate* unmanaged)( - _slots[246] is not null and var loadedFnPtr + _slots[251] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[246] = nativeContext.LoadFunction("SDL_GetCameraPosition", "SDL3") + : _slots[251] = nativeContext.LoadFunction("SDL_GetCameraPosition", "SDL3") ) )(instance_id); @@ -67053,9 +69454,9 @@ public static CameraPosition GetCameraPosition(uint instance_id) => uint ISdl.GetCameraProperties(CameraHandle camera) => ( (delegate* unmanaged)( - _slots[247] is not null and var loadedFnPtr + _slots[252] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[247] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") + : _slots[252] = nativeContext.LoadFunction("SDL_GetCameraProperties", "SDL3") ) )(camera); @@ -67071,9 +69472,9 @@ public static uint GetCameraProperties(CameraHandle camera) => uint* ISdl.GetCameras(int* count) => ( (delegate* unmanaged)( - _slots[248] is not null and var loadedFnPtr + _slots[253] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[248] = nativeContext.LoadFunction("SDL_GetCameras", "SDL3") + : _slots[253] = nativeContext.LoadFunction("SDL_GetCameras", "SDL3") ) )(count); @@ -67104,9 +69505,9 @@ Ptr ISdl.GetCameras(Ref count) CameraSpec** ISdl.GetCameraSupportedFormats(uint instance_id, int* count) => ( (delegate* unmanaged)( - _slots[249] is not null and var loadedFnPtr + _slots[254] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[249] = nativeContext.LoadFunction( + : _slots[254] = nativeContext.LoadFunction( "SDL_GetCameraSupportedFormats", "SDL3" ) @@ -67142,9 +69543,9 @@ public static Ptr2D GetCameraSupportedFormats(uint instance_id, Ref< void* ISdl.GetClipboardData(sbyte* mime_type, nuint* size) => ( (delegate* unmanaged)( - _slots[250] is not null and var loadedFnPtr + _slots[255] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[250] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") + : _slots[255] = nativeContext.LoadFunction("SDL_GetClipboardData", "SDL3") ) )(mime_type, size); @@ -67178,9 +69579,9 @@ public static Ptr GetClipboardData(Ref mime_type, Ref size) => sbyte** ISdl.GetClipboardMimeTypes(nuint* num_mime_types) => ( (delegate* unmanaged)( - _slots[251] is not null and var loadedFnPtr + _slots[256] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[251] = nativeContext.LoadFunction("SDL_GetClipboardMimeTypes", "SDL3") + : _slots[256] = nativeContext.LoadFunction("SDL_GetClipboardMimeTypes", "SDL3") ) )(num_mime_types); @@ -67223,9 +69624,9 @@ public static Ptr2D GetClipboardMimeTypes(Ref num_mime_types) => sbyte* ISdl.GetClipboardTextRaw() => ( (delegate* unmanaged)( - _slots[252] is not null and var loadedFnPtr + _slots[257] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[252] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") + : _slots[257] = nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3") ) )(); @@ -67247,9 +69648,9 @@ byte ISdl.GetClosestFullscreenDisplayMode( ) => ( (delegate* unmanaged)( - _slots[253] is not null and var loadedFnPtr + _slots[258] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[253] = nativeContext.LoadFunction( + : _slots[258] = nativeContext.LoadFunction( "SDL_GetClosestFullscreenDisplayMode", "SDL3" ) @@ -67329,9 +69730,9 @@ Ref closest int ISdl.GetCpuCacheLineSize() => ( (delegate* unmanaged)( - _slots[254] is not null and var loadedFnPtr + _slots[259] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[254] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") + : _slots[259] = nativeContext.LoadFunction("SDL_GetCPUCacheLineSize", "SDL3") ) )(); @@ -67356,9 +69757,9 @@ _slots[254] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentAudioDriverRaw() => ( (delegate* unmanaged)( - _slots[255] is not null and var loadedFnPtr + _slots[260] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[255] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + : _slots[260] = nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") ) )(); @@ -67383,9 +69784,9 @@ _slots[255] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentCameraDriverRaw() => ( (delegate* unmanaged)( - _slots[256] is not null and var loadedFnPtr + _slots[261] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[256] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + : _slots[261] = nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") ) )(); @@ -67410,9 +69811,9 @@ _slots[256] is not null and var loadedFnPtr sbyte* ISdl.GetCurrentDirectoryRaw() => ( (delegate* unmanaged)( - _slots[257] is not null and var loadedFnPtr + _slots[262] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[257] = nativeContext.LoadFunction("SDL_GetCurrentDirectory", "SDL3") + : _slots[262] = nativeContext.LoadFunction("SDL_GetCurrentDirectory", "SDL3") ) )(); @@ -67439,9 +69840,9 @@ public static Ptr GetCurrentDisplayMode(uint displayID) => DisplayMode* ISdl.GetCurrentDisplayModeRaw(uint displayID) => ( (delegate* unmanaged)( - _slots[258] is not null and var loadedFnPtr + _slots[263] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[258] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + : _slots[263] = nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") ) )(displayID); @@ -67457,9 +69858,9 @@ _slots[258] is not null and var loadedFnPtr DisplayOrientation ISdl.GetCurrentDisplayOrientation(uint displayID) => ( (delegate* unmanaged)( - _slots[259] is not null and var loadedFnPtr + _slots[264] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[259] = nativeContext.LoadFunction( + : _slots[264] = nativeContext.LoadFunction( "SDL_GetCurrentDisplayOrientation", "SDL3" ) @@ -67478,9 +69879,9 @@ public static DisplayOrientation GetCurrentDisplayOrientation(uint displayID) => byte ISdl.GetCurrentRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( (delegate* unmanaged)( - _slots[260] is not null and var loadedFnPtr + _slots[265] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[260] = nativeContext.LoadFunction( + : _slots[265] = nativeContext.LoadFunction( "SDL_GetCurrentRenderOutputSize", "SDL3" ) @@ -67521,9 +69922,9 @@ Ref h ulong ISdl.GetCurrentThreadID() => ( (delegate* unmanaged)( - _slots[261] is not null and var loadedFnPtr + _slots[266] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[261] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") + : _slots[266] = nativeContext.LoadFunction("SDL_GetCurrentThreadID", "SDL3") ) )(); @@ -67538,9 +69939,9 @@ _slots[261] is not null and var loadedFnPtr byte ISdl.GetCurrentTime(long* ticks) => ( (delegate* unmanaged)( - _slots[262] is not null and var loadedFnPtr + _slots[267] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[262] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") + : _slots[267] = nativeContext.LoadFunction("SDL_GetCurrentTime", "SDL3") ) )(ticks); @@ -67582,9 +69983,9 @@ public static MaybeBool GetCurrentTime(Ref ticks) => sbyte* ISdl.GetCurrentVideoDriverRaw() => ( (delegate* unmanaged)( - _slots[263] is not null and var loadedFnPtr + _slots[268] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[263] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + : _slots[268] = nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") ) )(); @@ -67599,9 +70000,9 @@ _slots[263] is not null and var loadedFnPtr CursorHandle ISdl.GetCursor() => ( (delegate* unmanaged)( - _slots[264] is not null and var loadedFnPtr + _slots[269] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[264] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") + : _slots[269] = nativeContext.LoadFunction("SDL_GetCursor", "SDL3") ) )(); @@ -67616,9 +70017,9 @@ _slots[264] is not null and var loadedFnPtr byte ISdl.GetDateTimeLocalePreferences(DateFormat* dateFormat, TimeFormat* timeFormat) => ( (delegate* unmanaged)( - _slots[265] is not null and var loadedFnPtr + _slots[270] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[265] = nativeContext.LoadFunction( + : _slots[270] = nativeContext.LoadFunction( "SDL_GetDateTimeLocalePreferences", "SDL3" ) @@ -67663,9 +70064,9 @@ Ref timeFormat int ISdl.GetDayOfWeek(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[266] is not null and var loadedFnPtr + _slots[271] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[266] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") + : _slots[271] = nativeContext.LoadFunction("SDL_GetDayOfWeek", "SDL3") ) )(year, month, day); @@ -67681,9 +70082,9 @@ public static int GetDayOfWeek(int year, int month, int day) => int ISdl.GetDayOfYear(int year, int month, int day) => ( (delegate* unmanaged)( - _slots[267] is not null and var loadedFnPtr + _slots[272] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[267] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") + : _slots[272] = nativeContext.LoadFunction("SDL_GetDayOfYear", "SDL3") ) )(year, month, day); @@ -67699,9 +70100,9 @@ public static int GetDayOfYear(int year, int month, int day) => int ISdl.GetDaysInMonth(int year, int month) => ( (delegate* unmanaged)( - _slots[268] is not null and var loadedFnPtr + _slots[273] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[268] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") + : _slots[273] = nativeContext.LoadFunction("SDL_GetDaysInMonth", "SDL3") ) )(year, month); @@ -67716,9 +70117,9 @@ _slots[268] is not null and var loadedFnPtr AssertionHandler ISdl.GetDefaultAssertionHandler() => ( (delegate* unmanaged)( - _slots[269] is not null and var loadedFnPtr + _slots[274] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[269] = nativeContext.LoadFunction( + : _slots[274] = nativeContext.LoadFunction( "SDL_GetDefaultAssertionHandler", "SDL3" ) @@ -67737,9 +70138,9 @@ public static AssertionHandler GetDefaultAssertionHandler() => CursorHandle ISdl.GetDefaultCursor() => ( (delegate* unmanaged)( - _slots[270] is not null and var loadedFnPtr + _slots[275] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[270] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + : _slots[275] = nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") ) )(); @@ -67754,9 +70155,9 @@ _slots[270] is not null and var loadedFnPtr LogOutputFunction ISdl.GetDefaultLogOutputFunction() => ( (delegate* unmanaged)( - _slots[271] is not null and var loadedFnPtr + _slots[276] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[271] = nativeContext.LoadFunction( + : _slots[276] = nativeContext.LoadFunction( "SDL_GetDefaultLogOutputFunction", "SDL3" ) @@ -67769,6 +70170,50 @@ _slots[271] is not null and var loadedFnPtr public static LogOutputFunction GetDefaultLogOutputFunction() => DllImport.GetDefaultLogOutputFunction(); + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetDefaultTextureScaleMode(RendererHandle renderer, ScaleMode* scale_mode) => + ( + (delegate* unmanaged)( + _slots[277] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[277] = nativeContext.LoadFunction( + "SDL_GetDefaultTextureScaleMode", + "SDL3" + ) + ) + )(renderer, scale_mode); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetDefaultTextureScaleMode(RendererHandle renderer, ScaleMode* scale_mode) => + DllImport.GetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + { + return (MaybeBool) + (byte)((ISdl)this).GetDefaultTextureScaleMode(renderer, __dsl_scale_mode); + } + } + + [NativeName("SDL_GetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetDefaultTextureScaleMode( + RendererHandle renderer, + Ref scale_mode + ) => DllImport.GetDefaultTextureScaleMode(renderer, scale_mode); + [NativeName("SDL_GetDesktopDisplayMode")] [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -67787,9 +70232,9 @@ public static Ptr GetDesktopDisplayMode(uint displayID) => DisplayMode* ISdl.GetDesktopDisplayModeRaw(uint displayID) => ( (delegate* unmanaged)( - _slots[272] is not null and var loadedFnPtr + _slots[278] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[272] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + : _slots[278] = nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") ) )(displayID); @@ -67805,9 +70250,9 @@ _slots[272] is not null and var loadedFnPtr int ISdl.GetDirect3D9AdapterIndex(uint displayID) => ( (delegate* unmanaged)( - _slots[273] is not null and var loadedFnPtr + _slots[279] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[273] = nativeContext.LoadFunction( + : _slots[279] = nativeContext.LoadFunction( "SDL_GetDirect3D9AdapterIndex", "SDL3" ) @@ -67826,9 +70271,9 @@ public static int GetDirect3D9AdapterIndex(uint displayID) => byte ISdl.GetDisplayBounds(uint displayID, Rect* rect) => ( (delegate* unmanaged)( - _slots[274] is not null and var loadedFnPtr + _slots[280] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[274] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") + : _slots[280] = nativeContext.LoadFunction("SDL_GetDisplayBounds", "SDL3") ) )(displayID, rect); @@ -67861,9 +70306,9 @@ public static MaybeBool GetDisplayBounds(uint displayID, Ref rect) = float ISdl.GetDisplayContentScale(uint displayID) => ( (delegate* unmanaged)( - _slots[275] is not null and var loadedFnPtr + _slots[281] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[275] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") + : _slots[281] = nativeContext.LoadFunction("SDL_GetDisplayContentScale", "SDL3") ) )(displayID); @@ -67879,9 +70324,9 @@ public static float GetDisplayContentScale(uint displayID) => uint ISdl.GetDisplayForPoint(Point* point) => ( (delegate* unmanaged)( - _slots[276] is not null and var loadedFnPtr + _slots[282] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[276] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") + : _slots[282] = nativeContext.LoadFunction("SDL_GetDisplayForPoint", "SDL3") ) )(point); @@ -67912,9 +70357,9 @@ uint ISdl.GetDisplayForPoint(Ref point) uint ISdl.GetDisplayForRect(Rect* rect) => ( (delegate* unmanaged)( - _slots[277] is not null and var loadedFnPtr + _slots[283] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[277] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") + : _slots[283] = nativeContext.LoadFunction("SDL_GetDisplayForRect", "SDL3") ) )(rect); @@ -67945,9 +70390,9 @@ uint ISdl.GetDisplayForRect(Ref rect) uint ISdl.GetDisplayForWindow(WindowHandle window) => ( (delegate* unmanaged)( - _slots[278] is not null and var loadedFnPtr + _slots[284] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[278] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") + : _slots[284] = nativeContext.LoadFunction("SDL_GetDisplayForWindow", "SDL3") ) )(window); @@ -67974,9 +70419,9 @@ Ptr ISdl.GetDisplayName(uint displayID) => sbyte* ISdl.GetDisplayNameRaw(uint displayID) => ( (delegate* unmanaged)( - _slots[279] is not null and var loadedFnPtr + _slots[285] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[279] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + : _slots[285] = nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") ) )(displayID); @@ -67992,9 +70437,9 @@ _slots[279] is not null and var loadedFnPtr uint ISdl.GetDisplayProperties(uint displayID) => ( (delegate* unmanaged)( - _slots[280] is not null and var loadedFnPtr + _slots[286] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[280] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") + : _slots[286] = nativeContext.LoadFunction("SDL_GetDisplayProperties", "SDL3") ) )(displayID); @@ -68010,9 +70455,9 @@ public static uint GetDisplayProperties(uint displayID) => uint* ISdl.GetDisplays(int* count) => ( (delegate* unmanaged)( - _slots[281] is not null and var loadedFnPtr + _slots[287] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[281] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") + : _slots[287] = nativeContext.LoadFunction("SDL_GetDisplays", "SDL3") ) )(count); @@ -68043,9 +70488,9 @@ Ptr ISdl.GetDisplays(Ref count) byte ISdl.GetDisplayUsableBounds(uint displayID, Rect* rect) => ( (delegate* unmanaged)( - _slots[282] is not null and var loadedFnPtr + _slots[288] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[282] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") + : _slots[288] = nativeContext.LoadFunction("SDL_GetDisplayUsableBounds", "SDL3") ) )(displayID, rect); @@ -68079,9 +70524,9 @@ public static MaybeBool GetDisplayUsableBounds(uint displayID, Ref r byte ISdl.GetDxgiOutputInfo(uint displayID, int* adapterIndex, int* outputIndex) => ( (delegate* unmanaged)( - _slots[283] is not null and var loadedFnPtr + _slots[289] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[283] = nativeContext.LoadFunction("SDL_GetDXGIOutputInfo", "SDL3") + : _slots[289] = nativeContext.LoadFunction("SDL_GetDXGIOutputInfo", "SDL3") ) )(displayID, adapterIndex, outputIndex); @@ -68128,9 +70573,9 @@ Ref outputIndex sbyte* ISdl.Getenv(sbyte* name) => ( (delegate* unmanaged)( - _slots[284] is not null and var loadedFnPtr + _slots[290] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[284] = nativeContext.LoadFunction("SDL_getenv", "SDL3") + : _slots[290] = nativeContext.LoadFunction("SDL_getenv", "SDL3") ) )(name); @@ -68161,9 +70606,9 @@ Ptr ISdl.Getenv(Ref name) sbyte* ISdl.GetenvUnsafe(sbyte* name) => ( (delegate* unmanaged)( - _slots[285] is not null and var loadedFnPtr + _slots[291] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[285] = nativeContext.LoadFunction("SDL_getenv_unsafe", "SDL3") + : _slots[291] = nativeContext.LoadFunction("SDL_getenv_unsafe", "SDL3") ) )(name); @@ -68194,9 +70639,9 @@ Ptr ISdl.GetenvUnsafe(Ref name) EnvironmentHandle ISdl.GetEnvironment() => ( (delegate* unmanaged)( - _slots[286] is not null and var loadedFnPtr + _slots[292] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[286] = nativeContext.LoadFunction("SDL_GetEnvironment", "SDL3") + : _slots[292] = nativeContext.LoadFunction("SDL_GetEnvironment", "SDL3") ) )(); @@ -68211,9 +70656,9 @@ _slots[286] is not null and var loadedFnPtr sbyte* ISdl.GetEnvironmentVariable(EnvironmentHandle env, sbyte* name) => ( (delegate* unmanaged)( - _slots[287] is not null and var loadedFnPtr + _slots[293] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[287] = nativeContext.LoadFunction("SDL_GetEnvironmentVariable", "SDL3") + : _slots[293] = nativeContext.LoadFunction("SDL_GetEnvironmentVariable", "SDL3") ) )(env, name); @@ -68258,9 +70703,9 @@ public static Ptr2D GetEnvironmentVariables(EnvironmentHandle env) => sbyte** ISdl.GetEnvironmentVariablesRaw(EnvironmentHandle env) => ( (delegate* unmanaged)( - _slots[288] is not null and var loadedFnPtr + _slots[294] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[288] = nativeContext.LoadFunction( + : _slots[294] = nativeContext.LoadFunction( "SDL_GetEnvironmentVariables", "SDL3" ) @@ -68289,9 +70734,9 @@ _slots[288] is not null and var loadedFnPtr sbyte* ISdl.GetErrorRaw() => ( (delegate* unmanaged)( - _slots[289] is not null and var loadedFnPtr + _slots[295] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[289] = nativeContext.LoadFunction("SDL_GetError", "SDL3") + : _slots[295] = nativeContext.LoadFunction("SDL_GetError", "SDL3") ) )(); @@ -68300,15 +70745,51 @@ _slots[289] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetErrorRaw() => DllImport.GetErrorRaw(); + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetEventDescription(Event* @event, sbyte* buf, int buflen) => + ( + (delegate* unmanaged)( + _slots[296] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[296] = nativeContext.LoadFunction("SDL_GetEventDescription", "SDL3") + ) + )(@event, buf, buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetEventDescription(Event* @event, sbyte* buf, int buflen) => + DllImport.GetEventDescription(@event, buf, buflen); + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetEventDescription(Ref @event, Ref buf, int buflen) + { + fixed (sbyte* __dsl_buf = buf) + fixed (Event* __dsl_event = @event) + { + return (int)((ISdl)this).GetEventDescription(__dsl_event, __dsl_buf, buflen); + } + } + + [NativeName("SDL_GetEventDescription")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventDescription")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetEventDescription(Ref @event, Ref buf, int buflen) => + DllImport.GetEventDescription(@event, buf, buflen); + [NativeName("SDL_GetEventFilter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetEventFilter(EventFilter* filter, void** userdata) => ( (delegate* unmanaged)( - _slots[290] is not null and var loadedFnPtr + _slots[297] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[290] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") + : _slots[297] = nativeContext.LoadFunction("SDL_GetEventFilter", "SDL3") ) )(filter, userdata); @@ -68342,9 +70823,9 @@ public static MaybeBool GetEventFilter(Ref filter, Ref2D user float ISdl.GetFloatProperty(uint props, sbyte* name, float default_value) => ( (delegate* unmanaged)( - _slots[291] is not null and var loadedFnPtr + _slots[298] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[291] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") + : _slots[298] = nativeContext.LoadFunction("SDL_GetFloatProperty", "SDL3") ) )(props, name, default_value); @@ -68377,9 +70858,9 @@ public static float GetFloatProperty(uint props, Ref name, float default_ DisplayMode** ISdl.GetFullscreenDisplayModes(uint displayID, int* count) => ( (delegate* unmanaged)( - _slots[292] is not null and var loadedFnPtr + _slots[299] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[292] = nativeContext.LoadFunction( + : _slots[299] = nativeContext.LoadFunction( "SDL_GetFullscreenDisplayModes", "SDL3" ) @@ -68429,9 +70910,9 @@ GamepadAxis axis sbyte* ISdl.GetGamepadAppleSFSymbolsNameForAxisRaw(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[293] is not null and var loadedFnPtr + _slots[300] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[293] = nativeContext.LoadFunction( + : _slots[300] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForAxis", "SDL3" ) @@ -68471,9 +70952,9 @@ GamepadButton button ) => ( (delegate* unmanaged)( - _slots[294] is not null and var loadedFnPtr + _slots[301] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[294] = nativeContext.LoadFunction( + : _slots[301] = nativeContext.LoadFunction( "SDL_GetGamepadAppleSFSymbolsNameForButton", "SDL3" ) @@ -68494,9 +70975,9 @@ GamepadButton button short ISdl.GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[295] is not null and var loadedFnPtr + _slots[302] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[295] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") + : _slots[302] = nativeContext.LoadFunction("SDL_GetGamepadAxis", "SDL3") ) )(gamepad, axis); @@ -68512,9 +70993,9 @@ public static short GetGamepadAxis(GamepadHandle gamepad, GamepadAxis axis) => GamepadAxis ISdl.GetGamepadAxisFromString(sbyte* str) => ( (delegate* unmanaged)( - _slots[296] is not null and var loadedFnPtr + _slots[303] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[296] = nativeContext.LoadFunction( + : _slots[303] = nativeContext.LoadFunction( "SDL_GetGamepadAxisFromString", "SDL3" ) @@ -68550,9 +71031,9 @@ public static GamepadAxis GetGamepadAxisFromString(Ref str) => GamepadBinding** ISdl.GetGamepadBindings(GamepadHandle gamepad, int* count) => ( (delegate* unmanaged)( - _slots[297] is not null and var loadedFnPtr + _slots[304] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[297] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") + : _slots[304] = nativeContext.LoadFunction("SDL_GetGamepadBindings", "SDL3") ) )(gamepad, count); @@ -68597,9 +71078,9 @@ public static MaybeBool GetGamepadButton(GamepadHandle gamepad, GamepadBut GamepadButton ISdl.GetGamepadButtonFromString(sbyte* str) => ( (delegate* unmanaged)( - _slots[299] is not null and var loadedFnPtr + _slots[306] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[299] = nativeContext.LoadFunction( + : _slots[306] = nativeContext.LoadFunction( "SDL_GetGamepadButtonFromString", "SDL3" ) @@ -68635,9 +71116,9 @@ public static GamepadButton GetGamepadButtonFromString(Ref str) => GamepadButtonLabel ISdl.GetGamepadButtonLabel(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[300] is not null and var loadedFnPtr + _slots[307] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[300] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") + : _slots[307] = nativeContext.LoadFunction("SDL_GetGamepadButtonLabel", "SDL3") ) )(gamepad, button); @@ -68655,9 +71136,9 @@ GamepadButton button GamepadButtonLabel ISdl.GetGamepadButtonLabelForType(GamepadType type, GamepadButton button) => ( (delegate* unmanaged)( - _slots[301] is not null and var loadedFnPtr + _slots[308] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[301] = nativeContext.LoadFunction( + : _slots[308] = nativeContext.LoadFunction( "SDL_GetGamepadButtonLabelForType", "SDL3" ) @@ -68678,9 +71159,9 @@ GamepadButton button byte ISdl.GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton button) => ( (delegate* unmanaged)( - _slots[298] is not null and var loadedFnPtr + _slots[305] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[298] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") + : _slots[305] = nativeContext.LoadFunction("SDL_GetGamepadButton", "SDL3") ) )(gamepad, button); @@ -68696,9 +71177,9 @@ public static byte GetGamepadButtonRaw(GamepadHandle gamepad, GamepadButton butt JoystickConnectionState ISdl.GetGamepadConnectionState(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[302] is not null and var loadedFnPtr + _slots[309] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[302] = nativeContext.LoadFunction( + : _slots[309] = nativeContext.LoadFunction( "SDL_GetGamepadConnectionState", "SDL3" ) @@ -68717,9 +71198,9 @@ public static JoystickConnectionState GetGamepadConnectionState(GamepadHandle ga ushort ISdl.GetGamepadFirmwareVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[303] is not null and var loadedFnPtr + _slots[310] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[303] = nativeContext.LoadFunction( + : _slots[310] = nativeContext.LoadFunction( "SDL_GetGamepadFirmwareVersion", "SDL3" ) @@ -68738,9 +71219,9 @@ public static ushort GetGamepadFirmwareVersion(GamepadHandle gamepad) => GamepadHandle ISdl.GetGamepadFromID(uint instance_id) => ( (delegate* unmanaged)( - _slots[304] is not null and var loadedFnPtr + _slots[311] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[304] = nativeContext.LoadFunction("SDL_GetGamepadFromID", "SDL3") + : _slots[311] = nativeContext.LoadFunction("SDL_GetGamepadFromID", "SDL3") ) )(instance_id); @@ -68756,9 +71237,9 @@ public static GamepadHandle GetGamepadFromID(uint instance_id) => GamepadHandle ISdl.GetGamepadFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[305] is not null and var loadedFnPtr + _slots[312] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[305] = nativeContext.LoadFunction( + : _slots[312] = nativeContext.LoadFunction( "SDL_GetGamepadFromPlayerIndex", "SDL3" ) @@ -68777,9 +71258,9 @@ public static GamepadHandle GetGamepadFromPlayerIndex(int player_index) => Guid ISdl.GetGamepadGuidForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[306] is not null and var loadedFnPtr + _slots[313] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[306] = nativeContext.LoadFunction("SDL_GetGamepadGUIDForID", "SDL3") + : _slots[313] = nativeContext.LoadFunction("SDL_GetGamepadGUIDForID", "SDL3") ) )(instance_id); @@ -68795,9 +71276,9 @@ public static Guid GetGamepadGuidForID(uint instance_id) => uint ISdl.GetGamepadID(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[307] is not null and var loadedFnPtr + _slots[314] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[307] = nativeContext.LoadFunction("SDL_GetGamepadID", "SDL3") + : _slots[314] = nativeContext.LoadFunction("SDL_GetGamepadID", "SDL3") ) )(gamepad); @@ -68812,9 +71293,9 @@ _slots[307] is not null and var loadedFnPtr JoystickHandle ISdl.GetGamepadJoystick(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[308] is not null and var loadedFnPtr + _slots[315] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[308] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") + : _slots[315] = nativeContext.LoadFunction("SDL_GetGamepadJoystick", "SDL3") ) )(gamepad); @@ -68854,9 +71335,9 @@ public static Ptr GetGamepadMappingForGuid(Guid guid) => sbyte* ISdl.GetGamepadMappingForGuidRaw(Guid guid) => ( (delegate* unmanaged)( - _slots[310] is not null and var loadedFnPtr + _slots[317] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[310] = nativeContext.LoadFunction( + : _slots[317] = nativeContext.LoadFunction( "SDL_GetGamepadMappingForGUID", "SDL3" ) @@ -68887,9 +71368,9 @@ public static Ptr GetGamepadMappingForID(uint instance_id) => sbyte* ISdl.GetGamepadMappingForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[311] is not null and var loadedFnPtr + _slots[318] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[311] = nativeContext.LoadFunction("SDL_GetGamepadMappingForID", "SDL3") + : _slots[318] = nativeContext.LoadFunction("SDL_GetGamepadMappingForID", "SDL3") ) )(instance_id); @@ -68905,9 +71386,9 @@ _slots[311] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadMappingRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[309] is not null and var loadedFnPtr + _slots[316] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[309] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") + : _slots[316] = nativeContext.LoadFunction("SDL_GetGamepadMapping", "SDL3") ) )(gamepad); @@ -68923,9 +71404,9 @@ _slots[309] is not null and var loadedFnPtr sbyte** ISdl.GetGamepadMappings(int* count) => ( (delegate* unmanaged)( - _slots[312] is not null and var loadedFnPtr + _slots[319] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[312] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") + : _slots[319] = nativeContext.LoadFunction("SDL_GetGamepadMappings", "SDL3") ) )(count); @@ -68981,9 +71462,9 @@ public static Ptr GetGamepadNameForID(uint instance_id) => sbyte* ISdl.GetGamepadNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[314] is not null and var loadedFnPtr + _slots[321] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[314] = nativeContext.LoadFunction("SDL_GetGamepadNameForID", "SDL3") + : _slots[321] = nativeContext.LoadFunction("SDL_GetGamepadNameForID", "SDL3") ) )(instance_id); @@ -68999,9 +71480,9 @@ _slots[314] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadNameRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[313] is not null and var loadedFnPtr + _slots[320] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[313] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") + : _slots[320] = nativeContext.LoadFunction("SDL_GetGamepadName", "SDL3") ) )(gamepad); @@ -69041,9 +71522,9 @@ public static Ptr GetGamepadPathForID(uint instance_id) => sbyte* ISdl.GetGamepadPathForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[316] is not null and var loadedFnPtr + _slots[323] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[316] = nativeContext.LoadFunction("SDL_GetGamepadPathForID", "SDL3") + : _slots[323] = nativeContext.LoadFunction("SDL_GetGamepadPathForID", "SDL3") ) )(instance_id); @@ -69059,9 +71540,9 @@ _slots[316] is not null and var loadedFnPtr sbyte* ISdl.GetGamepadPathRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[315] is not null and var loadedFnPtr + _slots[322] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[315] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") + : _slots[322] = nativeContext.LoadFunction("SDL_GetGamepadPath", "SDL3") ) )(gamepad); @@ -69077,9 +71558,9 @@ _slots[315] is not null and var loadedFnPtr int ISdl.GetGamepadPlayerIndex(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[317] is not null and var loadedFnPtr + _slots[324] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[317] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") + : _slots[324] = nativeContext.LoadFunction("SDL_GetGamepadPlayerIndex", "SDL3") ) )(gamepad); @@ -69095,9 +71576,9 @@ public static int GetGamepadPlayerIndex(GamepadHandle gamepad) => int ISdl.GetGamepadPlayerIndexForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[318] is not null and var loadedFnPtr + _slots[325] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[318] = nativeContext.LoadFunction( + : _slots[325] = nativeContext.LoadFunction( "SDL_GetGamepadPlayerIndexForID", "SDL3" ) @@ -69116,9 +71597,9 @@ public static int GetGamepadPlayerIndexForID(uint instance_id) => PowerState ISdl.GetGamepadPowerInfo(GamepadHandle gamepad, int* percent) => ( (delegate* unmanaged)( - _slots[319] is not null and var loadedFnPtr + _slots[326] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[319] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") + : _slots[326] = nativeContext.LoadFunction("SDL_GetGamepadPowerInfo", "SDL3") ) )(gamepad, percent); @@ -69151,9 +71632,9 @@ public static PowerState GetGamepadPowerInfo(GamepadHandle gamepad, Ref per ushort ISdl.GetGamepadProduct(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[320] is not null and var loadedFnPtr + _slots[327] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[320] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") + : _slots[327] = nativeContext.LoadFunction("SDL_GetGamepadProduct", "SDL3") ) )(gamepad); @@ -69169,9 +71650,9 @@ public static ushort GetGamepadProduct(GamepadHandle gamepad) => ushort ISdl.GetGamepadProductForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[321] is not null and var loadedFnPtr + _slots[328] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[321] = nativeContext.LoadFunction("SDL_GetGamepadProductForID", "SDL3") + : _slots[328] = nativeContext.LoadFunction("SDL_GetGamepadProductForID", "SDL3") ) )(instance_id); @@ -69187,9 +71668,9 @@ public static ushort GetGamepadProductForID(uint instance_id) => ushort ISdl.GetGamepadProductVersion(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[322] is not null and var loadedFnPtr + _slots[329] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[322] = nativeContext.LoadFunction( + : _slots[329] = nativeContext.LoadFunction( "SDL_GetGamepadProductVersion", "SDL3" ) @@ -69208,9 +71689,9 @@ public static ushort GetGamepadProductVersion(GamepadHandle gamepad) => ushort ISdl.GetGamepadProductVersionForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[323] is not null and var loadedFnPtr + _slots[330] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[323] = nativeContext.LoadFunction( + : _slots[330] = nativeContext.LoadFunction( "SDL_GetGamepadProductVersionForID", "SDL3" ) @@ -69229,9 +71710,9 @@ public static ushort GetGamepadProductVersionForID(uint instance_id) => uint ISdl.GetGamepadProperties(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[324] is not null and var loadedFnPtr + _slots[331] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[324] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") + : _slots[331] = nativeContext.LoadFunction("SDL_GetGamepadProperties", "SDL3") ) )(gamepad); @@ -69247,9 +71728,9 @@ public static uint GetGamepadProperties(GamepadHandle gamepad) => uint* ISdl.GetGamepads(int* count) => ( (delegate* unmanaged)( - _slots[325] is not null and var loadedFnPtr + _slots[332] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[325] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") + : _slots[332] = nativeContext.LoadFunction("SDL_GetGamepads", "SDL3") ) )(count); @@ -69285,9 +71766,9 @@ int num_values ) => ( (delegate* unmanaged)( - _slots[326] is not null and var loadedFnPtr + _slots[333] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[326] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") + : _slots[333] = nativeContext.LoadFunction("SDL_GetGamepadSensorData", "SDL3") ) )(gamepad, type, data, num_values); @@ -69334,9 +71815,9 @@ int num_values float ISdl.GetGamepadSensorDataRate(GamepadHandle gamepad, SensorType type) => ( (delegate* unmanaged)( - _slots[327] is not null and var loadedFnPtr + _slots[334] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[327] = nativeContext.LoadFunction( + : _slots[334] = nativeContext.LoadFunction( "SDL_GetGamepadSensorDataRate", "SDL3" ) @@ -69367,9 +71848,9 @@ public static Ptr GetGamepadSerial(GamepadHandle gamepad) => sbyte* ISdl.GetGamepadSerialRaw(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[328] is not null and var loadedFnPtr + _slots[335] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[328] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") + : _slots[335] = nativeContext.LoadFunction("SDL_GetGamepadSerial", "SDL3") ) )(gamepad); @@ -69385,9 +71866,9 @@ _slots[328] is not null and var loadedFnPtr ulong ISdl.GetGamepadSteamHandle(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[329] is not null and var loadedFnPtr + _slots[336] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[329] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") + : _slots[336] = nativeContext.LoadFunction("SDL_GetGamepadSteamHandle", "SDL3") ) )(gamepad); @@ -69415,9 +71896,9 @@ public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => sbyte* ISdl.GetGamepadStringForAxisRaw(GamepadAxis axis) => ( (delegate* unmanaged)( - _slots[330] is not null and var loadedFnPtr + _slots[337] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[330] = nativeContext.LoadFunction( + : _slots[337] = nativeContext.LoadFunction( "SDL_GetGamepadStringForAxis", "SDL3" ) @@ -69448,9 +71929,9 @@ public static Ptr GetGamepadStringForButton(GamepadButton button) => sbyte* ISdl.GetGamepadStringForButtonRaw(GamepadButton button) => ( (delegate* unmanaged)( - _slots[331] is not null and var loadedFnPtr + _slots[338] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[331] = nativeContext.LoadFunction( + : _slots[338] = nativeContext.LoadFunction( "SDL_GetGamepadStringForButton", "SDL3" ) @@ -69481,9 +71962,9 @@ public static Ptr GetGamepadStringForType(GamepadType type) => sbyte* ISdl.GetGamepadStringForTypeRaw(GamepadType type) => ( (delegate* unmanaged)( - _slots[332] is not null and var loadedFnPtr + _slots[339] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[332] = nativeContext.LoadFunction( + : _slots[339] = nativeContext.LoadFunction( "SDL_GetGamepadStringForType", "SDL3" ) @@ -69510,9 +71991,9 @@ byte ISdl.GetGamepadTouchpadFinger( ) => ( (delegate* unmanaged)( - _slots[333] is not null and var loadedFnPtr + _slots[340] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[333] = nativeContext.LoadFunction( + : _slots[340] = nativeContext.LoadFunction( "SDL_GetGamepadTouchpadFinger", "SDL3" ) @@ -69583,9 +72064,9 @@ Ref pressure GamepadType ISdl.GetGamepadType(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[334] is not null and var loadedFnPtr + _slots[341] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[334] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") + : _slots[341] = nativeContext.LoadFunction("SDL_GetGamepadType", "SDL3") ) )(gamepad); @@ -69601,9 +72082,9 @@ public static GamepadType GetGamepadType(GamepadHandle gamepad) => GamepadType ISdl.GetGamepadTypeForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[335] is not null and var loadedFnPtr + _slots[342] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[335] = nativeContext.LoadFunction("SDL_GetGamepadTypeForID", "SDL3") + : _slots[342] = nativeContext.LoadFunction("SDL_GetGamepadTypeForID", "SDL3") ) )(instance_id); @@ -69619,9 +72100,9 @@ public static GamepadType GetGamepadTypeForID(uint instance_id) => GamepadType ISdl.GetGamepadTypeFromString(sbyte* str) => ( (delegate* unmanaged)( - _slots[336] is not null and var loadedFnPtr + _slots[343] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[336] = nativeContext.LoadFunction( + : _slots[343] = nativeContext.LoadFunction( "SDL_GetGamepadTypeFromString", "SDL3" ) @@ -69657,9 +72138,9 @@ public static GamepadType GetGamepadTypeFromString(Ref str) => ushort ISdl.GetGamepadVendor(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[337] is not null and var loadedFnPtr + _slots[344] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[337] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") + : _slots[344] = nativeContext.LoadFunction("SDL_GetGamepadVendor", "SDL3") ) )(gamepad); @@ -69675,9 +72156,9 @@ public static ushort GetGamepadVendor(GamepadHandle gamepad) => ushort ISdl.GetGamepadVendorForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[338] is not null and var loadedFnPtr + _slots[345] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[338] = nativeContext.LoadFunction("SDL_GetGamepadVendorForID", "SDL3") + : _slots[345] = nativeContext.LoadFunction("SDL_GetGamepadVendorForID", "SDL3") ) )(instance_id); @@ -69693,9 +72174,9 @@ public static ushort GetGamepadVendorForID(uint instance_id) => uint ISdl.GetGlobalMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[339] is not null and var loadedFnPtr + _slots[346] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[339] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") + : _slots[346] = nativeContext.LoadFunction("SDL_GetGlobalMouseState", "SDL3") ) )(x, y); @@ -69729,9 +72210,9 @@ public static uint GetGlobalMouseState(Ref x, Ref y) => uint ISdl.GetGlobalProperties() => ( (delegate* unmanaged)( - _slots[340] is not null and var loadedFnPtr + _slots[347] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[340] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") + : _slots[347] = nativeContext.LoadFunction("SDL_GetGlobalProperties", "SDL3") ) )(); @@ -69758,9 +72239,9 @@ public static Ptr GetGpuDeviceDriver(GpuDeviceHandle device) => sbyte* ISdl.GetGpuDeviceDriverRaw(GpuDeviceHandle device) => ( (delegate* unmanaged)( - _slots[341] is not null and var loadedFnPtr + _slots[348] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[341] = nativeContext.LoadFunction("SDL_GetGPUDeviceDriver", "SDL3") + : _slots[348] = nativeContext.LoadFunction("SDL_GetGPUDeviceDriver", "SDL3") ) )(device); @@ -69770,6 +72251,24 @@ _slots[341] is not null and var loadedFnPtr public static sbyte* GetGpuDeviceDriverRaw(GpuDeviceHandle device) => DllImport.GetGpuDeviceDriverRaw(device); + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGpuDeviceProperties(GpuDeviceHandle device) => + ( + (delegate* unmanaged)( + _slots[349] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[349] = nativeContext.LoadFunction("SDL_GetGPUDeviceProperties", "SDL3") + ) + )(device); + + [NativeName("SDL_GetGPUDeviceProperties")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDeviceProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGpuDeviceProperties(GpuDeviceHandle device) => + DllImport.GetGpuDeviceProperties(device); + [NativeName("SDL_GetGPUDriver")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUDriver")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -69786,9 +72285,9 @@ _slots[341] is not null and var loadedFnPtr sbyte* ISdl.GetGpuDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[342] is not null and var loadedFnPtr + _slots[350] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[342] = nativeContext.LoadFunction("SDL_GetGPUDriver", "SDL3") + : _slots[350] = nativeContext.LoadFunction("SDL_GetGPUDriver", "SDL3") ) )(index); @@ -69797,15 +72296,33 @@ _slots[342] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static sbyte* GetGpuDriverRaw(int index) => DllImport.GetGpuDriverRaw(index); + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GpuDeviceHandle ISdl.GetGpuRendererDevice(RendererHandle renderer) => + ( + (delegate* unmanaged)( + _slots[351] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[351] = nativeContext.LoadFunction("SDL_GetGPURendererDevice", "SDL3") + ) + )(renderer); + + [NativeName("SDL_GetGPURendererDevice")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPURendererDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GpuDeviceHandle GetGpuRendererDevice(RendererHandle renderer) => + DllImport.GetGpuRendererDevice(renderer); + [NativeName("SDL_GetGPUShaderFormats")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUShaderFormats")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetGpuShaderFormats(GpuDeviceHandle device) => ( (delegate* unmanaged)( - _slots[343] is not null and var loadedFnPtr + _slots[352] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[343] = nativeContext.LoadFunction("SDL_GetGPUShaderFormats", "SDL3") + : _slots[352] = nativeContext.LoadFunction("SDL_GetGPUShaderFormats", "SDL3") ) )(device); @@ -69824,9 +72341,9 @@ WindowHandle window ) => ( (delegate* unmanaged)( - _slots[344] is not null and var loadedFnPtr + _slots[353] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[344] = nativeContext.LoadFunction( + : _slots[353] = nativeContext.LoadFunction( "SDL_GetGPUSwapchainTextureFormat", "SDL3" ) @@ -69841,15 +72358,36 @@ public static GpuTextureFormat GetGpuSwapchainTextureFormat( WindowHandle window ) => DllImport.GetGpuSwapchainTextureFormat(device, window); + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GpuTextureFormat ISdl.GetGpuTextureFormatFromPixelFormat(PixelFormat format) => + ( + (delegate* unmanaged)( + _slots[354] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[354] = nativeContext.LoadFunction( + "SDL_GetGPUTextureFormatFromPixelFormat", + "SDL3" + ) + ) + )(format); + + [NativeName("SDL_GetGPUTextureFormatFromPixelFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGPUTextureFormatFromPixelFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GpuTextureFormat GetGpuTextureFormatFromPixelFormat(PixelFormat format) => + DllImport.GetGpuTextureFormatFromPixelFormat(format); + [NativeName("SDL_GetGrabbedWindow")] [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] WindowHandle ISdl.GetGrabbedWindow() => ( (delegate* unmanaged)( - _slots[345] is not null and var loadedFnPtr + _slots[355] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[345] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + : _slots[355] = nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") ) )(); @@ -69876,9 +72414,9 @@ public static MaybeBool GetHapticEffectStatus(HapticHandle haptic, int eff byte ISdl.GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[346] is not null and var loadedFnPtr + _slots[356] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[346] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") + : _slots[356] = nativeContext.LoadFunction("SDL_GetHapticEffectStatus", "SDL3") ) )(haptic, effect); @@ -69894,9 +72432,9 @@ public static byte GetHapticEffectStatusRaw(HapticHandle haptic, int effect) => uint ISdl.GetHapticFeatures(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[347] is not null and var loadedFnPtr + _slots[357] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[347] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") + : _slots[357] = nativeContext.LoadFunction("SDL_GetHapticFeatures", "SDL3") ) )(haptic); @@ -69912,9 +72450,9 @@ public static uint GetHapticFeatures(HapticHandle haptic) => HapticHandle ISdl.GetHapticFromID(uint instance_id) => ( (delegate* unmanaged)( - _slots[348] is not null and var loadedFnPtr + _slots[358] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[348] = nativeContext.LoadFunction("SDL_GetHapticFromID", "SDL3") + : _slots[358] = nativeContext.LoadFunction("SDL_GetHapticFromID", "SDL3") ) )(instance_id); @@ -69930,9 +72468,9 @@ public static HapticHandle GetHapticFromID(uint instance_id) => uint ISdl.GetHapticID(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[349] is not null and var loadedFnPtr + _slots[359] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[349] = nativeContext.LoadFunction("SDL_GetHapticID", "SDL3") + : _slots[359] = nativeContext.LoadFunction("SDL_GetHapticID", "SDL3") ) )(haptic); @@ -69970,9 +72508,9 @@ public static Ptr GetHapticNameForID(uint instance_id) => sbyte* ISdl.GetHapticNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[351] is not null and var loadedFnPtr + _slots[361] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[351] = nativeContext.LoadFunction("SDL_GetHapticNameForID", "SDL3") + : _slots[361] = nativeContext.LoadFunction("SDL_GetHapticNameForID", "SDL3") ) )(instance_id); @@ -69988,9 +72526,9 @@ _slots[351] is not null and var loadedFnPtr sbyte* ISdl.GetHapticNameRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[350] is not null and var loadedFnPtr + _slots[360] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[350] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") + : _slots[360] = nativeContext.LoadFunction("SDL_GetHapticName", "SDL3") ) )(haptic); @@ -70006,9 +72544,9 @@ _slots[350] is not null and var loadedFnPtr uint* ISdl.GetHaptics(int* count) => ( (delegate* unmanaged)( - _slots[352] is not null and var loadedFnPtr + _slots[362] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[352] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") + : _slots[362] = nativeContext.LoadFunction("SDL_GetHaptics", "SDL3") ) )(count); @@ -70039,9 +72577,9 @@ Ptr ISdl.GetHaptics(Ref count) sbyte* ISdl.GetHint(sbyte* name) => ( (delegate* unmanaged)( - _slots[353] is not null and var loadedFnPtr + _slots[363] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[353] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") + : _slots[363] = nativeContext.LoadFunction("SDL_GetHint", "SDL3") ) )(name); @@ -70072,9 +72610,9 @@ Ptr ISdl.GetHint(Ref name) byte ISdl.GetHintBoolean(sbyte* name, byte default_value) => ( (delegate* unmanaged)( - _slots[354] is not null and var loadedFnPtr + _slots[364] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[354] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") + : _slots[364] = nativeContext.LoadFunction("SDL_GetHintBoolean", "SDL3") ) )(name, default_value); @@ -70108,9 +72646,9 @@ public static MaybeBool GetHintBoolean(Ref name, MaybeBool de uint ISdl.GetIOProperties(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[355] is not null and var loadedFnPtr + _slots[365] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[355] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") + : _slots[365] = nativeContext.LoadFunction("SDL_GetIOProperties", "SDL3") ) )(context); @@ -70126,9 +72664,9 @@ public static uint GetIOProperties(IOStreamHandle context) => long ISdl.GetIOSize(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[356] is not null and var loadedFnPtr + _slots[366] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[356] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") + : _slots[366] = nativeContext.LoadFunction("SDL_GetIOSize", "SDL3") ) )(context); @@ -70143,9 +72681,9 @@ _slots[356] is not null and var loadedFnPtr IOStatus ISdl.GetIOStatus(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[357] is not null and var loadedFnPtr + _slots[367] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[357] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") + : _slots[367] = nativeContext.LoadFunction("SDL_GetIOStatus", "SDL3") ) )(context); @@ -70160,9 +72698,9 @@ _slots[357] is not null and var loadedFnPtr short ISdl.GetJoystickAxis(JoystickHandle joystick, int axis) => ( (delegate* unmanaged)( - _slots[358] is not null and var loadedFnPtr + _slots[368] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[358] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") + : _slots[368] = nativeContext.LoadFunction("SDL_GetJoystickAxis", "SDL3") ) )(joystick, axis); @@ -70178,9 +72716,9 @@ public static short GetJoystickAxis(JoystickHandle joystick, int axis) => byte ISdl.GetJoystickAxisInitialState(JoystickHandle joystick, int axis, short* state) => ( (delegate* unmanaged)( - _slots[359] is not null and var loadedFnPtr + _slots[369] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[359] = nativeContext.LoadFunction( + : _slots[369] = nativeContext.LoadFunction( "SDL_GetJoystickAxisInitialState", "SDL3" ) @@ -70227,9 +72765,9 @@ Ref state byte ISdl.GetJoystickBall(JoystickHandle joystick, int ball, int* dx, int* dy) => ( (delegate* unmanaged)( - _slots[360] is not null and var loadedFnPtr + _slots[370] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[360] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") + : _slots[370] = nativeContext.LoadFunction("SDL_GetJoystickBall", "SDL3") ) )(joystick, ball, dx, dy); @@ -70285,9 +72823,9 @@ public static MaybeBool GetJoystickButton(JoystickHandle joystick, int but byte ISdl.GetJoystickButtonRaw(JoystickHandle joystick, int button) => ( (delegate* unmanaged)( - _slots[361] is not null and var loadedFnPtr + _slots[371] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[361] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") + : _slots[371] = nativeContext.LoadFunction("SDL_GetJoystickButton", "SDL3") ) )(joystick, button); @@ -70303,9 +72841,9 @@ public static byte GetJoystickButtonRaw(JoystickHandle joystick, int button) => JoystickConnectionState ISdl.GetJoystickConnectionState(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[362] is not null and var loadedFnPtr + _slots[372] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[362] = nativeContext.LoadFunction( + : _slots[372] = nativeContext.LoadFunction( "SDL_GetJoystickConnectionState", "SDL3" ) @@ -70324,9 +72862,9 @@ public static JoystickConnectionState GetJoystickConnectionState(JoystickHandle ushort ISdl.GetJoystickFirmwareVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[363] is not null and var loadedFnPtr + _slots[373] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[363] = nativeContext.LoadFunction( + : _slots[373] = nativeContext.LoadFunction( "SDL_GetJoystickFirmwareVersion", "SDL3" ) @@ -70345,9 +72883,9 @@ public static ushort GetJoystickFirmwareVersion(JoystickHandle joystick) => JoystickHandle ISdl.GetJoystickFromID(uint instance_id) => ( (delegate* unmanaged)( - _slots[364] is not null and var loadedFnPtr + _slots[374] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[364] = nativeContext.LoadFunction("SDL_GetJoystickFromID", "SDL3") + : _slots[374] = nativeContext.LoadFunction("SDL_GetJoystickFromID", "SDL3") ) )(instance_id); @@ -70363,9 +72901,9 @@ public static JoystickHandle GetJoystickFromID(uint instance_id) => JoystickHandle ISdl.GetJoystickFromPlayerIndex(int player_index) => ( (delegate* unmanaged)( - _slots[365] is not null and var loadedFnPtr + _slots[375] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[365] = nativeContext.LoadFunction( + : _slots[375] = nativeContext.LoadFunction( "SDL_GetJoystickFromPlayerIndex", "SDL3" ) @@ -70384,9 +72922,9 @@ public static JoystickHandle GetJoystickFromPlayerIndex(int player_index) => Guid ISdl.GetJoystickGuid(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[366] is not null and var loadedFnPtr + _slots[376] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[366] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") + : _slots[376] = nativeContext.LoadFunction("SDL_GetJoystickGUID", "SDL3") ) )(joystick); @@ -70402,9 +72940,9 @@ public static Guid GetJoystickGuid(JoystickHandle joystick) => Guid ISdl.GetJoystickGuidForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[367] is not null and var loadedFnPtr + _slots[377] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[367] = nativeContext.LoadFunction("SDL_GetJoystickGUIDForID", "SDL3") + : _slots[377] = nativeContext.LoadFunction("SDL_GetJoystickGUIDForID", "SDL3") ) )(instance_id); @@ -70426,9 +72964,9 @@ void ISdl.GetJoystickGuidInfo( ) => ( (delegate* unmanaged)( - _slots[368] is not null and var loadedFnPtr + _slots[378] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[368] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") + : _slots[378] = nativeContext.LoadFunction("SDL_GetJoystickGUIDInfo", "SDL3") ) )(guid, vendor, product, version, crc16); @@ -70486,9 +73024,9 @@ Ref crc16 byte ISdl.GetJoystickHat(JoystickHandle joystick, int hat) => ( (delegate* unmanaged)( - _slots[369] is not null and var loadedFnPtr + _slots[379] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[369] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") + : _slots[379] = nativeContext.LoadFunction("SDL_GetJoystickHat", "SDL3") ) )(joystick, hat); @@ -70504,9 +73042,9 @@ public static byte GetJoystickHat(JoystickHandle joystick, int hat) => uint ISdl.GetJoystickID(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[370] is not null and var loadedFnPtr + _slots[380] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[370] = nativeContext.LoadFunction("SDL_GetJoystickID", "SDL3") + : _slots[380] = nativeContext.LoadFunction("SDL_GetJoystickID", "SDL3") ) )(joystick); @@ -70545,9 +73083,9 @@ public static Ptr GetJoystickNameForID(uint instance_id) => sbyte* ISdl.GetJoystickNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[372] is not null and var loadedFnPtr + _slots[382] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[372] = nativeContext.LoadFunction("SDL_GetJoystickNameForID", "SDL3") + : _slots[382] = nativeContext.LoadFunction("SDL_GetJoystickNameForID", "SDL3") ) )(instance_id); @@ -70563,9 +73101,9 @@ _slots[372] is not null and var loadedFnPtr sbyte* ISdl.GetJoystickNameRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[371] is not null and var loadedFnPtr + _slots[381] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[371] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") + : _slots[381] = nativeContext.LoadFunction("SDL_GetJoystickName", "SDL3") ) )(joystick); @@ -70605,9 +73143,9 @@ public static Ptr GetJoystickPathForID(uint instance_id) => sbyte* ISdl.GetJoystickPathForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[374] is not null and var loadedFnPtr + _slots[384] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[374] = nativeContext.LoadFunction("SDL_GetJoystickPathForID", "SDL3") + : _slots[384] = nativeContext.LoadFunction("SDL_GetJoystickPathForID", "SDL3") ) )(instance_id); @@ -70623,9 +73161,9 @@ _slots[374] is not null and var loadedFnPtr sbyte* ISdl.GetJoystickPathRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[373] is not null and var loadedFnPtr + _slots[383] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[373] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") + : _slots[383] = nativeContext.LoadFunction("SDL_GetJoystickPath", "SDL3") ) )(joystick); @@ -70641,9 +73179,9 @@ _slots[373] is not null and var loadedFnPtr int ISdl.GetJoystickPlayerIndex(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[375] is not null and var loadedFnPtr + _slots[385] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[375] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") + : _slots[385] = nativeContext.LoadFunction("SDL_GetJoystickPlayerIndex", "SDL3") ) )(joystick); @@ -70659,9 +73197,9 @@ public static int GetJoystickPlayerIndex(JoystickHandle joystick) => int ISdl.GetJoystickPlayerIndexForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[376] is not null and var loadedFnPtr + _slots[386] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[376] = nativeContext.LoadFunction( + : _slots[386] = nativeContext.LoadFunction( "SDL_GetJoystickPlayerIndexForID", "SDL3" ) @@ -70680,9 +73218,9 @@ public static int GetJoystickPlayerIndexForID(uint instance_id) => PowerState ISdl.GetJoystickPowerInfo(JoystickHandle joystick, int* percent) => ( (delegate* unmanaged)( - _slots[377] is not null and var loadedFnPtr + _slots[387] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[377] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") + : _slots[387] = nativeContext.LoadFunction("SDL_GetJoystickPowerInfo", "SDL3") ) )(joystick, percent); @@ -70715,9 +73253,9 @@ public static PowerState GetJoystickPowerInfo(JoystickHandle joystick, Ref ushort ISdl.GetJoystickProduct(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[378] is not null and var loadedFnPtr + _slots[388] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[378] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") + : _slots[388] = nativeContext.LoadFunction("SDL_GetJoystickProduct", "SDL3") ) )(joystick); @@ -70733,9 +73271,9 @@ public static ushort GetJoystickProduct(JoystickHandle joystick) => ushort ISdl.GetJoystickProductForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[379] is not null and var loadedFnPtr + _slots[389] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[379] = nativeContext.LoadFunction( + : _slots[389] = nativeContext.LoadFunction( "SDL_GetJoystickProductForID", "SDL3" ) @@ -70754,9 +73292,9 @@ public static ushort GetJoystickProductForID(uint instance_id) => ushort ISdl.GetJoystickProductVersion(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[380] is not null and var loadedFnPtr + _slots[390] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[380] = nativeContext.LoadFunction( + : _slots[390] = nativeContext.LoadFunction( "SDL_GetJoystickProductVersion", "SDL3" ) @@ -70775,9 +73313,9 @@ public static ushort GetJoystickProductVersion(JoystickHandle joystick) => ushort ISdl.GetJoystickProductVersionForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[381] is not null and var loadedFnPtr + _slots[391] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[381] = nativeContext.LoadFunction( + : _slots[391] = nativeContext.LoadFunction( "SDL_GetJoystickProductVersionForID", "SDL3" ) @@ -70796,9 +73334,9 @@ public static ushort GetJoystickProductVersionForID(uint instance_id) => uint ISdl.GetJoystickProperties(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[382] is not null and var loadedFnPtr + _slots[392] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[382] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") + : _slots[392] = nativeContext.LoadFunction("SDL_GetJoystickProperties", "SDL3") ) )(joystick); @@ -70814,9 +73352,9 @@ public static uint GetJoystickProperties(JoystickHandle joystick) => uint* ISdl.GetJoysticks(int* count) => ( (delegate* unmanaged)( - _slots[383] is not null and var loadedFnPtr + _slots[393] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[383] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") + : _slots[393] = nativeContext.LoadFunction("SDL_GetJoysticks", "SDL3") ) )(count); @@ -70859,9 +73397,9 @@ public static Ptr GetJoystickSerial(JoystickHandle joystick) => sbyte* ISdl.GetJoystickSerialRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[384] is not null and var loadedFnPtr + _slots[394] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[384] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") + : _slots[394] = nativeContext.LoadFunction("SDL_GetJoystickSerial", "SDL3") ) )(joystick); @@ -70877,9 +73415,9 @@ _slots[384] is not null and var loadedFnPtr JoystickType ISdl.GetJoystickType(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[385] is not null and var loadedFnPtr + _slots[395] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[385] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") + : _slots[395] = nativeContext.LoadFunction("SDL_GetJoystickType", "SDL3") ) )(joystick); @@ -70895,9 +73433,9 @@ public static JoystickType GetJoystickType(JoystickHandle joystick) => JoystickType ISdl.GetJoystickTypeForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[386] is not null and var loadedFnPtr + _slots[396] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[386] = nativeContext.LoadFunction("SDL_GetJoystickTypeForID", "SDL3") + : _slots[396] = nativeContext.LoadFunction("SDL_GetJoystickTypeForID", "SDL3") ) )(instance_id); @@ -70913,9 +73451,9 @@ public static JoystickType GetJoystickTypeForID(uint instance_id) => ushort ISdl.GetJoystickVendor(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[387] is not null and var loadedFnPtr + _slots[397] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[387] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") + : _slots[397] = nativeContext.LoadFunction("SDL_GetJoystickVendor", "SDL3") ) )(joystick); @@ -70931,9 +73469,9 @@ public static ushort GetJoystickVendor(JoystickHandle joystick) => ushort ISdl.GetJoystickVendorForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[388] is not null and var loadedFnPtr + _slots[398] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[388] = nativeContext.LoadFunction("SDL_GetJoystickVendorForID", "SDL3") + : _slots[398] = nativeContext.LoadFunction("SDL_GetJoystickVendorForID", "SDL3") ) )(instance_id); @@ -70949,9 +73487,9 @@ public static ushort GetJoystickVendorForID(uint instance_id) => WindowHandle ISdl.GetKeyboardFocus() => ( (delegate* unmanaged)( - _slots[389] is not null and var loadedFnPtr + _slots[399] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[389] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + : _slots[399] = nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") ) )(); @@ -70978,9 +73516,9 @@ public static Ptr GetKeyboardNameForID(uint instance_id) => sbyte* ISdl.GetKeyboardNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[390] is not null and var loadedFnPtr + _slots[400] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[390] = nativeContext.LoadFunction("SDL_GetKeyboardNameForID", "SDL3") + : _slots[400] = nativeContext.LoadFunction("SDL_GetKeyboardNameForID", "SDL3") ) )(instance_id); @@ -70996,9 +73534,9 @@ _slots[390] is not null and var loadedFnPtr uint* ISdl.GetKeyboards(int* count) => ( (delegate* unmanaged)( - _slots[391] is not null and var loadedFnPtr + _slots[401] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[391] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") + : _slots[401] = nativeContext.LoadFunction("SDL_GetKeyboards", "SDL3") ) )(count); @@ -71029,9 +73567,9 @@ Ptr ISdl.GetKeyboards(Ref count) bool* ISdl.GetKeyboardState(int* numkeys) => ( (delegate* unmanaged)( - _slots[392] is not null and var loadedFnPtr + _slots[402] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[392] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") + : _slots[402] = nativeContext.LoadFunction("SDL_GetKeyboardState", "SDL3") ) )(numkeys); @@ -71063,9 +73601,9 @@ public static Ptr GetKeyboardState(Ref numkeys) => uint ISdl.GetKeyFromName(sbyte* name) => ( (delegate* unmanaged)( - _slots[393] is not null and var loadedFnPtr + _slots[403] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[393] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") + : _slots[403] = nativeContext.LoadFunction("SDL_GetKeyFromName", "SDL3") ) )(name); @@ -71096,9 +73634,9 @@ uint ISdl.GetKeyFromName(Ref name) uint ISdl.GetKeyFromScancode(Scancode scancode, ushort modstate, byte key_event) => ( (delegate* unmanaged)( - _slots[394] is not null and var loadedFnPtr + _slots[404] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[394] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") + : _slots[404] = nativeContext.LoadFunction("SDL_GetKeyFromScancode", "SDL3") ) )(scancode, modstate, key_event); @@ -71139,9 +73677,9 @@ MaybeBool key_event sbyte* ISdl.GetKeyNameRaw(uint key) => ( (delegate* unmanaged)( - _slots[395] is not null and var loadedFnPtr + _slots[405] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[395] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") + : _slots[405] = nativeContext.LoadFunction("SDL_GetKeyName", "SDL3") ) )(key); @@ -71156,9 +73694,9 @@ _slots[395] is not null and var loadedFnPtr void ISdl.GetLogOutputFunction(LogOutputFunction* callback, void** userdata) => ( (delegate* unmanaged)( - _slots[396] is not null and var loadedFnPtr + _slots[406] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[396] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") + : _slots[406] = nativeContext.LoadFunction("SDL_GetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -71192,9 +73730,9 @@ public static void GetLogOutputFunction(Ref callback, Ref2D u LogPriority ISdl.GetLogPriority(int category) => ( (delegate* unmanaged)( - _slots[397] is not null and var loadedFnPtr + _slots[407] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[397] = nativeContext.LoadFunction("SDL_GetLogPriority", "SDL3") + : _slots[407] = nativeContext.LoadFunction("SDL_GetLogPriority", "SDL3") ) )(category); @@ -71216,9 +73754,9 @@ byte ISdl.GetMasksForPixelFormat( ) => ( (delegate* unmanaged)( - _slots[398] is not null and var loadedFnPtr + _slots[408] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[398] = nativeContext.LoadFunction("SDL_GetMasksForPixelFormat", "SDL3") + : _slots[408] = nativeContext.LoadFunction("SDL_GetMasksForPixelFormat", "SDL3") ) )(format, bpp, Rmask, Gmask, Bmask, Amask); @@ -71283,9 +73821,9 @@ Ref Amask int ISdl.GetMaxHapticEffects(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[399] is not null and var loadedFnPtr + _slots[409] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[399] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") + : _slots[409] = nativeContext.LoadFunction("SDL_GetMaxHapticEffects", "SDL3") ) )(haptic); @@ -71301,9 +73839,9 @@ public static int GetMaxHapticEffects(HapticHandle haptic) => int ISdl.GetMaxHapticEffectsPlaying(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[400] is not null and var loadedFnPtr + _slots[410] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[400] = nativeContext.LoadFunction( + : _slots[410] = nativeContext.LoadFunction( "SDL_GetMaxHapticEffectsPlaying", "SDL3" ) @@ -71327,9 +73865,9 @@ void ISdl.GetMemoryFunctions( ) => ( (delegate* unmanaged)( - _slots[401] is not null and var loadedFnPtr + _slots[411] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[401] = nativeContext.LoadFunction("SDL_GetMemoryFunctions", "SDL3") + : _slots[411] = nativeContext.LoadFunction("SDL_GetMemoryFunctions", "SDL3") ) )(malloc_func, calloc_func, realloc_func, free_func); @@ -71383,9 +73921,9 @@ Ref free_func uint* ISdl.GetMice(int* count) => ( (delegate* unmanaged)( - _slots[402] is not null and var loadedFnPtr + _slots[412] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[402] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") + : _slots[412] = nativeContext.LoadFunction("SDL_GetMice", "SDL3") ) )(count); @@ -71416,9 +73954,9 @@ Ptr ISdl.GetMice(Ref count) ushort ISdl.GetModState() => ( (delegate* unmanaged)( - _slots[403] is not null and var loadedFnPtr + _slots[413] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[403] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") + : _slots[413] = nativeContext.LoadFunction("SDL_GetModState", "SDL3") ) )(); @@ -71433,9 +73971,9 @@ _slots[403] is not null and var loadedFnPtr WindowHandle ISdl.GetMouseFocus() => ( (delegate* unmanaged)( - _slots[404] is not null and var loadedFnPtr + _slots[414] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[404] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + : _slots[414] = nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") ) )(); @@ -71462,9 +74000,9 @@ public static Ptr GetMouseNameForID(uint instance_id) => sbyte* ISdl.GetMouseNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[405] is not null and var loadedFnPtr + _slots[415] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[405] = nativeContext.LoadFunction("SDL_GetMouseNameForID", "SDL3") + : _slots[415] = nativeContext.LoadFunction("SDL_GetMouseNameForID", "SDL3") ) )(instance_id); @@ -71480,9 +74018,9 @@ _slots[405] is not null and var loadedFnPtr uint ISdl.GetMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[406] is not null and var loadedFnPtr + _slots[416] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[406] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") + : _slots[416] = nativeContext.LoadFunction("SDL_GetMouseState", "SDL3") ) )(x, y); @@ -71514,9 +74052,9 @@ uint ISdl.GetMouseState(Ref x, Ref y) DisplayOrientation ISdl.GetNaturalDisplayOrientation(uint displayID) => ( (delegate* unmanaged)( - _slots[407] is not null and var loadedFnPtr + _slots[417] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[407] = nativeContext.LoadFunction( + : _slots[417] = nativeContext.LoadFunction( "SDL_GetNaturalDisplayOrientation", "SDL3" ) @@ -71535,9 +74073,9 @@ public static DisplayOrientation GetNaturalDisplayOrientation(uint displayID) => int ISdl.GetNumAllocations() => ( (delegate* unmanaged)( - _slots[408] is not null and var loadedFnPtr + _slots[418] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[408] = nativeContext.LoadFunction("SDL_GetNumAllocations", "SDL3") + : _slots[418] = nativeContext.LoadFunction("SDL_GetNumAllocations", "SDL3") ) )(); @@ -71552,9 +74090,9 @@ _slots[408] is not null and var loadedFnPtr int ISdl.GetNumAudioDrivers() => ( (delegate* unmanaged)( - _slots[409] is not null and var loadedFnPtr + _slots[419] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[409] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") + : _slots[419] = nativeContext.LoadFunction("SDL_GetNumAudioDrivers", "SDL3") ) )(); @@ -71569,9 +74107,9 @@ _slots[409] is not null and var loadedFnPtr long ISdl.GetNumberProperty(uint props, sbyte* name, long default_value) => ( (delegate* unmanaged)( - _slots[410] is not null and var loadedFnPtr + _slots[420] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[410] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") + : _slots[420] = nativeContext.LoadFunction("SDL_GetNumberProperty", "SDL3") ) )(props, name, default_value); @@ -71604,9 +74142,9 @@ public static long GetNumberProperty(uint props, Ref name, long default_v int ISdl.GetNumCameraDrivers() => ( (delegate* unmanaged)( - _slots[411] is not null and var loadedFnPtr + _slots[421] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[411] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") + : _slots[421] = nativeContext.LoadFunction("SDL_GetNumCameraDrivers", "SDL3") ) )(); @@ -71621,9 +74159,9 @@ _slots[411] is not null and var loadedFnPtr int ISdl.GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchpad) => ( (delegate* unmanaged)( - _slots[412] is not null and var loadedFnPtr + _slots[422] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[412] = nativeContext.LoadFunction( + : _slots[422] = nativeContext.LoadFunction( "SDL_GetNumGamepadTouchpadFingers", "SDL3" ) @@ -71642,9 +74180,9 @@ public static int GetNumGamepadTouchpadFingers(GamepadHandle gamepad, int touchp int ISdl.GetNumGamepadTouchpads(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[413] is not null and var loadedFnPtr + _slots[423] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[413] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") + : _slots[423] = nativeContext.LoadFunction("SDL_GetNumGamepadTouchpads", "SDL3") ) )(gamepad); @@ -71660,9 +74198,9 @@ public static int GetNumGamepadTouchpads(GamepadHandle gamepad) => int ISdl.GetNumGpuDrivers() => ( (delegate* unmanaged)( - _slots[414] is not null and var loadedFnPtr + _slots[424] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[414] = nativeContext.LoadFunction("SDL_GetNumGPUDrivers", "SDL3") + : _slots[424] = nativeContext.LoadFunction("SDL_GetNumGPUDrivers", "SDL3") ) )(); @@ -71677,9 +74215,9 @@ _slots[414] is not null and var loadedFnPtr int ISdl.GetNumHapticAxes(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[415] is not null and var loadedFnPtr + _slots[425] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[415] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") + : _slots[425] = nativeContext.LoadFunction("SDL_GetNumHapticAxes", "SDL3") ) )(haptic); @@ -71694,9 +74232,9 @@ _slots[415] is not null and var loadedFnPtr int ISdl.GetNumJoystickAxes(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[416] is not null and var loadedFnPtr + _slots[426] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[416] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") + : _slots[426] = nativeContext.LoadFunction("SDL_GetNumJoystickAxes", "SDL3") ) )(joystick); @@ -71712,9 +74250,9 @@ public static int GetNumJoystickAxes(JoystickHandle joystick) => int ISdl.GetNumJoystickBalls(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[417] is not null and var loadedFnPtr + _slots[427] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[417] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") + : _slots[427] = nativeContext.LoadFunction("SDL_GetNumJoystickBalls", "SDL3") ) )(joystick); @@ -71730,9 +74268,9 @@ public static int GetNumJoystickBalls(JoystickHandle joystick) => int ISdl.GetNumJoystickButtons(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[418] is not null and var loadedFnPtr + _slots[428] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[418] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") + : _slots[428] = nativeContext.LoadFunction("SDL_GetNumJoystickButtons", "SDL3") ) )(joystick); @@ -71748,9 +74286,9 @@ public static int GetNumJoystickButtons(JoystickHandle joystick) => int ISdl.GetNumJoystickHats(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[419] is not null and var loadedFnPtr + _slots[429] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[419] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") + : _slots[429] = nativeContext.LoadFunction("SDL_GetNumJoystickHats", "SDL3") ) )(joystick); @@ -71766,9 +74304,9 @@ public static int GetNumJoystickHats(JoystickHandle joystick) => int ISdl.GetNumLogicalCpuCores() => ( (delegate* unmanaged)( - _slots[420] is not null and var loadedFnPtr + _slots[430] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[420] = nativeContext.LoadFunction("SDL_GetNumLogicalCPUCores", "SDL3") + : _slots[430] = nativeContext.LoadFunction("SDL_GetNumLogicalCPUCores", "SDL3") ) )(); @@ -71783,9 +74321,9 @@ _slots[420] is not null and var loadedFnPtr int ISdl.GetNumRenderDrivers() => ( (delegate* unmanaged)( - _slots[421] is not null and var loadedFnPtr + _slots[431] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[421] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") + : _slots[431] = nativeContext.LoadFunction("SDL_GetNumRenderDrivers", "SDL3") ) )(); @@ -71800,9 +74338,9 @@ _slots[421] is not null and var loadedFnPtr int ISdl.GetNumVideoDrivers() => ( (delegate* unmanaged)( - _slots[422] is not null and var loadedFnPtr + _slots[432] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[422] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") + : _slots[432] = nativeContext.LoadFunction("SDL_GetNumVideoDrivers", "SDL3") ) )(); @@ -71822,9 +74360,9 @@ void ISdl.GetOriginalMemoryFunctions( ) => ( (delegate* unmanaged)( - _slots[423] is not null and var loadedFnPtr + _slots[433] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[423] = nativeContext.LoadFunction( + : _slots[433] = nativeContext.LoadFunction( "SDL_GetOriginalMemoryFunctions", "SDL3" ) @@ -71881,9 +74419,9 @@ Ref free_func byte ISdl.GetPathInfo(sbyte* path, PathInfo* info) => ( (delegate* unmanaged)( - _slots[424] is not null and var loadedFnPtr + _slots[434] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[424] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") + : _slots[434] = nativeContext.LoadFunction("SDL_GetPathInfo", "SDL3") ) )(path, info); @@ -71911,15 +74449,33 @@ MaybeBool ISdl.GetPathInfo(Ref path, Ref info) public static MaybeBool GetPathInfo(Ref path, Ref info) => DllImport.GetPathInfo(path, info); + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PenDeviceType ISdl.GetPenDeviceType(uint instance_id) => + ( + (delegate* unmanaged)( + _slots[435] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[435] = nativeContext.LoadFunction("SDL_GetPenDeviceType", "SDL3") + ) + )(instance_id); + + [NativeName("SDL_GetPenDeviceType")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenDeviceType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PenDeviceType GetPenDeviceType(uint instance_id) => + DllImport.GetPenDeviceType(instance_id); + [NativeName("SDL_GetPerformanceCounter")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPerformanceCounter")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] ulong ISdl.GetPerformanceCounter() => ( (delegate* unmanaged)( - _slots[425] is not null and var loadedFnPtr + _slots[436] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[425] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") + : _slots[436] = nativeContext.LoadFunction("SDL_GetPerformanceCounter", "SDL3") ) )(); @@ -71934,9 +74490,9 @@ _slots[425] is not null and var loadedFnPtr ulong ISdl.GetPerformanceFrequency() => ( (delegate* unmanaged)( - _slots[426] is not null and var loadedFnPtr + _slots[437] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[426] = nativeContext.LoadFunction( + : _slots[437] = nativeContext.LoadFunction( "SDL_GetPerformanceFrequency", "SDL3" ) @@ -71966,9 +74522,9 @@ public static Ptr GetPixelFormatDetails(PixelFormat format) PixelFormatDetails* ISdl.GetPixelFormatDetailsRaw(PixelFormat format) => ( (delegate* unmanaged)( - _slots[427] is not null and var loadedFnPtr + _slots[438] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[427] = nativeContext.LoadFunction("SDL_GetPixelFormatDetails", "SDL3") + : _slots[438] = nativeContext.LoadFunction("SDL_GetPixelFormatDetails", "SDL3") ) )(format); @@ -71990,9 +74546,9 @@ uint Amask ) => ( (delegate* unmanaged)( - _slots[428] is not null and var loadedFnPtr + _slots[439] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[428] = nativeContext.LoadFunction("SDL_GetPixelFormatForMasks", "SDL3") + : _slots[439] = nativeContext.LoadFunction("SDL_GetPixelFormatForMasks", "SDL3") ) )(bpp, Rmask, Gmask, Bmask, Amask); @@ -72007,6 +74563,27 @@ public static PixelFormat GetPixelFormatForMasks( uint Amask ) => DllImport.GetPixelFormatForMasks(bpp, Rmask, Gmask, Bmask, Amask); + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PixelFormat ISdl.GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format) => + ( + (delegate* unmanaged)( + _slots[440] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[440] = nativeContext.LoadFunction( + "SDL_GetPixelFormatFromGPUTextureFormat", + "SDL3" + ) + ) + )(format); + + [NativeName("SDL_GetPixelFormatFromGPUTextureFormat")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatFromGPUTextureFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PixelFormat GetPixelFormatFromGpuTextureFormat(GpuTextureFormat format) => + DllImport.GetPixelFormatFromGpuTextureFormat(format); + [NativeName("SDL_GetPixelFormatName")] [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -72025,9 +74602,9 @@ public static Ptr GetPixelFormatName(PixelFormat format) => sbyte* ISdl.GetPixelFormatNameRaw(PixelFormat format) => ( (delegate* unmanaged)( - _slots[429] is not null and var loadedFnPtr + _slots[441] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[429] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") + : _slots[441] = nativeContext.LoadFunction("SDL_GetPixelFormatName", "SDL3") ) )(format); @@ -72053,9 +74630,9 @@ _slots[429] is not null and var loadedFnPtr sbyte* ISdl.GetPlatformRaw() => ( (delegate* unmanaged)( - _slots[430] is not null and var loadedFnPtr + _slots[442] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[430] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") + : _slots[442] = nativeContext.LoadFunction("SDL_GetPlatform", "SDL3") ) )(); @@ -72070,9 +74647,9 @@ _slots[430] is not null and var loadedFnPtr void* ISdl.GetPointerProperty(uint props, sbyte* name, void* default_value) => ( (delegate* unmanaged)( - _slots[431] is not null and var loadedFnPtr + _slots[443] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[431] = nativeContext.LoadFunction("SDL_GetPointerProperty", "SDL3") + : _slots[443] = nativeContext.LoadFunction("SDL_GetPointerProperty", "SDL3") ) )(props, name, default_value); @@ -72106,9 +74683,9 @@ public static Ptr GetPointerProperty(uint props, Ref name, Ref default_va PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => ( (delegate* unmanaged)( - _slots[432] is not null and var loadedFnPtr + _slots[444] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[432] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") + : _slots[444] = nativeContext.LoadFunction("SDL_GetPowerInfo", "SDL3") ) )(seconds, percent); @@ -72142,9 +74719,9 @@ public static PowerState GetPowerInfo(Ref seconds, Ref percent) => Locale** ISdl.GetPreferredLocales(int* count) => ( (delegate* unmanaged)( - _slots[433] is not null and var loadedFnPtr + _slots[445] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[433] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") + : _slots[445] = nativeContext.LoadFunction("SDL_GetPreferredLocales", "SDL3") ) )(count); @@ -72176,9 +74753,9 @@ public static Ptr2D GetPreferredLocales(Ref count) => sbyte* ISdl.GetPrefPath(sbyte* org, sbyte* app) => ( (delegate* unmanaged)( - _slots[434] is not null and var loadedFnPtr + _slots[446] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[434] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") + : _slots[446] = nativeContext.LoadFunction("SDL_GetPrefPath", "SDL3") ) )(org, app); @@ -72211,9 +74788,9 @@ public static Ptr GetPrefPath(Ref org, Ref app) => uint ISdl.GetPrimaryDisplay() => ( (delegate* unmanaged)( - _slots[435] is not null and var loadedFnPtr + _slots[447] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[435] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") + : _slots[447] = nativeContext.LoadFunction("SDL_GetPrimaryDisplay", "SDL3") ) )(); @@ -72238,9 +74815,9 @@ _slots[435] is not null and var loadedFnPtr sbyte* ISdl.GetPrimarySelectionTextRaw() => ( (delegate* unmanaged)( - _slots[436] is not null and var loadedFnPtr + _slots[448] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[436] = nativeContext.LoadFunction( + : _slots[448] = nativeContext.LoadFunction( "SDL_GetPrimarySelectionText", "SDL3" ) @@ -72258,9 +74835,9 @@ _slots[436] is not null and var loadedFnPtr IOStreamHandle ISdl.GetProcessInput(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[437] is not null and var loadedFnPtr + _slots[449] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[437] = nativeContext.LoadFunction("SDL_GetProcessInput", "SDL3") + : _slots[449] = nativeContext.LoadFunction("SDL_GetProcessInput", "SDL3") ) )(process); @@ -72276,9 +74853,9 @@ public static IOStreamHandle GetProcessInput(ProcessHandle process) => IOStreamHandle ISdl.GetProcessOutput(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[438] is not null and var loadedFnPtr + _slots[450] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[438] = nativeContext.LoadFunction("SDL_GetProcessOutput", "SDL3") + : _slots[450] = nativeContext.LoadFunction("SDL_GetProcessOutput", "SDL3") ) )(process); @@ -72294,9 +74871,9 @@ public static IOStreamHandle GetProcessOutput(ProcessHandle process) => uint ISdl.GetProcessProperties(ProcessHandle process) => ( (delegate* unmanaged)( - _slots[439] is not null and var loadedFnPtr + _slots[451] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[439] = nativeContext.LoadFunction("SDL_GetProcessProperties", "SDL3") + : _slots[451] = nativeContext.LoadFunction("SDL_GetProcessProperties", "SDL3") ) )(process); @@ -72312,9 +74889,9 @@ public static uint GetProcessProperties(ProcessHandle process) => PropertyType ISdl.GetPropertyType(uint props, sbyte* name) => ( (delegate* unmanaged)( - _slots[440] is not null and var loadedFnPtr + _slots[452] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[440] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") + : _slots[452] = nativeContext.LoadFunction("SDL_GetPropertyType", "SDL3") ) )(props, name); @@ -72347,9 +74924,9 @@ public static PropertyType GetPropertyType(uint props, Ref name) => GamepadType ISdl.GetRealGamepadType(GamepadHandle gamepad) => ( (delegate* unmanaged)( - _slots[441] is not null and var loadedFnPtr + _slots[453] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[441] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") + : _slots[453] = nativeContext.LoadFunction("SDL_GetRealGamepadType", "SDL3") ) )(gamepad); @@ -72365,9 +74942,9 @@ public static GamepadType GetRealGamepadType(GamepadHandle gamepad) => GamepadType ISdl.GetRealGamepadTypeForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[442] is not null and var loadedFnPtr + _slots[454] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[442] = nativeContext.LoadFunction( + : _slots[454] = nativeContext.LoadFunction( "SDL_GetRealGamepadTypeForID", "SDL3" ) @@ -72386,9 +74963,9 @@ public static GamepadType GetRealGamepadTypeForID(uint instance_id) => byte ISdl.GetRectAndLineIntersection(Rect* rect, int* X1, int* Y1, int* X2, int* Y2) => ( (delegate* unmanaged)( - _slots[443] is not null and var loadedFnPtr + _slots[455] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[443] = nativeContext.LoadFunction( + : _slots[455] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersection", "SDL3" ) @@ -72453,9 +75030,9 @@ byte ISdl.GetRectAndLineIntersectionFloat( ) => ( (delegate* unmanaged)( - _slots[444] is not null and var loadedFnPtr + _slots[456] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[444] = nativeContext.LoadFunction( + : _slots[456] = nativeContext.LoadFunction( "SDL_GetRectAndLineIntersectionFloat", "SDL3" ) @@ -72519,9 +75096,9 @@ Ref Y2 byte ISdl.GetRectEnclosingPoints(Point* points, int count, Rect* clip, Rect* result) => ( (delegate* unmanaged)( - _slots[445] is not null and var loadedFnPtr + _slots[457] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[445] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") + : _slots[457] = nativeContext.LoadFunction("SDL_GetRectEnclosingPoints", "SDL3") ) )(points, count, clip, result); @@ -72572,9 +75149,9 @@ Ref result byte ISdl.GetRectEnclosingPointsFloat(FPoint* points, int count, FRect* clip, FRect* result) => ( (delegate* unmanaged)( - _slots[446] is not null and var loadedFnPtr + _slots[458] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[446] = nativeContext.LoadFunction( + : _slots[458] = nativeContext.LoadFunction( "SDL_GetRectEnclosingPointsFloat", "SDL3" ) @@ -72632,9 +75209,9 @@ Ref result byte ISdl.GetRectIntersection(Rect* A, Rect* B, Rect* result) => ( (delegate* unmanaged)( - _slots[447] is not null and var loadedFnPtr + _slots[459] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[447] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") + : _slots[459] = nativeContext.LoadFunction("SDL_GetRectIntersection", "SDL3") ) )(A, B, result); @@ -72670,9 +75247,9 @@ public static MaybeBool GetRectIntersection(Ref A, Ref B, Ref< byte ISdl.GetRectIntersectionFloat(FRect* A, FRect* B, FRect* result) => ( (delegate* unmanaged)( - _slots[448] is not null and var loadedFnPtr + _slots[460] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[448] = nativeContext.LoadFunction( + : _slots[460] = nativeContext.LoadFunction( "SDL_GetRectIntersectionFloat", "SDL3" ) @@ -72714,9 +75291,9 @@ Ref result byte ISdl.GetRectUnion(Rect* A, Rect* B, Rect* result) => ( (delegate* unmanaged)( - _slots[449] is not null and var loadedFnPtr + _slots[461] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[449] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") + : _slots[461] = nativeContext.LoadFunction("SDL_GetRectUnion", "SDL3") ) )(A, B, result); @@ -72751,9 +75328,9 @@ public static MaybeBool GetRectUnion(Ref A, Ref B, Ref r byte ISdl.GetRectUnionFloat(FRect* A, FRect* B, FRect* result) => ( (delegate* unmanaged)( - _slots[450] is not null and var loadedFnPtr + _slots[462] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[450] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") + : _slots[462] = nativeContext.LoadFunction("SDL_GetRectUnionFloat", "SDL3") ) )(A, B, result); @@ -72792,9 +75369,9 @@ Ref result uint ISdl.GetRelativeMouseState(float* x, float* y) => ( (delegate* unmanaged)( - _slots[451] is not null and var loadedFnPtr + _slots[463] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[451] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") + : _slots[463] = nativeContext.LoadFunction("SDL_GetRelativeMouseState", "SDL3") ) )(x, y); @@ -72828,9 +75405,9 @@ public static uint GetRelativeMouseState(Ref x, Ref y) => byte ISdl.GetRenderClipRect(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[452] is not null and var loadedFnPtr + _slots[464] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[452] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") + : _slots[464] = nativeContext.LoadFunction("SDL_GetRenderClipRect", "SDL3") ) )(renderer, rect); @@ -72863,9 +75440,9 @@ public static MaybeBool GetRenderClipRect(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[453] is not null and var loadedFnPtr + _slots[465] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[453] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") + : _slots[465] = nativeContext.LoadFunction("SDL_GetRenderColorScale", "SDL3") ) )(renderer, scale); @@ -72898,9 +75475,9 @@ public static MaybeBool GetRenderColorScale(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[454] is not null and var loadedFnPtr + _slots[466] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[454] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") + : _slots[466] = nativeContext.LoadFunction("SDL_GetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); @@ -72936,9 +75513,9 @@ Ref blendMode byte ISdl.GetRenderDrawColor(RendererHandle renderer, byte* r, byte* g, byte* b, byte* a) => ( (delegate* unmanaged)( - _slots[455] is not null and var loadedFnPtr + _slots[467] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[455] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") + : _slots[467] = nativeContext.LoadFunction("SDL_GetRenderDrawColor", "SDL3") ) )(renderer, r, g, b, a); @@ -72997,9 +75574,9 @@ byte ISdl.GetRenderDrawColorFloat( ) => ( (delegate* unmanaged)( - _slots[456] is not null and var loadedFnPtr + _slots[468] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[456] = nativeContext.LoadFunction( + : _slots[468] = nativeContext.LoadFunction( "SDL_GetRenderDrawColorFloat", "SDL3" ) @@ -73072,9 +75649,9 @@ Ref a sbyte* ISdl.GetRenderDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[457] is not null and var loadedFnPtr + _slots[469] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[457] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + : _slots[469] = nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") ) )(index); @@ -73089,9 +75666,9 @@ _slots[457] is not null and var loadedFnPtr RendererHandle ISdl.GetRenderer(WindowHandle window) => ( (delegate* unmanaged)( - _slots[458] is not null and var loadedFnPtr + _slots[470] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[458] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") + : _slots[470] = nativeContext.LoadFunction("SDL_GetRenderer", "SDL3") ) )(window); @@ -73106,9 +75683,9 @@ _slots[458] is not null and var loadedFnPtr RendererHandle ISdl.GetRendererFromTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[459] is not null and var loadedFnPtr + _slots[471] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[459] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") + : _slots[471] = nativeContext.LoadFunction("SDL_GetRendererFromTexture", "SDL3") ) )(texture); @@ -73153,9 +75730,9 @@ public static Ptr GetRendererName(RendererHandle renderer) => sbyte* ISdl.GetRendererNameRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[460] is not null and var loadedFnPtr + _slots[472] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[460] = nativeContext.LoadFunction("SDL_GetRendererName", "SDL3") + : _slots[472] = nativeContext.LoadFunction("SDL_GetRendererName", "SDL3") ) )(renderer); @@ -73171,9 +75748,9 @@ _slots[460] is not null and var loadedFnPtr uint ISdl.GetRendererProperties(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[461] is not null and var loadedFnPtr + _slots[473] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[461] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") + : _slots[473] = nativeContext.LoadFunction("SDL_GetRendererProperties", "SDL3") ) )(renderer); @@ -73194,9 +75771,9 @@ byte ISdl.GetRenderLogicalPresentation( ) => ( (delegate* unmanaged)( - _slots[462] is not null and var loadedFnPtr + _slots[474] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[462] = nativeContext.LoadFunction( + : _slots[474] = nativeContext.LoadFunction( "SDL_GetRenderLogicalPresentation", "SDL3" ) @@ -73254,9 +75831,9 @@ Ref mode byte ISdl.GetRenderLogicalPresentationRect(RendererHandle renderer, FRect* rect) => ( (delegate* unmanaged)( - _slots[463] is not null and var loadedFnPtr + _slots[475] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[463] = nativeContext.LoadFunction( + : _slots[475] = nativeContext.LoadFunction( "SDL_GetRenderLogicalPresentationRect", "SDL3" ) @@ -73307,9 +75884,9 @@ public static Ptr GetRenderMetalCommandEncoder(RendererHandle renderer) => void* ISdl.GetRenderMetalCommandEncoderRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[464] is not null and var loadedFnPtr + _slots[476] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[464] = nativeContext.LoadFunction( + : _slots[476] = nativeContext.LoadFunction( "SDL_GetRenderMetalCommandEncoder", "SDL3" ) @@ -73340,9 +75917,9 @@ public static Ptr GetRenderMetalLayer(RendererHandle renderer) => void* ISdl.GetRenderMetalLayerRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[465] is not null and var loadedFnPtr + _slots[477] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[465] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") + : _slots[477] = nativeContext.LoadFunction("SDL_GetRenderMetalLayer", "SDL3") ) )(renderer); @@ -73358,9 +75935,9 @@ _slots[465] is not null and var loadedFnPtr byte ISdl.GetRenderOutputSize(RendererHandle renderer, int* w, int* h) => ( (delegate* unmanaged)( - _slots[466] is not null and var loadedFnPtr + _slots[478] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[466] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") + : _slots[478] = nativeContext.LoadFunction("SDL_GetRenderOutputSize", "SDL3") ) )(renderer, w, h); @@ -73398,9 +75975,9 @@ Ref h byte ISdl.GetRenderSafeArea(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[467] is not null and var loadedFnPtr + _slots[479] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[467] = nativeContext.LoadFunction("SDL_GetRenderSafeArea", "SDL3") + : _slots[479] = nativeContext.LoadFunction("SDL_GetRenderSafeArea", "SDL3") ) )(renderer, rect); @@ -73433,9 +76010,9 @@ public static MaybeBool GetRenderSafeArea(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[468] is not null and var loadedFnPtr + _slots[480] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[468] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") + : _slots[480] = nativeContext.LoadFunction("SDL_GetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); @@ -73489,9 +76066,9 @@ public static Ptr GetRenderTarget(RendererHandle renderer) => Texture* ISdl.GetRenderTargetRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[469] is not null and var loadedFnPtr + _slots[481] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[469] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") + : _slots[481] = nativeContext.LoadFunction("SDL_GetRenderTarget", "SDL3") ) )(renderer); @@ -73501,15 +76078,70 @@ _slots[469] is not null and var loadedFnPtr public static Texture* GetRenderTargetRaw(RendererHandle renderer) => DllImport.GetRenderTargetRaw(renderer); + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ) => + ( + (delegate* unmanaged)( + _slots[482] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[482] = nativeContext.LoadFunction( + "SDL_GetRenderTextureAddressMode", + "SDL3" + ) + ) + )(renderer, u_mode, v_mode); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode* u_mode, + TextureAddressMode* v_mode + ) => DllImport.GetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ) + { + fixed (TextureAddressMode* __dsl_v_mode = v_mode) + fixed (TextureAddressMode* __dsl_u_mode = u_mode) + { + return (MaybeBool) + (byte) + ((ISdl)this).GetRenderTextureAddressMode(renderer, __dsl_u_mode, __dsl_v_mode); + } + } + + [NativeName("SDL_GetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRenderTextureAddressMode( + RendererHandle renderer, + Ref u_mode, + Ref v_mode + ) => DllImport.GetRenderTextureAddressMode(renderer, u_mode, v_mode); + [NativeName("SDL_GetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.GetRenderViewport(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[470] is not null and var loadedFnPtr + _slots[483] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[470] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") + : _slots[483] = nativeContext.LoadFunction("SDL_GetRenderViewport", "SDL3") ) )(renderer, rect); @@ -73542,9 +76174,9 @@ public static MaybeBool GetRenderViewport(RendererHandle renderer, Ref ( (delegate* unmanaged)( - _slots[471] is not null and var loadedFnPtr + _slots[484] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[471] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") + : _slots[484] = nativeContext.LoadFunction("SDL_GetRenderVSync", "SDL3") ) )(renderer, vsync); @@ -73577,9 +76209,9 @@ public static MaybeBool GetRenderVSync(RendererHandle renderer, Ref v WindowHandle ISdl.GetRenderWindow(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[472] is not null and var loadedFnPtr + _slots[485] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[472] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") + : _slots[485] = nativeContext.LoadFunction("SDL_GetRenderWindow", "SDL3") ) )(renderer); @@ -73605,9 +76237,9 @@ public static WindowHandle GetRenderWindow(RendererHandle renderer) => sbyte* ISdl.GetRevisionRaw() => ( (delegate* unmanaged)( - _slots[473] is not null and var loadedFnPtr + _slots[486] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[473] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") + : _slots[486] = nativeContext.LoadFunction("SDL_GetRevision", "SDL3") ) )(); @@ -73620,7 +76252,7 @@ _slots[473] is not null and var loadedFnPtr [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -73629,29 +76261,29 @@ void ISdl.GetRgb( ) => ( (delegate* unmanaged)( - _slots[474] is not null and var loadedFnPtr + _slots[487] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[474] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") + : _slots[487] = nativeContext.LoadFunction("SDL_GetRGB", "SDL3") ) - )(pixel, format, palette, r, g, b); + )(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgb( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b - ) => DllImport.GetRgb(pixel, format, palette, r, g, b); + ) => DllImport.GetRgb(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGB")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -73665,7 +76297,7 @@ Ref b fixed (Palette* __dsl_palette = palette) fixed (PixelFormatDetails* __dsl_format = format) { - ((ISdl)this).GetRgb(pixel, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); + ((ISdl)this).GetRgb(pixelvalue, __dsl_format, __dsl_palette, __dsl_r, __dsl_g, __dsl_b); } } @@ -73673,19 +76305,19 @@ Ref b [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgb( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, Ref g, Ref b - ) => DllImport.GetRgb(pixel, format, palette, r, g, b); + ) => DllImport.GetRgb(pixelvalue, format, palette, r, g, b); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, @@ -73703,30 +76335,30 @@ void ISdl.GetRgba( byte*, byte*, void>)( - _slots[475] is not null and var loadedFnPtr + _slots[488] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[475] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") + : _slots[488] = nativeContext.LoadFunction("SDL_GetRGBA", "SDL3") ) - )(pixel, format, palette, r, g, b, a); + )(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgba( - uint pixel, + uint pixelvalue, PixelFormatDetails* format, Palette* palette, byte* r, byte* g, byte* b, byte* a - ) => DllImport.GetRgba(pixel, format, palette, r, g, b, a); + ) => DllImport.GetRgba(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetRGBA")] [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, @@ -73743,7 +76375,7 @@ Ref a fixed (PixelFormatDetails* __dsl_format = format) { ((ISdl)this).GetRgba( - pixel, + pixelvalue, __dsl_format, __dsl_palette, __dsl_r, @@ -73758,14 +76390,14 @@ Ref a [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static void GetRgba( - uint pixel, + uint pixelvalue, Ref format, Ref palette, Ref r, Ref g, Ref b, Ref a - ) => DllImport.GetRgba(pixel, format, palette, r, g, b, a); + ) => DllImport.GetRgba(pixelvalue, format, palette, r, g, b, a); [NativeName("SDL_GetSandbox")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSandbox")] @@ -73773,9 +76405,9 @@ Ref a Sandbox ISdl.GetSandbox() => ( (delegate* unmanaged)( - _slots[476] is not null and var loadedFnPtr + _slots[489] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[476] = nativeContext.LoadFunction("SDL_GetSandbox", "SDL3") + : _slots[489] = nativeContext.LoadFunction("SDL_GetSandbox", "SDL3") ) )(); @@ -73790,9 +76422,9 @@ _slots[476] is not null and var loadedFnPtr Scancode ISdl.GetScancodeFromKey(uint key, ushort* modstate) => ( (delegate* unmanaged)( - _slots[477] is not null and var loadedFnPtr + _slots[490] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[477] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") + : _slots[490] = nativeContext.LoadFunction("SDL_GetScancodeFromKey", "SDL3") ) )(key, modstate); @@ -73825,9 +76457,9 @@ public static Scancode GetScancodeFromKey(uint key, Ref modstate) => Scancode ISdl.GetScancodeFromName(sbyte* name) => ( (delegate* unmanaged)( - _slots[478] is not null and var loadedFnPtr + _slots[491] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[478] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") + : _slots[491] = nativeContext.LoadFunction("SDL_GetScancodeFromName", "SDL3") ) )(name); @@ -73871,9 +76503,9 @@ public static Ptr GetScancodeName(Scancode scancode) => sbyte* ISdl.GetScancodeNameRaw(Scancode scancode) => ( (delegate* unmanaged)( - _slots[479] is not null and var loadedFnPtr + _slots[492] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[479] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + : _slots[492] = nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") ) )(scancode); @@ -73889,9 +76521,9 @@ _slots[479] is not null and var loadedFnPtr uint ISdl.GetSemaphoreValue(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[480] is not null and var loadedFnPtr + _slots[493] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[480] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") + : _slots[493] = nativeContext.LoadFunction("SDL_GetSemaphoreValue", "SDL3") ) )(sem); @@ -73906,9 +76538,9 @@ _slots[480] is not null and var loadedFnPtr byte ISdl.GetSensorData(SensorHandle sensor, float* data, int num_values) => ( (delegate* unmanaged)( - _slots[481] is not null and var loadedFnPtr + _slots[494] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[481] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") + : _slots[494] = nativeContext.LoadFunction("SDL_GetSensorData", "SDL3") ) )(sensor, data, num_values); @@ -73945,9 +76577,9 @@ int num_values SensorHandle ISdl.GetSensorFromID(uint instance_id) => ( (delegate* unmanaged)( - _slots[482] is not null and var loadedFnPtr + _slots[495] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[482] = nativeContext.LoadFunction("SDL_GetSensorFromID", "SDL3") + : _slots[495] = nativeContext.LoadFunction("SDL_GetSensorFromID", "SDL3") ) )(instance_id); @@ -73963,9 +76595,9 @@ public static SensorHandle GetSensorFromID(uint instance_id) => uint ISdl.GetSensorID(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[483] is not null and var loadedFnPtr + _slots[496] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[483] = nativeContext.LoadFunction("SDL_GetSensorID", "SDL3") + : _slots[496] = nativeContext.LoadFunction("SDL_GetSensorID", "SDL3") ) )(sensor); @@ -74003,9 +76635,9 @@ public static Ptr GetSensorNameForID(uint instance_id) => sbyte* ISdl.GetSensorNameForIDRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[485] is not null and var loadedFnPtr + _slots[498] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[485] = nativeContext.LoadFunction("SDL_GetSensorNameForID", "SDL3") + : _slots[498] = nativeContext.LoadFunction("SDL_GetSensorNameForID", "SDL3") ) )(instance_id); @@ -74021,9 +76653,9 @@ _slots[485] is not null and var loadedFnPtr sbyte* ISdl.GetSensorNameRaw(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[484] is not null and var loadedFnPtr + _slots[497] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[484] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") + : _slots[497] = nativeContext.LoadFunction("SDL_GetSensorName", "SDL3") ) )(sensor); @@ -74039,9 +76671,9 @@ _slots[484] is not null and var loadedFnPtr int ISdl.GetSensorNonPortableType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[486] is not null and var loadedFnPtr + _slots[499] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[486] = nativeContext.LoadFunction( + : _slots[499] = nativeContext.LoadFunction( "SDL_GetSensorNonPortableType", "SDL3" ) @@ -74060,9 +76692,9 @@ public static int GetSensorNonPortableType(SensorHandle sensor) => int ISdl.GetSensorNonPortableTypeForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[487] is not null and var loadedFnPtr + _slots[500] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[487] = nativeContext.LoadFunction( + : _slots[500] = nativeContext.LoadFunction( "SDL_GetSensorNonPortableTypeForID", "SDL3" ) @@ -74081,9 +76713,9 @@ public static int GetSensorNonPortableTypeForID(uint instance_id) => uint ISdl.GetSensorProperties(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[488] is not null and var loadedFnPtr + _slots[501] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[488] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") + : _slots[501] = nativeContext.LoadFunction("SDL_GetSensorProperties", "SDL3") ) )(sensor); @@ -74099,9 +76731,9 @@ public static uint GetSensorProperties(SensorHandle sensor) => uint* ISdl.GetSensors(int* count) => ( (delegate* unmanaged)( - _slots[489] is not null and var loadedFnPtr + _slots[502] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[489] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") + : _slots[502] = nativeContext.LoadFunction("SDL_GetSensors", "SDL3") ) )(count); @@ -74132,9 +76764,9 @@ Ptr ISdl.GetSensors(Ref count) SensorType ISdl.GetSensorType(SensorHandle sensor) => ( (delegate* unmanaged)( - _slots[490] is not null and var loadedFnPtr + _slots[503] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[490] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") + : _slots[503] = nativeContext.LoadFunction("SDL_GetSensorType", "SDL3") ) )(sensor); @@ -74149,9 +76781,9 @@ _slots[490] is not null and var loadedFnPtr SensorType ISdl.GetSensorTypeForID(uint instance_id) => ( (delegate* unmanaged)( - _slots[491] is not null and var loadedFnPtr + _slots[504] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[491] = nativeContext.LoadFunction("SDL_GetSensorTypeForID", "SDL3") + : _slots[504] = nativeContext.LoadFunction("SDL_GetSensorTypeForID", "SDL3") ) )(instance_id); @@ -74167,9 +76799,9 @@ public static SensorType GetSensorTypeForID(uint instance_id) => int ISdl.GetSilenceValueForFormat(AudioFormat format) => ( (delegate* unmanaged)( - _slots[492] is not null and var loadedFnPtr + _slots[505] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[492] = nativeContext.LoadFunction( + : _slots[505] = nativeContext.LoadFunction( "SDL_GetSilenceValueForFormat", "SDL3" ) @@ -74188,9 +76820,9 @@ public static int GetSilenceValueForFormat(AudioFormat format) => nuint ISdl.GetSimdAlignment() => ( (delegate* unmanaged)( - _slots[493] is not null and var loadedFnPtr + _slots[506] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[493] = nativeContext.LoadFunction("SDL_GetSIMDAlignment", "SDL3") + : _slots[506] = nativeContext.LoadFunction("SDL_GetSIMDAlignment", "SDL3") ) )(); @@ -74205,9 +76837,9 @@ _slots[493] is not null and var loadedFnPtr byte ISdl.GetStorageFileSize(StorageHandle storage, sbyte* path, ulong* length) => ( (delegate* unmanaged)( - _slots[494] is not null and var loadedFnPtr + _slots[507] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[494] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") + : _slots[507] = nativeContext.LoadFunction("SDL_GetStorageFileSize", "SDL3") ) )(storage, path, length); @@ -74249,9 +76881,9 @@ Ref length byte ISdl.GetStoragePathInfo(StorageHandle storage, sbyte* path, PathInfo* info) => ( (delegate* unmanaged)( - _slots[495] is not null and var loadedFnPtr + _slots[508] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[495] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") + : _slots[508] = nativeContext.LoadFunction("SDL_GetStoragePathInfo", "SDL3") ) )(storage, path, info); @@ -74293,9 +76925,9 @@ Ref info ulong ISdl.GetStorageSpaceRemaining(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[496] is not null and var loadedFnPtr + _slots[509] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[496] = nativeContext.LoadFunction( + : _slots[509] = nativeContext.LoadFunction( "SDL_GetStorageSpaceRemaining", "SDL3" ) @@ -74314,9 +76946,9 @@ public static ulong GetStorageSpaceRemaining(StorageHandle storage) => sbyte* ISdl.GetStringProperty(uint props, sbyte* name, sbyte* default_value) => ( (delegate* unmanaged)( - _slots[497] is not null and var loadedFnPtr + _slots[510] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[497] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") + : _slots[510] = nativeContext.LoadFunction("SDL_GetStringProperty", "SDL3") ) )(props, name, default_value); @@ -74353,9 +76985,9 @@ Ref default_value byte ISdl.GetSurfaceAlphaMod(Surface* surface, byte* alpha) => ( (delegate* unmanaged)( - _slots[498] is not null and var loadedFnPtr + _slots[511] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[498] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") + : _slots[511] = nativeContext.LoadFunction("SDL_GetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); @@ -74390,9 +77022,9 @@ public static MaybeBool GetSurfaceAlphaMod(Ref surface, Ref byte ISdl.GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => ( (delegate* unmanaged)( - _slots[499] is not null and var loadedFnPtr + _slots[512] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[499] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") + : _slots[512] = nativeContext.LoadFunction("SDL_GetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); @@ -74429,9 +77061,9 @@ Ref blendMode byte ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => ( (delegate* unmanaged)( - _slots[500] is not null and var loadedFnPtr + _slots[513] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[500] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") + : _slots[513] = nativeContext.LoadFunction("SDL_GetSurfaceClipRect", "SDL3") ) )(surface, rect); @@ -74466,9 +77098,9 @@ public static MaybeBool GetSurfaceClipRect(Ref surface, Ref byte ISdl.GetSurfaceColorKey(Surface* surface, uint* key) => ( (delegate* unmanaged)( - _slots[501] is not null and var loadedFnPtr + _slots[514] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[501] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") + : _slots[514] = nativeContext.LoadFunction("SDL_GetSurfaceColorKey", "SDL3") ) )(surface, key); @@ -74502,9 +77134,9 @@ public static MaybeBool GetSurfaceColorKey(Ref surface, Ref byte ISdl.GetSurfaceColorMod(Surface* surface, byte* r, byte* g, byte* b) => ( (delegate* unmanaged)( - _slots[502] is not null and var loadedFnPtr + _slots[515] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[502] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") + : _slots[515] = nativeContext.LoadFunction("SDL_GetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); @@ -74550,9 +77182,9 @@ Ref b Colorspace ISdl.GetSurfaceColorspace(Surface* surface) => ( (delegate* unmanaged)( - _slots[503] is not null and var loadedFnPtr + _slots[516] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[503] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") + : _slots[516] = nativeContext.LoadFunction("SDL_GetSurfaceColorspace", "SDL3") ) )(surface); @@ -74585,9 +77217,9 @@ public static Colorspace GetSurfaceColorspace(Ref surface) => Surface** ISdl.GetSurfaceImages(Surface* surface, int* count) => ( (delegate* unmanaged)( - _slots[504] is not null and var loadedFnPtr + _slots[517] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[504] = nativeContext.LoadFunction("SDL_GetSurfaceImages", "SDL3") + : _slots[517] = nativeContext.LoadFunction("SDL_GetSurfaceImages", "SDL3") ) )(surface, count); @@ -74621,9 +77253,9 @@ public static Ptr2D GetSurfaceImages(Ref surface, Ref cou Palette* ISdl.GetSurfacePalette(Surface* surface) => ( (delegate* unmanaged)( - _slots[505] is not null and var loadedFnPtr + _slots[518] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[505] = nativeContext.LoadFunction("SDL_GetSurfacePalette", "SDL3") + : _slots[518] = nativeContext.LoadFunction("SDL_GetSurfacePalette", "SDL3") ) )(surface); @@ -74656,9 +77288,9 @@ public static Ptr GetSurfacePalette(Ref surface) => uint ISdl.GetSurfaceProperties(Surface* surface) => ( (delegate* unmanaged)( - _slots[506] is not null and var loadedFnPtr + _slots[519] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[506] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") + : _slots[519] = nativeContext.LoadFunction("SDL_GetSurfaceProperties", "SDL3") ) )(surface); @@ -74685,15 +77317,32 @@ uint ISdl.GetSurfaceProperties(Ref surface) public static uint GetSurfaceProperties(Ref surface) => DllImport.GetSurfaceProperties(surface); + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSystemPageSize() => + ( + (delegate* unmanaged)( + _slots[520] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[520] = nativeContext.LoadFunction("SDL_GetSystemPageSize", "SDL3") + ) + )(); + + [NativeName("SDL_GetSystemPageSize")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemPageSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSystemPageSize() => DllImport.GetSystemPageSize(); + [NativeName("SDL_GetSystemRAM")] [NativeFunction("SDL3", EntryPoint = "SDL_GetSystemRAM")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.GetSystemRam() => ( (delegate* unmanaged)( - _slots[507] is not null and var loadedFnPtr + _slots[521] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[507] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") + : _slots[521] = nativeContext.LoadFunction("SDL_GetSystemRAM", "SDL3") ) )(); @@ -74708,9 +77357,9 @@ _slots[507] is not null and var loadedFnPtr SystemTheme ISdl.GetSystemTheme() => ( (delegate* unmanaged)( - _slots[508] is not null and var loadedFnPtr + _slots[522] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[508] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") + : _slots[522] = nativeContext.LoadFunction("SDL_GetSystemTheme", "SDL3") ) )(); @@ -74725,9 +77374,9 @@ _slots[508] is not null and var loadedFnPtr byte ISdl.GetTextInputArea(WindowHandle window, Rect* rect, int* cursor) => ( (delegate* unmanaged)( - _slots[509] is not null and var loadedFnPtr + _slots[523] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[509] = nativeContext.LoadFunction("SDL_GetTextInputArea", "SDL3") + : _slots[523] = nativeContext.LoadFunction("SDL_GetTextInputArea", "SDL3") ) )(window, rect, cursor); @@ -74765,9 +77414,9 @@ Ref cursor byte ISdl.GetTextureAlphaMod(Texture* texture, byte* alpha) => ( (delegate* unmanaged)( - _slots[510] is not null and var loadedFnPtr + _slots[524] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[510] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") + : _slots[524] = nativeContext.LoadFunction("SDL_GetTextureAlphaMod", "SDL3") ) )(texture, alpha); @@ -74802,9 +77451,9 @@ public static MaybeBool GetTextureAlphaMod(Ref texture, Ref byte ISdl.GetTextureAlphaModFloat(Texture* texture, float* alpha) => ( (delegate* unmanaged)( - _slots[511] is not null and var loadedFnPtr + _slots[525] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[511] = nativeContext.LoadFunction( + : _slots[525] = nativeContext.LoadFunction( "SDL_GetTextureAlphaModFloat", "SDL3" ) @@ -74842,9 +77491,9 @@ public static MaybeBool GetTextureAlphaModFloat(Ref texture, Ref< byte ISdl.GetTextureBlendMode(Texture* texture, BlendMode* blendMode) => ( (delegate* unmanaged)( - _slots[512] is not null and var loadedFnPtr + _slots[526] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[512] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") + : _slots[526] = nativeContext.LoadFunction("SDL_GetTextureBlendMode", "SDL3") ) )(texture, blendMode); @@ -74881,9 +77530,9 @@ Ref blendMode byte ISdl.GetTextureColorMod(Texture* texture, byte* r, byte* g, byte* b) => ( (delegate* unmanaged)( - _slots[513] is not null and var loadedFnPtr + _slots[527] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[513] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") + : _slots[527] = nativeContext.LoadFunction("SDL_GetTextureColorMod", "SDL3") ) )(texture, r, g, b); @@ -74929,9 +77578,9 @@ Ref b byte ISdl.GetTextureColorModFloat(Texture* texture, float* r, float* g, float* b) => ( (delegate* unmanaged)( - _slots[514] is not null and var loadedFnPtr + _slots[528] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[514] = nativeContext.LoadFunction( + : _slots[528] = nativeContext.LoadFunction( "SDL_GetTextureColorModFloat", "SDL3" ) @@ -74975,15 +77624,50 @@ public static MaybeBool GetTextureColorModFloat( Ref b ) => DllImport.GetTextureColorModFloat(texture, r, g, b); + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Palette* ISdl.GetTexturePalette(Texture* texture) => + ( + (delegate* unmanaged)( + _slots[529] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[529] = nativeContext.LoadFunction("SDL_GetTexturePalette", "SDL3") + ) + )(texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Palette* GetTexturePalette(Texture* texture) => + DllImport.GetTexturePalette(texture); + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetTexturePalette(Ref texture) + { + fixed (Texture* __dsl_texture = texture) + { + return (Palette*)((ISdl)this).GetTexturePalette(__dsl_texture); + } + } + + [NativeName("SDL_GetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetTexturePalette(Ref texture) => + DllImport.GetTexturePalette(texture); + [NativeName("SDL_GetTextureProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetTextureProperties(Texture* texture) => ( (delegate* unmanaged)( - _slots[515] is not null and var loadedFnPtr + _slots[530] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[515] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") + : _slots[530] = nativeContext.LoadFunction("SDL_GetTextureProperties", "SDL3") ) )(texture); @@ -75016,9 +77700,9 @@ public static uint GetTextureProperties(Ref texture) => byte ISdl.GetTextureScaleMode(Texture* texture, ScaleMode* scaleMode) => ( (delegate* unmanaged)( - _slots[516] is not null and var loadedFnPtr + _slots[531] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[516] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") + : _slots[531] = nativeContext.LoadFunction("SDL_GetTextureScaleMode", "SDL3") ) )(texture, scaleMode); @@ -75055,9 +77739,9 @@ Ref scaleMode byte ISdl.GetTextureSize(Texture* texture, float* w, float* h) => ( (delegate* unmanaged)( - _slots[517] is not null and var loadedFnPtr + _slots[532] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[517] = nativeContext.LoadFunction("SDL_GetTextureSize", "SDL3") + : _slots[532] = nativeContext.LoadFunction("SDL_GetTextureSize", "SDL3") ) )(texture, w, h); @@ -75096,9 +77780,9 @@ Ref h ulong ISdl.GetThreadID(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[518] is not null and var loadedFnPtr + _slots[533] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[518] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") + : _slots[533] = nativeContext.LoadFunction("SDL_GetThreadID", "SDL3") ) )(thread); @@ -75124,9 +77808,9 @@ Ptr ISdl.GetThreadName(ThreadHandle thread) => sbyte* ISdl.GetThreadNameRaw(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[519] is not null and var loadedFnPtr + _slots[534] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[519] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") + : _slots[534] = nativeContext.LoadFunction("SDL_GetThreadName", "SDL3") ) )(thread); @@ -75142,9 +77826,9 @@ _slots[519] is not null and var loadedFnPtr ThreadState ISdl.GetThreadState(ThreadHandle thread) => ( (delegate* unmanaged)( - _slots[520] is not null and var loadedFnPtr + _slots[535] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[520] = nativeContext.LoadFunction("SDL_GetThreadState", "SDL3") + : _slots[535] = nativeContext.LoadFunction("SDL_GetThreadState", "SDL3") ) )(thread); @@ -75160,9 +77844,9 @@ public static ThreadState GetThreadState(ThreadHandle thread) => ulong ISdl.GetTicks() => ( (delegate* unmanaged)( - _slots[521] is not null and var loadedFnPtr + _slots[536] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[521] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") + : _slots[536] = nativeContext.LoadFunction("SDL_GetTicks", "SDL3") ) )(); @@ -75177,9 +77861,9 @@ _slots[521] is not null and var loadedFnPtr ulong ISdl.GetTicksNS() => ( (delegate* unmanaged)( - _slots[522] is not null and var loadedFnPtr + _slots[537] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[522] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") + : _slots[537] = nativeContext.LoadFunction("SDL_GetTicksNS", "SDL3") ) )(); @@ -75194,9 +77878,9 @@ _slots[522] is not null and var loadedFnPtr void* ISdl.GetTls(AtomicInt* id) => ( (delegate* unmanaged)( - _slots[523] is not null and var loadedFnPtr + _slots[538] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[523] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") + : _slots[538] = nativeContext.LoadFunction("SDL_GetTLS", "SDL3") ) )(id); @@ -75239,9 +77923,9 @@ public static Ptr GetTouchDeviceName(ulong touchID) => sbyte* ISdl.GetTouchDeviceNameRaw(ulong touchID) => ( (delegate* unmanaged)( - _slots[524] is not null and var loadedFnPtr + _slots[539] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[524] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + : _slots[539] = nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") ) )(touchID); @@ -75257,9 +77941,9 @@ _slots[524] is not null and var loadedFnPtr ulong* ISdl.GetTouchDevices(int* count) => ( (delegate* unmanaged)( - _slots[525] is not null and var loadedFnPtr + _slots[540] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[525] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") + : _slots[540] = nativeContext.LoadFunction("SDL_GetTouchDevices", "SDL3") ) )(count); @@ -75290,9 +77974,9 @@ Ptr ISdl.GetTouchDevices(Ref count) TouchDeviceType ISdl.GetTouchDeviceType(ulong touchID) => ( (delegate* unmanaged)( - _slots[526] is not null and var loadedFnPtr + _slots[541] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[526] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") + : _slots[541] = nativeContext.LoadFunction("SDL_GetTouchDeviceType", "SDL3") ) )(touchID); @@ -75308,9 +77992,9 @@ public static TouchDeviceType GetTouchDeviceType(ulong touchID) => Finger** ISdl.GetTouchFingers(ulong touchID, int* count) => ( (delegate* unmanaged)( - _slots[527] is not null and var loadedFnPtr + _slots[542] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[527] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") + : _slots[542] = nativeContext.LoadFunction("SDL_GetTouchFingers", "SDL3") ) )(touchID, count); @@ -75353,9 +78037,9 @@ public static Ptr2D GetTouchFingers(ulong touchID, Ref count) => sbyte* ISdl.GetUserFolderRaw(Folder folder) => ( (delegate* unmanaged)( - _slots[528] is not null and var loadedFnPtr + _slots[543] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[528] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + : _slots[543] = nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") ) )(folder); @@ -75370,9 +78054,9 @@ _slots[528] is not null and var loadedFnPtr int ISdl.GetVersion() => ( (delegate* unmanaged)( - _slots[529] is not null and var loadedFnPtr + _slots[544] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[529] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") + : _slots[544] = nativeContext.LoadFunction("SDL_GetVersion", "SDL3") ) )(); @@ -75397,9 +78081,9 @@ _slots[529] is not null and var loadedFnPtr sbyte* ISdl.GetVideoDriverRaw(int index) => ( (delegate* unmanaged)( - _slots[530] is not null and var loadedFnPtr + _slots[545] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[530] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + : _slots[545] = nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") ) )(index); @@ -75414,9 +78098,9 @@ _slots[530] is not null and var loadedFnPtr byte ISdl.GetWindowAspectRatio(WindowHandle window, float* min_aspect, float* max_aspect) => ( (delegate* unmanaged)( - _slots[531] is not null and var loadedFnPtr + _slots[546] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[531] = nativeContext.LoadFunction("SDL_GetWindowAspectRatio", "SDL3") + : _slots[546] = nativeContext.LoadFunction("SDL_GetWindowAspectRatio", "SDL3") ) )(window, min_aspect, max_aspect); @@ -75467,9 +78151,9 @@ byte ISdl.GetWindowBordersSize( ) => ( (delegate* unmanaged)( - _slots[532] is not null and var loadedFnPtr + _slots[547] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[532] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") + : _slots[547] = nativeContext.LoadFunction("SDL_GetWindowBordersSize", "SDL3") ) )(window, top, left, bottom, right); @@ -75529,9 +78213,9 @@ Ref right float ISdl.GetWindowDisplayScale(WindowHandle window) => ( (delegate* unmanaged)( - _slots[533] is not null and var loadedFnPtr + _slots[548] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[533] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") + : _slots[548] = nativeContext.LoadFunction("SDL_GetWindowDisplayScale", "SDL3") ) )(window); @@ -75547,9 +78231,9 @@ public static float GetWindowDisplayScale(WindowHandle window) => ulong ISdl.GetWindowFlags(WindowHandle window) => ( (delegate* unmanaged)( - _slots[534] is not null and var loadedFnPtr + _slots[549] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[534] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") + : _slots[549] = nativeContext.LoadFunction("SDL_GetWindowFlags", "SDL3") ) )(window); @@ -75564,9 +78248,9 @@ _slots[534] is not null and var loadedFnPtr WindowHandle ISdl.GetWindowFromEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[535] is not null and var loadedFnPtr + _slots[550] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[535] = nativeContext.LoadFunction("SDL_GetWindowFromEvent", "SDL3") + : _slots[550] = nativeContext.LoadFunction("SDL_GetWindowFromEvent", "SDL3") ) )(@event); @@ -75599,9 +78283,9 @@ public static WindowHandle GetWindowFromEvent(Ref @event) => WindowHandle ISdl.GetWindowFromID(uint id) => ( (delegate* unmanaged)( - _slots[536] is not null and var loadedFnPtr + _slots[551] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[536] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + : _slots[551] = nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") ) )(id); @@ -75628,9 +78312,9 @@ public static Ptr GetWindowFullscreenMode(WindowHandle window) => DisplayMode* ISdl.GetWindowFullscreenModeRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[537] is not null and var loadedFnPtr + _slots[552] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[537] = nativeContext.LoadFunction( + : _slots[552] = nativeContext.LoadFunction( "SDL_GetWindowFullscreenMode", "SDL3" ) @@ -75649,9 +78333,9 @@ _slots[537] is not null and var loadedFnPtr void* ISdl.GetWindowIccProfile(WindowHandle window, nuint* size) => ( (delegate* unmanaged)( - _slots[538] is not null and var loadedFnPtr + _slots[553] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[538] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") + : _slots[553] = nativeContext.LoadFunction("SDL_GetWindowICCProfile", "SDL3") ) )(window, size); @@ -75684,9 +78368,9 @@ public static Ptr GetWindowIccProfile(WindowHandle window, Ref size) => uint ISdl.GetWindowID(WindowHandle window) => ( (delegate* unmanaged)( - _slots[539] is not null and var loadedFnPtr + _slots[554] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[539] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") + : _slots[554] = nativeContext.LoadFunction("SDL_GetWindowID", "SDL3") ) )(window); @@ -75713,9 +78397,9 @@ public static MaybeBool GetWindowKeyboardGrab(WindowHandle window) => byte ISdl.GetWindowKeyboardGrabRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[540] is not null and var loadedFnPtr + _slots[555] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[540] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") + : _slots[555] = nativeContext.LoadFunction("SDL_GetWindowKeyboardGrab", "SDL3") ) )(window); @@ -75731,9 +78415,9 @@ public static byte GetWindowKeyboardGrabRaw(WindowHandle window) => byte ISdl.GetWindowMaximumSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[541] is not null and var loadedFnPtr + _slots[556] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[541] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") + : _slots[556] = nativeContext.LoadFunction("SDL_GetWindowMaximumSize", "SDL3") ) )(window, w, h); @@ -75771,9 +78455,9 @@ Ref h byte ISdl.GetWindowMinimumSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[542] is not null and var loadedFnPtr + _slots[557] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[542] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") + : _slots[557] = nativeContext.LoadFunction("SDL_GetWindowMinimumSize", "SDL3") ) )(window, w, h); @@ -75823,9 +78507,9 @@ public static MaybeBool GetWindowMouseGrab(WindowHandle window) => byte ISdl.GetWindowMouseGrabRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[543] is not null and var loadedFnPtr + _slots[558] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[543] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") + : _slots[558] = nativeContext.LoadFunction("SDL_GetWindowMouseGrab", "SDL3") ) )(window); @@ -75853,9 +78537,9 @@ public static Ptr GetWindowMouseRect(WindowHandle window) => Rect* ISdl.GetWindowMouseRectRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[544] is not null and var loadedFnPtr + _slots[559] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[544] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") + : _slots[559] = nativeContext.LoadFunction("SDL_GetWindowMouseRect", "SDL3") ) )(window); @@ -75871,9 +78555,9 @@ _slots[544] is not null and var loadedFnPtr float ISdl.GetWindowOpacity(WindowHandle window) => ( (delegate* unmanaged)( - _slots[545] is not null and var loadedFnPtr + _slots[560] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[545] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") + : _slots[560] = nativeContext.LoadFunction("SDL_GetWindowOpacity", "SDL3") ) )(window); @@ -75888,9 +78572,9 @@ _slots[545] is not null and var loadedFnPtr WindowHandle ISdl.GetWindowParent(WindowHandle window) => ( (delegate* unmanaged)( - _slots[546] is not null and var loadedFnPtr + _slots[561] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[546] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") + : _slots[561] = nativeContext.LoadFunction("SDL_GetWindowParent", "SDL3") ) )(window); @@ -75906,9 +78590,9 @@ public static WindowHandle GetWindowParent(WindowHandle window) => float ISdl.GetWindowPixelDensity(WindowHandle window) => ( (delegate* unmanaged)( - _slots[547] is not null and var loadedFnPtr + _slots[562] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[547] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") + : _slots[562] = nativeContext.LoadFunction("SDL_GetWindowPixelDensity", "SDL3") ) )(window); @@ -75924,9 +78608,9 @@ public static float GetWindowPixelDensity(WindowHandle window) => PixelFormat ISdl.GetWindowPixelFormat(WindowHandle window) => ( (delegate* unmanaged)( - _slots[548] is not null and var loadedFnPtr + _slots[563] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[548] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") + : _slots[563] = nativeContext.LoadFunction("SDL_GetWindowPixelFormat", "SDL3") ) )(window); @@ -75942,9 +78626,9 @@ public static PixelFormat GetWindowPixelFormat(WindowHandle window) => byte ISdl.GetWindowPosition(WindowHandle window, int* x, int* y) => ( (delegate* unmanaged)( - _slots[549] is not null and var loadedFnPtr + _slots[564] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[549] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") + : _slots[564] = nativeContext.LoadFunction("SDL_GetWindowPosition", "SDL3") ) )(window, x, y); @@ -75972,15 +78656,51 @@ MaybeBool ISdl.GetWindowPosition(WindowHandle window, Ref x, Ref public static MaybeBool GetWindowPosition(WindowHandle window, Ref x, Ref y) => DllImport.GetWindowPosition(window, x, y); + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ProgressState ISdl.GetWindowProgressState(WindowHandle window) => + ( + (delegate* unmanaged)( + _slots[565] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[565] = nativeContext.LoadFunction("SDL_GetWindowProgressState", "SDL3") + ) + )(window); + + [NativeName("SDL_GetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ProgressState GetWindowProgressState(WindowHandle window) => + DllImport.GetWindowProgressState(window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetWindowProgressValue(WindowHandle window) => + ( + (delegate* unmanaged)( + _slots[566] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[566] = nativeContext.LoadFunction("SDL_GetWindowProgressValue", "SDL3") + ) + )(window); + + [NativeName("SDL_GetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetWindowProgressValue(WindowHandle window) => + DllImport.GetWindowProgressValue(window); + [NativeName("SDL_GetWindowProperties")] [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] uint ISdl.GetWindowProperties(WindowHandle window) => ( (delegate* unmanaged)( - _slots[550] is not null and var loadedFnPtr + _slots[567] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[550] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") + : _slots[567] = nativeContext.LoadFunction("SDL_GetWindowProperties", "SDL3") ) )(window); @@ -76008,9 +78728,9 @@ public static MaybeBool GetWindowRelativeMouseMode(WindowHandle window) => byte ISdl.GetWindowRelativeMouseModeRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[551] is not null and var loadedFnPtr + _slots[568] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[551] = nativeContext.LoadFunction( + : _slots[568] = nativeContext.LoadFunction( "SDL_GetWindowRelativeMouseMode", "SDL3" ) @@ -76029,9 +78749,9 @@ public static byte GetWindowRelativeMouseModeRaw(WindowHandle window) => WindowHandle* ISdl.GetWindows(int* count) => ( (delegate* unmanaged)( - _slots[552] is not null and var loadedFnPtr + _slots[569] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[552] = nativeContext.LoadFunction("SDL_GetWindows", "SDL3") + : _slots[569] = nativeContext.LoadFunction("SDL_GetWindows", "SDL3") ) )(count); @@ -76062,9 +78782,9 @@ Ptr ISdl.GetWindows(Ref count) byte ISdl.GetWindowSafeArea(WindowHandle window, Rect* rect) => ( (delegate* unmanaged)( - _slots[553] is not null and var loadedFnPtr + _slots[570] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[553] = nativeContext.LoadFunction("SDL_GetWindowSafeArea", "SDL3") + : _slots[570] = nativeContext.LoadFunction("SDL_GetWindowSafeArea", "SDL3") ) )(window, rect); @@ -76097,9 +78817,9 @@ public static MaybeBool GetWindowSafeArea(WindowHandle window, Ref r byte ISdl.GetWindowSize(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[554] is not null and var loadedFnPtr + _slots[571] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[554] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") + : _slots[571] = nativeContext.LoadFunction("SDL_GetWindowSize", "SDL3") ) )(window, w, h); @@ -76133,9 +78853,9 @@ public static MaybeBool GetWindowSize(WindowHandle window, Ref w, Ref byte ISdl.GetWindowSizeInPixels(WindowHandle window, int* w, int* h) => ( (delegate* unmanaged)( - _slots[555] is not null and var loadedFnPtr + _slots[572] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[555] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") + : _slots[572] = nativeContext.LoadFunction("SDL_GetWindowSizeInPixels", "SDL3") ) )(window, w, h); @@ -76185,9 +78905,9 @@ public static Ptr GetWindowSurface(WindowHandle window) => Surface* ISdl.GetWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[556] is not null and var loadedFnPtr + _slots[573] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[556] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") + : _slots[573] = nativeContext.LoadFunction("SDL_GetWindowSurface", "SDL3") ) )(window); @@ -76203,9 +78923,9 @@ _slots[556] is not null and var loadedFnPtr byte ISdl.GetWindowSurfaceVSync(WindowHandle window, int* vsync) => ( (delegate* unmanaged)( - _slots[557] is not null and var loadedFnPtr + _slots[574] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[557] = nativeContext.LoadFunction("SDL_GetWindowSurfaceVSync", "SDL3") + : _slots[574] = nativeContext.LoadFunction("SDL_GetWindowSurfaceVSync", "SDL3") ) )(window, vsync); @@ -76250,9 +78970,9 @@ public static Ptr GetWindowTitle(WindowHandle window) => sbyte* ISdl.GetWindowTitleRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[558] is not null and var loadedFnPtr + _slots[575] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[558] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") + : _slots[575] = nativeContext.LoadFunction("SDL_GetWindowTitle", "SDL3") ) )(window); @@ -76268,9 +78988,9 @@ _slots[558] is not null and var loadedFnPtr GLContextStateHandle ISdl.GLCreateContext(WindowHandle window) => ( (delegate* unmanaged)( - _slots[559] is not null and var loadedFnPtr + _slots[576] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[559] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") + : _slots[576] = nativeContext.LoadFunction("SDL_GL_CreateContext", "SDL3") ) )(window); @@ -76298,9 +79018,9 @@ public static MaybeBool GLDestroyContext(GLContextStateHandle context) => byte ISdl.GLDestroyContextRaw(GLContextStateHandle context) => ( (delegate* unmanaged)( - _slots[560] is not null and var loadedFnPtr + _slots[577] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[560] = nativeContext.LoadFunction("SDL_GL_DestroyContext", "SDL3") + : _slots[577] = nativeContext.LoadFunction("SDL_GL_DestroyContext", "SDL3") ) )(context); @@ -76316,9 +79036,9 @@ public static byte GLDestroyContextRaw(GLContextStateHandle context) => byte ISdl.GLExtensionSupported(sbyte* extension) => ( (delegate* unmanaged)( - _slots[561] is not null and var loadedFnPtr + _slots[578] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[561] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") + : _slots[578] = nativeContext.LoadFunction("SDL_GL_ExtensionSupported", "SDL3") ) )(extension); @@ -76351,9 +79071,9 @@ public static MaybeBool GLExtensionSupported(Ref extension) => byte ISdl.GLGetAttribute(GLAttr attr, int* value) => ( (delegate* unmanaged)( - _slots[562] is not null and var loadedFnPtr + _slots[579] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[562] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") + : _slots[579] = nativeContext.LoadFunction("SDL_GL_GetAttribute", "SDL3") ) )(attr, value); @@ -76386,9 +79106,9 @@ public static MaybeBool GLGetAttribute(GLAttr attr, Ref value) => GLContextStateHandle ISdl.GLGetCurrentContext() => ( (delegate* unmanaged)( - _slots[563] is not null and var loadedFnPtr + _slots[580] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[563] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") + : _slots[580] = nativeContext.LoadFunction("SDL_GL_GetCurrentContext", "SDL3") ) )(); @@ -76403,9 +79123,9 @@ _slots[563] is not null and var loadedFnPtr WindowHandle ISdl.GLGetCurrentWindow() => ( (delegate* unmanaged)( - _slots[564] is not null and var loadedFnPtr + _slots[581] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[564] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + : _slots[581] = nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") ) )(); @@ -76420,9 +79140,9 @@ _slots[564] is not null and var loadedFnPtr FunctionPointer ISdl.GLGetProcAddress(sbyte* proc) => ( (delegate* unmanaged)( - _slots[565] is not null and var loadedFnPtr + _slots[582] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[565] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") + : _slots[582] = nativeContext.LoadFunction("SDL_GL_GetProcAddress", "SDL3") ) )(proc); @@ -76454,9 +79174,9 @@ public static FunctionPointer GLGetProcAddress(Ref proc) => byte ISdl.GLGetSwapInterval(int* interval) => ( (delegate* unmanaged)( - _slots[566] is not null and var loadedFnPtr + _slots[583] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[566] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") + : _slots[583] = nativeContext.LoadFunction("SDL_GL_GetSwapInterval", "SDL3") ) )(interval); @@ -76488,9 +79208,9 @@ public static MaybeBool GLGetSwapInterval(Ref interval) => byte ISdl.GLLoadLibrary(sbyte* path) => ( (delegate* unmanaged)( - _slots[567] is not null and var loadedFnPtr + _slots[584] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[567] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") + : _slots[584] = nativeContext.LoadFunction("SDL_GL_LoadLibrary", "SDL3") ) )(path); @@ -76535,9 +79255,9 @@ GLContextStateHandle context byte ISdl.GLMakeCurrentRaw(WindowHandle window, GLContextStateHandle context) => ( (delegate* unmanaged)( - _slots[568] is not null and var loadedFnPtr + _slots[585] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[568] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") + : _slots[585] = nativeContext.LoadFunction("SDL_GL_MakeCurrent", "SDL3") ) )(window, context); @@ -76553,9 +79273,9 @@ public static byte GLMakeCurrentRaw(WindowHandle window, GLContextStateHandle co void ISdl.GLResetAttributes() => ( (delegate* unmanaged)( - _slots[569] is not null and var loadedFnPtr + _slots[586] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[569] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") + : _slots[586] = nativeContext.LoadFunction("SDL_GL_ResetAttributes", "SDL3") ) )(); @@ -76582,9 +79302,9 @@ public static MaybeBool GLSetAttribute(GLAttr attr, int value) => byte ISdl.GLSetAttributeRaw(GLAttr attr, int value) => ( (delegate* unmanaged)( - _slots[570] is not null and var loadedFnPtr + _slots[587] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[570] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") + : _slots[587] = nativeContext.LoadFunction("SDL_GL_SetAttribute", "SDL3") ) )(attr, value); @@ -76612,9 +79332,9 @@ public static MaybeBool GLSetSwapInterval(int interval) => byte ISdl.GLSetSwapIntervalRaw(int interval) => ( (delegate* unmanaged)( - _slots[571] is not null and var loadedFnPtr + _slots[588] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[571] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") + : _slots[588] = nativeContext.LoadFunction("SDL_GL_SetSwapInterval", "SDL3") ) )(interval); @@ -76642,9 +79362,9 @@ public static MaybeBool GLSwapWindow(WindowHandle window) => byte ISdl.GLSwapWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[572] is not null and var loadedFnPtr + _slots[589] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[572] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") + : _slots[589] = nativeContext.LoadFunction("SDL_GL_SwapWindow", "SDL3") ) )(window); @@ -76659,9 +79379,9 @@ _slots[572] is not null and var loadedFnPtr void ISdl.GLUnloadLibrary() => ( (delegate* unmanaged)( - _slots[573] is not null and var loadedFnPtr + _slots[590] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[573] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") + : _slots[590] = nativeContext.LoadFunction("SDL_GL_UnloadLibrary", "SDL3") ) )(); @@ -76676,9 +79396,9 @@ _slots[573] is not null and var loadedFnPtr sbyte** ISdl.GlobDirectory(sbyte* path, sbyte* pattern, uint flags, int* count) => ( (delegate* unmanaged)( - _slots[574] is not null and var loadedFnPtr + _slots[591] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[574] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") + : _slots[591] = nativeContext.LoadFunction("SDL_GlobDirectory", "SDL3") ) )(path, pattern, flags, count); @@ -76724,9 +79444,9 @@ Ref count ) => ( (delegate* unmanaged)( - _slots[575] is not null and var loadedFnPtr + _slots[592] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[575] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") + : _slots[592] = nativeContext.LoadFunction("SDL_GlobStorageDirectory", "SDL3") ) )(storage, path, pattern, flags, count); @@ -76796,9 +79516,9 @@ public static MaybeBool GpuSupportsProperties(uint props) => byte ISdl.GpuSupportsPropertiesRaw(uint props) => ( (delegate* unmanaged)( - _slots[576] is not null and var loadedFnPtr + _slots[593] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[576] = nativeContext.LoadFunction("SDL_GPUSupportsProperties", "SDL3") + : _slots[593] = nativeContext.LoadFunction("SDL_GPUSupportsProperties", "SDL3") ) )(props); @@ -76814,9 +79534,9 @@ public static byte GpuSupportsPropertiesRaw(uint props) => byte ISdl.GpuSupportsShaderFormats(uint format_flags, sbyte* name) => ( (delegate* unmanaged)( - _slots[577] is not null and var loadedFnPtr + _slots[594] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[577] = nativeContext.LoadFunction( + : _slots[594] = nativeContext.LoadFunction( "SDL_GPUSupportsShaderFormats", "SDL3" ) @@ -76853,9 +79573,9 @@ public static MaybeBool GpuSupportsShaderFormats(uint format_flags, Ref ( (delegate* unmanaged)( - _slots[578] is not null and var loadedFnPtr + _slots[595] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[578] = nativeContext.LoadFunction( + : _slots[595] = nativeContext.LoadFunction( "SDL_GPUTextureFormatTexelBlockSize", "SDL3" ) @@ -76901,9 +79621,9 @@ uint usage ) => ( (delegate* unmanaged)( - _slots[579] is not null and var loadedFnPtr + _slots[596] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[579] = nativeContext.LoadFunction( + : _slots[596] = nativeContext.LoadFunction( "SDL_GPUTextureSupportsFormat", "SDL3" ) @@ -76950,9 +79670,9 @@ GpuSampleCount sample_count ) => ( (delegate* unmanaged)( - _slots[580] is not null and var loadedFnPtr + _slots[597] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[580] = nativeContext.LoadFunction( + : _slots[597] = nativeContext.LoadFunction( "SDL_GPUTextureSupportsSampleCount", "SDL3" ) @@ -76974,9 +79694,9 @@ GpuSampleCount sample_count void ISdl.GuidToString(Guid guid, sbyte* pszGUID, int cbGUID) => ( (delegate* unmanaged)( - _slots[581] is not null and var loadedFnPtr + _slots[598] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[581] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") + : _slots[598] = nativeContext.LoadFunction("SDL_GUIDToString", "SDL3") ) )(guid, pszGUID, cbGUID); @@ -77009,9 +79729,9 @@ public static void GuidToString(Guid guid, Ref pszGUID, int cbGUID) => byte ISdl.HapticEffectSupported(HapticHandle haptic, HapticEffect* effect) => ( (delegate* unmanaged)( - _slots[582] is not null and var loadedFnPtr + _slots[599] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[582] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") + : _slots[599] = nativeContext.LoadFunction("SDL_HapticEffectSupported", "SDL3") ) )(haptic, effect); @@ -77058,9 +79778,9 @@ public static MaybeBool HapticRumbleSupported(HapticHandle haptic) => byte ISdl.HapticRumbleSupportedRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[583] is not null and var loadedFnPtr + _slots[600] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[583] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") + : _slots[600] = nativeContext.LoadFunction("SDL_HapticRumbleSupported", "SDL3") ) )(haptic); @@ -77086,9 +79806,9 @@ public static byte HapticRumbleSupportedRaw(HapticHandle haptic) => byte ISdl.HasAltiVecRaw() => ( (delegate* unmanaged)( - _slots[584] is not null and var loadedFnPtr + _slots[601] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[584] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") + : _slots[601] = nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3") ) )(); @@ -77113,9 +79833,9 @@ _slots[584] is not null and var loadedFnPtr byte ISdl.HasArmsimdRaw() => ( (delegate* unmanaged)( - _slots[585] is not null and var loadedFnPtr + _slots[602] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[585] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") + : _slots[602] = nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3") ) )(); @@ -77150,9 +79870,9 @@ _slots[585] is not null and var loadedFnPtr byte ISdl.HasAvx2Raw() => ( (delegate* unmanaged)( - _slots[587] is not null and var loadedFnPtr + _slots[604] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[587] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") + : _slots[604] = nativeContext.LoadFunction("SDL_HasAVX2", "SDL3") ) )(); @@ -77177,9 +79897,9 @@ _slots[587] is not null and var loadedFnPtr byte ISdl.HasAvx512FRaw() => ( (delegate* unmanaged)( - _slots[588] is not null and var loadedFnPtr + _slots[605] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[588] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") + : _slots[605] = nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3") ) )(); @@ -77194,9 +79914,9 @@ _slots[588] is not null and var loadedFnPtr byte ISdl.HasAvxRaw() => ( (delegate* unmanaged)( - _slots[586] is not null and var loadedFnPtr + _slots[603] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[586] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") + : _slots[603] = nativeContext.LoadFunction("SDL_HasAVX", "SDL3") ) )(); @@ -77211,9 +79931,9 @@ _slots[586] is not null and var loadedFnPtr byte ISdl.HasClipboardData(sbyte* mime_type) => ( (delegate* unmanaged)( - _slots[589] is not null and var loadedFnPtr + _slots[606] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[589] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") + : _slots[606] = nativeContext.LoadFunction("SDL_HasClipboardData", "SDL3") ) )(mime_type); @@ -77256,9 +79976,9 @@ MaybeBool ISdl.HasClipboardText() => byte ISdl.HasClipboardTextRaw() => ( (delegate* unmanaged)( - _slots[590] is not null and var loadedFnPtr + _slots[607] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[590] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") + : _slots[607] = nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3") ) )(); @@ -77284,9 +80004,9 @@ MaybeBool ISdl.HasEvent(uint type) => byte ISdl.HasEventRaw(uint type) => ( (delegate* unmanaged)( - _slots[591] is not null and var loadedFnPtr + _slots[608] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[591] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") + : _slots[608] = nativeContext.LoadFunction("SDL_HasEvent", "SDL3") ) )(type); @@ -77313,9 +80033,9 @@ public static MaybeBool HasEvents(uint minType, uint maxType) => byte ISdl.HasEventsRaw(uint minType, uint maxType) => ( (delegate* unmanaged)( - _slots[592] is not null and var loadedFnPtr + _slots[609] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[592] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") + : _slots[609] = nativeContext.LoadFunction("SDL_HasEvents", "SDL3") ) )(minType, maxType); @@ -77341,9 +80061,9 @@ public static byte HasEventsRaw(uint minType, uint maxType) => byte ISdl.HasGamepadRaw() => ( (delegate* unmanaged)( - _slots[593] is not null and var loadedFnPtr + _slots[610] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[593] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") + : _slots[610] = nativeContext.LoadFunction("SDL_HasGamepad", "SDL3") ) )(); @@ -77368,9 +80088,9 @@ _slots[593] is not null and var loadedFnPtr byte ISdl.HasJoystickRaw() => ( (delegate* unmanaged)( - _slots[594] is not null and var loadedFnPtr + _slots[611] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[594] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") + : _slots[611] = nativeContext.LoadFunction("SDL_HasJoystick", "SDL3") ) )(); @@ -77395,9 +80115,9 @@ _slots[594] is not null and var loadedFnPtr byte ISdl.HasKeyboardRaw() => ( (delegate* unmanaged)( - _slots[595] is not null and var loadedFnPtr + _slots[612] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[595] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") + : _slots[612] = nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3") ) )(); @@ -77422,9 +80142,9 @@ _slots[595] is not null and var loadedFnPtr byte ISdl.HasLasxRaw() => ( (delegate* unmanaged)( - _slots[596] is not null and var loadedFnPtr + _slots[613] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[596] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") + : _slots[613] = nativeContext.LoadFunction("SDL_HasLASX", "SDL3") ) )(); @@ -77449,9 +80169,9 @@ _slots[596] is not null and var loadedFnPtr byte ISdl.HasLsxRaw() => ( (delegate* unmanaged)( - _slots[597] is not null and var loadedFnPtr + _slots[614] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[597] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") + : _slots[614] = nativeContext.LoadFunction("SDL_HasLSX", "SDL3") ) )(); @@ -77476,9 +80196,9 @@ _slots[597] is not null and var loadedFnPtr byte ISdl.HasMmxRaw() => ( (delegate* unmanaged)( - _slots[598] is not null and var loadedFnPtr + _slots[615] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[598] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") + : _slots[615] = nativeContext.LoadFunction("SDL_HasMMX", "SDL3") ) )(); @@ -77503,9 +80223,9 @@ _slots[598] is not null and var loadedFnPtr byte ISdl.HasMouseRaw() => ( (delegate* unmanaged)( - _slots[599] is not null and var loadedFnPtr + _slots[616] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[599] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") + : _slots[616] = nativeContext.LoadFunction("SDL_HasMouse", "SDL3") ) )(); @@ -77530,9 +80250,9 @@ _slots[599] is not null and var loadedFnPtr byte ISdl.HasNeonRaw() => ( (delegate* unmanaged)( - _slots[600] is not null and var loadedFnPtr + _slots[617] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[600] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") + : _slots[617] = nativeContext.LoadFunction("SDL_HasNEON", "SDL3") ) )(); @@ -77558,9 +80278,9 @@ MaybeBool ISdl.HasPrimarySelectionText() => byte ISdl.HasPrimarySelectionTextRaw() => ( (delegate* unmanaged)( - _slots[601] is not null and var loadedFnPtr + _slots[618] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[601] = nativeContext.LoadFunction( + : _slots[618] = nativeContext.LoadFunction( "SDL_HasPrimarySelectionText", "SDL3" ) @@ -77578,9 +80298,9 @@ _slots[601] is not null and var loadedFnPtr byte ISdl.HasProperty(uint props, sbyte* name) => ( (delegate* unmanaged)( - _slots[602] is not null and var loadedFnPtr + _slots[619] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[602] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") + : _slots[619] = nativeContext.LoadFunction("SDL_HasProperty", "SDL3") ) )(props, name); @@ -77612,9 +80332,9 @@ public static MaybeBool HasProperty(uint props, Ref name) => byte ISdl.HasRectIntersection(Rect* A, Rect* B) => ( (delegate* unmanaged)( - _slots[603] is not null and var loadedFnPtr + _slots[620] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[603] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") + : _slots[620] = nativeContext.LoadFunction("SDL_HasRectIntersection", "SDL3") ) )(A, B); @@ -77647,9 +80367,9 @@ public static MaybeBool HasRectIntersection(Ref A, Ref B) => byte ISdl.HasRectIntersectionFloat(FRect* A, FRect* B) => ( (delegate* unmanaged)( - _slots[604] is not null and var loadedFnPtr + _slots[621] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[604] = nativeContext.LoadFunction( + : _slots[621] = nativeContext.LoadFunction( "SDL_HasRectIntersectionFloat", "SDL3" ) @@ -77698,9 +80418,9 @@ public static MaybeBool HasScreenKeyboardSupport() => byte ISdl.HasScreenKeyboardSupportRaw() => ( (delegate* unmanaged)( - _slots[605] is not null and var loadedFnPtr + _slots[622] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[605] = nativeContext.LoadFunction( + : _slots[622] = nativeContext.LoadFunction( "SDL_HasScreenKeyboardSupport", "SDL3" ) @@ -77738,9 +80458,9 @@ _slots[605] is not null and var loadedFnPtr byte ISdl.HasSse2Raw() => ( (delegate* unmanaged)( - _slots[607] is not null and var loadedFnPtr + _slots[624] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[607] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") + : _slots[624] = nativeContext.LoadFunction("SDL_HasSSE2", "SDL3") ) )(); @@ -77765,9 +80485,9 @@ _slots[607] is not null and var loadedFnPtr byte ISdl.HasSse3Raw() => ( (delegate* unmanaged)( - _slots[608] is not null and var loadedFnPtr + _slots[625] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[608] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") + : _slots[625] = nativeContext.LoadFunction("SDL_HasSSE3", "SDL3") ) )(); @@ -77792,9 +80512,9 @@ _slots[608] is not null and var loadedFnPtr byte ISdl.HasSse41Raw() => ( (delegate* unmanaged)( - _slots[609] is not null and var loadedFnPtr + _slots[626] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[609] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") + : _slots[626] = nativeContext.LoadFunction("SDL_HasSSE41", "SDL3") ) )(); @@ -77819,9 +80539,9 @@ _slots[609] is not null and var loadedFnPtr byte ISdl.HasSse42Raw() => ( (delegate* unmanaged)( - _slots[610] is not null and var loadedFnPtr + _slots[627] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[610] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") + : _slots[627] = nativeContext.LoadFunction("SDL_HasSSE42", "SDL3") ) )(); @@ -77836,9 +80556,9 @@ _slots[610] is not null and var loadedFnPtr byte ISdl.HasSseRaw() => ( (delegate* unmanaged)( - _slots[606] is not null and var loadedFnPtr + _slots[623] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[606] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") + : _slots[623] = nativeContext.LoadFunction("SDL_HasSSE", "SDL3") ) )(); @@ -77853,9 +80573,9 @@ _slots[606] is not null and var loadedFnPtr void ISdl.HidBleScan(byte active) => ( (delegate* unmanaged)( - _slots[611] is not null and var loadedFnPtr + _slots[628] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[611] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") + : _slots[628] = nativeContext.LoadFunction("SDL_hid_ble_scan", "SDL3") ) )(active); @@ -77880,9 +80600,9 @@ _slots[611] is not null and var loadedFnPtr int ISdl.HidClose(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[612] is not null and var loadedFnPtr + _slots[629] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[612] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") + : _slots[629] = nativeContext.LoadFunction("SDL_hid_close", "SDL3") ) )(dev); @@ -77897,9 +80617,9 @@ _slots[612] is not null and var loadedFnPtr uint ISdl.HidDeviceChangeCount() => ( (delegate* unmanaged)( - _slots[613] is not null and var loadedFnPtr + _slots[630] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[613] = nativeContext.LoadFunction( + : _slots[630] = nativeContext.LoadFunction( "SDL_hid_device_change_count", "SDL3" ) @@ -77929,9 +80649,9 @@ public static Ptr HidEnumerate(ushort vendor_id, ushort product_i HidDeviceInfo* ISdl.HidEnumerateRaw(ushort vendor_id, ushort product_id) => ( (delegate* unmanaged)( - _slots[614] is not null and var loadedFnPtr + _slots[631] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[614] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + : _slots[631] = nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") ) )(vendor_id, product_id); @@ -77947,9 +80667,9 @@ _slots[614] is not null and var loadedFnPtr int ISdl.HidExit() => ( (delegate* unmanaged)( - _slots[615] is not null and var loadedFnPtr + _slots[632] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[615] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") + : _slots[632] = nativeContext.LoadFunction("SDL_hid_exit", "SDL3") ) )(); @@ -77964,9 +80684,9 @@ _slots[615] is not null and var loadedFnPtr void ISdl.HidFreeEnumeration(HidDeviceInfo* devs) => ( (delegate* unmanaged)( - _slots[616] is not null and var loadedFnPtr + _slots[633] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[616] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") + : _slots[633] = nativeContext.LoadFunction("SDL_hid_free_enumeration", "SDL3") ) )(devs); @@ -78011,9 +80731,9 @@ public static Ptr HidGetDeviceInfo(HidDeviceHandle dev) => HidDeviceInfo* ISdl.HidGetDeviceInfoRaw(HidDeviceHandle dev) => ( (delegate* unmanaged)( - _slots[617] is not null and var loadedFnPtr + _slots[634] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[617] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") + : _slots[634] = nativeContext.LoadFunction("SDL_hid_get_device_info", "SDL3") ) )(dev); @@ -78029,9 +80749,9 @@ _slots[617] is not null and var loadedFnPtr int ISdl.HidGetFeatureReport(HidDeviceHandle dev, byte* data, nuint length) => ( (delegate* unmanaged)( - _slots[618] is not null and var loadedFnPtr + _slots[635] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[618] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") + : _slots[635] = nativeContext.LoadFunction("SDL_hid_get_feature_report", "SDL3") ) )(dev, data, length); @@ -78069,9 +80789,9 @@ nuint maxlen ) => ( (delegate* unmanaged)( - _slots[619] is not null and var loadedFnPtr + _slots[636] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[619] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") + : _slots[636] = nativeContext.LoadFunction("SDL_hid_get_indexed_string", "SDL3") ) )(dev, string_index, @string, maxlen); @@ -78117,9 +80837,9 @@ nuint maxlen int ISdl.HidGetInputReport(HidDeviceHandle dev, byte* data, nuint length) => ( (delegate* unmanaged)( - _slots[620] is not null and var loadedFnPtr + _slots[637] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[620] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") + : _slots[637] = nativeContext.LoadFunction("SDL_hid_get_input_report", "SDL3") ) )(dev, data, length); @@ -78152,9 +80872,9 @@ public static int HidGetInputReport(HidDeviceHandle dev, Ref data, nuint l int ISdl.HidGetManufacturerString(HidDeviceHandle dev, ushort* @string, nuint maxlen) => ( (delegate* unmanaged)( - _slots[621] is not null and var loadedFnPtr + _slots[638] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[621] = nativeContext.LoadFunction( + : _slots[638] = nativeContext.LoadFunction( "SDL_hid_get_manufacturer_string", "SDL3" ) @@ -78196,9 +80916,9 @@ nuint maxlen int ISdl.HidGetProductString(HidDeviceHandle dev, ushort* @string, nuint maxlen) => ( (delegate* unmanaged)( - _slots[622] is not null and var loadedFnPtr + _slots[639] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[622] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") + : _slots[639] = nativeContext.LoadFunction("SDL_hid_get_product_string", "SDL3") ) )(dev, @string, maxlen); @@ -78225,15 +80945,32 @@ int ISdl.HidGetProductString(HidDeviceHandle dev, Ref @string, nuint max public static int HidGetProductString(HidDeviceHandle dev, Ref @string, nuint maxlen) => DllImport.HidGetProductString(dev, @string, maxlen); + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.HidGetProperties(HidDeviceHandle dev) => + ( + (delegate* unmanaged)( + _slots[640] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[640] = nativeContext.LoadFunction("SDL_hid_get_properties", "SDL3") + ) + )(dev); + + [NativeName("SDL_hid_get_properties")] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_properties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint HidGetProperties(HidDeviceHandle dev) => DllImport.HidGetProperties(dev); + [NativeName("SDL_hid_get_report_descriptor")] [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.HidGetReportDescriptor(HidDeviceHandle dev, byte* buf, nuint buf_size) => ( (delegate* unmanaged)( - _slots[623] is not null and var loadedFnPtr + _slots[641] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[623] = nativeContext.LoadFunction( + : _slots[641] = nativeContext.LoadFunction( "SDL_hid_get_report_descriptor", "SDL3" ) @@ -78269,9 +81006,9 @@ public static int HidGetReportDescriptor(HidDeviceHandle dev, Ref buf, nui int ISdl.HidGetSerialNumberString(HidDeviceHandle dev, ushort* @string, nuint maxlen) => ( (delegate* unmanaged)( - _slots[624] is not null and var loadedFnPtr + _slots[642] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[624] = nativeContext.LoadFunction( + : _slots[642] = nativeContext.LoadFunction( "SDL_hid_get_serial_number_string", "SDL3" ) @@ -78313,9 +81050,9 @@ nuint maxlen int ISdl.HidInit() => ( (delegate* unmanaged)( - _slots[625] is not null and var loadedFnPtr + _slots[643] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[625] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") + : _slots[643] = nativeContext.LoadFunction("SDL_hid_init", "SDL3") ) )(); @@ -78330,9 +81067,9 @@ _slots[625] is not null and var loadedFnPtr HidDeviceHandle ISdl.HidOpen(ushort vendor_id, ushort product_id, ushort* serial_number) => ( (delegate* unmanaged)( - _slots[626] is not null and var loadedFnPtr + _slots[644] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[626] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") + : _slots[644] = nativeContext.LoadFunction("SDL_hid_open", "SDL3") ) )(vendor_id, product_id, serial_number); @@ -78372,9 +81109,9 @@ Ref serial_number HidDeviceHandle ISdl.HidOpenPath(sbyte* path) => ( (delegate* unmanaged)( - _slots[627] is not null and var loadedFnPtr + _slots[645] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[627] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") + : _slots[645] = nativeContext.LoadFunction("SDL_hid_open_path", "SDL3") ) )(path); @@ -78405,9 +81142,9 @@ HidDeviceHandle ISdl.HidOpenPath(Ref path) int ISdl.HidRead(HidDeviceHandle dev, byte* data, nuint length) => ( (delegate* unmanaged)( - _slots[628] is not null and var loadedFnPtr + _slots[646] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[628] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") + : _slots[646] = nativeContext.LoadFunction("SDL_hid_read", "SDL3") ) )(dev, data, length); @@ -78440,9 +81177,9 @@ public static int HidRead(HidDeviceHandle dev, Ref data, nuint length) => int ISdl.HidReadTimeout(HidDeviceHandle dev, byte* data, nuint length, int milliseconds) => ( (delegate* unmanaged)( - _slots[629] is not null and var loadedFnPtr + _slots[647] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[629] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") + : _slots[647] = nativeContext.LoadFunction("SDL_hid_read_timeout", "SDL3") ) )(dev, data, length, milliseconds); @@ -78483,9 +81220,9 @@ int milliseconds int ISdl.HidSendFeatureReport(HidDeviceHandle dev, byte* data, nuint length) => ( (delegate* unmanaged)( - _slots[630] is not null and var loadedFnPtr + _slots[648] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[630] = nativeContext.LoadFunction( + : _slots[648] = nativeContext.LoadFunction( "SDL_hid_send_feature_report", "SDL3" ) @@ -78521,9 +81258,9 @@ public static int HidSendFeatureReport(HidDeviceHandle dev, Ref data, nuin int ISdl.HidSetNonblocking(HidDeviceHandle dev, int nonblock) => ( (delegate* unmanaged)( - _slots[631] is not null and var loadedFnPtr + _slots[649] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[631] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") + : _slots[649] = nativeContext.LoadFunction("SDL_hid_set_nonblocking", "SDL3") ) )(dev, nonblock); @@ -78539,9 +81276,9 @@ public static int HidSetNonblocking(HidDeviceHandle dev, int nonblock) => int ISdl.HidWrite(HidDeviceHandle dev, byte* data, nuint length) => ( (delegate* unmanaged)( - _slots[632] is not null and var loadedFnPtr + _slots[650] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[632] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") + : _slots[650] = nativeContext.LoadFunction("SDL_hid_write", "SDL3") ) )(dev, data, length); @@ -78584,9 +81321,9 @@ public static int HidWrite(HidDeviceHandle dev, Ref data, nuint length) => byte ISdl.HideCursorRaw() => ( (delegate* unmanaged)( - _slots[633] is not null and var loadedFnPtr + _slots[651] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[633] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") + : _slots[651] = nativeContext.LoadFunction("SDL_HideCursor", "SDL3") ) )(); @@ -78612,9 +81349,9 @@ MaybeBool ISdl.HideWindow(WindowHandle window) => byte ISdl.HideWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[634] is not null and var loadedFnPtr + _slots[652] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[634] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") + : _slots[652] = nativeContext.LoadFunction("SDL_HideWindow", "SDL3") ) )(window); @@ -78635,9 +81372,9 @@ nuint ISdl.Iconv( ) => ( (delegate* unmanaged)( - _slots[635] is not null and var loadedFnPtr + _slots[653] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[635] = nativeContext.LoadFunction("SDL_iconv", "SDL3") + : _slots[653] = nativeContext.LoadFunction("SDL_iconv", "SDL3") ) )(cd, inbuf, inbytesleft, outbuf, outbytesleft); @@ -78696,9 +81433,9 @@ Ref outbytesleft int ISdl.IconvClose(IconvDataTHandle cd) => ( (delegate* unmanaged)( - _slots[636] is not null and var loadedFnPtr + _slots[654] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[636] = nativeContext.LoadFunction("SDL_iconv_close", "SDL3") + : _slots[654] = nativeContext.LoadFunction("SDL_iconv_close", "SDL3") ) )(cd); @@ -78713,9 +81450,9 @@ _slots[636] is not null and var loadedFnPtr IconvDataTHandle ISdl.IconvOpen(sbyte* tocode, sbyte* fromcode) => ( (delegate* unmanaged)( - _slots[637] is not null and var loadedFnPtr + _slots[655] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[637] = nativeContext.LoadFunction("SDL_iconv_open", "SDL3") + : _slots[655] = nativeContext.LoadFunction("SDL_iconv_open", "SDL3") ) )(tocode, fromcode); @@ -78749,9 +81486,9 @@ public static IconvDataTHandle IconvOpen(Ref tocode, Ref fromcode) sbyte* ISdl.IconvString(sbyte* tocode, sbyte* fromcode, sbyte* inbuf, nuint inbytesleft) => ( (delegate* unmanaged)( - _slots[638] is not null and var loadedFnPtr + _slots[656] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[638] = nativeContext.LoadFunction("SDL_iconv_string", "SDL3") + : _slots[656] = nativeContext.LoadFunction("SDL_iconv_string", "SDL3") ) )(tocode, fromcode, inbuf, inbytesleft); @@ -78822,9 +81559,9 @@ public static MaybeBool InitHapticRumble(HapticHandle haptic) => byte ISdl.InitHapticRumbleRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[640] is not null and var loadedFnPtr + _slots[658] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[640] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") + : _slots[658] = nativeContext.LoadFunction("SDL_InitHapticRumble", "SDL3") ) )(haptic); @@ -78840,9 +81577,9 @@ public static byte InitHapticRumbleRaw(HapticHandle haptic) => byte ISdl.InitRaw(uint flags) => ( (delegate* unmanaged)( - _slots[639] is not null and var loadedFnPtr + _slots[657] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[639] = nativeContext.LoadFunction("SDL_Init", "SDL3") + : _slots[657] = nativeContext.LoadFunction("SDL_Init", "SDL3") ) )(flags); @@ -78868,9 +81605,9 @@ MaybeBool ISdl.InitSubSystem(uint flags) => byte ISdl.InitSubSystemRaw(uint flags) => ( (delegate* unmanaged)( - _slots[641] is not null and var loadedFnPtr + _slots[659] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[641] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") + : _slots[659] = nativeContext.LoadFunction("SDL_InitSubSystem", "SDL3") ) )(flags); @@ -78885,9 +81622,9 @@ _slots[641] is not null and var loadedFnPtr void ISdl.InsertGpuDebugLabel(GpuCommandBufferHandle command_buffer, sbyte* text) => ( (delegate* unmanaged)( - _slots[642] is not null and var loadedFnPtr + _slots[660] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[642] = nativeContext.LoadFunction("SDL_InsertGPUDebugLabel", "SDL3") + : _slots[660] = nativeContext.LoadFunction("SDL_InsertGPUDebugLabel", "SDL3") ) )(command_buffer, text); @@ -78922,9 +81659,9 @@ Ref text IOStreamHandle ISdl.IOFromConstMem(void* mem, nuint size) => ( (delegate* unmanaged)( - _slots[643] is not null and var loadedFnPtr + _slots[661] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[643] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") + : _slots[661] = nativeContext.LoadFunction("SDL_IOFromConstMem", "SDL3") ) )(mem, size); @@ -78957,9 +81694,9 @@ public static IOStreamHandle IOFromConstMem(Ref mem, nuint size) => IOStreamHandle ISdl.IOFromDynamicMem() => ( (delegate* unmanaged)( - _slots[644] is not null and var loadedFnPtr + _slots[662] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[644] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + : _slots[662] = nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") ) )(); @@ -78974,9 +81711,9 @@ _slots[644] is not null and var loadedFnPtr IOStreamHandle ISdl.IOFromFile(sbyte* file, sbyte* mode) => ( (delegate* unmanaged)( - _slots[645] is not null and var loadedFnPtr + _slots[663] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[645] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") + : _slots[663] = nativeContext.LoadFunction("SDL_IOFromFile", "SDL3") ) )(file, mode); @@ -79010,9 +81747,9 @@ public static IOStreamHandle IOFromFile(Ref file, Ref mode) => IOStreamHandle ISdl.IOFromMem(void* mem, nuint size) => ( (delegate* unmanaged)( - _slots[646] is not null and var loadedFnPtr + _slots[664] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[646] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") + : _slots[664] = nativeContext.LoadFunction("SDL_IOFromMem", "SDL3") ) )(mem, size); @@ -79043,9 +81780,9 @@ IOStreamHandle ISdl.IOFromMem(Ref mem, nuint size) nuint ISdl.IOvprintf(IOStreamHandle context, sbyte* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[647] is not null and var loadedFnPtr + _slots[665] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[647] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") + : _slots[665] = nativeContext.LoadFunction("SDL_IOvprintf", "SDL3") ) )(context, fmt, ap); @@ -79079,9 +81816,9 @@ public static nuint IOvprintf(IOStreamHandle context, Ref fmt, Ref int ISdl.Isalnum(int x) => ( (delegate* unmanaged)( - _slots[648] is not null and var loadedFnPtr + _slots[666] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[648] = nativeContext.LoadFunction("SDL_isalnum", "SDL3") + : _slots[666] = nativeContext.LoadFunction("SDL_isalnum", "SDL3") ) )(x); @@ -79096,9 +81833,9 @@ _slots[648] is not null and var loadedFnPtr int ISdl.Isalpha(int x) => ( (delegate* unmanaged)( - _slots[649] is not null and var loadedFnPtr + _slots[667] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[649] = nativeContext.LoadFunction("SDL_isalpha", "SDL3") + : _slots[667] = nativeContext.LoadFunction("SDL_isalpha", "SDL3") ) )(x); @@ -79125,9 +81862,9 @@ public static MaybeBool IsAudioDevicePhysical(uint devid) => byte ISdl.IsAudioDevicePhysicalRaw(uint devid) => ( (delegate* unmanaged)( - _slots[650] is not null and var loadedFnPtr + _slots[668] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[650] = nativeContext.LoadFunction("SDL_IsAudioDevicePhysical", "SDL3") + : _slots[668] = nativeContext.LoadFunction("SDL_IsAudioDevicePhysical", "SDL3") ) )(devid); @@ -79155,9 +81892,9 @@ public static MaybeBool IsAudioDevicePlayback(uint devid) => byte ISdl.IsAudioDevicePlaybackRaw(uint devid) => ( (delegate* unmanaged)( - _slots[651] is not null and var loadedFnPtr + _slots[669] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[651] = nativeContext.LoadFunction("SDL_IsAudioDevicePlayback", "SDL3") + : _slots[669] = nativeContext.LoadFunction("SDL_IsAudioDevicePlayback", "SDL3") ) )(devid); @@ -79173,9 +81910,9 @@ public static byte IsAudioDevicePlaybackRaw(uint devid) => int ISdl.Isblank(int x) => ( (delegate* unmanaged)( - _slots[652] is not null and var loadedFnPtr + _slots[670] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[652] = nativeContext.LoadFunction("SDL_isblank", "SDL3") + : _slots[670] = nativeContext.LoadFunction("SDL_isblank", "SDL3") ) )(x); @@ -79190,9 +81927,9 @@ _slots[652] is not null and var loadedFnPtr int ISdl.Iscntrl(int x) => ( (delegate* unmanaged)( - _slots[653] is not null and var loadedFnPtr + _slots[671] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[653] = nativeContext.LoadFunction("SDL_iscntrl", "SDL3") + : _slots[671] = nativeContext.LoadFunction("SDL_iscntrl", "SDL3") ) )(x); @@ -79207,9 +81944,9 @@ _slots[653] is not null and var loadedFnPtr int ISdl.Isdigit(int x) => ( (delegate* unmanaged)( - _slots[654] is not null and var loadedFnPtr + _slots[672] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[654] = nativeContext.LoadFunction("SDL_isdigit", "SDL3") + : _slots[672] = nativeContext.LoadFunction("SDL_isdigit", "SDL3") ) )(x); @@ -79235,9 +81972,9 @@ MaybeBool ISdl.IsGamepad(uint instance_id) => byte ISdl.IsGamepadRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[655] is not null and var loadedFnPtr + _slots[673] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[655] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") + : _slots[673] = nativeContext.LoadFunction("SDL_IsGamepad", "SDL3") ) )(instance_id); @@ -79252,9 +81989,9 @@ _slots[655] is not null and var loadedFnPtr int ISdl.Isgraph(int x) => ( (delegate* unmanaged)( - _slots[656] is not null and var loadedFnPtr + _slots[674] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[656] = nativeContext.LoadFunction("SDL_isgraph", "SDL3") + : _slots[674] = nativeContext.LoadFunction("SDL_isgraph", "SDL3") ) )(x); @@ -79269,9 +82006,9 @@ _slots[656] is not null and var loadedFnPtr int ISdl.Isinf(double x) => ( (delegate* unmanaged)( - _slots[657] is not null and var loadedFnPtr + _slots[675] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[657] = nativeContext.LoadFunction("SDL_isinf", "SDL3") + : _slots[675] = nativeContext.LoadFunction("SDL_isinf", "SDL3") ) )(x); @@ -79286,9 +82023,9 @@ _slots[657] is not null and var loadedFnPtr int ISdl.Isinff(float x) => ( (delegate* unmanaged)( - _slots[658] is not null and var loadedFnPtr + _slots[676] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[658] = nativeContext.LoadFunction("SDL_isinff", "SDL3") + : _slots[676] = nativeContext.LoadFunction("SDL_isinff", "SDL3") ) )(x); @@ -79315,9 +82052,9 @@ public static MaybeBool IsJoystickHaptic(JoystickHandle joystick) => byte ISdl.IsJoystickHapticRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[659] is not null and var loadedFnPtr + _slots[677] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[659] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") + : _slots[677] = nativeContext.LoadFunction("SDL_IsJoystickHaptic", "SDL3") ) )(joystick); @@ -79345,9 +82082,9 @@ public static MaybeBool IsJoystickVirtual(uint instance_id) => byte ISdl.IsJoystickVirtualRaw(uint instance_id) => ( (delegate* unmanaged)( - _slots[660] is not null and var loadedFnPtr + _slots[678] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[660] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + : _slots[678] = nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") ) )(instance_id); @@ -79363,9 +82100,9 @@ public static byte IsJoystickVirtualRaw(uint instance_id) => int ISdl.Islower(int x) => ( (delegate* unmanaged)( - _slots[661] is not null and var loadedFnPtr + _slots[679] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[661] = nativeContext.LoadFunction("SDL_islower", "SDL3") + : _slots[679] = nativeContext.LoadFunction("SDL_islower", "SDL3") ) )(x); @@ -79390,9 +82127,9 @@ _slots[661] is not null and var loadedFnPtr byte ISdl.IsMainThreadRaw() => ( (delegate* unmanaged)( - _slots[662] is not null and var loadedFnPtr + _slots[680] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[662] = nativeContext.LoadFunction("SDL_IsMainThread", "SDL3") + : _slots[680] = nativeContext.LoadFunction("SDL_IsMainThread", "SDL3") ) )(); @@ -79417,9 +82154,9 @@ _slots[662] is not null and var loadedFnPtr byte ISdl.IsMouseHapticRaw() => ( (delegate* unmanaged)( - _slots[663] is not null and var loadedFnPtr + _slots[681] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[663] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") + : _slots[681] = nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3") ) )(); @@ -79434,9 +82171,9 @@ _slots[663] is not null and var loadedFnPtr int ISdl.Isnan(double x) => ( (delegate* unmanaged)( - _slots[664] is not null and var loadedFnPtr + _slots[682] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[664] = nativeContext.LoadFunction("SDL_isnan", "SDL3") + : _slots[682] = nativeContext.LoadFunction("SDL_isnan", "SDL3") ) )(x); @@ -79451,9 +82188,9 @@ _slots[664] is not null and var loadedFnPtr int ISdl.Isnanf(float x) => ( (delegate* unmanaged)( - _slots[665] is not null and var loadedFnPtr + _slots[683] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[665] = nativeContext.LoadFunction("SDL_isnanf", "SDL3") + : _slots[683] = nativeContext.LoadFunction("SDL_isnanf", "SDL3") ) )(x); @@ -79468,9 +82205,9 @@ _slots[665] is not null and var loadedFnPtr int ISdl.Isprint(int x) => ( (delegate* unmanaged)( - _slots[666] is not null and var loadedFnPtr + _slots[684] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[666] = nativeContext.LoadFunction("SDL_isprint", "SDL3") + : _slots[684] = nativeContext.LoadFunction("SDL_isprint", "SDL3") ) )(x); @@ -79485,9 +82222,9 @@ _slots[666] is not null and var loadedFnPtr int ISdl.Ispunct(int x) => ( (delegate* unmanaged)( - _slots[667] is not null and var loadedFnPtr + _slots[685] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[667] = nativeContext.LoadFunction("SDL_ispunct", "SDL3") + : _slots[685] = nativeContext.LoadFunction("SDL_ispunct", "SDL3") ) )(x); @@ -79502,9 +82239,9 @@ _slots[667] is not null and var loadedFnPtr int ISdl.Isspace(int x) => ( (delegate* unmanaged)( - _slots[668] is not null and var loadedFnPtr + _slots[686] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[668] = nativeContext.LoadFunction("SDL_isspace", "SDL3") + : _slots[686] = nativeContext.LoadFunction("SDL_isspace", "SDL3") ) )(x); @@ -79529,9 +82266,9 @@ _slots[668] is not null and var loadedFnPtr byte ISdl.IsTabletRaw() => ( (delegate* unmanaged)( - _slots[669] is not null and var loadedFnPtr + _slots[687] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[669] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") + : _slots[687] = nativeContext.LoadFunction("SDL_IsTablet", "SDL3") ) )(); @@ -79556,9 +82293,9 @@ _slots[669] is not null and var loadedFnPtr byte ISdl.IsTVRaw() => ( (delegate* unmanaged)( - _slots[670] is not null and var loadedFnPtr + _slots[688] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[670] = nativeContext.LoadFunction("SDL_IsTV", "SDL3") + : _slots[688] = nativeContext.LoadFunction("SDL_IsTV", "SDL3") ) )(); @@ -79573,9 +82310,9 @@ _slots[670] is not null and var loadedFnPtr int ISdl.Isupper(int x) => ( (delegate* unmanaged)( - _slots[671] is not null and var loadedFnPtr + _slots[689] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[671] = nativeContext.LoadFunction("SDL_isupper", "SDL3") + : _slots[689] = nativeContext.LoadFunction("SDL_isupper", "SDL3") ) )(x); @@ -79590,9 +82327,9 @@ _slots[671] is not null and var loadedFnPtr int ISdl.Isxdigit(int x) => ( (delegate* unmanaged)( - _slots[672] is not null and var loadedFnPtr + _slots[690] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[672] = nativeContext.LoadFunction("SDL_isxdigit", "SDL3") + : _slots[690] = nativeContext.LoadFunction("SDL_isxdigit", "SDL3") ) )(x); @@ -79607,9 +82344,9 @@ _slots[672] is not null and var loadedFnPtr sbyte* ISdl.Itoa(int value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[673] is not null and var loadedFnPtr + _slots[691] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[673] = nativeContext.LoadFunction("SDL_itoa", "SDL3") + : _slots[691] = nativeContext.LoadFunction("SDL_itoa", "SDL3") ) )(value, str, radix); @@ -79654,9 +82391,9 @@ public static MaybeBool JoystickConnected(JoystickHandle joystick) => byte ISdl.JoystickConnectedRaw(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[674] is not null and var loadedFnPtr + _slots[692] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[674] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") + : _slots[692] = nativeContext.LoadFunction("SDL_JoystickConnected", "SDL3") ) )(joystick); @@ -79683,9 +82420,9 @@ MaybeBool ISdl.JoystickEventsEnabled() => byte ISdl.JoystickEventsEnabledRaw() => ( (delegate* unmanaged)( - _slots[675] is not null and var loadedFnPtr + _slots[693] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[675] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + : _slots[693] = nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") ) )(); @@ -79700,9 +82437,9 @@ _slots[675] is not null and var loadedFnPtr byte ISdl.KillProcess(ProcessHandle process, byte force) => ( (delegate* unmanaged)( - _slots[676] is not null and var loadedFnPtr + _slots[694] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[676] = nativeContext.LoadFunction("SDL_KillProcess", "SDL3") + : _slots[694] = nativeContext.LoadFunction("SDL_KillProcess", "SDL3") ) )(process, force); @@ -79730,9 +82467,9 @@ public static MaybeBool KillProcess(ProcessHandle process, MaybeBool sbyte* ISdl.Lltoa(long value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[677] is not null and var loadedFnPtr + _slots[695] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[677] = nativeContext.LoadFunction("SDL_lltoa", "SDL3") + : _slots[695] = nativeContext.LoadFunction("SDL_lltoa", "SDL3") ) )(value, str, radix); @@ -79765,9 +82502,9 @@ public static Ptr Lltoa(long value, Ref str, int radix) => Surface* ISdl.LoadBmp(sbyte* file) => ( (delegate* unmanaged)( - _slots[678] is not null and var loadedFnPtr + _slots[696] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[678] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") + : _slots[696] = nativeContext.LoadFunction("SDL_LoadBMP", "SDL3") ) )(file); @@ -79798,9 +82535,9 @@ Ptr ISdl.LoadBmp(Ref file) Surface* ISdl.LoadBmpIO(IOStreamHandle src, byte closeio) => ( (delegate* unmanaged)( - _slots[679] is not null and var loadedFnPtr + _slots[697] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[679] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") + : _slots[697] = nativeContext.LoadFunction("SDL_LoadBMP_IO", "SDL3") ) )(src, closeio); @@ -79828,9 +82565,9 @@ public static Ptr LoadBmpIO(IOStreamHandle src, MaybeBool closeio void* ISdl.LoadFile(sbyte* file, nuint* datasize) => ( (delegate* unmanaged)( - _slots[680] is not null and var loadedFnPtr + _slots[698] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[680] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") + : _slots[698] = nativeContext.LoadFunction("SDL_LoadFile", "SDL3") ) )(file, datasize); @@ -79864,9 +82601,9 @@ public static Ptr LoadFile(Ref file, Ref datasize) => void* ISdl.LoadFileIO(IOStreamHandle src, nuint* datasize, byte closeio) => ( (delegate* unmanaged)( - _slots[681] is not null and var loadedFnPtr + _slots[699] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[681] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") + : _slots[699] = nativeContext.LoadFunction("SDL_LoadFile_IO", "SDL3") ) )(src, datasize, closeio); @@ -79902,9 +82639,9 @@ MaybeBool closeio FunctionPointer ISdl.LoadFunction(SharedObjectHandle handle, sbyte* name) => ( (delegate* unmanaged)( - _slots[682] is not null and var loadedFnPtr + _slots[700] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[682] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") + : _slots[700] = nativeContext.LoadFunction("SDL_LoadFunction", "SDL3") ) )(handle, name); @@ -79937,9 +82674,9 @@ public static FunctionPointer LoadFunction(SharedObjectHandle handle, Ref SharedObjectHandle ISdl.LoadObject(sbyte* sofile) => ( (delegate* unmanaged)( - _slots[683] is not null and var loadedFnPtr + _slots[701] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[683] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") + : _slots[701] = nativeContext.LoadFunction("SDL_LoadObject", "SDL3") ) )(sofile); @@ -79964,15 +82701,141 @@ SharedObjectHandle ISdl.LoadObject(Ref sofile) [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static SharedObjectHandle LoadObject(Ref sofile) => DllImport.LoadObject(sofile); + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadPng(sbyte* file) => + ( + (delegate* unmanaged)( + _slots[702] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[702] = nativeContext.LoadFunction("SDL_LoadPNG", "SDL3") + ) + )(file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadPng(sbyte* file) => DllImport.LoadPng(file); + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadPng(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)((ISdl)this).LoadPng(__dsl_file); + } + } + + [NativeName("SDL_LoadPNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadPng(Ref file) => DllImport.LoadPng(file); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadPngIO(IOStreamHandle src, byte closeio) => + ( + (delegate* unmanaged)( + _slots[703] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[703] = nativeContext.LoadFunction("SDL_LoadPNG_IO", "SDL3") + ) + )(src, closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadPngIO(IOStreamHandle src, byte closeio) => + DllImport.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadPngIO(IOStreamHandle src, MaybeBool closeio) => + (Surface*)((ISdl)this).LoadPngIO(src, (byte)closeio); + + [NativeName("SDL_LoadPNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadPNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadPngIO(IOStreamHandle src, MaybeBool closeio) => + DllImport.LoadPngIO(src, closeio); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadSurface(sbyte* file) => + ( + (delegate* unmanaged)( + _slots[704] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[704] = nativeContext.LoadFunction("SDL_LoadSurface", "SDL3") + ) + )(file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadSurface(sbyte* file) => DllImport.LoadSurface(file); + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadSurface(Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)((ISdl)this).LoadSurface(__dsl_file); + } + } + + [NativeName("SDL_LoadSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadSurface(Ref file) => DllImport.LoadSurface(file); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadSurfaceIO(IOStreamHandle src, byte closeio) => + ( + (delegate* unmanaged)( + _slots[705] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[705] = nativeContext.LoadFunction("SDL_LoadSurface_IO", "SDL3") + ) + )(src, closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadSurfaceIO(IOStreamHandle src, byte closeio) => + DllImport.LoadSurfaceIO(src, closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio) => + (Surface*)((ISdl)this).LoadSurfaceIO(src, (byte)closeio); + + [NativeName("SDL_LoadSurface_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadSurface_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadSurfaceIO(IOStreamHandle src, MaybeBool closeio) => + DllImport.LoadSurfaceIO(src, closeio); + [NativeName("SDL_LoadWAV")] [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.LoadWav(sbyte* path, AudioSpec* spec, byte** audio_buf, uint* audio_len) => ( (delegate* unmanaged)( - _slots[684] is not null and var loadedFnPtr + _slots[706] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[684] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") + : _slots[706] = nativeContext.LoadFunction("SDL_LoadWAV", "SDL3") ) )(path, spec, audio_buf, audio_len); @@ -80025,9 +82888,9 @@ byte ISdl.LoadWavIO( ) => ( (delegate* unmanaged)( - _slots[685] is not null and var loadedFnPtr + _slots[707] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[685] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") + : _slots[707] = nativeContext.LoadFunction("SDL_LoadWAV_IO", "SDL3") ) )(src, closeio, spec, audio_buf, audio_len); @@ -80098,9 +82961,9 @@ public static MaybeBool LockAudioStream(AudioStreamHandle stream) => byte ISdl.LockAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[686] is not null and var loadedFnPtr + _slots[708] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[686] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") + : _slots[708] = nativeContext.LoadFunction("SDL_LockAudioStream", "SDL3") ) )(stream); @@ -80116,9 +82979,9 @@ public static byte LockAudioStreamRaw(AudioStreamHandle stream) => void ISdl.LockJoysticks() => ( (delegate* unmanaged)( - _slots[687] is not null and var loadedFnPtr + _slots[709] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[687] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") + : _slots[709] = nativeContext.LoadFunction("SDL_LockJoysticks", "SDL3") ) )(); @@ -80133,9 +82996,9 @@ _slots[687] is not null and var loadedFnPtr void ISdl.LockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[688] is not null and var loadedFnPtr + _slots[710] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[688] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") + : _slots[710] = nativeContext.LoadFunction("SDL_LockMutex", "SDL3") ) )(mutex); @@ -80161,9 +83024,9 @@ MaybeBool ISdl.LockProperties(uint props) => byte ISdl.LockPropertiesRaw(uint props) => ( (delegate* unmanaged)( - _slots[689] is not null and var loadedFnPtr + _slots[711] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[689] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") + : _slots[711] = nativeContext.LoadFunction("SDL_LockProperties", "SDL3") ) )(props); @@ -80178,9 +83041,9 @@ _slots[689] is not null and var loadedFnPtr void ISdl.LockRWLockForReading(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[690] is not null and var loadedFnPtr + _slots[712] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[690] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") + : _slots[712] = nativeContext.LoadFunction("SDL_LockRWLockForReading", "SDL3") ) )(rwlock); @@ -80196,9 +83059,9 @@ public static void LockRWLockForReading(RWLockHandle rwlock) => void ISdl.LockRWLockForWriting(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[691] is not null and var loadedFnPtr + _slots[713] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[691] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") + : _slots[713] = nativeContext.LoadFunction("SDL_LockRWLockForWriting", "SDL3") ) )(rwlock); @@ -80214,9 +83077,9 @@ public static void LockRWLockForWriting(RWLockHandle rwlock) => void ISdl.LockSpinlock(int* @lock) => ( (delegate* unmanaged)( - _slots[692] is not null and var loadedFnPtr + _slots[714] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[692] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") + : _slots[714] = nativeContext.LoadFunction("SDL_LockSpinlock", "SDL3") ) )(@lock); @@ -80247,9 +83110,9 @@ void ISdl.LockSpinlock(Ref @lock) byte ISdl.LockSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[693] is not null and var loadedFnPtr + _slots[715] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[693] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") + : _slots[715] = nativeContext.LoadFunction("SDL_LockSurface", "SDL3") ) )(surface); @@ -80281,9 +83144,9 @@ public static MaybeBool LockSurface(Ref surface) => byte ISdl.LockTexture(Texture* texture, Rect* rect, void** pixels, int* pitch) => ( (delegate* unmanaged)( - _slots[694] is not null and var loadedFnPtr + _slots[716] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[694] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") + : _slots[716] = nativeContext.LoadFunction("SDL_LockTexture", "SDL3") ) )(texture, rect, pixels, pitch); @@ -80330,9 +83193,9 @@ Ref pitch byte ISdl.LockTextureToSurface(Texture* texture, Rect* rect, Surface** surface) => ( (delegate* unmanaged)( - _slots[695] is not null and var loadedFnPtr + _slots[717] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[695] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") + : _slots[717] = nativeContext.LoadFunction("SDL_LockTextureToSurface", "SDL3") ) )(texture, rect, surface); @@ -80375,9 +83238,9 @@ Ref2D surface double ISdl.Log(double x) => ( (delegate* unmanaged)( - _slots[696] is not null and var loadedFnPtr + _slots[718] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[696] = nativeContext.LoadFunction("SDL_log", "SDL3") + : _slots[718] = nativeContext.LoadFunction("SDL_log", "SDL3") ) )(x); @@ -80392,9 +83255,9 @@ _slots[696] is not null and var loadedFnPtr double ISdl.Log10(double x) => ( (delegate* unmanaged)( - _slots[697] is not null and var loadedFnPtr + _slots[719] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[697] = nativeContext.LoadFunction("SDL_log10", "SDL3") + : _slots[719] = nativeContext.LoadFunction("SDL_log10", "SDL3") ) )(x); @@ -80409,9 +83272,9 @@ _slots[697] is not null and var loadedFnPtr float ISdl.Log10F(float x) => ( (delegate* unmanaged)( - _slots[698] is not null and var loadedFnPtr + _slots[720] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[698] = nativeContext.LoadFunction("SDL_log10f", "SDL3") + : _slots[720] = nativeContext.LoadFunction("SDL_log10f", "SDL3") ) )(x); @@ -80426,9 +83289,9 @@ _slots[698] is not null and var loadedFnPtr float ISdl.Logf(float x) => ( (delegate* unmanaged)( - _slots[699] is not null and var loadedFnPtr + _slots[721] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[699] = nativeContext.LoadFunction("SDL_logf", "SDL3") + : _slots[721] = nativeContext.LoadFunction("SDL_logf", "SDL3") ) )(x); @@ -80443,9 +83306,9 @@ _slots[699] is not null and var loadedFnPtr void ISdl.LogMessageV(int category, LogPriority priority, sbyte* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[700] is not null and var loadedFnPtr + _slots[722] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[700] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") + : _slots[722] = nativeContext.LoadFunction("SDL_LogMessageV", "SDL3") ) )(category, priority, fmt, ap); @@ -80483,9 +83346,9 @@ Ref ap int ISdl.Lround(double x) => ( (delegate* unmanaged)( - _slots[701] is not null and var loadedFnPtr + _slots[723] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[701] = nativeContext.LoadFunction("SDL_lround", "SDL3") + : _slots[723] = nativeContext.LoadFunction("SDL_lround", "SDL3") ) )(x); @@ -80500,9 +83363,9 @@ _slots[701] is not null and var loadedFnPtr int ISdl.Lroundf(float x) => ( (delegate* unmanaged)( - _slots[702] is not null and var loadedFnPtr + _slots[724] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[702] = nativeContext.LoadFunction("SDL_lroundf", "SDL3") + : _slots[724] = nativeContext.LoadFunction("SDL_lroundf", "SDL3") ) )(x); @@ -80517,9 +83380,9 @@ _slots[702] is not null and var loadedFnPtr sbyte* ISdl.Ltoa(int value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[703] is not null and var loadedFnPtr + _slots[725] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[703] = nativeContext.LoadFunction("SDL_ltoa", "SDL3") + : _slots[725] = nativeContext.LoadFunction("SDL_ltoa", "SDL3") ) )(value, str, radix); @@ -80552,9 +83415,9 @@ public static Ptr Ltoa(int value, Ref str, int radix) => int ISdl.Main(int argc, sbyte** argv) => ( (delegate* unmanaged)( - _slots[704] is not null and var loadedFnPtr + _slots[726] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[704] = nativeContext.LoadFunction("SDL_main", "SDL3") + : _slots[726] = nativeContext.LoadFunction("SDL_main", "SDL3") ) )(argc, argv); @@ -80595,9 +83458,9 @@ int ISdl.Main(int argc, Ref2D argv) void* ISdl.MallocRaw(nuint size) => ( (delegate* unmanaged)( - _slots[705] is not null and var loadedFnPtr + _slots[727] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[705] = nativeContext.LoadFunction("SDL_malloc", "SDL3") + : _slots[727] = nativeContext.LoadFunction("SDL_malloc", "SDL3") ) )(size); @@ -80616,9 +83479,9 @@ byte cycle ) => ( (delegate* unmanaged)( - _slots[706] is not null and var loadedFnPtr + _slots[728] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[706] = nativeContext.LoadFunction("SDL_MapGPUTransferBuffer", "SDL3") + : _slots[728] = nativeContext.LoadFunction("SDL_MapGPUTransferBuffer", "SDL3") ) )(device, transfer_buffer, cycle); @@ -80655,9 +83518,9 @@ MaybeBool cycle uint ISdl.MapRgb(PixelFormatDetails* format, Palette* palette, byte r, byte g, byte b) => ( (delegate* unmanaged)( - _slots[707] is not null and var loadedFnPtr + _slots[729] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[707] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") + : _slots[729] = nativeContext.LoadFunction("SDL_MapRGB", "SDL3") ) )(format, palette, r, g, b); @@ -80708,9 +83571,9 @@ byte a ) => ( (delegate* unmanaged)( - _slots[708] is not null and var loadedFnPtr + _slots[730] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[708] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") + : _slots[730] = nativeContext.LoadFunction("SDL_MapRGBA", "SDL3") ) )(format, palette, r, g, b, a); @@ -80763,9 +83626,9 @@ byte a uint ISdl.MapSurfaceRgb(Surface* surface, byte r, byte g, byte b) => ( (delegate* unmanaged)( - _slots[709] is not null and var loadedFnPtr + _slots[731] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[709] = nativeContext.LoadFunction("SDL_MapSurfaceRGB", "SDL3") + : _slots[731] = nativeContext.LoadFunction("SDL_MapSurfaceRGB", "SDL3") ) )(surface, r, g, b); @@ -80798,9 +83661,9 @@ public static uint MapSurfaceRgb(Ref surface, byte r, byte g, byte b) = uint ISdl.MapSurfaceRgba(Surface* surface, byte r, byte g, byte b, byte a) => ( (delegate* unmanaged)( - _slots[710] is not null and var loadedFnPtr + _slots[732] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[710] = nativeContext.LoadFunction("SDL_MapSurfaceRGBA", "SDL3") + : _slots[732] = nativeContext.LoadFunction("SDL_MapSurfaceRGBA", "SDL3") ) )(surface, r, g, b, a); @@ -80845,9 +83708,9 @@ public static MaybeBool MaximizeWindow(WindowHandle window) => byte ISdl.MaximizeWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[711] is not null and var loadedFnPtr + _slots[733] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[711] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") + : _slots[733] = nativeContext.LoadFunction("SDL_MaximizeWindow", "SDL3") ) )(window); @@ -80863,9 +83726,9 @@ public static byte MaximizeWindowRaw(WindowHandle window) => int ISdl.Memcmp(void* s1, void* s2, nuint len) => ( (delegate* unmanaged)( - _slots[712] is not null and var loadedFnPtr + _slots[734] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[712] = nativeContext.LoadFunction("SDL_memcmp", "SDL3") + : _slots[734] = nativeContext.LoadFunction("SDL_memcmp", "SDL3") ) )(s1, s2, len); @@ -80897,9 +83760,9 @@ int ISdl.Memcmp(Ref s1, Ref s2, nuint len) void ISdl.MemoryBarrierAcquireFunction() => ( (delegate* unmanaged)( - _slots[713] is not null and var loadedFnPtr + _slots[735] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[713] = nativeContext.LoadFunction( + : _slots[735] = nativeContext.LoadFunction( "SDL_MemoryBarrierAcquireFunction", "SDL3" ) @@ -80917,9 +83780,9 @@ _slots[713] is not null and var loadedFnPtr void ISdl.MemoryBarrierReleaseFunction() => ( (delegate* unmanaged)( - _slots[714] is not null and var loadedFnPtr + _slots[736] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[714] = nativeContext.LoadFunction( + : _slots[736] = nativeContext.LoadFunction( "SDL_MemoryBarrierReleaseFunction", "SDL3" ) @@ -80937,9 +83800,9 @@ _slots[714] is not null and var loadedFnPtr void* ISdl.Memset4(void* dst, uint val, nuint dwords) => ( (delegate* unmanaged)( - _slots[715] is not null and var loadedFnPtr + _slots[737] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[715] = nativeContext.LoadFunction("SDL_memset4", "SDL3") + : _slots[737] = nativeContext.LoadFunction("SDL_memset4", "SDL3") ) )(dst, val, dwords); @@ -80982,9 +83845,9 @@ public static Ptr Memset4(Ref dst, uint val, nuint dwords) => void* ISdl.MetalCreateViewRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[716] is not null and var loadedFnPtr + _slots[738] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[716] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") + : _slots[738] = nativeContext.LoadFunction("SDL_Metal_CreateView", "SDL3") ) )(window); @@ -81000,9 +83863,9 @@ _slots[716] is not null and var loadedFnPtr void ISdl.MetalDestroyView(void* view) => ( (delegate* unmanaged)( - _slots[717] is not null and var loadedFnPtr + _slots[739] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[717] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") + : _slots[739] = nativeContext.LoadFunction("SDL_Metal_DestroyView", "SDL3") ) )(view); @@ -81033,9 +83896,9 @@ void ISdl.MetalDestroyView(Ref view) void* ISdl.MetalGetLayer(void* view) => ( (delegate* unmanaged)( - _slots[718] is not null and var loadedFnPtr + _slots[740] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[718] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") + : _slots[740] = nativeContext.LoadFunction("SDL_Metal_GetLayer", "SDL3") ) )(view); @@ -81078,9 +83941,9 @@ public static MaybeBool MinimizeWindow(WindowHandle window) => byte ISdl.MinimizeWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[719] is not null and var loadedFnPtr + _slots[741] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[719] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") + : _slots[741] = nativeContext.LoadFunction("SDL_MinimizeWindow", "SDL3") ) )(window); @@ -81096,9 +83959,9 @@ public static byte MinimizeWindowRaw(WindowHandle window) => byte ISdl.MixAudio(byte* dst, byte* src, AudioFormat format, uint len, float volume) => ( (delegate* unmanaged)( - _slots[720] is not null and var loadedFnPtr + _slots[742] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[720] = nativeContext.LoadFunction("SDL_MixAudio", "SDL3") + : _slots[742] = nativeContext.LoadFunction("SDL_MixAudio", "SDL3") ) )(dst, src, format, len, volume); @@ -81144,9 +84007,9 @@ float volume double ISdl.Modf(double x, double* y) => ( (delegate* unmanaged)( - _slots[721] is not null and var loadedFnPtr + _slots[743] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[721] = nativeContext.LoadFunction("SDL_modf", "SDL3") + : _slots[743] = nativeContext.LoadFunction("SDL_modf", "SDL3") ) )(x, y); @@ -81177,9 +84040,9 @@ double ISdl.Modf(double x, Ref y) float ISdl.Modff(float x, float* y) => ( (delegate* unmanaged)( - _slots[722] is not null and var loadedFnPtr + _slots[744] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[722] = nativeContext.LoadFunction("SDL_modff", "SDL3") + : _slots[744] = nativeContext.LoadFunction("SDL_modff", "SDL3") ) )(x, y); @@ -81210,9 +84073,9 @@ float ISdl.Modff(float x, Ref y) uint ISdl.Murmur3x32(void* data, nuint len, uint seed) => ( (delegate* unmanaged)( - _slots[723] is not null and var loadedFnPtr + _slots[745] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[723] = nativeContext.LoadFunction("SDL_murmur3_32", "SDL3") + : _slots[745] = nativeContext.LoadFunction("SDL_murmur3_32", "SDL3") ) )(data, len, seed); @@ -81245,9 +84108,9 @@ public static uint Murmur3x32(Ref data, nuint len, uint seed) => void ISdl.OnApplicationDidEnterBackground() => ( (delegate* unmanaged)( - _slots[724] is not null and var loadedFnPtr + _slots[746] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[724] = nativeContext.LoadFunction( + : _slots[746] = nativeContext.LoadFunction( "SDL_OnApplicationDidEnterBackground", "SDL3" ) @@ -81266,9 +84129,9 @@ public static void OnApplicationDidEnterBackground() => void ISdl.OnApplicationDidEnterForeground() => ( (delegate* unmanaged)( - _slots[725] is not null and var loadedFnPtr + _slots[747] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[725] = nativeContext.LoadFunction( + : _slots[747] = nativeContext.LoadFunction( "SDL_OnApplicationDidEnterForeground", "SDL3" ) @@ -81287,9 +84150,9 @@ public static void OnApplicationDidEnterForeground() => void ISdl.OnApplicationDidReceiveMemoryWarning() => ( (delegate* unmanaged)( - _slots[726] is not null and var loadedFnPtr + _slots[748] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[726] = nativeContext.LoadFunction( + : _slots[748] = nativeContext.LoadFunction( "SDL_OnApplicationDidReceiveMemoryWarning", "SDL3" ) @@ -81308,9 +84171,9 @@ public static void OnApplicationDidReceiveMemoryWarning() => void ISdl.OnApplicationWillEnterBackground() => ( (delegate* unmanaged)( - _slots[727] is not null and var loadedFnPtr + _slots[749] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[727] = nativeContext.LoadFunction( + : _slots[749] = nativeContext.LoadFunction( "SDL_OnApplicationWillEnterBackground", "SDL3" ) @@ -81329,9 +84192,9 @@ public static void OnApplicationWillEnterBackground() => void ISdl.OnApplicationWillEnterForeground() => ( (delegate* unmanaged)( - _slots[728] is not null and var loadedFnPtr + _slots[750] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[728] = nativeContext.LoadFunction( + : _slots[750] = nativeContext.LoadFunction( "SDL_OnApplicationWillEnterForeground", "SDL3" ) @@ -81350,9 +84213,9 @@ public static void OnApplicationWillEnterForeground() => void ISdl.OnApplicationWillTerminate() => ( (delegate* unmanaged)( - _slots[729] is not null and var loadedFnPtr + _slots[751] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[729] = nativeContext.LoadFunction( + : _slots[751] = nativeContext.LoadFunction( "SDL_OnApplicationWillTerminate", "SDL3" ) @@ -81370,9 +84233,9 @@ _slots[729] is not null and var loadedFnPtr uint ISdl.OpenAudioDevice(uint devid, AudioSpec* spec) => ( (delegate* unmanaged)( - _slots[730] is not null and var loadedFnPtr + _slots[752] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[730] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") + : _slots[752] = nativeContext.LoadFunction("SDL_OpenAudioDevice", "SDL3") ) )(devid, spec); @@ -81410,9 +84273,9 @@ AudioStreamHandle ISdl.OpenAudioDeviceStream( ) => ( (delegate* unmanaged)( - _slots[731] is not null and var loadedFnPtr + _slots[753] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[731] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") + : _slots[753] = nativeContext.LoadFunction("SDL_OpenAudioDeviceStream", "SDL3") ) )(devid, spec, callback, userdata); @@ -81460,9 +84323,9 @@ Ref userdata CameraHandle ISdl.OpenCamera(uint instance_id, CameraSpec* spec) => ( (delegate* unmanaged)( - _slots[732] is not null and var loadedFnPtr + _slots[754] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[732] = nativeContext.LoadFunction("SDL_OpenCamera", "SDL3") + : _slots[754] = nativeContext.LoadFunction("SDL_OpenCamera", "SDL3") ) )(instance_id, spec); @@ -81495,9 +84358,9 @@ public static CameraHandle OpenCamera(uint instance_id, Ref spec) => StorageHandle ISdl.OpenFileStorage(sbyte* path) => ( (delegate* unmanaged)( - _slots[733] is not null and var loadedFnPtr + _slots[755] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[733] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") + : _slots[755] = nativeContext.LoadFunction("SDL_OpenFileStorage", "SDL3") ) )(path); @@ -81528,9 +84391,9 @@ StorageHandle ISdl.OpenFileStorage(Ref path) GamepadHandle ISdl.OpenGamepad(uint instance_id) => ( (delegate* unmanaged)( - _slots[734] is not null and var loadedFnPtr + _slots[756] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[734] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + : _slots[756] = nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") ) )(instance_id); @@ -81545,9 +84408,9 @@ _slots[734] is not null and var loadedFnPtr HapticHandle ISdl.OpenHaptic(uint instance_id) => ( (delegate* unmanaged)( - _slots[735] is not null and var loadedFnPtr + _slots[757] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[735] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + : _slots[757] = nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") ) )(instance_id); @@ -81562,9 +84425,9 @@ _slots[735] is not null and var loadedFnPtr HapticHandle ISdl.OpenHapticFromJoystick(JoystickHandle joystick) => ( (delegate* unmanaged)( - _slots[736] is not null and var loadedFnPtr + _slots[758] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[736] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") + : _slots[758] = nativeContext.LoadFunction("SDL_OpenHapticFromJoystick", "SDL3") ) )(joystick); @@ -81580,9 +84443,9 @@ public static HapticHandle OpenHapticFromJoystick(JoystickHandle joystick) => HapticHandle ISdl.OpenHapticFromMouse() => ( (delegate* unmanaged)( - _slots[737] is not null and var loadedFnPtr + _slots[759] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[737] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + : _slots[759] = nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") ) )(); @@ -81597,9 +84460,9 @@ _slots[737] is not null and var loadedFnPtr IOStreamHandle ISdl.OpenIO(IOStreamInterface* iface, void* userdata) => ( (delegate* unmanaged)( - _slots[738] is not null and var loadedFnPtr + _slots[760] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[738] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") + : _slots[760] = nativeContext.LoadFunction("SDL_OpenIO", "SDL3") ) )(iface, userdata); @@ -81633,9 +84496,9 @@ public static IOStreamHandle OpenIO(Ref iface, Ref userdata) JoystickHandle ISdl.OpenJoystick(uint instance_id) => ( (delegate* unmanaged)( - _slots[739] is not null and var loadedFnPtr + _slots[761] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[739] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + : _slots[761] = nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") ) )(instance_id); @@ -81651,9 +84514,9 @@ public static JoystickHandle OpenJoystick(uint instance_id) => SensorHandle ISdl.OpenSensor(uint instance_id) => ( (delegate* unmanaged)( - _slots[740] is not null and var loadedFnPtr + _slots[762] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[740] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + : _slots[762] = nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") ) )(instance_id); @@ -81668,9 +84531,9 @@ _slots[740] is not null and var loadedFnPtr StorageHandle ISdl.OpenStorage(StorageInterface* iface, void* userdata) => ( (delegate* unmanaged)( - _slots[741] is not null and var loadedFnPtr + _slots[763] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[741] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") + : _slots[763] = nativeContext.LoadFunction("SDL_OpenStorage", "SDL3") ) )(iface, userdata); @@ -81704,9 +84567,9 @@ public static StorageHandle OpenStorage(Ref iface, Ref userdat StorageHandle ISdl.OpenTitleStorage(sbyte* @override, uint props) => ( (delegate* unmanaged)( - _slots[742] is not null and var loadedFnPtr + _slots[764] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[742] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") + : _slots[764] = nativeContext.LoadFunction("SDL_OpenTitleStorage", "SDL3") ) )(@override, props); @@ -81739,9 +84602,9 @@ public static StorageHandle OpenTitleStorage(Ref @override, uint props) = byte ISdl.OpenUrl(sbyte* url) => ( (delegate* unmanaged)( - _slots[743] is not null and var loadedFnPtr + _slots[765] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[743] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") + : _slots[765] = nativeContext.LoadFunction("SDL_OpenURL", "SDL3") ) )(url); @@ -81772,9 +84635,9 @@ MaybeBool ISdl.OpenUrl(Ref url) StorageHandle ISdl.OpenUserStorage(sbyte* org, sbyte* app, uint props) => ( (delegate* unmanaged)( - _slots[744] is not null and var loadedFnPtr + _slots[766] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[744] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") + : _slots[766] = nativeContext.LoadFunction("SDL_OpenUserStorage", "SDL3") ) )(org, app, props); @@ -81818,9 +84681,9 @@ public static StorageHandle OpenUserStorage(Ref org, Ref app, uint byte ISdl.OutOfMemoryRaw() => ( (delegate* unmanaged)( - _slots[745] is not null and var loadedFnPtr + _slots[767] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[745] = nativeContext.LoadFunction("SDL_OutOfMemory", "SDL3") + : _slots[767] = nativeContext.LoadFunction("SDL_OutOfMemory", "SDL3") ) )(); @@ -81846,9 +84709,9 @@ MaybeBool ISdl.PauseAudioDevice(uint devid) => byte ISdl.PauseAudioDeviceRaw(uint devid) => ( (delegate* unmanaged)( - _slots[746] is not null and var loadedFnPtr + _slots[768] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[746] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") + : _slots[768] = nativeContext.LoadFunction("SDL_PauseAudioDevice", "SDL3") ) )(devid); @@ -81875,9 +84738,9 @@ public static MaybeBool PauseAudioStreamDevice(AudioStreamHandle stream) = byte ISdl.PauseAudioStreamDeviceRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[747] is not null and var loadedFnPtr + _slots[769] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[747] = nativeContext.LoadFunction("SDL_PauseAudioStreamDevice", "SDL3") + : _slots[769] = nativeContext.LoadFunction("SDL_PauseAudioStreamDevice", "SDL3") ) )(stream); @@ -81904,9 +84767,9 @@ MaybeBool ISdl.PauseHaptic(HapticHandle haptic) => byte ISdl.PauseHapticRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[748] is not null and var loadedFnPtr + _slots[770] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[748] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") + : _slots[770] = nativeContext.LoadFunction("SDL_PauseHaptic", "SDL3") ) )(haptic); @@ -81927,9 +84790,9 @@ uint maxType ) => ( (delegate* unmanaged)( - _slots[749] is not null and var loadedFnPtr + _slots[771] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[749] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") + : _slots[771] = nativeContext.LoadFunction("SDL_PeepEvents", "SDL3") ) )(events, numevents, action, minType, maxType); @@ -81993,9 +84856,9 @@ uint length byte ISdl.PlayHapticRumbleRaw(HapticHandle haptic, float strength, uint length) => ( (delegate* unmanaged)( - _slots[750] is not null and var loadedFnPtr + _slots[772] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[750] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") + : _slots[772] = nativeContext.LoadFunction("SDL_PlayHapticRumble", "SDL3") ) )(haptic, strength, length); @@ -82011,9 +84874,9 @@ public static byte PlayHapticRumbleRaw(HapticHandle haptic, float strength, uint byte ISdl.PollEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[751] is not null and var loadedFnPtr + _slots[773] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[751] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") + : _slots[773] = nativeContext.LoadFunction("SDL_PollEvent", "SDL3") ) )(@event); @@ -82044,9 +84907,9 @@ MaybeBool ISdl.PollEvent(Ref @event) void ISdl.PopGpuDebugGroup(GpuCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[752] is not null and var loadedFnPtr + _slots[774] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[752] = nativeContext.LoadFunction("SDL_PopGPUDebugGroup", "SDL3") + : _slots[774] = nativeContext.LoadFunction("SDL_PopGPUDebugGroup", "SDL3") ) )(command_buffer); @@ -82062,9 +84925,9 @@ public static void PopGpuDebugGroup(GpuCommandBufferHandle command_buffer) => double ISdl.Pow(double x, double y) => ( (delegate* unmanaged)( - _slots[753] is not null and var loadedFnPtr + _slots[775] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[753] = nativeContext.LoadFunction("SDL_pow", "SDL3") + : _slots[775] = nativeContext.LoadFunction("SDL_pow", "SDL3") ) )(x, y); @@ -82079,9 +84942,9 @@ _slots[753] is not null and var loadedFnPtr float ISdl.Powf(float x, float y) => ( (delegate* unmanaged)( - _slots[754] is not null and var loadedFnPtr + _slots[776] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[754] = nativeContext.LoadFunction("SDL_powf", "SDL3") + : _slots[776] = nativeContext.LoadFunction("SDL_powf", "SDL3") ) )(x, y); @@ -82116,9 +84979,9 @@ byte linear int, byte, byte>)( - _slots[755] is not null and var loadedFnPtr + _slots[777] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[755] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") + : _slots[777] = nativeContext.LoadFunction("SDL_PremultiplyAlpha", "SDL3") ) )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch, linear); @@ -82214,9 +85077,9 @@ MaybeBool linear byte ISdl.PremultiplySurfaceAlpha(Surface* surface, byte linear) => ( (delegate* unmanaged)( - _slots[756] is not null and var loadedFnPtr + _slots[778] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[756] = nativeContext.LoadFunction( + : _slots[778] = nativeContext.LoadFunction( "SDL_PremultiplySurfaceAlpha", "SDL3" ) @@ -82255,9 +85118,9 @@ MaybeBool linear void ISdl.PumpEvents() => ( (delegate* unmanaged)( - _slots[757] is not null and var loadedFnPtr + _slots[779] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[757] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") + : _slots[779] = nativeContext.LoadFunction("SDL_PumpEvents", "SDL3") ) )(); @@ -82272,9 +85135,9 @@ _slots[757] is not null and var loadedFnPtr byte ISdl.PushEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[758] is not null and var loadedFnPtr + _slots[780] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[758] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") + : _slots[780] = nativeContext.LoadFunction("SDL_PushEvent", "SDL3") ) )(@event); @@ -82310,9 +85173,9 @@ uint length ) => ( (delegate* unmanaged)( - _slots[759] is not null and var loadedFnPtr + _slots[781] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[759] = nativeContext.LoadFunction( + : _slots[781] = nativeContext.LoadFunction( "SDL_PushGPUComputeUniformData", "SDL3" ) @@ -82361,9 +85224,9 @@ uint length void ISdl.PushGpuDebugGroup(GpuCommandBufferHandle command_buffer, sbyte* name) => ( (delegate* unmanaged)( - _slots[760] is not null and var loadedFnPtr + _slots[782] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[760] = nativeContext.LoadFunction("SDL_PushGPUDebugGroup", "SDL3") + : _slots[782] = nativeContext.LoadFunction("SDL_PushGPUDebugGroup", "SDL3") ) )(command_buffer, name); @@ -82401,9 +85264,9 @@ uint length ) => ( (delegate* unmanaged)( - _slots[761] is not null and var loadedFnPtr + _slots[783] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[761] = nativeContext.LoadFunction( + : _slots[783] = nativeContext.LoadFunction( "SDL_PushGPUFragmentUniformData", "SDL3" ) @@ -82457,9 +85320,9 @@ uint length ) => ( (delegate* unmanaged)( - _slots[762] is not null and var loadedFnPtr + _slots[784] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[762] = nativeContext.LoadFunction( + : _slots[784] = nativeContext.LoadFunction( "SDL_PushGPUVertexUniformData", "SDL3" ) @@ -82508,9 +85371,9 @@ uint length byte ISdl.PutAudioStreamData(AudioStreamHandle stream, void* buf, int len) => ( (delegate* unmanaged)( - _slots[763] is not null and var loadedFnPtr + _slots[785] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[763] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") + : _slots[785] = nativeContext.LoadFunction("SDL_PutAudioStreamData", "SDL3") ) )(stream, buf, len); @@ -82537,15 +85400,153 @@ MaybeBool ISdl.PutAudioStreamData(AudioStreamHandle stream, Ref buf, int l public static MaybeBool PutAudioStreamData(AudioStreamHandle stream, Ref buf, int len) => DllImport.PutAudioStreamData(stream, buf, len); + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ) => + ( + (delegate* unmanaged< + AudioStreamHandle, + void*, + int, + AudioStreamDataCompleteCallback, + void*, + byte>)( + _slots[786] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[786] = nativeContext.LoadFunction( + "SDL_PutAudioStreamDataNoCopy", + "SDL3" + ) + ) + )(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + void* buf, + int len, + AudioStreamDataCompleteCallback callback, + void* userdata + ) => DllImport.PutAudioStreamDataNoCopy(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_buf = buf) + { + return (MaybeBool) + (byte) + ((ISdl)this).PutAudioStreamDataNoCopy( + stream, + __dsl_buf, + len, + callback, + __dsl_userdata + ); + } + } + + [NativeName("SDL_PutAudioStreamDataNoCopy")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamDataNoCopy")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PutAudioStreamDataNoCopy( + AudioStreamHandle stream, + Ref buf, + int len, + AudioStreamDataCompleteCallback callback, + Ref userdata + ) => DllImport.PutAudioStreamDataNoCopy(stream, buf, len, callback, userdata); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ) => + ( + (delegate* unmanaged)( + _slots[787] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[787] = nativeContext.LoadFunction( + "SDL_PutAudioStreamPlanarData", + "SDL3" + ) + ) + )(stream, channel_buffers, num_channels, num_samples); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte PutAudioStreamPlanarData( + AudioStreamHandle stream, + void** channel_buffers, + int num_channels, + int num_samples + ) => DllImport.PutAudioStreamPlanarData(stream, channel_buffers, num_channels, num_samples); + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ) + { + fixed (void** __dsl_channel_buffers = channel_buffers) + { + return (MaybeBool) + (byte) + ((ISdl)this).PutAudioStreamPlanarData( + stream, + __dsl_channel_buffers, + num_channels, + num_samples + ); + } + } + + [NativeName("SDL_PutAudioStreamPlanarData")] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamPlanarData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PutAudioStreamPlanarData( + AudioStreamHandle stream, + Ref2D channel_buffers, + int num_channels, + int num_samples + ) => DllImport.PutAudioStreamPlanarData(stream, channel_buffers, num_channels, num_samples); + [NativeName("SDL_qsort")] [NativeFunction("SDL3", EntryPoint = "SDL_qsort")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.Qsort(void* @base, nuint nmemb, nuint size, CompareCallback compare) => ( (delegate* unmanaged)( - _slots[764] is not null and var loadedFnPtr + _slots[788] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[764] = nativeContext.LoadFunction("SDL_qsort", "SDL3") + : _slots[788] = nativeContext.LoadFunction("SDL_qsort", "SDL3") ) )(@base, nmemb, size, compare); @@ -82584,9 +85585,9 @@ void ISdl.QsortR( ) => ( (delegate* unmanaged)( - _slots[765] is not null and var loadedFnPtr + _slots[789] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[765] = nativeContext.LoadFunction("SDL_qsort_r", "SDL3") + : _slots[789] = nativeContext.LoadFunction("SDL_qsort_r", "SDL3") ) )(@base, nmemb, size, compare, userdata); @@ -82642,9 +85643,9 @@ public static MaybeBool QueryGpuFence(GpuDeviceHandle device, GpuFenceHand byte ISdl.QueryGpuFenceRaw(GpuDeviceHandle device, GpuFenceHandle fence) => ( (delegate* unmanaged)( - _slots[766] is not null and var loadedFnPtr + _slots[790] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[766] = nativeContext.LoadFunction("SDL_QueryGPUFence", "SDL3") + : _slots[790] = nativeContext.LoadFunction("SDL_QueryGPUFence", "SDL3") ) )(device, fence); @@ -82660,9 +85661,9 @@ public static byte QueryGpuFenceRaw(GpuDeviceHandle device, GpuFenceHandle fence void ISdl.Quit() => ( (delegate* unmanaged)( - _slots[767] is not null and var loadedFnPtr + _slots[791] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[767] = nativeContext.LoadFunction("SDL_Quit", "SDL3") + : _slots[791] = nativeContext.LoadFunction("SDL_Quit", "SDL3") ) )(); @@ -82677,9 +85678,9 @@ _slots[767] is not null and var loadedFnPtr void ISdl.QuitSubSystem(uint flags) => ( (delegate* unmanaged)( - _slots[768] is not null and var loadedFnPtr + _slots[792] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[768] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") + : _slots[792] = nativeContext.LoadFunction("SDL_QuitSubSystem", "SDL3") ) )(flags); @@ -82705,9 +85706,9 @@ MaybeBool ISdl.RaiseWindow(WindowHandle window) => byte ISdl.RaiseWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[769] is not null and var loadedFnPtr + _slots[793] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[769] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") + : _slots[793] = nativeContext.LoadFunction("SDL_RaiseWindow", "SDL3") ) )(window); @@ -82722,9 +85723,9 @@ _slots[769] is not null and var loadedFnPtr int ISdl.Rand(int n) => ( (delegate* unmanaged)( - _slots[770] is not null and var loadedFnPtr + _slots[794] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[770] = nativeContext.LoadFunction("SDL_rand", "SDL3") + : _slots[794] = nativeContext.LoadFunction("SDL_rand", "SDL3") ) )(n); @@ -82739,9 +85740,9 @@ _slots[770] is not null and var loadedFnPtr uint ISdl.RandBits() => ( (delegate* unmanaged)( - _slots[771] is not null and var loadedFnPtr + _slots[795] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[771] = nativeContext.LoadFunction("SDL_rand_bits", "SDL3") + : _slots[795] = nativeContext.LoadFunction("SDL_rand_bits", "SDL3") ) )(); @@ -82756,9 +85757,9 @@ _slots[771] is not null and var loadedFnPtr uint ISdl.RandBitsR(ulong* state) => ( (delegate* unmanaged)( - _slots[772] is not null and var loadedFnPtr + _slots[796] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[772] = nativeContext.LoadFunction("SDL_rand_bits_r", "SDL3") + : _slots[796] = nativeContext.LoadFunction("SDL_rand_bits_r", "SDL3") ) )(state); @@ -82789,9 +85790,9 @@ uint ISdl.RandBitsR(Ref state) int ISdl.RandR(ulong* state, int n) => ( (delegate* unmanaged)( - _slots[773] is not null and var loadedFnPtr + _slots[797] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[773] = nativeContext.LoadFunction("SDL_rand_r", "SDL3") + : _slots[797] = nativeContext.LoadFunction("SDL_rand_r", "SDL3") ) )(state, n); @@ -82822,9 +85823,9 @@ int ISdl.RandR(Ref state, int n) float ISdl.Randf() => ( (delegate* unmanaged)( - _slots[774] is not null and var loadedFnPtr + _slots[798] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[774] = nativeContext.LoadFunction("SDL_randf", "SDL3") + : _slots[798] = nativeContext.LoadFunction("SDL_randf", "SDL3") ) )(); @@ -82839,9 +85840,9 @@ _slots[774] is not null and var loadedFnPtr float ISdl.RandfR(ulong* state) => ( (delegate* unmanaged)( - _slots[775] is not null and var loadedFnPtr + _slots[799] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[775] = nativeContext.LoadFunction("SDL_randf_r", "SDL3") + : _slots[799] = nativeContext.LoadFunction("SDL_randf_r", "SDL3") ) )(state); @@ -82872,9 +85873,9 @@ float ISdl.RandfR(Ref state) nuint ISdl.ReadIO(IOStreamHandle context, void* ptr, nuint size) => ( (delegate* unmanaged)( - _slots[776] is not null and var loadedFnPtr + _slots[800] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[776] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") + : _slots[800] = nativeContext.LoadFunction("SDL_ReadIO", "SDL3") ) )(context, ptr, size); @@ -82907,9 +85908,9 @@ public static nuint ReadIO(IOStreamHandle context, Ref ptr, nuint size) => void* ISdl.ReadProcess(ProcessHandle process, nuint* datasize, int* exitcode) => ( (delegate* unmanaged)( - _slots[777] is not null and var loadedFnPtr + _slots[801] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[777] = nativeContext.LoadFunction("SDL_ReadProcess", "SDL3") + : _slots[801] = nativeContext.LoadFunction("SDL_ReadProcess", "SDL3") ) )(process, datasize, exitcode); @@ -82943,9 +85944,9 @@ public static Ptr ReadProcess(ProcessHandle process, Ref datasize, Ref ( (delegate* unmanaged)( - _slots[778] is not null and var loadedFnPtr + _slots[802] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[778] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") + : _slots[802] = nativeContext.LoadFunction("SDL_ReadS16BE", "SDL3") ) )(src, value); @@ -82978,9 +85979,9 @@ public static MaybeBool ReadS16BE(IOStreamHandle src, Ref value) => byte ISdl.ReadS16LE(IOStreamHandle src, short* value) => ( (delegate* unmanaged)( - _slots[779] is not null and var loadedFnPtr + _slots[803] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[779] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") + : _slots[803] = nativeContext.LoadFunction("SDL_ReadS16LE", "SDL3") ) )(src, value); @@ -83013,9 +86014,9 @@ public static MaybeBool ReadS16LE(IOStreamHandle src, Ref value) => byte ISdl.ReadS32BE(IOStreamHandle src, int* value) => ( (delegate* unmanaged)( - _slots[780] is not null and var loadedFnPtr + _slots[804] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[780] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") + : _slots[804] = nativeContext.LoadFunction("SDL_ReadS32BE", "SDL3") ) )(src, value); @@ -83047,9 +86048,9 @@ public static MaybeBool ReadS32BE(IOStreamHandle src, Ref value) => byte ISdl.ReadS32LE(IOStreamHandle src, int* value) => ( (delegate* unmanaged)( - _slots[781] is not null and var loadedFnPtr + _slots[805] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[781] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") + : _slots[805] = nativeContext.LoadFunction("SDL_ReadS32LE", "SDL3") ) )(src, value); @@ -83081,9 +86082,9 @@ public static MaybeBool ReadS32LE(IOStreamHandle src, Ref value) => byte ISdl.ReadS64BE(IOStreamHandle src, long* value) => ( (delegate* unmanaged)( - _slots[782] is not null and var loadedFnPtr + _slots[806] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[782] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") + : _slots[806] = nativeContext.LoadFunction("SDL_ReadS64BE", "SDL3") ) )(src, value); @@ -83116,9 +86117,9 @@ public static MaybeBool ReadS64BE(IOStreamHandle src, Ref value) => byte ISdl.ReadS64LE(IOStreamHandle src, long* value) => ( (delegate* unmanaged)( - _slots[783] is not null and var loadedFnPtr + _slots[807] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[783] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") + : _slots[807] = nativeContext.LoadFunction("SDL_ReadS64LE", "SDL3") ) )(src, value); @@ -83151,9 +86152,9 @@ public static MaybeBool ReadS64LE(IOStreamHandle src, Ref value) => byte ISdl.ReadS8(IOStreamHandle src, sbyte* value) => ( (delegate* unmanaged)( - _slots[784] is not null and var loadedFnPtr + _slots[808] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[784] = nativeContext.LoadFunction("SDL_ReadS8", "SDL3") + : _slots[808] = nativeContext.LoadFunction("SDL_ReadS8", "SDL3") ) )(src, value); @@ -83190,9 +86191,9 @@ ulong length ) => ( (delegate* unmanaged)( - _slots[785] is not null and var loadedFnPtr + _slots[809] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[785] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") + : _slots[809] = nativeContext.LoadFunction("SDL_ReadStorageFile", "SDL3") ) )(storage, path, destination, length); @@ -83248,9 +86249,9 @@ byte ISdl.ReadSurfacePixel( ) => ( (delegate* unmanaged)( - _slots[786] is not null and var loadedFnPtr + _slots[810] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[786] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") + : _slots[810] = nativeContext.LoadFunction("SDL_ReadSurfacePixel", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -83327,9 +86328,9 @@ byte ISdl.ReadSurfacePixelFloat( ) => ( (delegate* unmanaged)( - _slots[787] is not null and var loadedFnPtr + _slots[811] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[787] = nativeContext.LoadFunction("SDL_ReadSurfacePixelFloat", "SDL3") + : _slots[811] = nativeContext.LoadFunction("SDL_ReadSurfacePixelFloat", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -83398,9 +86399,9 @@ Ref a byte ISdl.ReadU16BE(IOStreamHandle src, ushort* value) => ( (delegate* unmanaged)( - _slots[788] is not null and var loadedFnPtr + _slots[812] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[788] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") + : _slots[812] = nativeContext.LoadFunction("SDL_ReadU16BE", "SDL3") ) )(src, value); @@ -83433,9 +86434,9 @@ public static MaybeBool ReadU16BE(IOStreamHandle src, Ref value) = byte ISdl.ReadU16LE(IOStreamHandle src, ushort* value) => ( (delegate* unmanaged)( - _slots[789] is not null and var loadedFnPtr + _slots[813] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[789] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") + : _slots[813] = nativeContext.LoadFunction("SDL_ReadU16LE", "SDL3") ) )(src, value); @@ -83468,9 +86469,9 @@ public static MaybeBool ReadU16LE(IOStreamHandle src, Ref value) = byte ISdl.ReadU32BE(IOStreamHandle src, uint* value) => ( (delegate* unmanaged)( - _slots[790] is not null and var loadedFnPtr + _slots[814] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[790] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") + : _slots[814] = nativeContext.LoadFunction("SDL_ReadU32BE", "SDL3") ) )(src, value); @@ -83503,9 +86504,9 @@ public static MaybeBool ReadU32BE(IOStreamHandle src, Ref value) => byte ISdl.ReadU32LE(IOStreamHandle src, uint* value) => ( (delegate* unmanaged)( - _slots[791] is not null and var loadedFnPtr + _slots[815] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[791] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") + : _slots[815] = nativeContext.LoadFunction("SDL_ReadU32LE", "SDL3") ) )(src, value); @@ -83538,9 +86539,9 @@ public static MaybeBool ReadU32LE(IOStreamHandle src, Ref value) => byte ISdl.ReadU64BE(IOStreamHandle src, ulong* value) => ( (delegate* unmanaged)( - _slots[792] is not null and var loadedFnPtr + _slots[816] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[792] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") + : _slots[816] = nativeContext.LoadFunction("SDL_ReadU64BE", "SDL3") ) )(src, value); @@ -83573,9 +86574,9 @@ public static MaybeBool ReadU64BE(IOStreamHandle src, Ref value) => byte ISdl.ReadU64LE(IOStreamHandle src, ulong* value) => ( (delegate* unmanaged)( - _slots[793] is not null and var loadedFnPtr + _slots[817] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[793] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") + : _slots[817] = nativeContext.LoadFunction("SDL_ReadU64LE", "SDL3") ) )(src, value); @@ -83608,9 +86609,9 @@ public static MaybeBool ReadU64LE(IOStreamHandle src, Ref value) => byte ISdl.ReadU8(IOStreamHandle src, byte* value) => ( (delegate* unmanaged)( - _slots[794] is not null and var loadedFnPtr + _slots[818] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[794] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") + : _slots[818] = nativeContext.LoadFunction("SDL_ReadU8", "SDL3") ) )(src, value); @@ -83642,9 +86643,9 @@ public static MaybeBool ReadU8(IOStreamHandle src, Ref value) => void* ISdl.Realloc(void* mem, nuint size) => ( (delegate* unmanaged)( - _slots[795] is not null and var loadedFnPtr + _slots[819] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[795] = nativeContext.LoadFunction("SDL_realloc", "SDL3") + : _slots[819] = nativeContext.LoadFunction("SDL_realloc", "SDL3") ) )(mem, size); @@ -83675,9 +86676,9 @@ Ptr ISdl.Realloc(Ref mem, nuint size) byte ISdl.RegisterApp(sbyte* name, uint style, void* hInst) => ( (delegate* unmanaged)( - _slots[796] is not null and var loadedFnPtr + _slots[820] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[796] = nativeContext.LoadFunction("SDL_RegisterApp", "SDL3") + : _slots[820] = nativeContext.LoadFunction("SDL_RegisterApp", "SDL3") ) )(name, style, hInst); @@ -83711,9 +86712,9 @@ public static MaybeBool RegisterApp(Ref name, uint style, Ref hInst uint ISdl.RegisterEvents(int numevents) => ( (delegate* unmanaged)( - _slots[797] is not null and var loadedFnPtr + _slots[821] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[797] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") + : _slots[821] = nativeContext.LoadFunction("SDL_RegisterEvents", "SDL3") ) )(numevents); @@ -83728,9 +86729,9 @@ _slots[797] is not null and var loadedFnPtr void ISdl.ReleaseCameraFrame(CameraHandle camera, Surface* frame) => ( (delegate* unmanaged)( - _slots[798] is not null and var loadedFnPtr + _slots[822] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[798] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") + : _slots[822] = nativeContext.LoadFunction("SDL_ReleaseCameraFrame", "SDL3") ) )(camera, frame); @@ -83763,9 +86764,9 @@ public static void ReleaseCameraFrame(CameraHandle camera, Ref frame) = void ISdl.ReleaseGpuBuffer(GpuDeviceHandle device, GpuBufferHandle buffer) => ( (delegate* unmanaged)( - _slots[799] is not null and var loadedFnPtr + _slots[823] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[799] = nativeContext.LoadFunction("SDL_ReleaseGPUBuffer", "SDL3") + : _slots[823] = nativeContext.LoadFunction("SDL_ReleaseGPUBuffer", "SDL3") ) )(device, buffer); @@ -83784,9 +86785,9 @@ GpuComputePipelineHandle compute_pipeline ) => ( (delegate* unmanaged)( - _slots[800] is not null and var loadedFnPtr + _slots[824] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[800] = nativeContext.LoadFunction( + : _slots[824] = nativeContext.LoadFunction( "SDL_ReleaseGPUComputePipeline", "SDL3" ) @@ -83807,9 +86808,9 @@ GpuComputePipelineHandle compute_pipeline void ISdl.ReleaseGpuFence(GpuDeviceHandle device, GpuFenceHandle fence) => ( (delegate* unmanaged)( - _slots[801] is not null and var loadedFnPtr + _slots[825] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[801] = nativeContext.LoadFunction("SDL_ReleaseGPUFence", "SDL3") + : _slots[825] = nativeContext.LoadFunction("SDL_ReleaseGPUFence", "SDL3") ) )(device, fence); @@ -83828,9 +86829,9 @@ GpuGraphicsPipelineHandle graphics_pipeline ) => ( (delegate* unmanaged)( - _slots[802] is not null and var loadedFnPtr + _slots[826] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[802] = nativeContext.LoadFunction( + : _slots[826] = nativeContext.LoadFunction( "SDL_ReleaseGPUGraphicsPipeline", "SDL3" ) @@ -83851,9 +86852,9 @@ GpuGraphicsPipelineHandle graphics_pipeline void ISdl.ReleaseGpuSampler(GpuDeviceHandle device, GpuSamplerHandle sampler) => ( (delegate* unmanaged)( - _slots[803] is not null and var loadedFnPtr + _slots[827] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[803] = nativeContext.LoadFunction("SDL_ReleaseGPUSampler", "SDL3") + : _slots[827] = nativeContext.LoadFunction("SDL_ReleaseGPUSampler", "SDL3") ) )(device, sampler); @@ -83869,9 +86870,9 @@ public static void ReleaseGpuSampler(GpuDeviceHandle device, GpuSamplerHandle sa void ISdl.ReleaseGpuShader(GpuDeviceHandle device, GpuShaderHandle shader) => ( (delegate* unmanaged)( - _slots[804] is not null and var loadedFnPtr + _slots[828] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[804] = nativeContext.LoadFunction("SDL_ReleaseGPUShader", "SDL3") + : _slots[828] = nativeContext.LoadFunction("SDL_ReleaseGPUShader", "SDL3") ) )(device, shader); @@ -83887,9 +86888,9 @@ public static void ReleaseGpuShader(GpuDeviceHandle device, GpuShaderHandle shad void ISdl.ReleaseGpuTexture(GpuDeviceHandle device, GpuTextureHandle texture) => ( (delegate* unmanaged)( - _slots[805] is not null and var loadedFnPtr + _slots[829] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[805] = nativeContext.LoadFunction("SDL_ReleaseGPUTexture", "SDL3") + : _slots[829] = nativeContext.LoadFunction("SDL_ReleaseGPUTexture", "SDL3") ) )(device, texture); @@ -83908,9 +86909,9 @@ GpuTransferBufferHandle transfer_buffer ) => ( (delegate* unmanaged)( - _slots[806] is not null and var loadedFnPtr + _slots[830] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[806] = nativeContext.LoadFunction( + : _slots[830] = nativeContext.LoadFunction( "SDL_ReleaseGPUTransferBuffer", "SDL3" ) @@ -83931,9 +86932,9 @@ GpuTransferBufferHandle transfer_buffer void ISdl.ReleaseWindowFromGpuDevice(GpuDeviceHandle device, WindowHandle window) => ( (delegate* unmanaged)( - _slots[807] is not null and var loadedFnPtr + _slots[831] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[807] = nativeContext.LoadFunction( + : _slots[831] = nativeContext.LoadFunction( "SDL_ReleaseWindowFromGPUDevice", "SDL3" ) @@ -83963,9 +86964,9 @@ MaybeBool ISdl.ReloadGamepadMappings() => byte ISdl.ReloadGamepadMappingsRaw() => ( (delegate* unmanaged)( - _slots[808] is not null and var loadedFnPtr + _slots[832] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[808] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") + : _slots[832] = nativeContext.LoadFunction("SDL_ReloadGamepadMappings", "SDL3") ) )(); @@ -83980,9 +86981,9 @@ _slots[808] is not null and var loadedFnPtr void ISdl.RemoveEventWatch(EventFilter filter, void* userdata) => ( (delegate* unmanaged)( - _slots[809] is not null and var loadedFnPtr + _slots[833] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[809] = nativeContext.LoadFunction("SDL_RemoveEventWatch", "SDL3") + : _slots[833] = nativeContext.LoadFunction("SDL_RemoveEventWatch", "SDL3") ) )(filter, userdata); @@ -84015,9 +87016,9 @@ public static void RemoveEventWatch(EventFilter filter, Ref userdata) => void ISdl.RemoveHintCallback(sbyte* name, HintCallback callback, void* userdata) => ( (delegate* unmanaged)( - _slots[810] is not null and var loadedFnPtr + _slots[834] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[810] = nativeContext.LoadFunction("SDL_RemoveHintCallback", "SDL3") + : _slots[834] = nativeContext.LoadFunction("SDL_RemoveHintCallback", "SDL3") ) )(name, callback, userdata); @@ -84051,9 +87052,9 @@ public static void RemoveHintCallback(Ref name, HintCallback callback, Re byte ISdl.RemovePath(sbyte* path) => ( (delegate* unmanaged)( - _slots[811] is not null and var loadedFnPtr + _slots[835] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[811] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") + : _slots[835] = nativeContext.LoadFunction("SDL_RemovePath", "SDL3") ) )(path); @@ -84084,9 +87085,9 @@ MaybeBool ISdl.RemovePath(Ref path) byte ISdl.RemoveStoragePath(StorageHandle storage, sbyte* path) => ( (delegate* unmanaged)( - _slots[812] is not null and var loadedFnPtr + _slots[836] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[812] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") + : _slots[836] = nativeContext.LoadFunction("SDL_RemoveStoragePath", "SDL3") ) )(storage, path); @@ -84119,9 +87120,9 @@ public static MaybeBool RemoveStoragePath(StorageHandle storage, Ref ( (delegate* unmanaged)( - _slots[813] is not null and var loadedFnPtr + _slots[837] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[813] = nativeContext.LoadFunction( + : _slots[837] = nativeContext.LoadFunction( "SDL_RemoveSurfaceAlternateImages", "SDL3" ) @@ -84168,9 +87169,9 @@ MaybeBool ISdl.RemoveTimer(uint id) => byte ISdl.RemoveTimerRaw(uint id) => ( (delegate* unmanaged)( - _slots[814] is not null and var loadedFnPtr + _slots[838] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[814] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") + : _slots[838] = nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3") ) )(id); @@ -84185,9 +87186,9 @@ _slots[814] is not null and var loadedFnPtr byte ISdl.RenamePath(sbyte* oldpath, sbyte* newpath) => ( (delegate* unmanaged)( - _slots[815] is not null and var loadedFnPtr + _slots[839] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[815] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") + : _slots[839] = nativeContext.LoadFunction("SDL_RenamePath", "SDL3") ) )(oldpath, newpath); @@ -84221,9 +87222,9 @@ public static MaybeBool RenamePath(Ref oldpath, Ref newpath) byte ISdl.RenameStoragePath(StorageHandle storage, sbyte* oldpath, sbyte* newpath) => ( (delegate* unmanaged)( - _slots[816] is not null and var loadedFnPtr + _slots[840] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[816] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") + : _slots[840] = nativeContext.LoadFunction("SDL_RenameStoragePath", "SDL3") ) )(storage, oldpath, newpath); @@ -84277,9 +87278,9 @@ public static MaybeBool RenderClear(RendererHandle renderer) => byte ISdl.RenderClearRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[817] is not null and var loadedFnPtr + _slots[841] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[817] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") + : _slots[841] = nativeContext.LoadFunction("SDL_RenderClear", "SDL3") ) )(renderer); @@ -84307,9 +87308,9 @@ public static MaybeBool RenderClipEnabled(RendererHandle renderer) => byte ISdl.RenderClipEnabledRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[818] is not null and var loadedFnPtr + _slots[842] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[818] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") + : _slots[842] = nativeContext.LoadFunction("SDL_RenderClipEnabled", "SDL3") ) )(renderer); @@ -84331,9 +87332,9 @@ byte ISdl.RenderCoordinatesFromWindow( ) => ( (delegate* unmanaged)( - _slots[819] is not null and var loadedFnPtr + _slots[843] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[819] = nativeContext.LoadFunction( + : _slots[843] = nativeContext.LoadFunction( "SDL_RenderCoordinatesFromWindow", "SDL3" ) @@ -84400,9 +87401,9 @@ byte ISdl.RenderCoordinatesToWindow( ) => ( (delegate* unmanaged)( - _slots[820] is not null and var loadedFnPtr + _slots[844] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[820] = nativeContext.LoadFunction( + : _slots[844] = nativeContext.LoadFunction( "SDL_RenderCoordinatesToWindow", "SDL3" ) @@ -84463,9 +87464,9 @@ Ref window_y byte ISdl.RenderDebugText(RendererHandle renderer, float x, float y, sbyte* str) => ( (delegate* unmanaged)( - _slots[821] is not null and var loadedFnPtr + _slots[845] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[821] = nativeContext.LoadFunction("SDL_RenderDebugText", "SDL3") + : _slots[845] = nativeContext.LoadFunction("SDL_RenderDebugText", "SDL3") ) )(renderer, x, y, str); @@ -84502,9 +87503,9 @@ Ref str byte ISdl.RenderFillRect(RendererHandle renderer, FRect* rect) => ( (delegate* unmanaged)( - _slots[822] is not null and var loadedFnPtr + _slots[846] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[822] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") + : _slots[846] = nativeContext.LoadFunction("SDL_RenderFillRect", "SDL3") ) )(renderer, rect); @@ -84537,9 +87538,9 @@ public static MaybeBool RenderFillRect(RendererHandle renderer, Ref byte ISdl.RenderFillRects(RendererHandle renderer, FRect* rects, int count) => ( (delegate* unmanaged)( - _slots[823] is not null and var loadedFnPtr + _slots[847] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[823] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") + : _slots[847] = nativeContext.LoadFunction("SDL_RenderFillRects", "SDL3") ) )(renderer, rects, count); @@ -84583,9 +87584,9 @@ int num_indices ) => ( (delegate* unmanaged)( - _slots[824] is not null and var loadedFnPtr + _slots[848] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[824] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") + : _slots[848] = nativeContext.LoadFunction("SDL_RenderGeometry", "SDL3") ) )(renderer, texture, vertices, num_vertices, indices, num_indices); @@ -84674,9 +87675,9 @@ int size_indices int, int, byte>)( - _slots[825] is not null and var loadedFnPtr + _slots[849] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[825] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") + : _slots[849] = nativeContext.LoadFunction("SDL_RenderGeometryRaw", "SDL3") ) )( renderer, @@ -84828,9 +87829,9 @@ float y2 byte ISdl.RenderLineRaw(RendererHandle renderer, float x1, float y1, float x2, float y2) => ( (delegate* unmanaged)( - _slots[826] is not null and var loadedFnPtr + _slots[850] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[826] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") + : _slots[850] = nativeContext.LoadFunction("SDL_RenderLine", "SDL3") ) )(renderer, x1, y1, x2, y2); @@ -84851,9 +87852,9 @@ float y2 byte ISdl.RenderLines(RendererHandle renderer, FPoint* points, int count) => ( (delegate* unmanaged)( - _slots[827] is not null and var loadedFnPtr + _slots[851] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[827] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") + : _slots[851] = nativeContext.LoadFunction("SDL_RenderLines", "SDL3") ) )(renderer, points, count); @@ -84901,9 +87902,9 @@ public static MaybeBool RenderPoint(RendererHandle renderer, float x, floa byte ISdl.RenderPointRaw(RendererHandle renderer, float x, float y) => ( (delegate* unmanaged)( - _slots[828] is not null and var loadedFnPtr + _slots[852] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[828] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") + : _slots[852] = nativeContext.LoadFunction("SDL_RenderPoint", "SDL3") ) )(renderer, x, y); @@ -84919,9 +87920,9 @@ public static byte RenderPointRaw(RendererHandle renderer, float x, float y) => byte ISdl.RenderPoints(RendererHandle renderer, FPoint* points, int count) => ( (delegate* unmanaged)( - _slots[829] is not null and var loadedFnPtr + _slots[853] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[829] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") + : _slots[853] = nativeContext.LoadFunction("SDL_RenderPoints", "SDL3") ) )(renderer, points, count); @@ -84969,9 +87970,9 @@ public static MaybeBool RenderPresent(RendererHandle renderer) => byte ISdl.RenderPresentRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[830] is not null and var loadedFnPtr + _slots[854] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[830] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") + : _slots[854] = nativeContext.LoadFunction("SDL_RenderPresent", "SDL3") ) )(renderer); @@ -84987,9 +87988,9 @@ public static byte RenderPresentRaw(RendererHandle renderer) => Surface* ISdl.RenderReadPixels(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[831] is not null and var loadedFnPtr + _slots[855] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[831] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") + : _slots[855] = nativeContext.LoadFunction("SDL_RenderReadPixels", "SDL3") ) )(renderer, rect); @@ -85022,9 +88023,9 @@ public static Ptr RenderReadPixels(RendererHandle renderer, Ref r byte ISdl.RenderRect(RendererHandle renderer, FRect* rect) => ( (delegate* unmanaged)( - _slots[832] is not null and var loadedFnPtr + _slots[856] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[832] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") + : _slots[856] = nativeContext.LoadFunction("SDL_RenderRect", "SDL3") ) )(renderer, rect); @@ -85057,9 +88058,9 @@ public static MaybeBool RenderRect(RendererHandle renderer, Ref rec byte ISdl.RenderRects(RendererHandle renderer, FRect* rects, int count) => ( (delegate* unmanaged)( - _slots[833] is not null and var loadedFnPtr + _slots[857] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[833] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") + : _slots[857] = nativeContext.LoadFunction("SDL_RenderRects", "SDL3") ) )(renderer, rects, count); @@ -85100,9 +88101,9 @@ byte ISdl.RenderTexture( ) => ( (delegate* unmanaged)( - _slots[834] is not null and var loadedFnPtr + _slots[858] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[834] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") + : _slots[858] = nativeContext.LoadFunction("SDL_RenderTexture", "SDL3") ) )(renderer, texture, srcrect, dstrect); @@ -85177,9 +88178,9 @@ byte ISdl.RenderTexture9Grid( float, FRect*, byte>)( - _slots[835] is not null and var loadedFnPtr + _slots[859] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[835] = nativeContext.LoadFunction("SDL_RenderTexture9Grid", "SDL3") + : _slots[859] = nativeContext.LoadFunction("SDL_RenderTexture9Grid", "SDL3") ) )( renderer, @@ -85280,6 +88281,147 @@ Ref dstrect dstrect ); + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ) => + ( + (delegate* unmanaged< + RendererHandle, + Texture*, + FRect*, + float, + float, + float, + float, + float, + FRect*, + float, + byte>)( + _slots[860] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[860] = nativeContext.LoadFunction( + "SDL_RenderTexture9GridTiled", + "SDL3" + ) + ) + )( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte RenderTexture9GridTiled( + RendererHandle renderer, + Texture* texture, + FRect* srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + FRect* dstrect, + float tileScale + ) => + DllImport.RenderTexture9GridTiled( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ) + { + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte) + ((ISdl)this).RenderTexture9GridTiled( + renderer, + __dsl_texture, + __dsl_srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + __dsl_dstrect, + tileScale + ); + } + } + + [NativeName("SDL_RenderTexture9GridTiled")] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture9GridTiled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderTexture9GridTiled( + RendererHandle renderer, + Ref texture, + Ref srcrect, + float left_width, + float right_width, + float top_height, + float bottom_height, + float scale, + Ref dstrect, + float tileScale + ) => + DllImport.RenderTexture9GridTiled( + renderer, + texture, + srcrect, + left_width, + right_width, + top_height, + bottom_height, + scale, + dstrect, + tileScale + ); + [NativeName("SDL_RenderTextureAffine")] [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureAffine")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] @@ -85300,9 +88442,9 @@ byte ISdl.RenderTextureAffine( FPoint*, FPoint*, byte>)( - _slots[836] is not null and var loadedFnPtr + _slots[861] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[836] = nativeContext.LoadFunction("SDL_RenderTextureAffine", "SDL3") + : _slots[861] = nativeContext.LoadFunction("SDL_RenderTextureAffine", "SDL3") ) )(renderer, texture, srcrect, origin, right, down); @@ -85383,9 +88525,9 @@ FlipMode flip FPoint*, FlipMode, byte>)( - _slots[837] is not null and var loadedFnPtr + _slots[862] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[837] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") + : _slots[862] = nativeContext.LoadFunction("SDL_RenderTextureRotated", "SDL3") ) )(renderer, texture, srcrect, dstrect, angle, center, flip); @@ -85459,9 +88601,9 @@ byte ISdl.RenderTextureTiled( ) => ( (delegate* unmanaged)( - _slots[838] is not null and var loadedFnPtr + _slots[863] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[838] = nativeContext.LoadFunction("SDL_RenderTextureTiled", "SDL3") + : _slots[863] = nativeContext.LoadFunction("SDL_RenderTextureTiled", "SDL3") ) )(renderer, texture, srcrect, scale, dstrect); @@ -85532,9 +88674,9 @@ public static MaybeBool RenderViewportSet(RendererHandle renderer) => byte ISdl.RenderViewportSetRaw(RendererHandle renderer) => ( (delegate* unmanaged)( - _slots[839] is not null and var loadedFnPtr + _slots[864] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[839] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") + : _slots[864] = nativeContext.LoadFunction("SDL_RenderViewportSet", "SDL3") ) )(renderer); @@ -85550,9 +88692,9 @@ public static byte RenderViewportSetRaw(RendererHandle renderer) => AssertState ISdl.ReportAssertion(AssertData* data, sbyte* func, sbyte* file, int line) => ( (delegate* unmanaged)( - _slots[840] is not null and var loadedFnPtr + _slots[865] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[840] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") + : _slots[865] = nativeContext.LoadFunction("SDL_ReportAssertion", "SDL3") ) )(data, func, file, line); @@ -85601,9 +88743,9 @@ int line void ISdl.ResetAssertionReport() => ( (delegate* unmanaged)( - _slots[841] is not null and var loadedFnPtr + _slots[866] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[841] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") + : _slots[866] = nativeContext.LoadFunction("SDL_ResetAssertionReport", "SDL3") ) )(); @@ -85618,9 +88760,9 @@ _slots[841] is not null and var loadedFnPtr byte ISdl.ResetHint(sbyte* name) => ( (delegate* unmanaged)( - _slots[842] is not null and var loadedFnPtr + _slots[867] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[842] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") + : _slots[867] = nativeContext.LoadFunction("SDL_ResetHint", "SDL3") ) )(name); @@ -85651,9 +88793,9 @@ MaybeBool ISdl.ResetHint(Ref name) void ISdl.ResetHints() => ( (delegate* unmanaged)( - _slots[843] is not null and var loadedFnPtr + _slots[868] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[843] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") + : _slots[868] = nativeContext.LoadFunction("SDL_ResetHints", "SDL3") ) )(); @@ -85668,9 +88810,9 @@ _slots[843] is not null and var loadedFnPtr void ISdl.ResetKeyboard() => ( (delegate* unmanaged)( - _slots[844] is not null and var loadedFnPtr + _slots[869] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[844] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") + : _slots[869] = nativeContext.LoadFunction("SDL_ResetKeyboard", "SDL3") ) )(); @@ -85685,9 +88827,9 @@ _slots[844] is not null and var loadedFnPtr void ISdl.ResetLogPriorities() => ( (delegate* unmanaged)( - _slots[845] is not null and var loadedFnPtr + _slots[870] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[845] = nativeContext.LoadFunction("SDL_ResetLogPriorities", "SDL3") + : _slots[870] = nativeContext.LoadFunction("SDL_ResetLogPriorities", "SDL3") ) )(); @@ -85714,9 +88856,9 @@ public static MaybeBool RestoreWindow(WindowHandle window) => byte ISdl.RestoreWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[846] is not null and var loadedFnPtr + _slots[871] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[846] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") + : _slots[871] = nativeContext.LoadFunction("SDL_RestoreWindow", "SDL3") ) )(window); @@ -85743,9 +88885,9 @@ public static MaybeBool ResumeAudioDevice(uint devid) => byte ISdl.ResumeAudioDeviceRaw(uint devid) => ( (delegate* unmanaged)( - _slots[847] is not null and var loadedFnPtr + _slots[872] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[847] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") + : _slots[872] = nativeContext.LoadFunction("SDL_ResumeAudioDevice", "SDL3") ) )(devid); @@ -85772,9 +88914,9 @@ public static MaybeBool ResumeAudioStreamDevice(AudioStreamHandle stream) byte ISdl.ResumeAudioStreamDeviceRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[848] is not null and var loadedFnPtr + _slots[873] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[848] = nativeContext.LoadFunction( + : _slots[873] = nativeContext.LoadFunction( "SDL_ResumeAudioStreamDevice", "SDL3" ) @@ -85805,9 +88947,9 @@ public static MaybeBool ResumeHaptic(HapticHandle haptic) => byte ISdl.ResumeHapticRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[849] is not null and var loadedFnPtr + _slots[874] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[849] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") + : _slots[874] = nativeContext.LoadFunction("SDL_ResumeHaptic", "SDL3") ) )(haptic); @@ -85816,15 +88958,50 @@ _slots[849] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static byte ResumeHapticRaw(HapticHandle haptic) => DllImport.ResumeHapticRaw(haptic); + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.RotateSurface(Surface* surface, float angle) => + ( + (delegate* unmanaged)( + _slots[875] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[875] = nativeContext.LoadFunction("SDL_RotateSurface", "SDL3") + ) + )(surface, angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* RotateSurface(Surface* surface, float angle) => + DllImport.RotateSurface(surface, angle); + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.RotateSurface(Ref surface, float angle) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)((ISdl)this).RotateSurface(__dsl_surface, angle); + } + } + + [NativeName("SDL_RotateSurface")] + [NativeFunction("SDL3", EntryPoint = "SDL_RotateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr RotateSurface(Ref surface, float angle) => + DllImport.RotateSurface(surface, angle); + [NativeName("SDL_round")] [NativeFunction("SDL3", EntryPoint = "SDL_round")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] double ISdl.Round(double x) => ( (delegate* unmanaged)( - _slots[850] is not null and var loadedFnPtr + _slots[876] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[850] = nativeContext.LoadFunction("SDL_round", "SDL3") + : _slots[876] = nativeContext.LoadFunction("SDL_round", "SDL3") ) )(x); @@ -85839,9 +89016,9 @@ _slots[850] is not null and var loadedFnPtr float ISdl.Roundf(float x) => ( (delegate* unmanaged)( - _slots[851] is not null and var loadedFnPtr + _slots[877] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[851] = nativeContext.LoadFunction("SDL_roundf", "SDL3") + : _slots[877] = nativeContext.LoadFunction("SDL_roundf", "SDL3") ) )(x); @@ -85889,9 +89066,9 @@ uint duration_ms ) => ( (delegate* unmanaged)( - _slots[852] is not null and var loadedFnPtr + _slots[878] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[852] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") + : _slots[878] = nativeContext.LoadFunction("SDL_RumbleGamepad", "SDL3") ) )(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); @@ -85950,9 +89127,9 @@ uint duration_ms ) => ( (delegate* unmanaged)( - _slots[853] is not null and var loadedFnPtr + _slots[879] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[853] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") + : _slots[879] = nativeContext.LoadFunction("SDL_RumbleGamepadTriggers", "SDL3") ) )(gamepad, left_rumble, right_rumble, duration_ms); @@ -86011,9 +89188,9 @@ uint duration_ms ) => ( (delegate* unmanaged)( - _slots[854] is not null and var loadedFnPtr + _slots[880] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[854] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") + : _slots[880] = nativeContext.LoadFunction("SDL_RumbleJoystick", "SDL3") ) )(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); @@ -86072,9 +89249,9 @@ uint duration_ms ) => ( (delegate* unmanaged)( - _slots[855] is not null and var loadedFnPtr + _slots[881] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[855] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") + : _slots[881] = nativeContext.LoadFunction("SDL_RumbleJoystickTriggers", "SDL3") ) )(joystick, left_rumble, right_rumble, duration_ms); @@ -86094,9 +89271,9 @@ uint duration_ms int ISdl.RunApp(int argc, sbyte** argv, MainFunc mainFunction, void* reserved) => ( (delegate* unmanaged)( - _slots[856] is not null and var loadedFnPtr + _slots[882] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[856] = nativeContext.LoadFunction("SDL_RunApp", "SDL3") + : _slots[882] = nativeContext.LoadFunction("SDL_RunApp", "SDL3") ) )(argc, argv, mainFunction, reserved); @@ -86145,9 +89322,9 @@ uint iterations byte ISdl.RunHapticEffectRaw(HapticHandle haptic, int effect, uint iterations) => ( (delegate* unmanaged)( - _slots[857] is not null and var loadedFnPtr + _slots[883] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[857] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") + : _slots[883] = nativeContext.LoadFunction("SDL_RunHapticEffect", "SDL3") ) )(haptic, effect, iterations); @@ -86163,9 +89340,9 @@ public static byte RunHapticEffectRaw(HapticHandle haptic, int effect, uint iter byte ISdl.RunOnMainThread(MainThreadCallback callback, void* userdata, byte wait_complete) => ( (delegate* unmanaged)( - _slots[858] is not null and var loadedFnPtr + _slots[884] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[858] = nativeContext.LoadFunction("SDL_RunOnMainThread", "SDL3") + : _slots[884] = nativeContext.LoadFunction("SDL_RunOnMainThread", "SDL3") ) )(callback, userdata, wait_complete); @@ -86209,9 +89386,9 @@ MaybeBool wait_complete byte ISdl.SaveBmp(Surface* surface, sbyte* file) => ( (delegate* unmanaged)( - _slots[859] is not null and var loadedFnPtr + _slots[885] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[859] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") + : _slots[885] = nativeContext.LoadFunction("SDL_SaveBMP", "SDL3") ) )(surface, file); @@ -86244,9 +89421,9 @@ public static MaybeBool SaveBmp(Ref surface, Ref file) => byte ISdl.SaveBmpIO(Surface* surface, IOStreamHandle dst, byte closeio) => ( (delegate* unmanaged)( - _slots[860] is not null and var loadedFnPtr + _slots[886] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[860] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") + : _slots[886] = nativeContext.LoadFunction("SDL_SaveBMP_IO", "SDL3") ) )(surface, dst, closeio); @@ -86286,9 +89463,9 @@ MaybeBool closeio byte ISdl.SaveFile(sbyte* file, void* data, nuint datasize) => ( (delegate* unmanaged)( - _slots[861] is not null and var loadedFnPtr + _slots[887] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[861] = nativeContext.LoadFunction("SDL_SaveFile", "SDL3") + : _slots[887] = nativeContext.LoadFunction("SDL_SaveFile", "SDL3") ) )(file, data, datasize); @@ -86322,9 +89499,9 @@ public static MaybeBool SaveFile(Ref file, Ref data, nuint datasize byte ISdl.SaveFileIO(IOStreamHandle src, void* data, nuint datasize, byte closeio) => ( (delegate* unmanaged)( - _slots[862] is not null and var loadedFnPtr + _slots[888] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[862] = nativeContext.LoadFunction("SDL_SaveFile_IO", "SDL3") + : _slots[888] = nativeContext.LoadFunction("SDL_SaveFile_IO", "SDL3") ) )(src, data, datasize, closeio); @@ -86361,15 +89538,92 @@ public static MaybeBool SaveFileIO( MaybeBool closeio ) => DllImport.SaveFileIO(src, data, datasize, closeio); + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SavePng(Surface* surface, sbyte* file) => + ( + (delegate* unmanaged)( + _slots[889] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[889] = nativeContext.LoadFunction("SDL_SavePNG", "SDL3") + ) + )(surface, file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SavePng(Surface* surface, sbyte* file) => DllImport.SavePng(surface, file); + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SavePng(Ref surface, Ref file) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)((ISdl)this).SavePng(__dsl_surface, __dsl_file); + } + } + + [NativeName("SDL_SavePNG")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SavePng(Ref surface, Ref file) => + DllImport.SavePng(surface, file); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio) => + ( + (delegate* unmanaged)( + _slots[890] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[890] = nativeContext.LoadFunction("SDL_SavePNG_IO", "SDL3") + ) + )(surface, dst, closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SavePngIO(Surface* surface, IOStreamHandle dst, byte closeio) => + DllImport.SavePngIO(surface, dst, closeio); + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(byte)((ISdl)this).SavePngIO(__dsl_surface, dst, (byte)closeio); + } + } + + [NativeName("SDL_SavePNG_IO")] + [NativeFunction("SDL3", EntryPoint = "SDL_SavePNG_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SavePngIO( + Ref surface, + IOStreamHandle dst, + MaybeBool closeio + ) => DllImport.SavePngIO(surface, dst, closeio); + [NativeName("SDL_scalbn")] [NativeFunction("SDL3", EntryPoint = "SDL_scalbn")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] double ISdl.Scalbn(double x, int n) => ( (delegate* unmanaged)( - _slots[863] is not null and var loadedFnPtr + _slots[891] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[863] = nativeContext.LoadFunction("SDL_scalbn", "SDL3") + : _slots[891] = nativeContext.LoadFunction("SDL_scalbn", "SDL3") ) )(x, n); @@ -86384,9 +89638,9 @@ _slots[863] is not null and var loadedFnPtr float ISdl.Scalbnf(float x, int n) => ( (delegate* unmanaged)( - _slots[864] is not null and var loadedFnPtr + _slots[892] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[864] = nativeContext.LoadFunction("SDL_scalbnf", "SDL3") + : _slots[892] = nativeContext.LoadFunction("SDL_scalbnf", "SDL3") ) )(x, n); @@ -86401,9 +89655,9 @@ _slots[864] is not null and var loadedFnPtr Surface* ISdl.ScaleSurface(Surface* surface, int width, int height, ScaleMode scaleMode) => ( (delegate* unmanaged)( - _slots[865] is not null and var loadedFnPtr + _slots[893] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[865] = nativeContext.LoadFunction("SDL_ScaleSurface", "SDL3") + : _slots[893] = nativeContext.LoadFunction("SDL_ScaleSurface", "SDL3") ) )(surface, width, height, scaleMode); @@ -86456,9 +89710,9 @@ public static MaybeBool ScreenKeyboardShown(WindowHandle window) => byte ISdl.ScreenKeyboardShownRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[866] is not null and var loadedFnPtr + _slots[894] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[866] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") + : _slots[894] = nativeContext.LoadFunction("SDL_ScreenKeyboardShown", "SDL3") ) )(window); @@ -86485,9 +89739,9 @@ MaybeBool ISdl.ScreenSaverEnabled() => byte ISdl.ScreenSaverEnabledRaw() => ( (delegate* unmanaged)( - _slots[867] is not null and var loadedFnPtr + _slots[895] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[867] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") + : _slots[895] = nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3") ) )(); @@ -86502,9 +89756,9 @@ _slots[867] is not null and var loadedFnPtr long ISdl.SeekIO(IOStreamHandle context, long offset, IOWhence whence) => ( (delegate* unmanaged)( - _slots[868] is not null and var loadedFnPtr + _slots[896] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[868] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") + : _slots[896] = nativeContext.LoadFunction("SDL_SeekIO", "SDL3") ) )(context, offset, whence); @@ -86520,9 +89774,9 @@ public static long SeekIO(IOStreamHandle context, long offset, IOWhence whence) byte ISdl.SendGamepadEffect(GamepadHandle gamepad, void* data, int size) => ( (delegate* unmanaged)( - _slots[869] is not null and var loadedFnPtr + _slots[897] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[869] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") + : _slots[897] = nativeContext.LoadFunction("SDL_SendGamepadEffect", "SDL3") ) )(gamepad, data, size); @@ -86555,9 +89809,9 @@ public static MaybeBool SendGamepadEffect(GamepadHandle gamepad, Ref data, byte ISdl.SendJoystickEffect(JoystickHandle joystick, void* data, int size) => ( (delegate* unmanaged)( - _slots[870] is not null and var loadedFnPtr + _slots[898] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[870] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") + : _slots[898] = nativeContext.LoadFunction("SDL_SendJoystickEffect", "SDL3") ) )(joystick, data, size); @@ -86597,9 +89851,9 @@ int num_values ) => ( (delegate* unmanaged)( - _slots[871] is not null and var loadedFnPtr + _slots[899] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[871] = nativeContext.LoadFunction( + : _slots[899] = nativeContext.LoadFunction( "SDL_SendJoystickVirtualSensorData", "SDL3" ) @@ -86661,9 +89915,9 @@ int num_values byte ISdl.SetAppMetadata(sbyte* appname, sbyte* appversion, sbyte* appidentifier) => ( (delegate* unmanaged)( - _slots[872] is not null and var loadedFnPtr + _slots[900] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[872] = nativeContext.LoadFunction("SDL_SetAppMetadata", "SDL3") + : _slots[900] = nativeContext.LoadFunction("SDL_SetAppMetadata", "SDL3") ) )(appname, appversion, appidentifier); @@ -86711,9 +89965,9 @@ Ref appidentifier byte ISdl.SetAppMetadataProperty(sbyte* name, sbyte* value) => ( (delegate* unmanaged)( - _slots[873] is not null and var loadedFnPtr + _slots[901] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[873] = nativeContext.LoadFunction("SDL_SetAppMetadataProperty", "SDL3") + : _slots[901] = nativeContext.LoadFunction("SDL_SetAppMetadataProperty", "SDL3") ) )(name, value); @@ -86748,9 +90002,9 @@ public static MaybeBool SetAppMetadataProperty(Ref name, Ref void ISdl.SetAssertionHandler(AssertionHandler handler, void* userdata) => ( (delegate* unmanaged)( - _slots[874] is not null and var loadedFnPtr + _slots[902] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[874] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") + : _slots[902] = nativeContext.LoadFunction("SDL_SetAssertionHandler", "SDL3") ) )(handler, userdata); @@ -86783,9 +90037,9 @@ public static void SetAssertionHandler(AssertionHandler handler, Ref userdata) = int ISdl.SetAtomicInt(AtomicInt* a, int v) => ( (delegate* unmanaged)( - _slots[875] is not null and var loadedFnPtr + _slots[903] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[875] = nativeContext.LoadFunction("SDL_SetAtomicInt", "SDL3") + : _slots[903] = nativeContext.LoadFunction("SDL_SetAtomicInt", "SDL3") ) )(a, v); @@ -86816,9 +90070,9 @@ int ISdl.SetAtomicInt(Ref a, int v) void* ISdl.SetAtomicPointer(void** a, void* v) => ( (delegate* unmanaged)( - _slots[876] is not null and var loadedFnPtr + _slots[904] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[876] = nativeContext.LoadFunction("SDL_SetAtomicPointer", "SDL3") + : _slots[904] = nativeContext.LoadFunction("SDL_SetAtomicPointer", "SDL3") ) )(a, v); @@ -86850,9 +90104,9 @@ Ptr ISdl.SetAtomicPointer(Ref2D a, Ref v) uint ISdl.SetAtomicU32(AtomicU32* a, uint v) => ( (delegate* unmanaged)( - _slots[877] is not null and var loadedFnPtr + _slots[905] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[877] = nativeContext.LoadFunction("SDL_SetAtomicU32", "SDL3") + : _slots[905] = nativeContext.LoadFunction("SDL_SetAtomicU32", "SDL3") ) )(a, v); @@ -86895,9 +90149,9 @@ public static MaybeBool SetAudioDeviceGain(uint devid, float gain) => byte ISdl.SetAudioDeviceGainRaw(uint devid, float gain) => ( (delegate* unmanaged)( - _slots[878] is not null and var loadedFnPtr + _slots[906] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[878] = nativeContext.LoadFunction("SDL_SetAudioDeviceGain", "SDL3") + : _slots[906] = nativeContext.LoadFunction("SDL_SetAudioDeviceGain", "SDL3") ) )(devid, gain); @@ -86913,9 +90167,9 @@ public static byte SetAudioDeviceGainRaw(uint devid, float gain) => byte ISdl.SetAudioPostmixCallback(uint devid, AudioPostmixCallback callback, void* userdata) => ( (delegate* unmanaged)( - _slots[879] is not null and var loadedFnPtr + _slots[907] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[879] = nativeContext.LoadFunction( + : _slots[907] = nativeContext.LoadFunction( "SDL_SetAudioPostmixCallback", "SDL3" ) @@ -86966,9 +90220,9 @@ byte ISdl.SetAudioStreamFormat( ) => ( (delegate* unmanaged)( - _slots[880] is not null and var loadedFnPtr + _slots[908] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[880] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") + : _slots[908] = nativeContext.LoadFunction("SDL_SetAudioStreamFormat", "SDL3") ) )(stream, src_spec, dst_spec); @@ -87027,9 +90281,9 @@ float ratio byte ISdl.SetAudioStreamFrequencyRatioRaw(AudioStreamHandle stream, float ratio) => ( (delegate* unmanaged)( - _slots[881] is not null and var loadedFnPtr + _slots[909] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[881] = nativeContext.LoadFunction( + : _slots[909] = nativeContext.LoadFunction( "SDL_SetAudioStreamFrequencyRatio", "SDL3" ) @@ -87060,9 +90314,9 @@ public static MaybeBool SetAudioStreamGain(AudioStreamHandle stream, float byte ISdl.SetAudioStreamGainRaw(AudioStreamHandle stream, float gain) => ( (delegate* unmanaged)( - _slots[882] is not null and var loadedFnPtr + _slots[910] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[882] = nativeContext.LoadFunction("SDL_SetAudioStreamGain", "SDL3") + : _slots[910] = nativeContext.LoadFunction("SDL_SetAudioStreamGain", "SDL3") ) )(stream, gain); @@ -87082,9 +90336,9 @@ byte ISdl.SetAudioStreamGetCallback( ) => ( (delegate* unmanaged)( - _slots[883] is not null and var loadedFnPtr + _slots[911] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[883] = nativeContext.LoadFunction( + : _slots[911] = nativeContext.LoadFunction( "SDL_SetAudioStreamGetCallback", "SDL3" ) @@ -87131,9 +90385,9 @@ Ref userdata byte ISdl.SetAudioStreamInputChannelMap(AudioStreamHandle stream, int* chmap, int count) => ( (delegate* unmanaged)( - _slots[884] is not null and var loadedFnPtr + _slots[912] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[884] = nativeContext.LoadFunction( + : _slots[912] = nativeContext.LoadFunction( "SDL_SetAudioStreamInputChannelMap", "SDL3" ) @@ -87180,9 +90434,9 @@ int count byte ISdl.SetAudioStreamOutputChannelMap(AudioStreamHandle stream, int* chmap, int count) => ( (delegate* unmanaged)( - _slots[885] is not null and var loadedFnPtr + _slots[913] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[885] = nativeContext.LoadFunction( + : _slots[913] = nativeContext.LoadFunction( "SDL_SetAudioStreamOutputChannelMap", "SDL3" ) @@ -87233,9 +90487,9 @@ byte ISdl.SetAudioStreamPutCallback( ) => ( (delegate* unmanaged)( - _slots[886] is not null and var loadedFnPtr + _slots[914] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[886] = nativeContext.LoadFunction( + : _slots[914] = nativeContext.LoadFunction( "SDL_SetAudioStreamPutCallback", "SDL3" ) @@ -87282,9 +90536,9 @@ Ref userdata byte ISdl.SetBooleanProperty(uint props, sbyte* name, byte value) => ( (delegate* unmanaged)( - _slots[887] is not null and var loadedFnPtr + _slots[915] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[887] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") + : _slots[915] = nativeContext.LoadFunction("SDL_SetBooleanProperty", "SDL3") ) )(props, name, value); @@ -87333,9 +90587,9 @@ nuint num_mime_types sbyte**, nuint, byte>)( - _slots[888] is not null and var loadedFnPtr + _slots[916] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[888] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") + : _slots[916] = nativeContext.LoadFunction("SDL_SetClipboardData", "SDL3") ) )(callback, cleanup, userdata, mime_types, num_mime_types); @@ -87393,9 +90647,9 @@ nuint num_mime_types byte ISdl.SetClipboardText(sbyte* text) => ( (delegate* unmanaged)( - _slots[889] is not null and var loadedFnPtr + _slots[917] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[889] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") + : _slots[917] = nativeContext.LoadFunction("SDL_SetClipboardText", "SDL3") ) )(text); @@ -87439,9 +90693,9 @@ public static MaybeBool SetCurrentThreadPriority(ThreadPriority priority) byte ISdl.SetCurrentThreadPriorityRaw(ThreadPriority priority) => ( (delegate* unmanaged)( - _slots[890] is not null and var loadedFnPtr + _slots[918] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[890] = nativeContext.LoadFunction( + : _slots[918] = nativeContext.LoadFunction( "SDL_SetCurrentThreadPriority", "SDL3" ) @@ -87471,9 +90725,9 @@ MaybeBool ISdl.SetCursor(CursorHandle cursor) => byte ISdl.SetCursorRaw(CursorHandle cursor) => ( (delegate* unmanaged)( - _slots[891] is not null and var loadedFnPtr + _slots[919] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[891] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") + : _slots[919] = nativeContext.LoadFunction("SDL_SetCursor", "SDL3") ) )(cursor); @@ -87482,15 +90736,54 @@ _slots[891] is not null and var loadedFnPtr [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] public static byte SetCursorRaw(CursorHandle cursor) => DllImport.SetCursorRaw(cursor); + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ) => (MaybeBool)(byte)((ISdl)this).SetDefaultTextureScaleModeRaw(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetDefaultTextureScaleMode( + RendererHandle renderer, + ScaleMode scale_mode + ) => DllImport.SetDefaultTextureScaleMode(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetDefaultTextureScaleModeRaw(RendererHandle renderer, ScaleMode scale_mode) => + ( + (delegate* unmanaged)( + _slots[920] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[920] = nativeContext.LoadFunction( + "SDL_SetDefaultTextureScaleMode", + "SDL3" + ) + ) + )(renderer, scale_mode); + + [NativeName("SDL_SetDefaultTextureScaleMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetDefaultTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetDefaultTextureScaleModeRaw( + RendererHandle renderer, + ScaleMode scale_mode + ) => DllImport.SetDefaultTextureScaleModeRaw(renderer, scale_mode); + [NativeName("SDL_setenv_unsafe")] [NativeFunction("SDL3", EntryPoint = "SDL_setenv_unsafe")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] int ISdl.SetenvUnsafe(sbyte* name, sbyte* value, int overwrite) => ( (delegate* unmanaged)( - _slots[892] is not null and var loadedFnPtr + _slots[921] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[892] = nativeContext.LoadFunction("SDL_setenv_unsafe", "SDL3") + : _slots[921] = nativeContext.LoadFunction("SDL_setenv_unsafe", "SDL3") ) )(name, value, overwrite); @@ -87529,9 +90822,9 @@ byte overwrite ) => ( (delegate* unmanaged)( - _slots[893] is not null and var loadedFnPtr + _slots[922] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[893] = nativeContext.LoadFunction("SDL_SetEnvironmentVariable", "SDL3") + : _slots[922] = nativeContext.LoadFunction("SDL_SetEnvironmentVariable", "SDL3") ) )(env, name, value, overwrite); @@ -87585,9 +90878,9 @@ MaybeBool overwrite byte ISdl.SetErrorV(sbyte* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[894] is not null and var loadedFnPtr + _slots[923] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[894] = nativeContext.LoadFunction("SDL_SetErrorV", "SDL3") + : _slots[923] = nativeContext.LoadFunction("SDL_SetErrorV", "SDL3") ) )(fmt, ap); @@ -87620,9 +90913,9 @@ public static MaybeBool SetErrorV(Ref fmt, Ref ap) => void ISdl.SetEventEnabled(uint type, byte enabled) => ( (delegate* unmanaged)( - _slots[895] is not null and var loadedFnPtr + _slots[924] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[895] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") + : _slots[924] = nativeContext.LoadFunction("SDL_SetEventEnabled", "SDL3") ) )(type, enabled); @@ -87650,9 +90943,9 @@ public static void SetEventEnabled(uint type, MaybeBool enabled) => void ISdl.SetEventFilter(EventFilter filter, void* userdata) => ( (delegate* unmanaged)( - _slots[896] is not null and var loadedFnPtr + _slots[925] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[896] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") + : _slots[925] = nativeContext.LoadFunction("SDL_SetEventFilter", "SDL3") ) )(filter, userdata); @@ -87685,9 +90978,9 @@ public static void SetEventFilter(EventFilter filter, Ref userdata) => byte ISdl.SetFloatProperty(uint props, sbyte* name, float value) => ( (delegate* unmanaged)( - _slots[897] is not null and var loadedFnPtr + _slots[926] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[897] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") + : _slots[926] = nativeContext.LoadFunction("SDL_SetFloatProperty", "SDL3") ) )(props, name, value); @@ -87720,9 +91013,9 @@ public static MaybeBool SetFloatProperty(uint props, Ref name, floa void ISdl.SetGamepadEventsEnabled(byte enabled) => ( (delegate* unmanaged)( - _slots[898] is not null and var loadedFnPtr + _slots[927] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[898] = nativeContext.LoadFunction( + : _slots[927] = nativeContext.LoadFunction( "SDL_SetGamepadEventsEnabled", "SDL3" ) @@ -87769,9 +91062,9 @@ byte blue byte ISdl.SetGamepadLedRaw(GamepadHandle gamepad, byte red, byte green, byte blue) => ( (delegate* unmanaged)( - _slots[899] is not null and var loadedFnPtr + _slots[928] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[899] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") + : _slots[928] = nativeContext.LoadFunction("SDL_SetGamepadLED", "SDL3") ) )(gamepad, red, green, blue); @@ -87787,9 +91080,9 @@ public static byte SetGamepadLedRaw(GamepadHandle gamepad, byte red, byte green, byte ISdl.SetGamepadMapping(uint instance_id, sbyte* mapping) => ( (delegate* unmanaged)( - _slots[900] is not null and var loadedFnPtr + _slots[929] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[900] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") + : _slots[929] = nativeContext.LoadFunction("SDL_SetGamepadMapping", "SDL3") ) )(instance_id, mapping); @@ -87835,9 +91128,9 @@ public static MaybeBool SetGamepadPlayerIndex(GamepadHandle gamepad, int p byte ISdl.SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_index) => ( (delegate* unmanaged)( - _slots[901] is not null and var loadedFnPtr + _slots[930] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[901] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") + : _slots[930] = nativeContext.LoadFunction("SDL_SetGamepadPlayerIndex", "SDL3") ) )(gamepad, player_index); @@ -87853,9 +91146,9 @@ public static byte SetGamepadPlayerIndexRaw(GamepadHandle gamepad, int player_in byte ISdl.SetGamepadSensorEnabled(GamepadHandle gamepad, SensorType type, byte enabled) => ( (delegate* unmanaged)( - _slots[902] is not null and var loadedFnPtr + _slots[931] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[902] = nativeContext.LoadFunction( + : _slots[931] = nativeContext.LoadFunction( "SDL_SetGamepadSensorEnabled", "SDL3" ) @@ -87916,9 +91209,9 @@ uint allowed_frames_in_flight ) => ( (delegate* unmanaged)( - _slots[903] is not null and var loadedFnPtr + _slots[932] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[903] = nativeContext.LoadFunction( + : _slots[932] = nativeContext.LoadFunction( "SDL_SetGPUAllowedFramesInFlight", "SDL3" ) @@ -87939,9 +91232,9 @@ uint allowed_frames_in_flight void ISdl.SetGpuBlendConstants(GpuRenderPassHandle render_pass, FColor blend_constants) => ( (delegate* unmanaged)( - _slots[904] is not null and var loadedFnPtr + _slots[933] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[904] = nativeContext.LoadFunction("SDL_SetGPUBlendConstants", "SDL3") + : _slots[933] = nativeContext.LoadFunction("SDL_SetGPUBlendConstants", "SDL3") ) )(render_pass, blend_constants); @@ -87959,9 +91252,9 @@ FColor blend_constants void ISdl.SetGpuBufferName(GpuDeviceHandle device, GpuBufferHandle buffer, sbyte* text) => ( (delegate* unmanaged)( - _slots[905] is not null and var loadedFnPtr + _slots[934] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[905] = nativeContext.LoadFunction("SDL_SetGPUBufferName", "SDL3") + : _slots[934] = nativeContext.LoadFunction("SDL_SetGPUBufferName", "SDL3") ) )(device, buffer, text); @@ -87994,15 +91287,110 @@ public static void SetGpuBufferName( Ref text ) => DllImport.SetGpuBufferName(device, buffer, text); + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetGpuRenderState(RendererHandle renderer, GpuRenderStateHandle state) => + (MaybeBool)(byte)((ISdl)this).SetGpuRenderStateRaw(renderer, state); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetGpuRenderState( + RendererHandle renderer, + GpuRenderStateHandle state + ) => DllImport.SetGpuRenderState(renderer, state); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ) => + ( + (delegate* unmanaged)( + _slots[936] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[936] = nativeContext.LoadFunction( + "SDL_SetGPURenderStateFragmentUniforms", + "SDL3" + ) + ) + )(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + void* data, + uint length + ) => DllImport.SetGpuRenderStateFragmentUniforms(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ) + { + fixed (void* __dsl_data = data) + { + return (MaybeBool) + (byte) + ((ISdl)this).SetGpuRenderStateFragmentUniforms( + state, + slot_index, + __dsl_data, + length + ); + } + } + + [NativeName("SDL_SetGPURenderStateFragmentUniforms")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetGpuRenderStateFragmentUniforms( + GpuRenderStateHandle state, + uint slot_index, + Ref data, + uint length + ) => DllImport.SetGpuRenderStateFragmentUniforms(state, slot_index, data, length); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetGpuRenderStateRaw(RendererHandle renderer, GpuRenderStateHandle state) => + ( + (delegate* unmanaged)( + _slots[935] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[935] = nativeContext.LoadFunction("SDL_SetGPURenderState", "SDL3") + ) + )(renderer, state); + + [NativeName("SDL_SetGPURenderState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGPURenderState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetGpuRenderStateRaw(RendererHandle renderer, GpuRenderStateHandle state) => + DllImport.SetGpuRenderStateRaw(renderer, state); + [NativeName("SDL_SetGPUScissor")] [NativeFunction("SDL3", EntryPoint = "SDL_SetGPUScissor")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] void ISdl.SetGpuScissor(GpuRenderPassHandle render_pass, Rect* scissor) => ( (delegate* unmanaged)( - _slots[906] is not null and var loadedFnPtr + _slots[937] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[906] = nativeContext.LoadFunction("SDL_SetGPUScissor", "SDL3") + : _slots[937] = nativeContext.LoadFunction("SDL_SetGPUScissor", "SDL3") ) )(render_pass, scissor); @@ -88035,9 +91423,9 @@ public static void SetGpuScissor(GpuRenderPassHandle render_pass, Ref scis void ISdl.SetGpuStencilReference(GpuRenderPassHandle render_pass, byte reference) => ( (delegate* unmanaged)( - _slots[907] is not null and var loadedFnPtr + _slots[938] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[907] = nativeContext.LoadFunction("SDL_SetGPUStencilReference", "SDL3") + : _slots[938] = nativeContext.LoadFunction("SDL_SetGPUStencilReference", "SDL3") ) )(render_pass, reference); @@ -88091,9 +91479,9 @@ GpuPresentMode present_mode GpuSwapchainComposition, GpuPresentMode, byte>)( - _slots[908] is not null and var loadedFnPtr + _slots[939] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[908] = nativeContext.LoadFunction( + : _slots[939] = nativeContext.LoadFunction( "SDL_SetGPUSwapchainParameters", "SDL3" ) @@ -88117,9 +91505,9 @@ GpuPresentMode present_mode void ISdl.SetGpuTextureName(GpuDeviceHandle device, GpuTextureHandle texture, sbyte* text) => ( (delegate* unmanaged)( - _slots[909] is not null and var loadedFnPtr + _slots[940] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[909] = nativeContext.LoadFunction("SDL_SetGPUTextureName", "SDL3") + : _slots[940] = nativeContext.LoadFunction("SDL_SetGPUTextureName", "SDL3") ) )(device, texture, text); @@ -88158,9 +91546,9 @@ Ref text void ISdl.SetGpuViewport(GpuRenderPassHandle render_pass, GpuViewport* viewport) => ( (delegate* unmanaged)( - _slots[910] is not null and var loadedFnPtr + _slots[941] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[910] = nativeContext.LoadFunction("SDL_SetGPUViewport", "SDL3") + : _slots[941] = nativeContext.LoadFunction("SDL_SetGPUViewport", "SDL3") ) )(render_pass, viewport); @@ -88205,9 +91593,9 @@ public static MaybeBool SetHapticAutocenter(HapticHandle haptic, int autoc byte ISdl.SetHapticAutocenterRaw(HapticHandle haptic, int autocenter) => ( (delegate* unmanaged)( - _slots[911] is not null and var loadedFnPtr + _slots[942] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[911] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") + : _slots[942] = nativeContext.LoadFunction("SDL_SetHapticAutocenter", "SDL3") ) )(haptic, autocenter); @@ -88235,9 +91623,9 @@ public static MaybeBool SetHapticGain(HapticHandle haptic, int gain) => byte ISdl.SetHapticGainRaw(HapticHandle haptic, int gain) => ( (delegate* unmanaged)( - _slots[912] is not null and var loadedFnPtr + _slots[943] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[912] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") + : _slots[943] = nativeContext.LoadFunction("SDL_SetHapticGain", "SDL3") ) )(haptic, gain); @@ -88253,9 +91641,9 @@ public static byte SetHapticGainRaw(HapticHandle haptic, int gain) => byte ISdl.SetHint(sbyte* name, sbyte* value) => ( (delegate* unmanaged)( - _slots[913] is not null and var loadedFnPtr + _slots[944] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[913] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") + : _slots[944] = nativeContext.LoadFunction("SDL_SetHint", "SDL3") ) )(name, value); @@ -88288,9 +91676,9 @@ public static MaybeBool SetHint(Ref name, Ref value) => byte ISdl.SetHintWithPriority(sbyte* name, sbyte* value, HintPriority priority) => ( (delegate* unmanaged)( - _slots[914] is not null and var loadedFnPtr + _slots[945] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[914] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") + : _slots[945] = nativeContext.LoadFunction("SDL_SetHintWithPriority", "SDL3") ) )(name, value, priority); @@ -88332,9 +91720,9 @@ HintPriority priority void ISdl.SetInitialized(InitState* state, byte initialized) => ( (delegate* unmanaged)( - _slots[915] is not null and var loadedFnPtr + _slots[946] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[915] = nativeContext.LoadFunction("SDL_SetInitialized", "SDL3") + : _slots[946] = nativeContext.LoadFunction("SDL_SetInitialized", "SDL3") ) )(state, initialized); @@ -88367,9 +91755,9 @@ public static void SetInitialized(Ref state, MaybeBool initiali void ISdl.SetJoystickEventsEnabled(byte enabled) => ( (delegate* unmanaged)( - _slots[916] is not null and var loadedFnPtr + _slots[947] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[916] = nativeContext.LoadFunction( + : _slots[947] = nativeContext.LoadFunction( "SDL_SetJoystickEventsEnabled", "SDL3" ) @@ -88416,9 +91804,9 @@ byte blue byte ISdl.SetJoystickLedRaw(JoystickHandle joystick, byte red, byte green, byte blue) => ( (delegate* unmanaged)( - _slots[917] is not null and var loadedFnPtr + _slots[948] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[917] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") + : _slots[948] = nativeContext.LoadFunction("SDL_SetJoystickLED", "SDL3") ) )(joystick, red, green, blue); @@ -88452,9 +91840,9 @@ int player_index byte ISdl.SetJoystickPlayerIndexRaw(JoystickHandle joystick, int player_index) => ( (delegate* unmanaged)( - _slots[918] is not null and var loadedFnPtr + _slots[949] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[918] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") + : _slots[949] = nativeContext.LoadFunction("SDL_SetJoystickPlayerIndex", "SDL3") ) )(joystick, player_index); @@ -88485,9 +91873,9 @@ short value byte ISdl.SetJoystickVirtualAxisRaw(JoystickHandle joystick, int axis, short value) => ( (delegate* unmanaged)( - _slots[919] is not null and var loadedFnPtr + _slots[950] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[919] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") + : _slots[950] = nativeContext.LoadFunction("SDL_SetJoystickVirtualAxis", "SDL3") ) )(joystick, axis, value); @@ -88528,9 +91916,9 @@ short yrel ) => ( (delegate* unmanaged)( - _slots[920] is not null and var loadedFnPtr + _slots[951] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[920] = nativeContext.LoadFunction("SDL_SetJoystickVirtualBall", "SDL3") + : _slots[951] = nativeContext.LoadFunction("SDL_SetJoystickVirtualBall", "SDL3") ) )(joystick, ball, xrel, yrel); @@ -88550,9 +91938,9 @@ short yrel byte ISdl.SetJoystickVirtualButton(JoystickHandle joystick, int button, byte down) => ( (delegate* unmanaged)( - _slots[921] is not null and var loadedFnPtr + _slots[952] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[921] = nativeContext.LoadFunction( + : _slots[952] = nativeContext.LoadFunction( "SDL_SetJoystickVirtualButton", "SDL3" ) @@ -88604,9 +91992,9 @@ byte value byte ISdl.SetJoystickVirtualHatRaw(JoystickHandle joystick, int hat, byte value) => ( (delegate* unmanaged)( - _slots[922] is not null and var loadedFnPtr + _slots[953] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[922] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") + : _slots[953] = nativeContext.LoadFunction("SDL_SetJoystickVirtualHat", "SDL3") ) )(joystick, hat, value); @@ -88630,9 +92018,9 @@ float pressure ) => ( (delegate* unmanaged)( - _slots[923] is not null and var loadedFnPtr + _slots[954] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[923] = nativeContext.LoadFunction( + : _slots[954] = nativeContext.LoadFunction( "SDL_SetJoystickVirtualTouchpad", "SDL3" ) @@ -88695,9 +92083,9 @@ float pressure void ISdl.SetLogOutputFunction(LogOutputFunction callback, void* userdata) => ( (delegate* unmanaged)( - _slots[924] is not null and var loadedFnPtr + _slots[955] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[924] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") + : _slots[955] = nativeContext.LoadFunction("SDL_SetLogOutputFunction", "SDL3") ) )(callback, userdata); @@ -88730,9 +92118,9 @@ public static void SetLogOutputFunction(LogOutputFunction callback, Ref userdata void ISdl.SetLogPriorities(LogPriority priority) => ( (delegate* unmanaged)( - _slots[925] is not null and var loadedFnPtr + _slots[956] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[925] = nativeContext.LoadFunction("SDL_SetLogPriorities", "SDL3") + : _slots[956] = nativeContext.LoadFunction("SDL_SetLogPriorities", "SDL3") ) )(priority); @@ -88748,9 +92136,9 @@ public static void SetLogPriorities(LogPriority priority) => void ISdl.SetLogPriority(int category, LogPriority priority) => ( (delegate* unmanaged)( - _slots[926] is not null and var loadedFnPtr + _slots[957] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[926] = nativeContext.LoadFunction("SDL_SetLogPriority", "SDL3") + : _slots[957] = nativeContext.LoadFunction("SDL_SetLogPriority", "SDL3") ) )(category, priority); @@ -88766,9 +92154,9 @@ public static void SetLogPriority(int category, LogPriority priority) => byte ISdl.SetLogPriorityPrefix(LogPriority priority, sbyte* prefix) => ( (delegate* unmanaged)( - _slots[927] is not null and var loadedFnPtr + _slots[958] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[927] = nativeContext.LoadFunction("SDL_SetLogPriorityPrefix", "SDL3") + : _slots[958] = nativeContext.LoadFunction("SDL_SetLogPriorityPrefix", "SDL3") ) )(priority, prefix); @@ -88801,9 +92189,9 @@ public static MaybeBool SetLogPriorityPrefix(LogPriority priority, Ref ( (delegate* unmanaged)( - _slots[928] is not null and var loadedFnPtr + _slots[959] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[928] = nativeContext.LoadFunction("SDL_SetMainReady", "SDL3") + : _slots[959] = nativeContext.LoadFunction("SDL_SetMainReady", "SDL3") ) )(); @@ -88851,9 +92239,9 @@ FreeFunc free_func ) => ( (delegate* unmanaged)( - _slots[929] is not null and var loadedFnPtr + _slots[960] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[929] = nativeContext.LoadFunction("SDL_SetMemoryFunctions", "SDL3") + : _slots[960] = nativeContext.LoadFunction("SDL_SetMemoryFunctions", "SDL3") ) )(malloc_func, calloc_func, realloc_func, free_func); @@ -88873,9 +92261,9 @@ FreeFunc free_func void ISdl.SetModState(ushort modstate) => ( (delegate* unmanaged)( - _slots[930] is not null and var loadedFnPtr + _slots[961] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[930] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") + : _slots[961] = nativeContext.LoadFunction("SDL_SetModState", "SDL3") ) )(modstate); @@ -88890,9 +92278,9 @@ _slots[930] is not null and var loadedFnPtr byte ISdl.SetNumberProperty(uint props, sbyte* name, long value) => ( (delegate* unmanaged)( - _slots[931] is not null and var loadedFnPtr + _slots[962] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[931] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") + : _slots[962] = nativeContext.LoadFunction("SDL_SetNumberProperty", "SDL3") ) )(props, name, value); @@ -88925,9 +92313,9 @@ public static MaybeBool SetNumberProperty(uint props, Ref name, lon byte ISdl.SetPaletteColors(Palette* palette, Color* colors, int firstcolor, int ncolors) => ( (delegate* unmanaged)( - _slots[932] is not null and var loadedFnPtr + _slots[963] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[932] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") + : _slots[963] = nativeContext.LoadFunction("SDL_SetPaletteColors", "SDL3") ) )(palette, colors, firstcolor, ncolors); @@ -88976,9 +92364,9 @@ int ncolors byte ISdl.SetPointerProperty(uint props, sbyte* name, void* value) => ( (delegate* unmanaged)( - _slots[933] is not null and var loadedFnPtr + _slots[964] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[933] = nativeContext.LoadFunction("SDL_SetPointerProperty", "SDL3") + : _slots[964] = nativeContext.LoadFunction("SDL_SetPointerProperty", "SDL3") ) )(props, name, value); @@ -89019,9 +92407,9 @@ byte ISdl.SetPointerPropertyWithCleanup( ) => ( (delegate* unmanaged)( - _slots[934] is not null and var loadedFnPtr + _slots[965] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[934] = nativeContext.LoadFunction( + : _slots[965] = nativeContext.LoadFunction( "SDL_SetPointerPropertyWithCleanup", "SDL3" ) @@ -89083,9 +92471,9 @@ Ref userdata byte ISdl.SetPrimarySelectionText(sbyte* text) => ( (delegate* unmanaged)( - _slots[935] is not null and var loadedFnPtr + _slots[966] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[935] = nativeContext.LoadFunction( + : _slots[966] = nativeContext.LoadFunction( "SDL_SetPrimarySelectionText", "SDL3" ) @@ -89115,15 +92503,61 @@ MaybeBool ISdl.SetPrimarySelectionText(Ref text) public static MaybeBool SetPrimarySelectionText(Ref text) => DllImport.SetPrimarySelectionText(text); + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRelativeMouseTransform(MouseMotionTransformCallback callback, void* userdata) => + ( + (delegate* unmanaged)( + _slots[967] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[967] = nativeContext.LoadFunction( + "SDL_SetRelativeMouseTransform", + "SDL3" + ) + ) + )(callback, userdata); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + void* userdata + ) => DllImport.SetRelativeMouseTransform(callback, userdata); + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (MaybeBool) + (byte)((ISdl)this).SetRelativeMouseTransform(callback, __dsl_userdata); + } + } + + [NativeName("SDL_SetRelativeMouseTransform")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseTransform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRelativeMouseTransform( + MouseMotionTransformCallback callback, + Ref userdata + ) => DllImport.SetRelativeMouseTransform(callback, userdata); + [NativeName("SDL_SetRenderClipRect")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SetRenderClipRect(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[936] is not null and var loadedFnPtr + _slots[968] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[936] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") + : _slots[968] = nativeContext.LoadFunction("SDL_SetRenderClipRect", "SDL3") ) )(renderer, rect); @@ -89168,9 +92602,9 @@ public static MaybeBool SetRenderColorScale(RendererHandle renderer, float byte ISdl.SetRenderColorScaleRaw(RendererHandle renderer, float scale) => ( (delegate* unmanaged)( - _slots[937] is not null and var loadedFnPtr + _slots[969] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[937] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") + : _slots[969] = nativeContext.LoadFunction("SDL_SetRenderColorScale", "SDL3") ) )(renderer, scale); @@ -89200,9 +92634,9 @@ BlendMode blendMode byte ISdl.SetRenderDrawBlendModeRaw(RendererHandle renderer, BlendMode blendMode) => ( (delegate* unmanaged)( - _slots[938] is not null and var loadedFnPtr + _slots[970] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[938] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") + : _slots[970] = nativeContext.LoadFunction("SDL_SetRenderDrawBlendMode", "SDL3") ) )(renderer, blendMode); @@ -89268,9 +92702,9 @@ float a ) => ( (delegate* unmanaged)( - _slots[940] is not null and var loadedFnPtr + _slots[972] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[940] = nativeContext.LoadFunction( + : _slots[972] = nativeContext.LoadFunction( "SDL_SetRenderDrawColorFloat", "SDL3" ) @@ -89294,9 +92728,9 @@ float a byte ISdl.SetRenderDrawColorRaw(RendererHandle renderer, byte r, byte g, byte b, byte a) => ( (delegate* unmanaged)( - _slots[939] is not null and var loadedFnPtr + _slots[971] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[939] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") + : _slots[971] = nativeContext.LoadFunction("SDL_SetRenderDrawColor", "SDL3") ) )(renderer, r, g, b, a); @@ -89342,9 +92776,9 @@ RendererLogicalPresentation mode ) => ( (delegate* unmanaged)( - _slots[941] is not null and var loadedFnPtr + _slots[973] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[941] = nativeContext.LoadFunction( + : _slots[973] = nativeContext.LoadFunction( "SDL_SetRenderLogicalPresentation", "SDL3" ) @@ -89382,9 +92816,9 @@ float scaleY byte ISdl.SetRenderScaleRaw(RendererHandle renderer, float scaleX, float scaleY) => ( (delegate* unmanaged)( - _slots[942] is not null and var loadedFnPtr + _slots[974] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[942] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") + : _slots[974] = nativeContext.LoadFunction("SDL_SetRenderScale", "SDL3") ) )(renderer, scaleX, scaleY); @@ -89400,9 +92834,9 @@ public static byte SetRenderScaleRaw(RendererHandle renderer, float scaleX, floa byte ISdl.SetRenderTarget(RendererHandle renderer, Texture* texture) => ( (delegate* unmanaged)( - _slots[943] is not null and var loadedFnPtr + _slots[975] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[943] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") + : _slots[975] = nativeContext.LoadFunction("SDL_SetRenderTarget", "SDL3") ) )(renderer, texture); @@ -89429,15 +92863,63 @@ MaybeBool ISdl.SetRenderTarget(RendererHandle renderer, Ref textu public static MaybeBool SetRenderTarget(RendererHandle renderer, Ref texture) => DllImport.SetRenderTarget(renderer, texture); + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => + (MaybeBool) + (byte)((ISdl)this).SetRenderTextureAddressModeRaw(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetRenderTextureAddressMode( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => DllImport.SetRenderTextureAddressMode(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => + ( + (delegate* unmanaged)( + _slots[976] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[976] = nativeContext.LoadFunction( + "SDL_SetRenderTextureAddressMode", + "SDL3" + ) + ) + )(renderer, u_mode, v_mode); + + [NativeName("SDL_SetRenderTextureAddressMode")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTextureAddressMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetRenderTextureAddressModeRaw( + RendererHandle renderer, + TextureAddressMode u_mode, + TextureAddressMode v_mode + ) => DllImport.SetRenderTextureAddressModeRaw(renderer, u_mode, v_mode); + [NativeName("SDL_SetRenderViewport")] [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SetRenderViewport(RendererHandle renderer, Rect* rect) => ( (delegate* unmanaged)( - _slots[944] is not null and var loadedFnPtr + _slots[977] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[944] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") + : _slots[977] = nativeContext.LoadFunction("SDL_SetRenderViewport", "SDL3") ) )(renderer, rect); @@ -89482,9 +92964,9 @@ public static MaybeBool SetRenderVSync(RendererHandle renderer, int vsync) byte ISdl.SetRenderVSyncRaw(RendererHandle renderer, int vsync) => ( (delegate* unmanaged)( - _slots[945] is not null and var loadedFnPtr + _slots[978] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[945] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") + : _slots[978] = nativeContext.LoadFunction("SDL_SetRenderVSync", "SDL3") ) )(renderer, vsync); @@ -89500,9 +92982,9 @@ public static byte SetRenderVSyncRaw(RendererHandle renderer, int vsync) => byte ISdl.SetScancodeName(Scancode scancode, sbyte* name) => ( (delegate* unmanaged)( - _slots[946] is not null and var loadedFnPtr + _slots[979] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[946] = nativeContext.LoadFunction("SDL_SetScancodeName", "SDL3") + : _slots[979] = nativeContext.LoadFunction("SDL_SetScancodeName", "SDL3") ) )(scancode, name); @@ -89535,9 +93017,9 @@ public static MaybeBool SetScancodeName(Scancode scancode, Ref name byte ISdl.SetStringProperty(uint props, sbyte* name, sbyte* value) => ( (delegate* unmanaged)( - _slots[947] is not null and var loadedFnPtr + _slots[980] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[947] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") + : _slots[980] = nativeContext.LoadFunction("SDL_SetStringProperty", "SDL3") ) )(props, name, value); @@ -89575,9 +93057,9 @@ Ref value byte ISdl.SetSurfaceAlphaMod(Surface* surface, byte alpha) => ( (delegate* unmanaged)( - _slots[948] is not null and var loadedFnPtr + _slots[981] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[948] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") + : _slots[981] = nativeContext.LoadFunction("SDL_SetSurfaceAlphaMod", "SDL3") ) )(surface, alpha); @@ -89610,9 +93092,9 @@ public static MaybeBool SetSurfaceAlphaMod(Ref surface, byte alph byte ISdl.SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => ( (delegate* unmanaged)( - _slots[949] is not null and var loadedFnPtr + _slots[982] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[949] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") + : _slots[982] = nativeContext.LoadFunction("SDL_SetSurfaceBlendMode", "SDL3") ) )(surface, blendMode); @@ -89646,9 +93128,9 @@ public static MaybeBool SetSurfaceBlendMode(Ref surface, BlendMod byte ISdl.SetSurfaceClipRect(Surface* surface, Rect* rect) => ( (delegate* unmanaged)( - _slots[950] is not null and var loadedFnPtr + _slots[983] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[950] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") + : _slots[983] = nativeContext.LoadFunction("SDL_SetSurfaceClipRect", "SDL3") ) )(surface, rect); @@ -89683,9 +93165,9 @@ public static MaybeBool SetSurfaceClipRect(Ref surface, Ref byte ISdl.SetSurfaceColorKey(Surface* surface, byte enabled, uint key) => ( (delegate* unmanaged)( - _slots[951] is not null and var loadedFnPtr + _slots[984] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[951] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") + : _slots[984] = nativeContext.LoadFunction("SDL_SetSurfaceColorKey", "SDL3") ) )(surface, enabled, key); @@ -89722,9 +93204,9 @@ uint key byte ISdl.SetSurfaceColorMod(Surface* surface, byte r, byte g, byte b) => ( (delegate* unmanaged)( - _slots[952] is not null and var loadedFnPtr + _slots[985] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[952] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") + : _slots[985] = nativeContext.LoadFunction("SDL_SetSurfaceColorMod", "SDL3") ) )(surface, r, g, b); @@ -89761,9 +93243,9 @@ byte b byte ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => ( (delegate* unmanaged)( - _slots[953] is not null and var loadedFnPtr + _slots[986] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[953] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") + : _slots[986] = nativeContext.LoadFunction("SDL_SetSurfaceColorspace", "SDL3") ) )(surface, colorspace); @@ -89799,9 +93281,9 @@ Colorspace colorspace byte ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => ( (delegate* unmanaged)( - _slots[954] is not null and var loadedFnPtr + _slots[987] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[954] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") + : _slots[987] = nativeContext.LoadFunction("SDL_SetSurfacePalette", "SDL3") ) )(surface, palette); @@ -89836,9 +93318,9 @@ public static MaybeBool SetSurfacePalette(Ref surface, Ref ( (delegate* unmanaged)( - _slots[955] is not null and var loadedFnPtr + _slots[988] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[955] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") + : _slots[988] = nativeContext.LoadFunction("SDL_SetSurfaceRLE", "SDL3") ) )(surface, enabled); @@ -89871,9 +93353,9 @@ public static MaybeBool SetSurfaceRle(Ref surface, MaybeBool ( (delegate* unmanaged)( - _slots[956] is not null and var loadedFnPtr + _slots[989] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[956] = nativeContext.LoadFunction("SDL_SetTextInputArea", "SDL3") + : _slots[989] = nativeContext.LoadFunction("SDL_SetTextInputArea", "SDL3") ) )(window, rect, cursor); @@ -89909,9 +93391,9 @@ int cursor byte ISdl.SetTextureAlphaMod(Texture* texture, byte alpha) => ( (delegate* unmanaged)( - _slots[957] is not null and var loadedFnPtr + _slots[990] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[957] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") + : _slots[990] = nativeContext.LoadFunction("SDL_SetTextureAlphaMod", "SDL3") ) )(texture, alpha); @@ -89944,9 +93426,9 @@ public static MaybeBool SetTextureAlphaMod(Ref texture, byte alph byte ISdl.SetTextureAlphaModFloat(Texture* texture, float alpha) => ( (delegate* unmanaged)( - _slots[958] is not null and var loadedFnPtr + _slots[991] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[958] = nativeContext.LoadFunction( + : _slots[991] = nativeContext.LoadFunction( "SDL_SetTextureAlphaModFloat", "SDL3" ) @@ -89983,9 +93465,9 @@ public static MaybeBool SetTextureAlphaModFloat(Ref texture, floa byte ISdl.SetTextureBlendMode(Texture* texture, BlendMode blendMode) => ( (delegate* unmanaged)( - _slots[959] is not null and var loadedFnPtr + _slots[992] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[959] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") + : _slots[992] = nativeContext.LoadFunction("SDL_SetTextureBlendMode", "SDL3") ) )(texture, blendMode); @@ -90019,9 +93501,9 @@ public static MaybeBool SetTextureBlendMode(Ref texture, BlendMod byte ISdl.SetTextureColorMod(Texture* texture, byte r, byte g, byte b) => ( (delegate* unmanaged)( - _slots[960] is not null and var loadedFnPtr + _slots[993] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[960] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") + : _slots[993] = nativeContext.LoadFunction("SDL_SetTextureColorMod", "SDL3") ) )(texture, r, g, b); @@ -90058,9 +93540,9 @@ byte b byte ISdl.SetTextureColorModFloat(Texture* texture, float r, float g, float b) => ( (delegate* unmanaged)( - _slots[961] is not null and var loadedFnPtr + _slots[994] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[961] = nativeContext.LoadFunction( + : _slots[994] = nativeContext.LoadFunction( "SDL_SetTextureColorModFloat", "SDL3" ) @@ -90095,15 +93577,52 @@ public static MaybeBool SetTextureColorModFloat( float b ) => DllImport.SetTextureColorModFloat(texture, r, g, b); + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetTexturePalette(Texture* texture, Palette* palette) => + ( + (delegate* unmanaged)( + _slots[995] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[995] = nativeContext.LoadFunction("SDL_SetTexturePalette", "SDL3") + ) + )(texture, palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetTexturePalette(Texture* texture, Palette* palette) => + DllImport.SetTexturePalette(texture, palette); + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetTexturePalette(Ref texture, Ref palette) + { + fixed (Palette* __dsl_palette = palette) + fixed (Texture* __dsl_texture = texture) + { + return (MaybeBool) + (byte)((ISdl)this).SetTexturePalette(__dsl_texture, __dsl_palette); + } + } + + [NativeName("SDL_SetTexturePalette")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTexturePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetTexturePalette(Ref texture, Ref palette) => + DllImport.SetTexturePalette(texture, palette); + [NativeName("SDL_SetTextureScaleMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SetTextureScaleMode(Texture* texture, ScaleMode scaleMode) => ( (delegate* unmanaged)( - _slots[962] is not null and var loadedFnPtr + _slots[996] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[962] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") + : _slots[996] = nativeContext.LoadFunction("SDL_SetTextureScaleMode", "SDL3") ) )(texture, scaleMode); @@ -90137,9 +93656,9 @@ public static MaybeBool SetTextureScaleMode(Ref texture, ScaleMod byte ISdl.SetTls(AtomicInt* id, void* value, TlsDestructorCallback destructor) => ( (delegate* unmanaged)( - _slots[963] is not null and var loadedFnPtr + _slots[997] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[963] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") + : _slots[997] = nativeContext.LoadFunction("SDL_SetTLS", "SDL3") ) )(id, value, destructor); @@ -90176,9 +93695,9 @@ TlsDestructorCallback destructor byte ISdl.SetWindowAlwaysOnTop(WindowHandle window, byte on_top) => ( (delegate* unmanaged)( - _slots[964] is not null and var loadedFnPtr + _slots[998] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[964] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") + : _slots[998] = nativeContext.LoadFunction("SDL_SetWindowAlwaysOnTop", "SDL3") ) )(window, on_top); @@ -90227,9 +93746,9 @@ float max_aspect byte ISdl.SetWindowAspectRatioRaw(WindowHandle window, float min_aspect, float max_aspect) => ( (delegate* unmanaged)( - _slots[965] is not null and var loadedFnPtr + _slots[999] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[965] = nativeContext.LoadFunction("SDL_SetWindowAspectRatio", "SDL3") + : _slots[999] = nativeContext.LoadFunction("SDL_SetWindowAspectRatio", "SDL3") ) )(window, min_aspect, max_aspect); @@ -90248,9 +93767,9 @@ float max_aspect byte ISdl.SetWindowBordered(WindowHandle window, byte bordered) => ( (delegate* unmanaged)( - _slots[966] is not null and var loadedFnPtr + _slots[1000] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[966] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") + : _slots[1000] = nativeContext.LoadFunction("SDL_SetWindowBordered", "SDL3") ) )(window, bordered); @@ -90274,15 +93793,47 @@ public static MaybeBool SetWindowBordered( MaybeBool bordered ) => DllImport.SetWindowBordered(window, bordered); + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowFillDocument(WindowHandle window, byte fill) => + ( + (delegate* unmanaged)( + _slots[1001] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1001] = nativeContext.LoadFunction("SDL_SetWindowFillDocument", "SDL3") + ) + )(window, fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowFillDocument(WindowHandle window, byte fill) => + DllImport.SetWindowFillDocument(window, fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowFillDocument(WindowHandle window, MaybeBool fill) => + (MaybeBool)(byte)((ISdl)this).SetWindowFillDocument(window, (byte)fill); + + [NativeName("SDL_SetWindowFillDocument")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFillDocument")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowFillDocument( + WindowHandle window, + MaybeBool fill + ) => DllImport.SetWindowFillDocument(window, fill); + [NativeName("SDL_SetWindowFocusable")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SetWindowFocusable(WindowHandle window, byte focusable) => ( (delegate* unmanaged)( - _slots[967] is not null and var loadedFnPtr + _slots[1002] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[967] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") + : _slots[1002] = nativeContext.LoadFunction("SDL_SetWindowFocusable", "SDL3") ) )(window, focusable); @@ -90312,9 +93863,9 @@ MaybeBool focusable byte ISdl.SetWindowFullscreen(WindowHandle window, byte fullscreen) => ( (delegate* unmanaged)( - _slots[968] is not null and var loadedFnPtr + _slots[1003] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[968] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") + : _slots[1003] = nativeContext.LoadFunction("SDL_SetWindowFullscreen", "SDL3") ) )(window, fullscreen); @@ -90344,9 +93895,9 @@ MaybeBool fullscreen byte ISdl.SetWindowFullscreenMode(WindowHandle window, DisplayMode* mode) => ( (delegate* unmanaged)( - _slots[969] is not null and var loadedFnPtr + _slots[1004] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[969] = nativeContext.LoadFunction( + : _slots[1004] = nativeContext.LoadFunction( "SDL_SetWindowFullscreenMode", "SDL3" ) @@ -90384,9 +93935,9 @@ Ref mode byte ISdl.SetWindowHitTest(WindowHandle window, HitTest callback, void* callback_data) => ( (delegate* unmanaged)( - _slots[970] is not null and var loadedFnPtr + _slots[1005] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[970] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") + : _slots[1005] = nativeContext.LoadFunction("SDL_SetWindowHitTest", "SDL3") ) )(window, callback, callback_data); @@ -90426,9 +93977,9 @@ Ref callback_data byte ISdl.SetWindowIcon(WindowHandle window, Surface* icon) => ( (delegate* unmanaged)( - _slots[971] is not null and var loadedFnPtr + _slots[1006] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[971] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") + : _slots[1006] = nativeContext.LoadFunction("SDL_SetWindowIcon", "SDL3") ) )(window, icon); @@ -90461,9 +94012,9 @@ public static MaybeBool SetWindowIcon(WindowHandle window, Ref ic byte ISdl.SetWindowKeyboardGrab(WindowHandle window, byte grabbed) => ( (delegate* unmanaged)( - _slots[972] is not null and var loadedFnPtr + _slots[1007] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[972] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") + : _slots[1007] = nativeContext.LoadFunction("SDL_SetWindowKeyboardGrab", "SDL3") ) )(window, grabbed); @@ -90505,9 +94056,9 @@ public static MaybeBool SetWindowMaximumSize(WindowHandle window, int max_ byte ISdl.SetWindowMaximumSizeRaw(WindowHandle window, int max_w, int max_h) => ( (delegate* unmanaged)( - _slots[973] is not null and var loadedFnPtr + _slots[1008] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[973] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") + : _slots[1008] = nativeContext.LoadFunction("SDL_SetWindowMaximumSize", "SDL3") ) )(window, max_w, max_h); @@ -90535,9 +94086,9 @@ public static MaybeBool SetWindowMinimumSize(WindowHandle window, int min_ byte ISdl.SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int min_h) => ( (delegate* unmanaged)( - _slots[974] is not null and var loadedFnPtr + _slots[1009] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[974] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") + : _slots[1009] = nativeContext.LoadFunction("SDL_SetWindowMinimumSize", "SDL3") ) )(window, min_w, min_h); @@ -90553,9 +94104,9 @@ public static byte SetWindowMinimumSizeRaw(WindowHandle window, int min_w, int m byte ISdl.SetWindowModal(WindowHandle window, byte modal) => ( (delegate* unmanaged)( - _slots[975] is not null and var loadedFnPtr + _slots[1010] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[975] = nativeContext.LoadFunction("SDL_SetWindowModal", "SDL3") + : _slots[1010] = nativeContext.LoadFunction("SDL_SetWindowModal", "SDL3") ) )(window, modal); @@ -90583,9 +94134,9 @@ public static MaybeBool SetWindowModal(WindowHandle window, MaybeBool ( (delegate* unmanaged)( - _slots[976] is not null and var loadedFnPtr + _slots[1011] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[976] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") + : _slots[1011] = nativeContext.LoadFunction("SDL_SetWindowMouseGrab", "SDL3") ) )(window, grabbed); @@ -90615,9 +94166,9 @@ MaybeBool grabbed byte ISdl.SetWindowMouseRect(WindowHandle window, Rect* rect) => ( (delegate* unmanaged)( - _slots[977] is not null and var loadedFnPtr + _slots[1012] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[977] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") + : _slots[1012] = nativeContext.LoadFunction("SDL_SetWindowMouseRect", "SDL3") ) )(window, rect); @@ -90662,9 +94213,9 @@ public static MaybeBool SetWindowOpacity(WindowHandle window, float opacit byte ISdl.SetWindowOpacityRaw(WindowHandle window, float opacity) => ( (delegate* unmanaged)( - _slots[978] is not null and var loadedFnPtr + _slots[1013] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[978] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") + : _slots[1013] = nativeContext.LoadFunction("SDL_SetWindowOpacity", "SDL3") ) )(window, opacity); @@ -90692,9 +94243,9 @@ public static MaybeBool SetWindowParent(WindowHandle window, WindowHandle byte ISdl.SetWindowParentRaw(WindowHandle window, WindowHandle parent) => ( (delegate* unmanaged)( - _slots[979] is not null and var loadedFnPtr + _slots[1014] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[979] = nativeContext.LoadFunction("SDL_SetWindowParent", "SDL3") + : _slots[1014] = nativeContext.LoadFunction("SDL_SetWindowParent", "SDL3") ) )(window, parent); @@ -90722,9 +94273,9 @@ public static MaybeBool SetWindowPosition(WindowHandle window, int x, int byte ISdl.SetWindowPositionRaw(WindowHandle window, int x, int y) => ( (delegate* unmanaged)( - _slots[980] is not null and var loadedFnPtr + _slots[1015] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[980] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") + : _slots[1015] = nativeContext.LoadFunction("SDL_SetWindowPosition", "SDL3") ) )(window, x, y); @@ -90734,15 +94285,83 @@ _slots[980] is not null and var loadedFnPtr public static byte SetWindowPositionRaw(WindowHandle window, int x, int y) => DllImport.SetWindowPositionRaw(window, x, y); + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowProgressState(WindowHandle window, ProgressState state) => + (MaybeBool)(byte)((ISdl)this).SetWindowProgressStateRaw(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowProgressState( + WindowHandle window, + ProgressState state + ) => DllImport.SetWindowProgressState(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowProgressStateRaw(WindowHandle window, ProgressState state) => + ( + (delegate* unmanaged)( + _slots[1016] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1016] = nativeContext.LoadFunction( + "SDL_SetWindowProgressState", + "SDL3" + ) + ) + )(window, state); + + [NativeName("SDL_SetWindowProgressState")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowProgressStateRaw(WindowHandle window, ProgressState state) => + DllImport.SetWindowProgressStateRaw(window, state); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetWindowProgressValue(WindowHandle window, float value) => + (MaybeBool)(byte)((ISdl)this).SetWindowProgressValueRaw(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SetWindowProgressValue(WindowHandle window, float value) => + DllImport.SetWindowProgressValue(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.SetWindowProgressValueRaw(WindowHandle window, float value) => + ( + (delegate* unmanaged)( + _slots[1017] is not null and var loadedFnPtr + ? loadedFnPtr + : _slots[1017] = nativeContext.LoadFunction( + "SDL_SetWindowProgressValue", + "SDL3" + ) + ) + )(window, value); + + [NativeName("SDL_SetWindowProgressValue")] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowProgressValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte SetWindowProgressValueRaw(WindowHandle window, float value) => + DllImport.SetWindowProgressValueRaw(window, value); + [NativeName("SDL_SetWindowRelativeMouseMode")] [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowRelativeMouseMode")] [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] byte ISdl.SetWindowRelativeMouseMode(WindowHandle window, byte enabled) => ( (delegate* unmanaged)( - _slots[981] is not null and var loadedFnPtr + _slots[1018] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[981] = nativeContext.LoadFunction( + : _slots[1018] = nativeContext.LoadFunction( "SDL_SetWindowRelativeMouseMode", "SDL3" ) @@ -90775,9 +94394,9 @@ MaybeBool enabled byte ISdl.SetWindowResizable(WindowHandle window, byte resizable) => ( (delegate* unmanaged)( - _slots[982] is not null and var loadedFnPtr + _slots[1019] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[982] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") + : _slots[1019] = nativeContext.LoadFunction("SDL_SetWindowResizable", "SDL3") ) )(window, resizable); @@ -90807,9 +94426,9 @@ MaybeBool resizable byte ISdl.SetWindowShape(WindowHandle window, Surface* shape) => ( (delegate* unmanaged)( - _slots[983] is not null and var loadedFnPtr + _slots[1020] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[983] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") + : _slots[1020] = nativeContext.LoadFunction("SDL_SetWindowShape", "SDL3") ) )(window, shape); @@ -90854,9 +94473,9 @@ public static MaybeBool SetWindowSize(WindowHandle window, int w, int h) = byte ISdl.SetWindowSizeRaw(WindowHandle window, int w, int h) => ( (delegate* unmanaged)( - _slots[984] is not null and var loadedFnPtr + _slots[1021] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[984] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") + : _slots[1021] = nativeContext.LoadFunction("SDL_SetWindowSize", "SDL3") ) )(window, w, h); @@ -90884,9 +94503,9 @@ public static MaybeBool SetWindowSurfaceVSync(WindowHandle window, int vsy byte ISdl.SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => ( (delegate* unmanaged)( - _slots[985] is not null and var loadedFnPtr + _slots[1022] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[985] = nativeContext.LoadFunction("SDL_SetWindowSurfaceVSync", "SDL3") + : _slots[1022] = nativeContext.LoadFunction("SDL_SetWindowSurfaceVSync", "SDL3") ) )(window, vsync); @@ -90902,9 +94521,9 @@ public static byte SetWindowSurfaceVSyncRaw(WindowHandle window, int vsync) => byte ISdl.SetWindowTitle(WindowHandle window, sbyte* title) => ( (delegate* unmanaged)( - _slots[986] is not null and var loadedFnPtr + _slots[1023] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[986] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") + : _slots[1023] = nativeContext.LoadFunction("SDL_SetWindowTitle", "SDL3") ) )(window, title); @@ -90937,9 +94556,9 @@ public static MaybeBool SetWindowTitle(WindowHandle window, Ref tit byte ISdl.ShouldInit(InitState* state) => ( (delegate* unmanaged)( - _slots[987] is not null and var loadedFnPtr + _slots[1024] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[987] = nativeContext.LoadFunction("SDL_ShouldInit", "SDL3") + : _slots[1024] = nativeContext.LoadFunction("SDL_ShouldInit", "SDL3") ) )(state); @@ -90970,9 +94589,9 @@ MaybeBool ISdl.ShouldInit(Ref state) byte ISdl.ShouldQuit(InitState* state) => ( (delegate* unmanaged)( - _slots[988] is not null and var loadedFnPtr + _slots[1025] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[988] = nativeContext.LoadFunction("SDL_ShouldQuit", "SDL3") + : _slots[1025] = nativeContext.LoadFunction("SDL_ShouldQuit", "SDL3") ) )(state); @@ -91013,9 +94632,9 @@ MaybeBool ISdl.ShouldQuit(Ref state) byte ISdl.ShowCursorRaw() => ( (delegate* unmanaged)( - _slots[989] is not null and var loadedFnPtr + _slots[1026] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[989] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") + : _slots[1026] = nativeContext.LoadFunction("SDL_ShowCursor", "SDL3") ) )(); @@ -91035,9 +94654,9 @@ uint props ) => ( (delegate* unmanaged)( - _slots[990] is not null and var loadedFnPtr + _slots[1027] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[990] = nativeContext.LoadFunction( + : _slots[1027] = nativeContext.LoadFunction( "SDL_ShowFileDialogWithProperties", "SDL3" ) @@ -91086,9 +94705,9 @@ uint props byte ISdl.ShowMessageBox(MessageBoxData* messageboxdata, int* buttonid) => ( (delegate* unmanaged)( - _slots[991] is not null and var loadedFnPtr + _slots[1028] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[991] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") + : _slots[1028] = nativeContext.LoadFunction("SDL_ShowMessageBox", "SDL3") ) )(messageboxdata, buttonid); @@ -91141,9 +94760,9 @@ byte allow_many sbyte*, byte, void>)( - _slots[992] is not null and var loadedFnPtr + _slots[1029] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[992] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") + : _slots[1029] = nativeContext.LoadFunction("SDL_ShowOpenFileDialog", "SDL3") ) )(callback, userdata, window, filters, nfilters, default_location, allow_many); @@ -91232,9 +94851,9 @@ byte allow_many ) => ( (delegate* unmanaged)( - _slots[993] is not null and var loadedFnPtr + _slots[1030] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[993] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") + : _slots[1030] = nativeContext.LoadFunction("SDL_ShowOpenFolderDialog", "SDL3") ) )(callback, userdata, window, default_location, allow_many); @@ -91304,9 +94923,9 @@ void ISdl.ShowSaveFileDialog( int, sbyte*, void>)( - _slots[994] is not null and var loadedFnPtr + _slots[1031] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[994] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") + : _slots[1031] = nativeContext.LoadFunction("SDL_ShowSaveFileDialog", "SDL3") ) )(callback, userdata, window, filters, nfilters, default_location); @@ -91383,9 +95002,9 @@ Ref default_location byte ISdl.ShowSimpleMessageBox(uint flags, sbyte* title, sbyte* message, WindowHandle window) => ( (delegate* unmanaged)( - _slots[995] is not null and var loadedFnPtr + _slots[1032] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[995] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") + : _slots[1032] = nativeContext.LoadFunction("SDL_ShowSimpleMessageBox", "SDL3") ) )(flags, title, message, window); @@ -91444,9 +95063,9 @@ MaybeBool ISdl.ShowWindow(WindowHandle window) => byte ISdl.ShowWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[996] is not null and var loadedFnPtr + _slots[1033] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[996] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") + : _slots[1033] = nativeContext.LoadFunction("SDL_ShowWindow", "SDL3") ) )(window); @@ -91473,9 +95092,9 @@ public static MaybeBool ShowWindowSystemMenu(WindowHandle window, int x, i byte ISdl.ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => ( (delegate* unmanaged)( - _slots[997] is not null and var loadedFnPtr + _slots[1034] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[997] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") + : _slots[1034] = nativeContext.LoadFunction("SDL_ShowWindowSystemMenu", "SDL3") ) )(window, x, y); @@ -91491,9 +95110,9 @@ public static byte ShowWindowSystemMenuRaw(WindowHandle window, int x, int y) => void ISdl.SignalCondition(ConditionHandle cond) => ( (delegate* unmanaged)( - _slots[998] is not null and var loadedFnPtr + _slots[1035] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[998] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") + : _slots[1035] = nativeContext.LoadFunction("SDL_SignalCondition", "SDL3") ) )(cond); @@ -91508,9 +95127,9 @@ _slots[998] is not null and var loadedFnPtr void ISdl.SignalSemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[999] is not null and var loadedFnPtr + _slots[1036] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[999] = nativeContext.LoadFunction("SDL_SignalSemaphore", "SDL3") + : _slots[1036] = nativeContext.LoadFunction("SDL_SignalSemaphore", "SDL3") ) )(sem); @@ -91525,9 +95144,9 @@ _slots[999] is not null and var loadedFnPtr double ISdl.Sin(double x) => ( (delegate* unmanaged)( - _slots[1000] is not null and var loadedFnPtr + _slots[1037] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1000] = nativeContext.LoadFunction("SDL_sin", "SDL3") + : _slots[1037] = nativeContext.LoadFunction("SDL_sin", "SDL3") ) )(x); @@ -91542,9 +95161,9 @@ _slots[1000] is not null and var loadedFnPtr float ISdl.Sinf(float x) => ( (delegate* unmanaged)( - _slots[1001] is not null and var loadedFnPtr + _slots[1038] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1001] = nativeContext.LoadFunction("SDL_sinf", "SDL3") + : _slots[1038] = nativeContext.LoadFunction("SDL_sinf", "SDL3") ) )(x); @@ -91559,9 +95178,9 @@ _slots[1001] is not null and var loadedFnPtr double ISdl.Sqrt(double x) => ( (delegate* unmanaged)( - _slots[1002] is not null and var loadedFnPtr + _slots[1039] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1002] = nativeContext.LoadFunction("SDL_sqrt", "SDL3") + : _slots[1039] = nativeContext.LoadFunction("SDL_sqrt", "SDL3") ) )(x); @@ -91576,9 +95195,9 @@ _slots[1002] is not null and var loadedFnPtr float ISdl.Sqrtf(float x) => ( (delegate* unmanaged)( - _slots[1003] is not null and var loadedFnPtr + _slots[1040] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1003] = nativeContext.LoadFunction("SDL_sqrtf", "SDL3") + : _slots[1040] = nativeContext.LoadFunction("SDL_sqrtf", "SDL3") ) )(x); @@ -91593,9 +95212,9 @@ _slots[1003] is not null and var loadedFnPtr void ISdl.Srand(ulong seed) => ( (delegate* unmanaged)( - _slots[1004] is not null and var loadedFnPtr + _slots[1041] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1004] = nativeContext.LoadFunction("SDL_srand", "SDL3") + : _slots[1041] = nativeContext.LoadFunction("SDL_srand", "SDL3") ) )(seed); @@ -91622,9 +95241,9 @@ public static MaybeBool StartTextInput(WindowHandle window) => byte ISdl.StartTextInputRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1005] is not null and var loadedFnPtr + _slots[1042] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1005] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") + : _slots[1042] = nativeContext.LoadFunction("SDL_StartTextInput", "SDL3") ) )(window); @@ -91652,9 +95271,9 @@ public static MaybeBool StartTextInputWithProperties(WindowHandle window, byte ISdl.StartTextInputWithPropertiesRaw(WindowHandle window, uint props) => ( (delegate* unmanaged)( - _slots[1006] is not null and var loadedFnPtr + _slots[1043] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1006] = nativeContext.LoadFunction( + : _slots[1043] = nativeContext.LoadFunction( "SDL_StartTextInputWithProperties", "SDL3" ) @@ -91673,9 +95292,9 @@ public static byte StartTextInputWithPropertiesRaw(WindowHandle window, uint pro uint ISdl.StepBackUtf8(sbyte* start, sbyte** pstr) => ( (delegate* unmanaged)( - _slots[1007] is not null and var loadedFnPtr + _slots[1044] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1007] = nativeContext.LoadFunction("SDL_StepBackUTF8", "SDL3") + : _slots[1044] = nativeContext.LoadFunction("SDL_StepBackUTF8", "SDL3") ) )(start, pstr); @@ -91709,9 +95328,9 @@ public static uint StepBackUtf8(Ref start, Ref2D pstr) => uint ISdl.StepUtf8(sbyte** pstr, nuint* pslen) => ( (delegate* unmanaged)( - _slots[1008] is not null and var loadedFnPtr + _slots[1045] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1008] = nativeContext.LoadFunction("SDL_StepUTF8", "SDL3") + : _slots[1045] = nativeContext.LoadFunction("SDL_StepUTF8", "SDL3") ) )(pstr, pslen); @@ -91756,9 +95375,9 @@ public static MaybeBool StopHapticEffect(HapticHandle haptic, int effect) byte ISdl.StopHapticEffectRaw(HapticHandle haptic, int effect) => ( (delegate* unmanaged)( - _slots[1009] is not null and var loadedFnPtr + _slots[1046] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1009] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") + : _slots[1046] = nativeContext.LoadFunction("SDL_StopHapticEffect", "SDL3") ) )(haptic, effect); @@ -91786,9 +95405,9 @@ public static MaybeBool StopHapticEffects(HapticHandle haptic) => byte ISdl.StopHapticEffectsRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[1010] is not null and var loadedFnPtr + _slots[1047] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1010] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") + : _slots[1047] = nativeContext.LoadFunction("SDL_StopHapticEffects", "SDL3") ) )(haptic); @@ -91816,9 +95435,9 @@ public static MaybeBool StopHapticRumble(HapticHandle haptic) => byte ISdl.StopHapticRumbleRaw(HapticHandle haptic) => ( (delegate* unmanaged)( - _slots[1011] is not null and var loadedFnPtr + _slots[1048] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1011] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") + : _slots[1048] = nativeContext.LoadFunction("SDL_StopHapticRumble", "SDL3") ) )(haptic); @@ -91846,9 +95465,9 @@ public static MaybeBool StopTextInput(WindowHandle window) => byte ISdl.StopTextInputRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1012] is not null and var loadedFnPtr + _slots[1049] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1012] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") + : _slots[1049] = nativeContext.LoadFunction("SDL_StopTextInput", "SDL3") ) )(window); @@ -91875,9 +95494,9 @@ public static MaybeBool StorageReady(StorageHandle storage) => byte ISdl.StorageReadyRaw(StorageHandle storage) => ( (delegate* unmanaged)( - _slots[1013] is not null and var loadedFnPtr + _slots[1050] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1013] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") + : _slots[1050] = nativeContext.LoadFunction("SDL_StorageReady", "SDL3") ) )(storage); @@ -91892,9 +95511,9 @@ _slots[1013] is not null and var loadedFnPtr int ISdl.Strcasecmp(sbyte* str1, sbyte* str2) => ( (delegate* unmanaged)( - _slots[1014] is not null and var loadedFnPtr + _slots[1051] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1014] = nativeContext.LoadFunction("SDL_strcasecmp", "SDL3") + : _slots[1051] = nativeContext.LoadFunction("SDL_strcasecmp", "SDL3") ) )(str1, str2); @@ -91927,9 +95546,9 @@ public static int Strcasecmp(Ref str1, Ref str2) => sbyte* ISdl.Strcasestr(sbyte* haystack, sbyte* needle) => ( (delegate* unmanaged)( - _slots[1015] is not null and var loadedFnPtr + _slots[1052] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1015] = nativeContext.LoadFunction("SDL_strcasestr", "SDL3") + : _slots[1052] = nativeContext.LoadFunction("SDL_strcasestr", "SDL3") ) )(haystack, needle); @@ -91963,9 +95582,9 @@ public static Ptr Strcasestr(Ref haystack, Ref needle) => sbyte* ISdl.Strchr(sbyte* str, int c) => ( (delegate* unmanaged)( - _slots[1016] is not null and var loadedFnPtr + _slots[1053] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1016] = nativeContext.LoadFunction("SDL_strchr", "SDL3") + : _slots[1053] = nativeContext.LoadFunction("SDL_strchr", "SDL3") ) )(str, c); @@ -91996,9 +95615,9 @@ Ptr ISdl.Strchr(Ref str, int c) int ISdl.Strcmp(sbyte* str1, sbyte* str2) => ( (delegate* unmanaged)( - _slots[1017] is not null and var loadedFnPtr + _slots[1054] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1017] = nativeContext.LoadFunction("SDL_strcmp", "SDL3") + : _slots[1054] = nativeContext.LoadFunction("SDL_strcmp", "SDL3") ) )(str1, str2); @@ -92030,9 +95649,9 @@ int ISdl.Strcmp(Ref str1, Ref str2) sbyte* ISdl.Strdup(sbyte* str) => ( (delegate* unmanaged)( - _slots[1018] is not null and var loadedFnPtr + _slots[1055] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1018] = nativeContext.LoadFunction("SDL_strdup", "SDL3") + : _slots[1055] = nativeContext.LoadFunction("SDL_strdup", "SDL3") ) )(str); @@ -92069,9 +95688,9 @@ ScaleMode scaleMode ) => ( (delegate* unmanaged)( - _slots[1019] is not null and var loadedFnPtr + _slots[1056] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1019] = nativeContext.LoadFunction("SDL_StretchSurface", "SDL3") + : _slots[1056] = nativeContext.LoadFunction("SDL_StretchSurface", "SDL3") ) )(src, srcrect, dst, dstrect, scaleMode); @@ -92131,9 +95750,9 @@ ScaleMode scaleMode Guid ISdl.StringToGuid(sbyte* pchGUID) => ( (delegate* unmanaged)( - _slots[1020] is not null and var loadedFnPtr + _slots[1057] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1020] = nativeContext.LoadFunction("SDL_StringToGUID", "SDL3") + : _slots[1057] = nativeContext.LoadFunction("SDL_StringToGUID", "SDL3") ) )(pchGUID); @@ -92164,9 +95783,9 @@ Guid ISdl.StringToGuid(Ref pchGUID) nuint ISdl.Strlcat(sbyte* dst, sbyte* src, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1021] is not null and var loadedFnPtr + _slots[1058] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1021] = nativeContext.LoadFunction("SDL_strlcat", "SDL3") + : _slots[1058] = nativeContext.LoadFunction("SDL_strlcat", "SDL3") ) )(dst, src, maxlen); @@ -92200,9 +95819,9 @@ public static nuint Strlcat(Ref dst, Ref src, nuint maxlen) => nuint ISdl.Strlcpy(sbyte* dst, sbyte* src, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1022] is not null and var loadedFnPtr + _slots[1059] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1022] = nativeContext.LoadFunction("SDL_strlcpy", "SDL3") + : _slots[1059] = nativeContext.LoadFunction("SDL_strlcpy", "SDL3") ) )(dst, src, maxlen); @@ -92236,9 +95855,9 @@ public static nuint Strlcpy(Ref dst, Ref src, nuint maxlen) => nuint ISdl.Strlen(sbyte* str) => ( (delegate* unmanaged)( - _slots[1023] is not null and var loadedFnPtr + _slots[1060] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1023] = nativeContext.LoadFunction("SDL_strlen", "SDL3") + : _slots[1060] = nativeContext.LoadFunction("SDL_strlen", "SDL3") ) )(str); @@ -92269,9 +95888,9 @@ nuint ISdl.Strlen(Ref str) sbyte* ISdl.Strlwr(sbyte* str) => ( (delegate* unmanaged)( - _slots[1024] is not null and var loadedFnPtr + _slots[1061] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1024] = nativeContext.LoadFunction("SDL_strlwr", "SDL3") + : _slots[1061] = nativeContext.LoadFunction("SDL_strlwr", "SDL3") ) )(str); @@ -92302,9 +95921,9 @@ Ptr ISdl.Strlwr(Ref str) int ISdl.Strncasecmp(sbyte* str1, sbyte* str2, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1025] is not null and var loadedFnPtr + _slots[1062] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1025] = nativeContext.LoadFunction("SDL_strncasecmp", "SDL3") + : _slots[1062] = nativeContext.LoadFunction("SDL_strncasecmp", "SDL3") ) )(str1, str2, maxlen); @@ -92338,9 +95957,9 @@ public static int Strncasecmp(Ref str1, Ref str2, nuint maxlen) => int ISdl.Strncmp(sbyte* str1, sbyte* str2, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1026] is not null and var loadedFnPtr + _slots[1063] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1026] = nativeContext.LoadFunction("SDL_strncmp", "SDL3") + : _slots[1063] = nativeContext.LoadFunction("SDL_strncmp", "SDL3") ) )(str1, str2, maxlen); @@ -92374,9 +95993,9 @@ public static int Strncmp(Ref str1, Ref str2, nuint maxlen) => sbyte* ISdl.Strndup(sbyte* str, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1027] is not null and var loadedFnPtr + _slots[1064] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1027] = nativeContext.LoadFunction("SDL_strndup", "SDL3") + : _slots[1064] = nativeContext.LoadFunction("SDL_strndup", "SDL3") ) )(str, maxlen); @@ -92408,9 +96027,9 @@ public static Ptr Strndup(Ref str, nuint maxlen) => nuint ISdl.Strnlen(sbyte* str, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1028] is not null and var loadedFnPtr + _slots[1065] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1028] = nativeContext.LoadFunction("SDL_strnlen", "SDL3") + : _slots[1065] = nativeContext.LoadFunction("SDL_strnlen", "SDL3") ) )(str, maxlen); @@ -92441,9 +96060,9 @@ nuint ISdl.Strnlen(Ref str, nuint maxlen) sbyte* ISdl.Strnstr(sbyte* haystack, sbyte* needle, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1029] is not null and var loadedFnPtr + _slots[1066] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1029] = nativeContext.LoadFunction("SDL_strnstr", "SDL3") + : _slots[1066] = nativeContext.LoadFunction("SDL_strnstr", "SDL3") ) )(haystack, needle, maxlen); @@ -92477,9 +96096,9 @@ public static Ptr Strnstr(Ref haystack, Ref needle, nuint m sbyte* ISdl.Strpbrk(sbyte* str, sbyte* breakset) => ( (delegate* unmanaged)( - _slots[1030] is not null and var loadedFnPtr + _slots[1067] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1030] = nativeContext.LoadFunction("SDL_strpbrk", "SDL3") + : _slots[1067] = nativeContext.LoadFunction("SDL_strpbrk", "SDL3") ) )(str, breakset); @@ -92512,9 +96131,9 @@ public static Ptr Strpbrk(Ref str, Ref breakset) => sbyte* ISdl.Strrchr(sbyte* str, int c) => ( (delegate* unmanaged)( - _slots[1031] is not null and var loadedFnPtr + _slots[1068] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1031] = nativeContext.LoadFunction("SDL_strrchr", "SDL3") + : _slots[1068] = nativeContext.LoadFunction("SDL_strrchr", "SDL3") ) )(str, c); @@ -92545,9 +96164,9 @@ Ptr ISdl.Strrchr(Ref str, int c) sbyte* ISdl.Strrev(sbyte* str) => ( (delegate* unmanaged)( - _slots[1032] is not null and var loadedFnPtr + _slots[1069] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1032] = nativeContext.LoadFunction("SDL_strrev", "SDL3") + : _slots[1069] = nativeContext.LoadFunction("SDL_strrev", "SDL3") ) )(str); @@ -92578,9 +96197,9 @@ Ptr ISdl.Strrev(Ref str) sbyte* ISdl.Strstr(sbyte* haystack, sbyte* needle) => ( (delegate* unmanaged)( - _slots[1033] is not null and var loadedFnPtr + _slots[1070] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1033] = nativeContext.LoadFunction("SDL_strstr", "SDL3") + : _slots[1070] = nativeContext.LoadFunction("SDL_strstr", "SDL3") ) )(haystack, needle); @@ -92614,9 +96233,9 @@ public static Ptr Strstr(Ref haystack, Ref needle) => double ISdl.Strtod(sbyte* str, sbyte** endp) => ( (delegate* unmanaged)( - _slots[1034] is not null and var loadedFnPtr + _slots[1071] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1034] = nativeContext.LoadFunction("SDL_strtod", "SDL3") + : _slots[1071] = nativeContext.LoadFunction("SDL_strtod", "SDL3") ) )(str, endp); @@ -92648,9 +96267,9 @@ double ISdl.Strtod(Ref str, Ref2D endp) sbyte* ISdl.StrtokR(sbyte* str, sbyte* delim, sbyte** saveptr) => ( (delegate* unmanaged)( - _slots[1035] is not null and var loadedFnPtr + _slots[1072] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1035] = nativeContext.LoadFunction("SDL_strtok_r", "SDL3") + : _slots[1072] = nativeContext.LoadFunction("SDL_strtok_r", "SDL3") ) )(str, delim, saveptr); @@ -92685,9 +96304,9 @@ public static Ptr StrtokR(Ref str, Ref delim, Ref2D int ISdl.Strtol(sbyte* str, sbyte** endp, int @base) => ( (delegate* unmanaged)( - _slots[1036] is not null and var loadedFnPtr + _slots[1073] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1036] = nativeContext.LoadFunction("SDL_strtol", "SDL3") + : _slots[1073] = nativeContext.LoadFunction("SDL_strtol", "SDL3") ) )(str, endp, @base); @@ -92721,9 +96340,9 @@ public static int Strtol(Ref str, Ref2D endp, int @base) => long ISdl.Strtoll(sbyte* str, sbyte** endp, int @base) => ( (delegate* unmanaged)( - _slots[1037] is not null and var loadedFnPtr + _slots[1074] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1037] = nativeContext.LoadFunction("SDL_strtoll", "SDL3") + : _slots[1074] = nativeContext.LoadFunction("SDL_strtoll", "SDL3") ) )(str, endp, @base); @@ -92757,9 +96376,9 @@ public static long Strtoll(Ref str, Ref2D endp, int @base) => uint ISdl.Strtoul(sbyte* str, sbyte** endp, int @base) => ( (delegate* unmanaged)( - _slots[1038] is not null and var loadedFnPtr + _slots[1075] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1038] = nativeContext.LoadFunction("SDL_strtoul", "SDL3") + : _slots[1075] = nativeContext.LoadFunction("SDL_strtoul", "SDL3") ) )(str, endp, @base); @@ -92793,9 +96412,9 @@ public static uint Strtoul(Ref str, Ref2D endp, int @base) => ulong ISdl.Strtoull(sbyte* str, sbyte** endp, int @base) => ( (delegate* unmanaged)( - _slots[1039] is not null and var loadedFnPtr + _slots[1076] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1039] = nativeContext.LoadFunction("SDL_strtoull", "SDL3") + : _slots[1076] = nativeContext.LoadFunction("SDL_strtoull", "SDL3") ) )(str, endp, @base); @@ -92829,9 +96448,9 @@ public static ulong Strtoull(Ref str, Ref2D endp, int @base) => sbyte* ISdl.Strupr(sbyte* str) => ( (delegate* unmanaged)( - _slots[1040] is not null and var loadedFnPtr + _slots[1077] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1040] = nativeContext.LoadFunction("SDL_strupr", "SDL3") + : _slots[1077] = nativeContext.LoadFunction("SDL_strupr", "SDL3") ) )(str); @@ -92876,9 +96495,9 @@ GpuCommandBufferHandle command_buffer ) => ( (delegate* unmanaged)( - _slots[1042] is not null and var loadedFnPtr + _slots[1079] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1042] = nativeContext.LoadFunction( + : _slots[1079] = nativeContext.LoadFunction( "SDL_SubmitGPUCommandBufferAndAcquireFence", "SDL3" ) @@ -92898,9 +96517,9 @@ GpuCommandBufferHandle command_buffer byte ISdl.SubmitGpuCommandBufferRaw(GpuCommandBufferHandle command_buffer) => ( (delegate* unmanaged)( - _slots[1041] is not null and var loadedFnPtr + _slots[1078] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1041] = nativeContext.LoadFunction( + : _slots[1078] = nativeContext.LoadFunction( "SDL_SubmitGPUCommandBuffer", "SDL3" ) @@ -92919,9 +96538,9 @@ public static byte SubmitGpuCommandBufferRaw(GpuCommandBufferHandle command_buff byte ISdl.SurfaceHasAlternateImages(Surface* surface) => ( (delegate* unmanaged)( - _slots[1043] is not null and var loadedFnPtr + _slots[1080] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1043] = nativeContext.LoadFunction( + : _slots[1080] = nativeContext.LoadFunction( "SDL_SurfaceHasAlternateImages", "SDL3" ) @@ -92957,9 +96576,9 @@ public static MaybeBool SurfaceHasAlternateImages(Ref surface) => byte ISdl.SurfaceHasColorKey(Surface* surface) => ( (delegate* unmanaged)( - _slots[1044] is not null and var loadedFnPtr + _slots[1081] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1044] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") + : _slots[1081] = nativeContext.LoadFunction("SDL_SurfaceHasColorKey", "SDL3") ) )(surface); @@ -92992,9 +96611,9 @@ public static MaybeBool SurfaceHasColorKey(Ref surface) => byte ISdl.SurfaceHasRle(Surface* surface) => ( (delegate* unmanaged)( - _slots[1045] is not null and var loadedFnPtr + _slots[1082] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1045] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") + : _slots[1082] = nativeContext.LoadFunction("SDL_SurfaceHasRLE", "SDL3") ) )(surface); @@ -93037,9 +96656,9 @@ MaybeBool ISdl.SyncWindow(WindowHandle window) => byte ISdl.SyncWindowRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1046] is not null and var loadedFnPtr + _slots[1083] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1046] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") + : _slots[1083] = nativeContext.LoadFunction("SDL_SyncWindow", "SDL3") ) )(window); @@ -93054,9 +96673,9 @@ _slots[1046] is not null and var loadedFnPtr double ISdl.Tan(double x) => ( (delegate* unmanaged)( - _slots[1047] is not null and var loadedFnPtr + _slots[1084] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1047] = nativeContext.LoadFunction("SDL_tan", "SDL3") + : _slots[1084] = nativeContext.LoadFunction("SDL_tan", "SDL3") ) )(x); @@ -93071,9 +96690,9 @@ _slots[1047] is not null and var loadedFnPtr float ISdl.Tanf(float x) => ( (delegate* unmanaged)( - _slots[1048] is not null and var loadedFnPtr + _slots[1085] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1048] = nativeContext.LoadFunction("SDL_tanf", "SDL3") + : _slots[1085] = nativeContext.LoadFunction("SDL_tanf", "SDL3") ) )(x); @@ -93088,9 +96707,9 @@ _slots[1048] is not null and var loadedFnPtr long ISdl.TellIO(IOStreamHandle context) => ( (delegate* unmanaged)( - _slots[1049] is not null and var loadedFnPtr + _slots[1086] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1049] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") + : _slots[1086] = nativeContext.LoadFunction("SDL_TellIO", "SDL3") ) )(context); @@ -93117,9 +96736,9 @@ public static MaybeBool TextInputActive(WindowHandle window) => byte ISdl.TextInputActiveRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1050] is not null and var loadedFnPtr + _slots[1087] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1050] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") + : _slots[1087] = nativeContext.LoadFunction("SDL_TextInputActive", "SDL3") ) )(window); @@ -93135,9 +96754,9 @@ public static byte TextInputActiveRaw(WindowHandle window) => long ISdl.TimeFromWindows(uint dwLowDateTime, uint dwHighDateTime) => ( (delegate* unmanaged)( - _slots[1051] is not null and var loadedFnPtr + _slots[1088] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1051] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") + : _slots[1088] = nativeContext.LoadFunction("SDL_TimeFromWindows", "SDL3") ) )(dwLowDateTime, dwHighDateTime); @@ -93153,9 +96772,9 @@ public static long TimeFromWindows(uint dwLowDateTime, uint dwHighDateTime) => byte ISdl.TimeToDateTime(long ticks, DateTime* dt, byte localTime) => ( (delegate* unmanaged)( - _slots[1052] is not null and var loadedFnPtr + _slots[1089] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1052] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") + : _slots[1089] = nativeContext.LoadFunction("SDL_TimeToDateTime", "SDL3") ) )(ticks, dt, localTime); @@ -93192,9 +96811,9 @@ MaybeBool localTime void ISdl.TimeToWindows(long ticks, uint* dwLowDateTime, uint* dwHighDateTime) => ( (delegate* unmanaged)( - _slots[1053] is not null and var loadedFnPtr + _slots[1090] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1053] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") + : _slots[1090] = nativeContext.LoadFunction("SDL_TimeToWindows", "SDL3") ) )(ticks, dwLowDateTime, dwHighDateTime); @@ -93231,9 +96850,9 @@ Ref dwHighDateTime int ISdl.Tolower(int x) => ( (delegate* unmanaged)( - _slots[1054] is not null and var loadedFnPtr + _slots[1091] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1054] = nativeContext.LoadFunction("SDL_tolower", "SDL3") + : _slots[1091] = nativeContext.LoadFunction("SDL_tolower", "SDL3") ) )(x); @@ -93248,9 +96867,9 @@ _slots[1054] is not null and var loadedFnPtr int ISdl.Toupper(int x) => ( (delegate* unmanaged)( - _slots[1055] is not null and var loadedFnPtr + _slots[1092] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1055] = nativeContext.LoadFunction("SDL_toupper", "SDL3") + : _slots[1092] = nativeContext.LoadFunction("SDL_toupper", "SDL3") ) )(x); @@ -93265,9 +96884,9 @@ _slots[1055] is not null and var loadedFnPtr double ISdl.Trunc(double x) => ( (delegate* unmanaged)( - _slots[1056] is not null and var loadedFnPtr + _slots[1093] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1056] = nativeContext.LoadFunction("SDL_trunc", "SDL3") + : _slots[1093] = nativeContext.LoadFunction("SDL_trunc", "SDL3") ) )(x); @@ -93282,9 +96901,9 @@ _slots[1056] is not null and var loadedFnPtr float ISdl.Truncf(float x) => ( (delegate* unmanaged)( - _slots[1057] is not null and var loadedFnPtr + _slots[1094] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1057] = nativeContext.LoadFunction("SDL_truncf", "SDL3") + : _slots[1094] = nativeContext.LoadFunction("SDL_truncf", "SDL3") ) )(x); @@ -93310,9 +96929,9 @@ MaybeBool ISdl.TryLockMutex(MutexHandle mutex) => byte ISdl.TryLockMutexRaw(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1058] is not null and var loadedFnPtr + _slots[1095] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1058] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") + : _slots[1095] = nativeContext.LoadFunction("SDL_TryLockMutex", "SDL3") ) )(mutex); @@ -93339,9 +96958,9 @@ public static MaybeBool TryLockRWLockForReading(RWLockHandle rwlock) => byte ISdl.TryLockRWLockForReadingRaw(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1059] is not null and var loadedFnPtr + _slots[1096] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1059] = nativeContext.LoadFunction( + : _slots[1096] = nativeContext.LoadFunction( "SDL_TryLockRWLockForReading", "SDL3" ) @@ -93372,9 +96991,9 @@ public static MaybeBool TryLockRWLockForWriting(RWLockHandle rwlock) => byte ISdl.TryLockRWLockForWritingRaw(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1060] is not null and var loadedFnPtr + _slots[1097] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1060] = nativeContext.LoadFunction( + : _slots[1097] = nativeContext.LoadFunction( "SDL_TryLockRWLockForWriting", "SDL3" ) @@ -93393,9 +97012,9 @@ public static byte TryLockRWLockForWritingRaw(RWLockHandle rwlock) => byte ISdl.TryLockSpinlock(int* @lock) => ( (delegate* unmanaged)( - _slots[1061] is not null and var loadedFnPtr + _slots[1098] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1061] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") + : _slots[1098] = nativeContext.LoadFunction("SDL_TryLockSpinlock", "SDL3") ) )(@lock); @@ -93439,9 +97058,9 @@ public static MaybeBool TryWaitSemaphore(SemaphoreHandle sem) => byte ISdl.TryWaitSemaphoreRaw(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[1062] is not null and var loadedFnPtr + _slots[1099] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1062] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") + : _slots[1099] = nativeContext.LoadFunction("SDL_TryWaitSemaphore", "SDL3") ) )(sem); @@ -93457,9 +97076,9 @@ public static byte TryWaitSemaphoreRaw(SemaphoreHandle sem) => sbyte* ISdl.Ucs4ToUtf8(uint codepoint, sbyte* dst) => ( (delegate* unmanaged)( - _slots[1063] is not null and var loadedFnPtr + _slots[1100] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1063] = nativeContext.LoadFunction("SDL_UCS4ToUTF8", "SDL3") + : _slots[1100] = nativeContext.LoadFunction("SDL_UCS4ToUTF8", "SDL3") ) )(codepoint, dst); @@ -93492,9 +97111,9 @@ public static Ptr Ucs4ToUtf8(uint codepoint, Ref dst) => sbyte* ISdl.Uitoa(uint value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[1064] is not null and var loadedFnPtr + _slots[1101] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1064] = nativeContext.LoadFunction("SDL_uitoa", "SDL3") + : _slots[1101] = nativeContext.LoadFunction("SDL_uitoa", "SDL3") ) )(value, str, radix); @@ -93527,9 +97146,9 @@ public static Ptr Uitoa(uint value, Ref str, int radix) => sbyte* ISdl.Ulltoa(ulong value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[1065] is not null and var loadedFnPtr + _slots[1102] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1065] = nativeContext.LoadFunction("SDL_ulltoa", "SDL3") + : _slots[1102] = nativeContext.LoadFunction("SDL_ulltoa", "SDL3") ) )(value, str, radix); @@ -93562,9 +97181,9 @@ public static Ptr Ulltoa(ulong value, Ref str, int radix) => sbyte* ISdl.Ultoa(uint value, sbyte* str, int radix) => ( (delegate* unmanaged)( - _slots[1066] is not null and var loadedFnPtr + _slots[1103] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1066] = nativeContext.LoadFunction("SDL_ultoa", "SDL3") + : _slots[1103] = nativeContext.LoadFunction("SDL_ultoa", "SDL3") ) )(value, str, radix); @@ -93597,9 +97216,9 @@ public static Ptr Ultoa(uint value, Ref str, int radix) => void ISdl.UnbindAudioStream(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[1067] is not null and var loadedFnPtr + _slots[1104] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1067] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") + : _slots[1104] = nativeContext.LoadFunction("SDL_UnbindAudioStream", "SDL3") ) )(stream); @@ -93615,9 +97234,9 @@ public static void UnbindAudioStream(AudioStreamHandle stream) => void ISdl.UnbindAudioStreams(AudioStreamHandle* streams, int num_streams) => ( (delegate* unmanaged)( - _slots[1068] is not null and var loadedFnPtr + _slots[1105] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1068] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") + : _slots[1105] = nativeContext.LoadFunction("SDL_UnbindAudioStreams", "SDL3") ) )(streams, num_streams); @@ -93650,9 +97269,9 @@ public static void UnbindAudioStreams(Ref streams, int num_st void ISdl.UnloadObject(SharedObjectHandle handle) => ( (delegate* unmanaged)( - _slots[1069] is not null and var loadedFnPtr + _slots[1106] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1069] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") + : _slots[1106] = nativeContext.LoadFunction("SDL_UnloadObject", "SDL3") ) )(handle); @@ -93679,9 +97298,9 @@ public static MaybeBool UnlockAudioStream(AudioStreamHandle stream) => byte ISdl.UnlockAudioStreamRaw(AudioStreamHandle stream) => ( (delegate* unmanaged)( - _slots[1070] is not null and var loadedFnPtr + _slots[1107] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1070] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") + : _slots[1107] = nativeContext.LoadFunction("SDL_UnlockAudioStream", "SDL3") ) )(stream); @@ -93697,9 +97316,9 @@ public static byte UnlockAudioStreamRaw(AudioStreamHandle stream) => void ISdl.UnlockJoysticks() => ( (delegate* unmanaged)( - _slots[1071] is not null and var loadedFnPtr + _slots[1108] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1071] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") + : _slots[1108] = nativeContext.LoadFunction("SDL_UnlockJoysticks", "SDL3") ) )(); @@ -93714,9 +97333,9 @@ _slots[1071] is not null and var loadedFnPtr void ISdl.UnlockMutex(MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1072] is not null and var loadedFnPtr + _slots[1109] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1072] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") + : _slots[1109] = nativeContext.LoadFunction("SDL_UnlockMutex", "SDL3") ) )(mutex); @@ -93731,9 +97350,9 @@ _slots[1072] is not null and var loadedFnPtr void ISdl.UnlockProperties(uint props) => ( (delegate* unmanaged)( - _slots[1073] is not null and var loadedFnPtr + _slots[1110] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1073] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") + : _slots[1110] = nativeContext.LoadFunction("SDL_UnlockProperties", "SDL3") ) )(props); @@ -93748,9 +97367,9 @@ _slots[1073] is not null and var loadedFnPtr void ISdl.UnlockRWLock(RWLockHandle rwlock) => ( (delegate* unmanaged)( - _slots[1074] is not null and var loadedFnPtr + _slots[1111] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1074] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") + : _slots[1111] = nativeContext.LoadFunction("SDL_UnlockRWLock", "SDL3") ) )(rwlock); @@ -93765,9 +97384,9 @@ _slots[1074] is not null and var loadedFnPtr void ISdl.UnlockSpinlock(int* @lock) => ( (delegate* unmanaged)( - _slots[1075] is not null and var loadedFnPtr + _slots[1112] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1075] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") + : _slots[1112] = nativeContext.LoadFunction("SDL_UnlockSpinlock", "SDL3") ) )(@lock); @@ -93798,9 +97417,9 @@ void ISdl.UnlockSpinlock(Ref @lock) void ISdl.UnlockSurface(Surface* surface) => ( (delegate* unmanaged)( - _slots[1076] is not null and var loadedFnPtr + _slots[1113] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1076] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") + : _slots[1113] = nativeContext.LoadFunction("SDL_UnlockSurface", "SDL3") ) )(surface); @@ -93831,9 +97450,9 @@ void ISdl.UnlockSurface(Ref surface) void ISdl.UnlockTexture(Texture* texture) => ( (delegate* unmanaged)( - _slots[1077] is not null and var loadedFnPtr + _slots[1114] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1077] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") + : _slots[1114] = nativeContext.LoadFunction("SDL_UnlockTexture", "SDL3") ) )(texture); @@ -93867,9 +97486,9 @@ GpuTransferBufferHandle transfer_buffer ) => ( (delegate* unmanaged)( - _slots[1078] is not null and var loadedFnPtr + _slots[1115] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1078] = nativeContext.LoadFunction( + : _slots[1115] = nativeContext.LoadFunction( "SDL_UnmapGPUTransferBuffer", "SDL3" ) @@ -93890,9 +97509,9 @@ GpuTransferBufferHandle transfer_buffer void ISdl.UnregisterApp() => ( (delegate* unmanaged)( - _slots[1079] is not null and var loadedFnPtr + _slots[1116] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1079] = nativeContext.LoadFunction("SDL_UnregisterApp", "SDL3") + : _slots[1116] = nativeContext.LoadFunction("SDL_UnregisterApp", "SDL3") ) )(); @@ -93907,9 +97526,9 @@ _slots[1079] is not null and var loadedFnPtr int ISdl.UnsetenvUnsafe(sbyte* name) => ( (delegate* unmanaged)( - _slots[1080] is not null and var loadedFnPtr + _slots[1117] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1080] = nativeContext.LoadFunction("SDL_unsetenv_unsafe", "SDL3") + : _slots[1117] = nativeContext.LoadFunction("SDL_unsetenv_unsafe", "SDL3") ) )(name); @@ -93940,9 +97559,9 @@ int ISdl.UnsetenvUnsafe(Ref name) byte ISdl.UnsetEnvironmentVariable(EnvironmentHandle env, sbyte* name) => ( (delegate* unmanaged)( - _slots[1081] is not null and var loadedFnPtr + _slots[1118] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1081] = nativeContext.LoadFunction( + : _slots[1118] = nativeContext.LoadFunction( "SDL_UnsetEnvironmentVariable", "SDL3" ) @@ -93980,9 +97599,9 @@ Ref name void ISdl.UpdateGamepads() => ( (delegate* unmanaged)( - _slots[1082] is not null and var loadedFnPtr + _slots[1119] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1082] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") + : _slots[1119] = nativeContext.LoadFunction("SDL_UpdateGamepads", "SDL3") ) )(); @@ -93997,9 +97616,9 @@ _slots[1082] is not null and var loadedFnPtr byte ISdl.UpdateHapticEffect(HapticHandle haptic, int effect, HapticEffect* data) => ( (delegate* unmanaged)( - _slots[1083] is not null and var loadedFnPtr + _slots[1120] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1083] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") + : _slots[1120] = nativeContext.LoadFunction("SDL_UpdateHapticEffect", "SDL3") ) )(haptic, effect, data); @@ -94036,9 +97655,9 @@ Ref data void ISdl.UpdateJoysticks() => ( (delegate* unmanaged)( - _slots[1084] is not null and var loadedFnPtr + _slots[1121] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1084] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") + : _slots[1121] = nativeContext.LoadFunction("SDL_UpdateJoysticks", "SDL3") ) )(); @@ -94060,9 +97679,9 @@ int UVpitch ) => ( (delegate* unmanaged)( - _slots[1085] is not null and var loadedFnPtr + _slots[1122] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1085] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") + : _slots[1122] = nativeContext.LoadFunction("SDL_UpdateNVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, UVplane, UVpitch); @@ -94126,9 +97745,9 @@ int UVpitch void ISdl.UpdateSensors() => ( (delegate* unmanaged)( - _slots[1086] is not null and var loadedFnPtr + _slots[1123] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1086] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") + : _slots[1123] = nativeContext.LoadFunction("SDL_UpdateSensors", "SDL3") ) )(); @@ -94143,9 +97762,9 @@ _slots[1086] is not null and var loadedFnPtr byte ISdl.UpdateTexture(Texture* texture, Rect* rect, void* pixels, int pitch) => ( (delegate* unmanaged)( - _slots[1087] is not null and var loadedFnPtr + _slots[1124] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1087] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") + : _slots[1124] = nativeContext.LoadFunction("SDL_UpdateTexture", "SDL3") ) )(texture, rect, pixels, pitch); @@ -94197,9 +97816,9 @@ public static MaybeBool UpdateWindowSurface(WindowHandle window) => byte ISdl.UpdateWindowSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1088] is not null and var loadedFnPtr + _slots[1125] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1088] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") + : _slots[1125] = nativeContext.LoadFunction("SDL_UpdateWindowSurface", "SDL3") ) )(window); @@ -94215,9 +97834,9 @@ public static byte UpdateWindowSurfaceRaw(WindowHandle window) => byte ISdl.UpdateWindowSurfaceRects(WindowHandle window, Rect* rects, int numrects) => ( (delegate* unmanaged)( - _slots[1089] is not null and var loadedFnPtr + _slots[1126] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1089] = nativeContext.LoadFunction( + : _slots[1126] = nativeContext.LoadFunction( "SDL_UpdateWindowSurfaceRects", "SDL3" ) @@ -94270,9 +97889,9 @@ int Vpitch ) => ( (delegate* unmanaged)( - _slots[1090] is not null and var loadedFnPtr + _slots[1127] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1090] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") + : _slots[1127] = nativeContext.LoadFunction("SDL_UpdateYUVTexture", "SDL3") ) )(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); @@ -94355,9 +97974,9 @@ byte cycle GpuBufferRegion*, byte, void>)( - _slots[1091] is not null and var loadedFnPtr + _slots[1128] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1091] = nativeContext.LoadFunction("SDL_UploadToGPUBuffer", "SDL3") + : _slots[1128] = nativeContext.LoadFunction("SDL_UploadToGPUBuffer", "SDL3") ) )(copy_pass, source, destination, cycle); @@ -94414,9 +98033,9 @@ byte cycle GpuTextureRegion*, byte, void>)( - _slots[1092] is not null and var loadedFnPtr + _slots[1129] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1092] = nativeContext.LoadFunction("SDL_UploadToGPUTexture", "SDL3") + : _slots[1129] = nativeContext.LoadFunction("SDL_UploadToGPUTexture", "SDL3") ) )(copy_pass, source, destination, cycle); @@ -94468,9 +98087,9 @@ MaybeBool cycle nuint ISdl.Utf8Strlcpy(sbyte* dst, sbyte* src, nuint dst_bytes) => ( (delegate* unmanaged)( - _slots[1093] is not null and var loadedFnPtr + _slots[1130] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1093] = nativeContext.LoadFunction("SDL_utf8strlcpy", "SDL3") + : _slots[1130] = nativeContext.LoadFunction("SDL_utf8strlcpy", "SDL3") ) )(dst, src, dst_bytes); @@ -94504,9 +98123,9 @@ public static nuint Utf8Strlcpy(Ref dst, Ref src, nuint dst_bytes) nuint ISdl.Utf8Strlen(sbyte* str) => ( (delegate* unmanaged)( - _slots[1094] is not null and var loadedFnPtr + _slots[1131] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1094] = nativeContext.LoadFunction("SDL_utf8strlen", "SDL3") + : _slots[1131] = nativeContext.LoadFunction("SDL_utf8strlen", "SDL3") ) )(str); @@ -94537,9 +98156,9 @@ nuint ISdl.Utf8Strlen(Ref str) nuint ISdl.Utf8Strnlen(sbyte* str, nuint bytes) => ( (delegate* unmanaged)( - _slots[1095] is not null and var loadedFnPtr + _slots[1132] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1095] = nativeContext.LoadFunction("SDL_utf8strnlen", "SDL3") + : _slots[1132] = nativeContext.LoadFunction("SDL_utf8strnlen", "SDL3") ) )(str, bytes); @@ -94571,9 +98190,9 @@ public static nuint Utf8Strnlen(Ref str, nuint bytes) => int ISdl.Vasprintf(sbyte** strp, sbyte* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[1096] is not null and var loadedFnPtr + _slots[1133] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1096] = nativeContext.LoadFunction("SDL_vasprintf", "SDL3") + : _slots[1133] = nativeContext.LoadFunction("SDL_vasprintf", "SDL3") ) )(strp, fmt, ap); @@ -94608,9 +98227,9 @@ public static int Vasprintf(Ref2D strp, Ref fmt, Ref ap) => int ISdl.Vsnprintf(sbyte* text, nuint maxlen, sbyte* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[1097] is not null and var loadedFnPtr + _slots[1134] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1097] = nativeContext.LoadFunction("SDL_vsnprintf", "SDL3") + : _slots[1134] = nativeContext.LoadFunction("SDL_vsnprintf", "SDL3") ) )(text, maxlen, fmt, ap); @@ -94645,9 +98264,9 @@ public static int Vsnprintf(Ref text, nuint maxlen, Ref fmt, Ref ( (delegate* unmanaged)( - _slots[1098] is not null and var loadedFnPtr + _slots[1135] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1098] = nativeContext.LoadFunction("SDL_vsscanf", "SDL3") + : _slots[1135] = nativeContext.LoadFunction("SDL_vsscanf", "SDL3") ) )(text, fmt, ap); @@ -94682,9 +98301,9 @@ public static int Vsscanf(Ref text, Ref fmt, Ref ap) => int ISdl.Vswprintf(ushort* text, nuint maxlen, ushort* fmt, sbyte* ap) => ( (delegate* unmanaged)( - _slots[1099] is not null and var loadedFnPtr + _slots[1136] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1099] = nativeContext.LoadFunction("SDL_vswprintf", "SDL3") + : _slots[1136] = nativeContext.LoadFunction("SDL_vswprintf", "SDL3") ) )(text, maxlen, fmt, ap); @@ -94724,9 +98343,9 @@ byte ISdl.VulkanCreateSurface( ) => ( (delegate* unmanaged)( - _slots[1100] is not null and var loadedFnPtr + _slots[1137] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1100] = nativeContext.LoadFunction("SDL_Vulkan_CreateSurface", "SDL3") + : _slots[1137] = nativeContext.LoadFunction("SDL_Vulkan_CreateSurface", "SDL3") ) )(window, instance, allocator, surface); @@ -94781,9 +98400,9 @@ Ref surface void ISdl.VulkanDestroySurface(void* instance, ulong surface, void* allocator) => ( (delegate* unmanaged)( - _slots[1101] is not null and var loadedFnPtr + _slots[1138] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1101] = nativeContext.LoadFunction("SDL_Vulkan_DestroySurface", "SDL3") + : _slots[1138] = nativeContext.LoadFunction("SDL_Vulkan_DestroySurface", "SDL3") ) )(instance, surface, allocator); @@ -94817,9 +98436,9 @@ public static void VulkanDestroySurface(Ref instance, ulong surface, Ref allocat sbyte** ISdl.VulkanGetInstanceExtensions(uint* count) => ( (delegate* unmanaged)( - _slots[1102] is not null and var loadedFnPtr + _slots[1139] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1102] = nativeContext.LoadFunction( + : _slots[1139] = nativeContext.LoadFunction( "SDL_Vulkan_GetInstanceExtensions", "SDL3" ) @@ -94859,9 +98478,9 @@ uint queueFamilyIndex ) => ( (delegate* unmanaged)( - _slots[1103] is not null and var loadedFnPtr + _slots[1140] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1103] = nativeContext.LoadFunction( + : _slots[1140] = nativeContext.LoadFunction( "SDL_Vulkan_GetPresentationSupport", "SDL3" ) @@ -94913,9 +98532,9 @@ uint queueFamilyIndex FunctionPointer ISdl.VulkanGetVkGetInstanceProcAddr() => ( (delegate* unmanaged)( - _slots[1104] is not null and var loadedFnPtr + _slots[1141] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1104] = nativeContext.LoadFunction( + : _slots[1141] = nativeContext.LoadFunction( "SDL_Vulkan_GetVkGetInstanceProcAddr", "SDL3" ) @@ -94934,9 +98553,9 @@ public static FunctionPointer VulkanGetVkGetInstanceProcAddr() => byte ISdl.VulkanLoadLibrary(sbyte* path) => ( (delegate* unmanaged)( - _slots[1105] is not null and var loadedFnPtr + _slots[1142] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1105] = nativeContext.LoadFunction("SDL_Vulkan_LoadLibrary", "SDL3") + : _slots[1142] = nativeContext.LoadFunction("SDL_Vulkan_LoadLibrary", "SDL3") ) )(path); @@ -94968,9 +98587,9 @@ public static MaybeBool VulkanLoadLibrary(Ref path) => void ISdl.VulkanUnloadLibrary() => ( (delegate* unmanaged)( - _slots[1106] is not null and var loadedFnPtr + _slots[1143] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1106] = nativeContext.LoadFunction("SDL_Vulkan_UnloadLibrary", "SDL3") + : _slots[1143] = nativeContext.LoadFunction("SDL_Vulkan_UnloadLibrary", "SDL3") ) )(); @@ -94997,9 +98616,9 @@ byte ISdl.WaitAndAcquireGpuSwapchainTexture( uint*, uint*, byte>)( - _slots[1107] is not null and var loadedFnPtr + _slots[1144] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1107] = nativeContext.LoadFunction( + : _slots[1144] = nativeContext.LoadFunction( "SDL_WaitAndAcquireGPUSwapchainTexture", "SDL3" ) @@ -95081,9 +98700,9 @@ Ref swapchain_texture_height void ISdl.WaitCondition(ConditionHandle cond, MutexHandle mutex) => ( (delegate* unmanaged)( - _slots[1108] is not null and var loadedFnPtr + _slots[1145] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1108] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") + : _slots[1145] = nativeContext.LoadFunction("SDL_WaitCondition", "SDL3") ) )(cond, mutex); @@ -95117,9 +98736,9 @@ int timeoutMS byte ISdl.WaitConditionTimeoutRaw(ConditionHandle cond, MutexHandle mutex, int timeoutMS) => ( (delegate* unmanaged)( - _slots[1109] is not null and var loadedFnPtr + _slots[1146] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1109] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") + : _slots[1146] = nativeContext.LoadFunction("SDL_WaitConditionTimeout", "SDL3") ) )(cond, mutex, timeoutMS); @@ -95138,9 +98757,9 @@ int timeoutMS byte ISdl.WaitEvent(Event* @event) => ( (delegate* unmanaged)( - _slots[1110] is not null and var loadedFnPtr + _slots[1147] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1110] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") + : _slots[1147] = nativeContext.LoadFunction("SDL_WaitEvent", "SDL3") ) )(@event); @@ -95171,9 +98790,9 @@ MaybeBool ISdl.WaitEvent(Ref @event) byte ISdl.WaitEventTimeout(Event* @event, int timeoutMS) => ( (delegate* unmanaged)( - _slots[1111] is not null and var loadedFnPtr + _slots[1148] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1111] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") + : _slots[1148] = nativeContext.LoadFunction("SDL_WaitEventTimeout", "SDL3") ) )(@event, timeoutMS); @@ -95211,9 +98830,9 @@ uint num_fences ) => ( (delegate* unmanaged)( - _slots[1112] is not null and var loadedFnPtr + _slots[1149] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1112] = nativeContext.LoadFunction("SDL_WaitForGPUFences", "SDL3") + : _slots[1149] = nativeContext.LoadFunction("SDL_WaitForGPUFences", "SDL3") ) )(device, wait_all, fences, num_fences); @@ -95273,9 +98892,9 @@ public static MaybeBool WaitForGpuIdle(GpuDeviceHandle device) => byte ISdl.WaitForGpuIdleRaw(GpuDeviceHandle device) => ( (delegate* unmanaged)( - _slots[1113] is not null and var loadedFnPtr + _slots[1150] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1113] = nativeContext.LoadFunction("SDL_WaitForGPUIdle", "SDL3") + : _slots[1150] = nativeContext.LoadFunction("SDL_WaitForGPUIdle", "SDL3") ) )(device); @@ -95305,9 +98924,9 @@ WindowHandle window byte ISdl.WaitForGpuSwapchainRaw(GpuDeviceHandle device, WindowHandle window) => ( (delegate* unmanaged)( - _slots[1114] is not null and var loadedFnPtr + _slots[1151] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1114] = nativeContext.LoadFunction("SDL_WaitForGPUSwapchain", "SDL3") + : _slots[1151] = nativeContext.LoadFunction("SDL_WaitForGPUSwapchain", "SDL3") ) )(device, window); @@ -95323,9 +98942,9 @@ public static byte WaitForGpuSwapchainRaw(GpuDeviceHandle device, WindowHandle w byte ISdl.WaitProcess(ProcessHandle process, byte block, int* exitcode) => ( (delegate* unmanaged)( - _slots[1115] is not null and var loadedFnPtr + _slots[1152] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1115] = nativeContext.LoadFunction("SDL_WaitProcess", "SDL3") + : _slots[1152] = nativeContext.LoadFunction("SDL_WaitProcess", "SDL3") ) )(process, block, exitcode); @@ -95366,9 +98985,9 @@ Ref exitcode void ISdl.WaitSemaphore(SemaphoreHandle sem) => ( (delegate* unmanaged)( - _slots[1116] is not null and var loadedFnPtr + _slots[1153] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1116] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") + : _slots[1153] = nativeContext.LoadFunction("SDL_WaitSemaphore", "SDL3") ) )(sem); @@ -95395,9 +99014,9 @@ public static MaybeBool WaitSemaphoreTimeout(SemaphoreHandle sem, int time byte ISdl.WaitSemaphoreTimeoutRaw(SemaphoreHandle sem, int timeoutMS) => ( (delegate* unmanaged)( - _slots[1117] is not null and var loadedFnPtr + _slots[1154] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1117] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") + : _slots[1154] = nativeContext.LoadFunction("SDL_WaitSemaphoreTimeout", "SDL3") ) )(sem, timeoutMS); @@ -95413,9 +99032,9 @@ public static byte WaitSemaphoreTimeoutRaw(SemaphoreHandle sem, int timeoutMS) = void ISdl.WaitThread(ThreadHandle thread, int* status) => ( (delegate* unmanaged)( - _slots[1118] is not null and var loadedFnPtr + _slots[1155] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1118] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") + : _slots[1155] = nativeContext.LoadFunction("SDL_WaitThread", "SDL3") ) )(thread, status); @@ -95460,9 +99079,9 @@ public static MaybeBool WarpMouseGlobal(float x, float y) => byte ISdl.WarpMouseGlobalRaw(float x, float y) => ( (delegate* unmanaged)( - _slots[1119] is not null and var loadedFnPtr + _slots[1156] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1119] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") + : _slots[1156] = nativeContext.LoadFunction("SDL_WarpMouseGlobal", "SDL3") ) )(x, y); @@ -95477,9 +99096,9 @@ _slots[1119] is not null and var loadedFnPtr void ISdl.WarpMouseInWindow(WindowHandle window, float x, float y) => ( (delegate* unmanaged)( - _slots[1120] is not null and var loadedFnPtr + _slots[1157] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1120] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") + : _slots[1157] = nativeContext.LoadFunction("SDL_WarpMouseInWindow", "SDL3") ) )(window, x, y); @@ -95495,9 +99114,9 @@ public static void WarpMouseInWindow(WindowHandle window, float x, float y) => uint ISdl.WasInit(uint flags) => ( (delegate* unmanaged)( - _slots[1121] is not null and var loadedFnPtr + _slots[1158] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1121] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") + : _slots[1158] = nativeContext.LoadFunction("SDL_WasInit", "SDL3") ) )(flags); @@ -95512,9 +99131,9 @@ _slots[1121] is not null and var loadedFnPtr int ISdl.Wcscasecmp(ushort* str1, ushort* str2) => ( (delegate* unmanaged)( - _slots[1122] is not null and var loadedFnPtr + _slots[1159] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1122] = nativeContext.LoadFunction("SDL_wcscasecmp", "SDL3") + : _slots[1159] = nativeContext.LoadFunction("SDL_wcscasecmp", "SDL3") ) )(str1, str2); @@ -95547,9 +99166,9 @@ public static int Wcscasecmp(Ref str1, Ref str2) => int ISdl.Wcscmp(ushort* str1, ushort* str2) => ( (delegate* unmanaged)( - _slots[1123] is not null and var loadedFnPtr + _slots[1160] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1123] = nativeContext.LoadFunction("SDL_wcscmp", "SDL3") + : _slots[1160] = nativeContext.LoadFunction("SDL_wcscmp", "SDL3") ) )(str1, str2); @@ -95581,9 +99200,9 @@ int ISdl.Wcscmp(Ref str1, Ref str2) ushort* ISdl.Wcsdup(ushort* wstr) => ( (delegate* unmanaged)( - _slots[1124] is not null and var loadedFnPtr + _slots[1161] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1124] = nativeContext.LoadFunction("SDL_wcsdup", "SDL3") + : _slots[1161] = nativeContext.LoadFunction("SDL_wcsdup", "SDL3") ) )(wstr); @@ -95614,9 +99233,9 @@ Ptr ISdl.Wcsdup(Ref wstr) nuint ISdl.Wcslcat(ushort* dst, ushort* src, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1125] is not null and var loadedFnPtr + _slots[1162] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1125] = nativeContext.LoadFunction("SDL_wcslcat", "SDL3") + : _slots[1162] = nativeContext.LoadFunction("SDL_wcslcat", "SDL3") ) )(dst, src, maxlen); @@ -95650,9 +99269,9 @@ public static nuint Wcslcat(Ref dst, Ref src, nuint maxlen) => nuint ISdl.Wcslcpy(ushort* dst, ushort* src, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1126] is not null and var loadedFnPtr + _slots[1163] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1126] = nativeContext.LoadFunction("SDL_wcslcpy", "SDL3") + : _slots[1163] = nativeContext.LoadFunction("SDL_wcslcpy", "SDL3") ) )(dst, src, maxlen); @@ -95686,9 +99305,9 @@ public static nuint Wcslcpy(Ref dst, Ref src, nuint maxlen) => nuint ISdl.Wcslen(ushort* wstr) => ( (delegate* unmanaged)( - _slots[1127] is not null and var loadedFnPtr + _slots[1164] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1127] = nativeContext.LoadFunction("SDL_wcslen", "SDL3") + : _slots[1164] = nativeContext.LoadFunction("SDL_wcslen", "SDL3") ) )(wstr); @@ -95719,9 +99338,9 @@ nuint ISdl.Wcslen(Ref wstr) int ISdl.Wcsncasecmp(ushort* str1, ushort* str2, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1128] is not null and var loadedFnPtr + _slots[1165] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1128] = nativeContext.LoadFunction("SDL_wcsncasecmp", "SDL3") + : _slots[1165] = nativeContext.LoadFunction("SDL_wcsncasecmp", "SDL3") ) )(str1, str2, maxlen); @@ -95755,9 +99374,9 @@ public static int Wcsncasecmp(Ref str1, Ref str2, nuint maxlen) int ISdl.Wcsncmp(ushort* str1, ushort* str2, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1129] is not null and var loadedFnPtr + _slots[1166] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1129] = nativeContext.LoadFunction("SDL_wcsncmp", "SDL3") + : _slots[1166] = nativeContext.LoadFunction("SDL_wcsncmp", "SDL3") ) )(str1, str2, maxlen); @@ -95791,9 +99410,9 @@ public static int Wcsncmp(Ref str1, Ref str2, nuint maxlen) => nuint ISdl.Wcsnlen(ushort* wstr, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1130] is not null and var loadedFnPtr + _slots[1167] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1130] = nativeContext.LoadFunction("SDL_wcsnlen", "SDL3") + : _slots[1167] = nativeContext.LoadFunction("SDL_wcsnlen", "SDL3") ) )(wstr, maxlen); @@ -95824,9 +99443,9 @@ nuint ISdl.Wcsnlen(Ref wstr, nuint maxlen) ushort* ISdl.Wcsnstr(ushort* haystack, ushort* needle, nuint maxlen) => ( (delegate* unmanaged)( - _slots[1131] is not null and var loadedFnPtr + _slots[1168] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1131] = nativeContext.LoadFunction("SDL_wcsnstr", "SDL3") + : _slots[1168] = nativeContext.LoadFunction("SDL_wcsnstr", "SDL3") ) )(haystack, needle, maxlen); @@ -95860,9 +99479,9 @@ public static Ptr Wcsnstr(Ref haystack, Ref needle, nuin ushort* ISdl.Wcsstr(ushort* haystack, ushort* needle) => ( (delegate* unmanaged)( - _slots[1132] is not null and var loadedFnPtr + _slots[1169] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1132] = nativeContext.LoadFunction("SDL_wcsstr", "SDL3") + : _slots[1169] = nativeContext.LoadFunction("SDL_wcsstr", "SDL3") ) )(haystack, needle); @@ -95896,9 +99515,9 @@ public static Ptr Wcsstr(Ref haystack, Ref needle) => int ISdl.Wcstol(ushort* str, ushort** endp, int @base) => ( (delegate* unmanaged)( - _slots[1133] is not null and var loadedFnPtr + _slots[1170] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1133] = nativeContext.LoadFunction("SDL_wcstol", "SDL3") + : _slots[1170] = nativeContext.LoadFunction("SDL_wcstol", "SDL3") ) )(str, endp, @base); @@ -95944,9 +99563,9 @@ public static MaybeBool WindowHasSurface(WindowHandle window) => byte ISdl.WindowHasSurfaceRaw(WindowHandle window) => ( (delegate* unmanaged)( - _slots[1134] is not null and var loadedFnPtr + _slots[1171] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1134] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") + : _slots[1171] = nativeContext.LoadFunction("SDL_WindowHasSurface", "SDL3") ) )(window); @@ -95986,9 +99605,9 @@ GpuPresentMode present_mode ) => ( (delegate* unmanaged)( - _slots[1135] is not null and var loadedFnPtr + _slots[1172] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1135] = nativeContext.LoadFunction( + : _slots[1172] = nativeContext.LoadFunction( "SDL_WindowSupportsGPUPresentMode", "SDL3" ) @@ -96039,9 +99658,9 @@ GpuSwapchainComposition swapchain_composition ) => ( (delegate* unmanaged)( - _slots[1136] is not null and var loadedFnPtr + _slots[1173] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1136] = nativeContext.LoadFunction( + : _slots[1173] = nativeContext.LoadFunction( "SDL_WindowSupportsGPUSwapchainComposition", "SDL3" ) @@ -96063,9 +99682,9 @@ GpuSwapchainComposition swapchain_composition nuint ISdl.WriteIO(IOStreamHandle context, void* ptr, nuint size) => ( (delegate* unmanaged)( - _slots[1137] is not null and var loadedFnPtr + _slots[1174] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1137] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") + : _slots[1174] = nativeContext.LoadFunction("SDL_WriteIO", "SDL3") ) )(context, ptr, size); @@ -96110,9 +99729,9 @@ public static MaybeBool WriteS16BE(IOStreamHandle dst, short value) => byte ISdl.WriteS16BERaw(IOStreamHandle dst, short value) => ( (delegate* unmanaged)( - _slots[1138] is not null and var loadedFnPtr + _slots[1175] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1138] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") + : _slots[1175] = nativeContext.LoadFunction("SDL_WriteS16BE", "SDL3") ) )(dst, value); @@ -96140,9 +99759,9 @@ public static MaybeBool WriteS16LE(IOStreamHandle dst, short value) => byte ISdl.WriteS16LERaw(IOStreamHandle dst, short value) => ( (delegate* unmanaged)( - _slots[1139] is not null and var loadedFnPtr + _slots[1176] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1139] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") + : _slots[1176] = nativeContext.LoadFunction("SDL_WriteS16LE", "SDL3") ) )(dst, value); @@ -96170,9 +99789,9 @@ public static MaybeBool WriteS32BE(IOStreamHandle dst, int value) => byte ISdl.WriteS32BERaw(IOStreamHandle dst, int value) => ( (delegate* unmanaged)( - _slots[1140] is not null and var loadedFnPtr + _slots[1177] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1140] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") + : _slots[1177] = nativeContext.LoadFunction("SDL_WriteS32BE", "SDL3") ) )(dst, value); @@ -96200,9 +99819,9 @@ public static MaybeBool WriteS32LE(IOStreamHandle dst, int value) => byte ISdl.WriteS32LERaw(IOStreamHandle dst, int value) => ( (delegate* unmanaged)( - _slots[1141] is not null and var loadedFnPtr + _slots[1178] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1141] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") + : _slots[1178] = nativeContext.LoadFunction("SDL_WriteS32LE", "SDL3") ) )(dst, value); @@ -96230,9 +99849,9 @@ public static MaybeBool WriteS64BE(IOStreamHandle dst, long value) => byte ISdl.WriteS64BERaw(IOStreamHandle dst, long value) => ( (delegate* unmanaged)( - _slots[1142] is not null and var loadedFnPtr + _slots[1179] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1142] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") + : _slots[1179] = nativeContext.LoadFunction("SDL_WriteS64BE", "SDL3") ) )(dst, value); @@ -96260,9 +99879,9 @@ public static MaybeBool WriteS64LE(IOStreamHandle dst, long value) => byte ISdl.WriteS64LERaw(IOStreamHandle dst, long value) => ( (delegate* unmanaged)( - _slots[1143] is not null and var loadedFnPtr + _slots[1180] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1143] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") + : _slots[1180] = nativeContext.LoadFunction("SDL_WriteS64LE", "SDL3") ) )(dst, value); @@ -96290,9 +99909,9 @@ public static MaybeBool WriteS8(IOStreamHandle dst, sbyte value) => byte ISdl.WriteS8Raw(IOStreamHandle dst, sbyte value) => ( (delegate* unmanaged)( - _slots[1144] is not null and var loadedFnPtr + _slots[1181] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1144] = nativeContext.LoadFunction("SDL_WriteS8", "SDL3") + : _slots[1181] = nativeContext.LoadFunction("SDL_WriteS8", "SDL3") ) )(dst, value); @@ -96308,9 +99927,9 @@ public static byte WriteS8Raw(IOStreamHandle dst, sbyte value) => byte ISdl.WriteStorageFile(StorageHandle storage, sbyte* path, void* source, ulong length) => ( (delegate* unmanaged)( - _slots[1145] is not null and var loadedFnPtr + _slots[1182] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1145] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") + : _slots[1182] = nativeContext.LoadFunction("SDL_WriteStorageFile", "SDL3") ) )(storage, path, source, length); @@ -96358,9 +99977,9 @@ ulong length byte ISdl.WriteSurfacePixel(Surface* surface, int x, int y, byte r, byte g, byte b, byte a) => ( (delegate* unmanaged)( - _slots[1146] is not null and var loadedFnPtr + _slots[1183] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1146] = nativeContext.LoadFunction("SDL_WriteSurfacePixel", "SDL3") + : _slots[1183] = nativeContext.LoadFunction("SDL_WriteSurfacePixel", "SDL3") ) )(surface, x, y, r, g, b, a); @@ -96424,9 +100043,9 @@ float a ) => ( (delegate* unmanaged)( - _slots[1147] is not null and var loadedFnPtr + _slots[1184] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1147] = nativeContext.LoadFunction( + : _slots[1184] = nativeContext.LoadFunction( "SDL_WriteSurfacePixelFloat", "SDL3" ) @@ -96497,9 +100116,9 @@ public static MaybeBool WriteU16BE(IOStreamHandle dst, ushort value) => byte ISdl.WriteU16BERaw(IOStreamHandle dst, ushort value) => ( (delegate* unmanaged)( - _slots[1148] is not null and var loadedFnPtr + _slots[1185] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1148] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") + : _slots[1185] = nativeContext.LoadFunction("SDL_WriteU16BE", "SDL3") ) )(dst, value); @@ -96527,9 +100146,9 @@ public static MaybeBool WriteU16LE(IOStreamHandle dst, ushort value) => byte ISdl.WriteU16LERaw(IOStreamHandle dst, ushort value) => ( (delegate* unmanaged)( - _slots[1149] is not null and var loadedFnPtr + _slots[1186] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1149] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") + : _slots[1186] = nativeContext.LoadFunction("SDL_WriteU16LE", "SDL3") ) )(dst, value); @@ -96557,9 +100176,9 @@ public static MaybeBool WriteU32BE(IOStreamHandle dst, uint value) => byte ISdl.WriteU32BERaw(IOStreamHandle dst, uint value) => ( (delegate* unmanaged)( - _slots[1150] is not null and var loadedFnPtr + _slots[1187] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1150] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") + : _slots[1187] = nativeContext.LoadFunction("SDL_WriteU32BE", "SDL3") ) )(dst, value); @@ -96587,9 +100206,9 @@ public static MaybeBool WriteU32LE(IOStreamHandle dst, uint value) => byte ISdl.WriteU32LERaw(IOStreamHandle dst, uint value) => ( (delegate* unmanaged)( - _slots[1151] is not null and var loadedFnPtr + _slots[1188] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1151] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") + : _slots[1188] = nativeContext.LoadFunction("SDL_WriteU32LE", "SDL3") ) )(dst, value); @@ -96617,9 +100236,9 @@ public static MaybeBool WriteU64BE(IOStreamHandle dst, ulong value) => byte ISdl.WriteU64BERaw(IOStreamHandle dst, ulong value) => ( (delegate* unmanaged)( - _slots[1152] is not null and var loadedFnPtr + _slots[1189] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1152] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") + : _slots[1189] = nativeContext.LoadFunction("SDL_WriteU64BE", "SDL3") ) )(dst, value); @@ -96647,9 +100266,9 @@ public static MaybeBool WriteU64LE(IOStreamHandle dst, ulong value) => byte ISdl.WriteU64LERaw(IOStreamHandle dst, ulong value) => ( (delegate* unmanaged)( - _slots[1153] is not null and var loadedFnPtr + _slots[1190] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1153] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") + : _slots[1190] = nativeContext.LoadFunction("SDL_WriteU64LE", "SDL3") ) )(dst, value); @@ -96677,9 +100296,9 @@ public static MaybeBool WriteU8(IOStreamHandle dst, byte value) => byte ISdl.WriteU8Raw(IOStreamHandle dst, byte value) => ( (delegate* unmanaged)( - _slots[1154] is not null and var loadedFnPtr + _slots[1191] is not null and var loadedFnPtr ? loadedFnPtr - : _slots[1154] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") + : _slots[1191] = nativeContext.LoadFunction("SDL_WriteU8", "SDL3") ) )(dst, value); diff --git a/sources/SDL/SDL/SDL3/SensorType.gen.cs b/sources/SDL/SDL/SDL3/SensorType.gen.cs index ac9e422713..2ddf414cb0 100644 --- a/sources/SDL/SDL/SDL3/SensorType.gen.cs +++ b/sources/SDL/SDL/SDL3/SensorType.gen.cs @@ -33,4 +33,7 @@ public enum SensorType [NativeName("SDL_SENSOR_GYRO_R")] GyroR = 6, + + [NativeName("SDL_SENSOR_COUNT")] + Count = 7, } diff --git a/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs b/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs new file mode 100644 index 0000000000..963e8c5121 --- /dev/null +++ b/sources/SDL/SDL/SDL3/TextureAddressMode.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace Silk.NET.SDL; + +[NativeName("SDL_TextureAddressMode")] +public enum TextureAddressMode +{ + [NativeName("SDL_TEXTURE_ADDRESS_INVALID")] + Invalid = -1, + + [NativeName("SDL_TEXTURE_ADDRESS_AUTO")] + Auto = 0, + + [NativeName("SDL_TEXTURE_ADDRESS_CLAMP")] + Clamp = 1, + + [NativeName("SDL_TEXTURE_ADDRESS_WRAP")] + Wrap = 2, +} diff --git a/sources/SDL/SDL/Sdl.gen.cs b/sources/SDL/SDL/Sdl.gen.cs index 99073b261c..1de67d8c4a 100644 --- a/sources/SDL/SDL/Sdl.gen.cs +++ b/sources/SDL/SDL/Sdl.gen.cs @@ -25,7 +25,7 @@ public partial class ThisThread : ISdl.Static public static void MakeCurrent(ISdl ctx) => Underlying.Value = ctx; } - private readonly unsafe void*[] _slots = new void*[1155]; + private readonly unsafe void*[] _slots = new void*[1192]; public static ISdl Instance { get; } = new StaticWrapper(); public static ISdl Create() => Instance; diff --git a/tests/SDL/SDL/SDL3/SDL_CursorFrameInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_CursorFrameInfoTests.gen.cs new file mode 100644 index 0000000000..2b1827a447 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_CursorFrameInfoTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_CursorFrameInfoTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CursorFrameInfo))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(CursorFrameInfo).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(CursorFrameInfo), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(CursorFrameInfo), Is.EqualTo(8)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_GPURenderStateCreateInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_GPURenderStateCreateInfoTests.gen.cs new file mode 100644 index 0000000000..bbdad54779 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_GPURenderStateCreateInfoTests.gen.cs @@ -0,0 +1,47 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_GPURenderStateCreateInfoTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(GpuRenderStateCreateInfo)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GpuRenderStateCreateInfo).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(GpuRenderStateCreateInfo), Is.EqualTo(64)); + } + else + { + Assert.That(sizeof(GpuRenderStateCreateInfo), Is.EqualTo(32)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_GPUVulkanOptionsTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_GPUVulkanOptionsTests.gen.cs new file mode 100644 index 0000000000..a0966a1b41 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_GPUVulkanOptionsTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_GPUVulkanOptionsTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GpuVulkanOptions))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GpuVulkanOptions).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(GpuVulkanOptions), Is.EqualTo(56)); + } + else + { + Assert.That(sizeof(GpuVulkanOptions), Is.EqualTo(28)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_MouseWheelEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_MouseWheelEventTests.gen.cs index 0b4514d76f..43e07957e4 100644 --- a/tests/SDL/SDL/SDL3/SDL_MouseWheelEventTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_MouseWheelEventTests.gen.cs @@ -31,6 +31,6 @@ public static void IsLayoutSequentialTest() [Test] public static void SizeOfTest() { - Assert.That(sizeof(MouseWheelEvent), Is.EqualTo(48)); + Assert.That(sizeof(MouseWheelEvent), Is.EqualTo(56)); } } diff --git a/tests/SDL/SDL/SDL3/SDL_PinchFingerEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_PinchFingerEventTests.gen.cs new file mode 100644 index 0000000000..4f3033ef8c --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL_PinchFingerEventTests.gen.cs @@ -0,0 +1,36 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_PinchFingerEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PinchFingerEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PinchFingerEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PinchFingerEvent), Is.EqualTo(24)); + } +}